diff options
author | 2017-08-01 05:02:38 -0500 | |
---|---|---|
committer | 2018-01-12 14:23:36 -0600 | |
commit | 6ac1dc736b323011a55ecd1fc5897c24c4f77cbd (patch) | |
tree | 2bb4ab3a88e8266cee7b4cda6512fa4cffb712fd /tools/perf/scripts/python/check-perf-trace.py | |
parent | signal: Ensure generic siginfos the kernel sends have all bits initialized (diff) | |
download | wireguard-linux-6ac1dc736b323011a55ecd1fc5897c24c4f77cbd.tar.xz wireguard-linux-6ac1dc736b323011a55ecd1fc5897c24c4f77cbd.zip |
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: 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>
Diffstat (limited to 'tools/perf/scripts/python/check-perf-trace.py')
0 files changed, 0 insertions, 0 deletions