summaryrefslogtreecommitdiff
path: root/arch/um/os-Linux/skas
diff options
context:
space:
mode:
authorJohannes Berg <johannes.berg@intel.com>2021-01-14 00:08:02 +0300
committerRichard Weinberger <richard@nod.at>2021-02-12 23:31:08 +0300
commit47da29763ec9a153b9b685bff9db659e4e09e494 (patch)
tree05481f2a307bd8f7b5ded345b24c196dbf883302 /arch/um/os-Linux/skas
parente1e22d0d9183aaaf65acf0cb529cb51ddbc12e08 (diff)
downloadlinux-47da29763ec9a153b9b685bff9db659e4e09e494.tar.xz
um: mm: check more comprehensively for stub changes
If userspace tries to change the stub, we need to kill it, because otherwise it can escape the virtual machine. In a few cases the stub checks weren't good, e.g. if userspace just tries to mmap(0x100000 - 0x1000, 0x3000, ...) it could succeed to get a new private/anonymous mapping replacing the stubs. Fix this by checking everywhere, and checking for _overlap_, not just direct changes. Cc: stable@vger.kernel.org Fixes: 3963333fe676 ("uml: cover stubs with a VMA") Signed-off-by: Johannes Berg <johannes.berg@intel.com> Signed-off-by: Richard Weinberger <richard@nod.at>
Diffstat (limited to 'arch/um/os-Linux/skas')
0 files changed, 0 insertions, 0 deletions