Commit 842dc1db authored by Nicholas Piggin's avatar Nicholas Piggin Committed by Michael Ellerman

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: default avatarNicholas Piggin <npiggin@gmail.com>
Signed-off-by: default avatarMichael Ellerman <mpe@ellerman.id.au>
parent 8512bffd
...@@ -97,8 +97,7 @@ static void wd_lockup_ipi(struct pt_regs *regs) ...@@ -97,8 +97,7 @@ static void wd_lockup_ipi(struct pt_regs *regs)
else else
dump_stack(); dump_stack();
if (hardlockup_panic) /* Do not panic from here because that can recurse into NMI IPI layer */
nmi_panic(regs, "Hard LOCKUP");
} }
static void set_cpumask_stuck(const struct cpumask *cpumask, u64 tb) static void set_cpumask_stuck(const struct cpumask *cpumask, u64 tb)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment