linux-stable/arch/mn10300/mm
Eric W. Biederman df113487f8 mn10300/misalignment: Use SIGSEGV SEGV_MAPERR to report a failed user copy
commit 6ac1dc736b 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-17 13:21:20 +01:00
..
cache-dbg-flush-by-reg.S MN10300: Fix one of the kernel debugger cacheflush variants 2011-06-07 19:03:52 -07:00
cache-dbg-flush-by-tag.S MN10300: Create general kernel debugger cache flushing 2011-03-18 16:54:30 +00:00
cache-dbg-inv-by-reg.S MN10300: Create general kernel debugger cache flushing 2011-03-18 16:54:30 +00:00
cache-dbg-inv-by-tag.S MN10300: Create general kernel debugger cache flushing 2011-03-18 16:54:30 +00:00
cache-dbg-inv.S MN10300: Create general kernel debugger cache flushing 2011-03-18 16:54:30 +00:00
cache-disabled.c
cache-flush-by-reg.S MN10300: AM34: Add cacheflushing by using the AM34 purge registers 2010-10-27 17:28:45 +01:00
cache-flush-by-tag.S MN10300: Create general kernel debugger cache flushing 2011-03-18 16:54:30 +00:00
cache-flush-icache.c MN10300: Cache: Implement SMP global cache flushing 2010-10-27 17:28:47 +01:00
cache-inv-by-reg.S MN10300: Create general kernel debugger cache flushing 2011-03-18 16:54:30 +00:00
cache-inv-by-tag.S MN10300: Create general kernel debugger cache flushing 2011-03-18 16:54:30 +00:00
cache-inv-icache.c MN10300: The SMP_ICACHE_INV_FLUSH_RANGE IPI command does not exist 2011-03-14 14:45:29 +00:00
cache-smp-flush.c MN10300: Cache: Implement SMP global cache flushing 2010-10-27 17:28:47 +01:00
cache-smp-inv.c MN10300: Cache: Implement SMP global cache flushing 2010-10-27 17:28:47 +01:00
cache-smp.c mn10300: convert old cpumask API into new one 2011-05-25 08:39:39 -07:00
cache-smp.h MN10300: Cache: Implement SMP global cache flushing 2010-10-27 17:28:47 +01:00
cache.c MN10300: Cache: Implement SMP global cache flushing 2010-10-27 17:28:47 +01:00
cache.inc MN10300: The icache invalidate functions should disable the icache first 2011-03-18 16:54:29 +00:00
dma-alloc.c dma-mapping: use unsigned long for dma_attrs 2016-08-04 08:50:07 -04:00
extable.c
fault.c mm: do not pass mm_struct into handle_mm_fault 2016-07-26 16:19:19 -07:00
init.c mm/mn10300: prepare for removing num_physpages and simplify mem_init() 2013-07-03 16:07:37 -07:00
Kconfig.cache MN10300: Create general kernel debugger cache flushing 2011-03-18 16:54:30 +00:00
Makefile MN10300: Create general kernel debugger cache flushing 2011-03-18 16:54:30 +00:00
misalignment.c mn10300/misalignment: Use SIGSEGV SEGV_MAPERR to report a failed user copy 2018-02-17 13:21:20 +01:00
mmu-context.c MN10300: Make the use of PIDR to mark TLB entries controllable 2010-10-27 17:28:49 +01:00
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 MN10300: Use the [ID]PTEL2 registers rather than [ID]PTEL for TLB control 2010-10-27 17:28:50 +01:00
tlb-smp.c atomic: Replace atomic_{set,clear}_mask() usage 2015-07-27 14:06:24 +02:00