summaryrefslogtreecommitdiffstats
path: root/arch/sparc/kernel/process_64.c
diff options
context:
space:
mode:
authorEric W. Biederman <ebiederm@xmission.com>2021-05-28 13:38:19 -0500
committerEric W. Biederman <ebiederm@xmission.com>2021-07-23 13:08:57 -0500
commit2c9f7eaf08659fa23d25b93a446f74306b3abea8 (patch)
treeb6a434968e98a89072d5ed40a01b274d983eb03b /arch/sparc/kernel/process_64.c
parent726e337b645478ecf41eb261fdde3e8a9476a008 (diff)
downloadlinux-stable-2c9f7eaf08659fa23d25b93a446f74306b3abea8.tar.gz
linux-stable-2c9f7eaf08659fa23d25b93a446f74306b3abea8.tar.bz2
linux-stable-2c9f7eaf08659fa23d25b93a446f74306b3abea8.zip
signal/sparc: si_trapno is only used with SIGILL ILL_ILLTRP
While reviewing the signal handlers on sparc it became clear that si_trapno is only set to a non-zero value when sending SIGILL with si_code ILL_ILLTRP. Add force_sig_fault_trapno and send SIGILL ILL_ILLTRP with it. Remove the define of __ARCH_SI_TRAPNO and remove the always zero si_trapno parameter from send_sig_fault and force_sig_fault. v1: https://lkml.kernel.org/r/m1eeers7q7.fsf_-_@fess.ebiederm.org v2: https://lkml.kernel.org/r/20210505141101.11519-7-ebiederm@xmission.com Link: https://lkml.kernel.org/r/87mtqnxx89.fsf_-_@disp2133 Signed-off-by: "Eric W. Biederman" <ebiederm@xmission.com>
Diffstat (limited to 'arch/sparc/kernel/process_64.c')
-rw-r--r--arch/sparc/kernel/process_64.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/sparc/kernel/process_64.c b/arch/sparc/kernel/process_64.c
index d33c58a58d4f..547b06b49ce3 100644
--- a/arch/sparc/kernel/process_64.c
+++ b/arch/sparc/kernel/process_64.c
@@ -518,7 +518,7 @@ void synchronize_user_stack(void)
static void stack_unaligned(unsigned long sp)
{
- force_sig_fault(SIGBUS, BUS_ADRALN, (void __user *) sp, 0);
+ force_sig_fault(SIGBUS, BUS_ADRALN, (void __user *) sp);
}
static const char uwfault32[] = KERN_INFO \