linux/arch/xtensa
Eric W. Biederman 92f5d9d895 signal/xtensa: Consistenly use SIGBUS in do_unaligned_user
commit 7de712ccc0 upstream.

While working on changing this code to use force_sig_fault I
discovered that do_unaliged_user is sets si_signo to SIGBUS and passes
SIGSEGV to force_sig_info.  Which is just b0rked.

The code is reporting a SIGBUS error so replace the SIGSEGV with SIGBUS.

Cc: Chris Zankel <chris@zankel.net>
Cc: Max Filippov <jcmvbkbc@gmail.com>
Cc: linux-xtensa@linux-xtensa.org
Acked-by: Max Filippov <jcmvbkbc@gmail.com>
Fixes: 5a0015d626 ("[PATCH] xtensa: Architecture support for Tensilica Xtensa Part 3")
Signed-off-by: "Eric W. Biederman" <ebiederm@xmission.com>
Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
History 2018-11-20 18:04:49 +00:00
..
boot xtensa: add support for KC705 2014-04-06 21:32:02 +04:00
configs Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs 2014-04-12 14:49:50 -07:00
include Make asm/word-at-a-time.h available on all architectures 2018-10-21 08:46:11 +01:00
kernel signal/xtensa: Consistenly use SIGBUS in do_unaligned_user 2018-11-20 18:04:49 +00:00
lib xtensa: fixes for configs without loop option 2015-12-13 17:49:02 +00:00
mm xtensa: mm/cache: add missing EXPORT_SYMBOLs 2017-11-11 13:33:12 +00:00
oprofile xtensa: fix oprofile building as module 2013-05-09 01:07:09 -07:00
platforms xtensa: ISS: don't hang if stdin EOF is reached 2016-05-01 00:05:57 +02:00
variants xtensa: fsf: drop nonexistent GPIO32 support 2014-02-21 21:33:40 +04:00
Kconfig xtensa: xtfpga: fix hardware lockup caused by LCD driver 2015-05-04 16:06:36 +01:00
Kconfig.debug xtensa: check TLB sanity on return to userspace 2013-07-08 01:18:56 -07:00
Makefile xtensa: don't use echo -e needlessly 2013-09-06 09:48:29 -07:00