diff options
author | Nicholas Piggin <npiggin@gmail.com> | 2017-09-29 05:29:37 +0200 |
---|---|---|
committer | Michael Ellerman <mpe@ellerman.id.au> | 2017-10-04 02:25:40 +0200 |
commit | 842dc1dbabb5e874550b52d896851e5e53e28a5f (patch) | |
tree | 4bd4e1525beae56b055dae418e0a87ffe03b08c9 /arch/powerpc/kernel | |
parent | cxl: Set the valid bit in PE for dedicated mode (diff) | |
download | linux-842dc1dbabb5e874550b52d896851e5e53e28a5f.tar.xz linux-842dc1dbabb5e874550b52d896851e5e53e28a5f.zip |
powerpc/watchdog: Do not panic from locked CPU's IPI handler
The SMP watchdog will detect locked CPUs and IPI them to print a
backtrace and registers. If panic on hard lockup is enabled, do not
panic from this handler, because that can cause recursion into the IPI
layer during the panic.
The caller already panics in this case.
Signed-off-by: Nicholas Piggin <npiggin@gmail.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Diffstat (limited to 'arch/powerpc/kernel')
-rw-r--r-- | arch/powerpc/kernel/watchdog.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/arch/powerpc/kernel/watchdog.c b/arch/powerpc/kernel/watchdog.c index 2f6eadd9408d..532a1adbe89b 100644 --- a/arch/powerpc/kernel/watchdog.c +++ b/arch/powerpc/kernel/watchdog.c @@ -97,8 +97,7 @@ static void wd_lockup_ipi(struct pt_regs *regs) else dump_stack(); - if (hardlockup_panic) - nmi_panic(regs, "Hard LOCKUP"); + /* Do not panic from here because that can recurse into NMI IPI layer */ } static void set_cpumask_stuck(const struct cpumask *cpumask, u64 tb) |