summaryrefslogtreecommitdiffstats
path: root/arch/xtensa
diff options
context:
space:
mode:
authorEric W. Biederman <ebiederm@xmission.com>2018-04-20 09:14:56 -0500
committerEric W. Biederman <ebiederm@xmission.com>2018-04-25 10:44:11 -0500
commit7de712ccc096b81d23cc0a941cd9b8cb3956605d (patch)
tree17411deb140e0d52c5d1b55306fc81c579b2dc82 /arch/xtensa
parentbc08c0781dbe5ec996bac1088f944723103729af (diff)
downloadlinux-stable-7de712ccc096b81d23cc0a941cd9b8cb3956605d.tar.gz
linux-stable-7de712ccc096b81d23cc0a941cd9b8cb3956605d.tar.bz2
linux-stable-7de712ccc096b81d23cc0a941cd9b8cb3956605d.zip
signal/xtensa: Consistenly use SIGBUS in do_unaligned_user
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 Cc: stable@vger.kernel.org Acked-by: Max Filippov <jcmvbkbc@gmail.com> Fixes: 5a0015d62668 ("[PATCH] xtensa: Architecture support for Tensilica Xtensa Part 3") Signed-off-by: "Eric W. Biederman" <ebiederm@xmission.com>
Diffstat (limited to 'arch/xtensa')
-rw-r--r--arch/xtensa/kernel/traps.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/xtensa/kernel/traps.c b/arch/xtensa/kernel/traps.c
index 51771929f341..90b509f65b6f 100644
--- a/arch/xtensa/kernel/traps.c
+++ b/arch/xtensa/kernel/traps.c
@@ -339,7 +339,7 @@ do_unaligned_user (struct pt_regs *regs)
info.si_errno = 0;
info.si_code = BUS_ADRALN;
info.si_addr = (void *) regs->excvaddr;
- force_sig_info(SIGSEGV, &info, current);
+ force_sig_info(SIGBUS, &info, current);
}
#endif