1 When init is started it is SIGNAL_UNKILLABLE. If it were to get an
2 address error, we would try to send it SIGBUS, but it would be ignored
3 and the faulting instruction restarted. This results in an endless
6 We need to use force_sig() instead so it will actually die and give us
7 some useful information.
9 Reported-by: Florian Fainelli <florian@openwrt.org>
11 Signed-off-by: David Daney <ddaney@caviumnetworks.com>
13 arch/mips/kernel/unaligned.c | 6 +++---
14 1 files changed, 3 insertions(+), 3 deletions(-)
16 diff --git a/arch/mips/kernel/unaligned.c b/arch/mips/kernel/unaligned.c
17 index bf4c4a9..67bd626 100644
18 --- a/arch/mips/kernel/unaligned.c
19 +++ b/arch/mips/kernel/unaligned.c
20 @@ -482,19 +482,19 @@ fault:
23 die_if_kernel("Unhandled kernel unaligned access", regs);
24 - send_sig(SIGSEGV, current, 1);
25 + force_sig(SIGSEGV, current);
30 die_if_kernel("Unhandled kernel unaligned access", regs);
31 - send_sig(SIGBUS, current, 1);
32 + force_sig(SIGBUS, current);
37 die_if_kernel("Unhandled kernel unaligned access or invalid instruction", regs);
38 - send_sig(SIGILL, current, 1);
39 + force_sig(SIGILL, current);
42 asmlinkage void do_ade(struct pt_regs *regs)