commit | 7eda7956ef417fd0a971bc2ff19f09abf7289f1a | [log] [tgz] |
---|---|---|
author | Darrick J. Wong <darrick.wong@oracle.com> | Tue Aug 20 07:55:16 2019 -0700 |
committer | Jaegeuk Kim <jaegeuk@kernel.org> | Mon Dec 02 16:18:18 2019 -0800 |
tree | b42762312ad9d3f6b11a55d11abe2bd3359b6cec | |
parent | 9423820c0ded51c9a221500427bd9223b637ce8a [diff] |
vfs: don't allow writes to swap files Don't let userspace write to an active swap file because the kernel effectively has a long term lease on the storage and things could get seriously corrupted if we let this happen. Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com> Reviewed-by: Christoph Hellwig <hch@lst.de>