Files
apfstests/tests/generic/569.out
T
Darrick J. Wong db8feee949 generic: check that we can't write to swap files
While active, the media backing a swap file is leased to the kernel.
Userspace has no business writing to it.  Make sure we can't do this.

The two kernel patches titled as below should fix the bug:

mm: set S_SWAPFILE on blockdev swap devices
vfs: don't allow writes to swap files

Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
Reviewed-by: Eryu Guan <guaneryu@gmail.com>
Signed-off-by: Eryu Guan <guaneryu@gmail.com>
2019-10-02 18:51:16 +08:00

15 lines
283 B
Plaintext

QA output created by 569
verb 1
pwrite: Text file busy
verb 2
mmap: Text file busy
verb 3
Caught signal 7, terminating...
verb 4
pwrite: Text file busy
pwrite: Text file busy
mmap: Text file busy
no mapped regions, try 'help mmap'
ftruncate: Text file busy
fallocate: Text file busy