summaryrefslogtreecommitdiff
tag nameimmutable-swapfiles_2019-06-28 (765db8c0f8e194144091425a688eb560aeeac551)
tag date2019-06-28 10:57:57 -0700
tagged byDarrick J. Wong <darrick.wong@oracle.com>
tagged objectcommit 67c2c57425...
vfs: make swap files unwritable
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.