Re: [PATCH RFC 3/2] fstests: check that we can't write to swap files

2019-08-15 Thread Darrick J. Wong
On Thu, Aug 15, 2019 at 02:26:03PM -0700, Andrew Morton wrote: > On Thu, 15 Aug 2019 09:34:34 -0700 "Darrick J. Wong" > wrote: > > > 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. > > I don't think

Re: [PATCH RFC 3/2] fstests: check that we can't write to swap files

2019-08-15 Thread Andrew Morton
On Thu, 15 Aug 2019 09:34:34 -0700 "Darrick J. Wong" wrote: > 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. I don't think this tests the case where a file was already open for writing and someone

[PATCH RFC 3/2] fstests: check that we can't write to swap files

2019-08-15 Thread Darrick J. Wong
From: Darrick J. Wong 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. Signed-off-by: Darrick J. Wong --- tests/generic/717 | 60 +