diff options
author | Eric W. Biederman <ebiederm@xmission.com> | 2017-08-01 05:02:38 -0500 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2018-02-16 20:14:46 +0100 |
commit | e8cccd3ddb6b809032cb5177a1acd76ae3fa2636 (patch) | |
tree | f0c5a30e2d62acffd4af42db8fb3c00cc5c2dd92 /drivers/watchdog/sbc7240_wdt.c | |
parent | 0a0e3ffb0a1445a756cc91cd9f03b1ac3abd2e32 (diff) | |
download | linux-stable-e8cccd3ddb6b809032cb5177a1acd76ae3fa2636.tar.gz linux-stable-e8cccd3ddb6b809032cb5177a1acd76ae3fa2636.tar.bz2 linux-stable-e8cccd3ddb6b809032cb5177a1acd76ae3fa2636.zip |
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: b920de1b77b7 ("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>
Diffstat (limited to 'drivers/watchdog/sbc7240_wdt.c')
0 files changed, 0 insertions, 0 deletions