1
0
Fork 0
remarkable-linux/arch/mn10300
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
..
boot kbuild: delete unnecessary "@:" 2016-04-20 10:36:57 +02:00
configs arch/defconfig: remove CONFIG_RESOURCE_COUNTERS 2016-05-23 17:04:14 -07:00
include mn10300: fix build error of missing fpu_save() 2017-06-17 06:41:56 +02:00
kernel Merge branch 'work.uaccess2' of git://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs 2016-10-11 23:38:39 -07:00
lib mn10300: copy_from_user() should zero on access_ok() failure... 2016-09-13 17:49:42 -04:00
mm mn10300/misalignment: Use SIGSEGV SEGV_MAPERR to report a failed user copy 2018-02-17 13:21:20 +01:00
oprofile MN10300: Kill MN10300's own profiling Kconfig 2009-04-09 10:53:16 -07:00
proc-mn2ws0050 char/genrtc: remove mn10300 support 2016-06-04 00:23:03 +02:00
proc-mn103e010 mn10300: use RTC_DRV_CMOS instead of CONFIG_RTC 2016-06-26 01:20:08 +02:00
unit-asb2303 mn10300: don't use module_init in non-modular flash.c code 2015-06-16 14:12:30 -04:00
unit-asb2305 PCI: Revert "PCI: Call pci_read_bridge_bases() from core instead of arch code" 2015-09-15 13:18:04 -05:00
unit-asb2364 mn10300: Remove deprecated IRQF_DISABLED 2014-03-04 21:47:51 +01:00
Kconfig mn10300: use RTC_DRV_CMOS instead of CONFIG_RTC 2016-06-26 01:20:08 +02:00
Kconfig.debug consolidate per-arch stack overflow debugging options 2013-07-04 11:25:39 -07:00
Makefile mn10300: Remove redundant debugging info flag 2014-01-28 10:57:06 +01:00