linux/arch/mn10300/mm
Eric W. Biederman 6ac1dc736b mn10300/misalignment: Use SIGSEGV SEGV_MAPERR to report a failed user copy
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.

Cc: stable@vger.kernel.org
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>
2018-01-12 14:23:36 -06:00
..
Kconfig.cache License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
Makefile License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +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 Replace <asm/uaccess.h> with <linux/uaccess.h> globally 2016-12-24 11:46:01 -08:00
cache-smp.h
cache.c Replace <asm/uaccess.h> with <linux/uaccess.h> globally 2016-12-24 11:46:01 -08:00
cache.inc
dma-alloc.c treewide: Constify most dma_map_ops structures 2017-01-24 12:23:35 -05:00
extable.c mn10300: migrate exception table users off module.h and onto extable.h 2017-01-24 12:41:46 -05:00
fault.c bug: define the "cut here" string in a single place 2017-11-17 16:10:01 -08:00
init.c Replace <asm/uaccess.h> with <linux/uaccess.h> globally 2016-12-24 11:46:01 -08:00
misalignment.c mn10300/misalignment: Use SIGSEGV SEGV_MAPERR to report a failed user copy 2018-01-12 14:23:36 -06:00
mmu-context.c
pgtable.c tree wide: get rid of __GFP_REPEAT for order-0 allocations part I 2016-06-24 17:23:52 -07:00
tlb-mn10300.S
tlb-smp.c sched/headers: Prepare to remove the <linux/mm_types.h> dependency from <linux/sched.h> 2017-03-02 08:42:37 +01:00