summaryrefslogtreecommitdiffstats
path: root/arch/arc/plat-hsdk
diff options
context:
space:
mode:
authorEugeniy Paltsev <Eugeniy.Paltsev@synopsys.com>2019-05-13 20:28:00 +0300
committerVineet Gupta <vgupta@synopsys.com>2019-05-20 10:09:10 -0700
commita8c715b4dd73c26a81a9cc8dc792aa715d8b4bb2 (patch)
tree6155b49813d31180e7f53afa91d3011eee978d7b /arch/arc/plat-hsdk
parent89c92142f75eb80064f5b9f1111484b1b4d81790 (diff)
downloadlinux-stable-a8c715b4dd73c26a81a9cc8dc792aa715d8b4bb2.tar.gz
linux-stable-a8c715b4dd73c26a81a9cc8dc792aa715d8b4bb2.tar.bz2
linux-stable-a8c715b4dd73c26a81a9cc8dc792aa715d8b4bb2.zip
ARC: mm: SIGSEGV userspace trying to access kernel virtual memory
As of today if userspace process tries to access a kernel virtual addres (0x7000_0000 to 0x7ffff_ffff) such that a legit kernel mapping already exists, that process hangs instead of being killed with SIGSEGV Fix that by ensuring that do_page_fault() handles kenrel vaddr only if in kernel mode. And given this, we can also simplify the code a bit. Now a vmalloc fault implies kernel mode so its failure (for some reason) can reuse the @no_context label and we can remove @bad_area_nosemaphore. Reproduce user test for original problem: ------------------------>8----------------- #include <stdlib.h> #include <stdint.h> int main(int argc, char *argv[]) { volatile uint32_t temp; temp = *(uint32_t *)(0x70000000); } ------------------------>8----------------- Cc: <stable@vger.kernel.org> Signed-off-by: Eugeniy Paltsev <Eugeniy.Paltsev@synopsys.com> Signed-off-by: Vineet Gupta <vgupta@synopsys.com>
Diffstat (limited to 'arch/arc/plat-hsdk')
0 files changed, 0 insertions, 0 deletions