Files
apfstests/tests/generic/570.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

13 lines
231 B
Plaintext

QA output created by 570
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'