diff options
author | Eric W. Biederman <ebiederm@xmission.com> | 2018-09-18 09:43:32 +0200 |
---|---|---|
committer | Eric W. Biederman <ebiederm@xmission.com> | 2018-09-21 15:50:40 +0200 |
commit | c1c7c85ceafe5a96c4d5fc648ff42a7102838dd7 (patch) | |
tree | 16ec061872aeebdc79b1baf3efd06143cbfb0f69 | |
parent | signal/powerpc: Factor the common exception code into exception_common (diff) | |
download | linux-c1c7c85ceafe5a96c4d5fc648ff42a7102838dd7.tar.xz linux-c1c7c85ceafe5a96c4d5fc648ff42a7102838dd7.zip |
signal/powerpc: Call force_sig_fault from _exception
The callers of _exception don't need the pkey exception logic because
they are not processing a pkey exception. So just call exception_common
directly and then call force_sig_fault to generate the appropriate siginfo
and deliver the appropriate signal.
Reviewed-by: Stephen Rothwell <sfr@canb.auug.org.au>
Signed-off-by: "Eric W. Biederman" <ebiederm@xmission.com>
-rw-r--r-- | arch/powerpc/kernel/traps.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/arch/powerpc/kernel/traps.c b/arch/powerpc/kernel/traps.c index f6c778b5144f..c38bec51dd84 100644 --- a/arch/powerpc/kernel/traps.c +++ b/arch/powerpc/kernel/traps.c @@ -380,7 +380,10 @@ void _exception_pkey(int signr, struct pt_regs *regs, int code, unsigned long ad void _exception(int signr, struct pt_regs *regs, int code, unsigned long addr) { - _exception_pkey(signr, regs, code, addr, 0); + if (!exception_common(signr, regs, code, addr)) + return; + + force_sig_fault(signr, code, (void __user *)addr, current); } void system_reset_exception(struct pt_regs *regs) |