summaryrefslogtreecommitdiff
tag nameimmutable-swapfiles_2019-09-05 (d3d2c70be654470a1c869fa04bac4c3e2665279e)
tag date2019-09-05 17:56:49 -0700
tagged byDarrick J. Wong <darrick.wong@oracle.com>
tagged objectcommit 4c482a3f8f...
vfs: immutable swapfiles
I discovered that it's possible for userspace to write to active swap files and swap devices. While activated, the kernel effectively holds an irrevocable (except by swapoff) longterm lease on the storage associated with the swap device, so we need to shut down this vector for memory corruption of userspace programs.