android_kernel_oneplus_msm8998/arch/mn10300/mm
Eric W. Biederman 2dab221939 mn10300/misalignment: Use SIGSEGV SEGV_MAPERR to report a failed user copy
commit 6ac1dc736b323011a55ecd1fc5897c24c4f77cbd upstream.

Setting si_code to 0 is the same a setting si_code to SI_USER which is definitely
not correct.  With si_code set to SI_USER si_pid and si_uid will be copied to
userspace instead of si_addr.  Which is very wrong.

So fix this by using a sensible si_code (SEGV_MAPERR) for this failure.

Fixes: b920de1b77 ("mn10300: add the MN10300/AM33 architecture to the kernel")
Cc: David Howells <dhowells@redhat.com>
Cc: Masakazu Urade <urade.masakazu@jp.panasonic.com>
Cc: Koichi Yasutake <yasutake.koichi@jp.panasonic.com>
Signed-off-by: "Eric W. Biederman" <ebiederm@xmission.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2018-02-16 20:09:47 +01:00
..
cache-dbg-flush-by-reg.S
cache-dbg-flush-by-tag.S
cache-dbg-inv-by-reg.S
cache-dbg-inv-by-tag.S
cache-dbg-inv.S
cache-disabled.c
cache-flush-by-reg.S
cache-flush-by-tag.S
cache-flush-icache.c
cache-inv-by-reg.S
cache-inv-by-tag.S
cache-inv-icache.c
cache-smp-flush.c
cache-smp-inv.c
cache-smp.c
cache-smp.h
cache.c
cache.inc
dma-alloc.c
extable.c
fault.c mm/fault, arch: Use pagefault_disable() to check for disabled pagefaults in the handler 2015-05-19 08:39:15 +02:00
init.c mm/mn10300: prepare for removing num_physpages and simplify mem_init() 2013-07-03 16:07:37 -07:00
Kconfig.cache
Makefile
misalignment.c mn10300/misalignment: Use SIGSEGV SEGV_MAPERR to report a failed user copy 2018-02-16 20:09:47 +01:00
mmu-context.c
pgtable.c mn10300: add missing pgtable_page_ctor/dtor calls 2013-11-15 09:32:16 +09:00
tlb-mn10300.S
tlb-smp.c atomic: Replace atomic_{set,clear}_mask() usage 2015-07-27 14:06:24 +02:00