kernel-watchdog-use-nmi-registers-snapshot-in-hardlockup-handler.patch removed from -mm tree
The patch titled
Subject: kernel/watchdog: use nmi registers snapshot in hardlockup handler
has been removed from the -mm tree. Its filename was
kernel-watchdog-use-nmi-registers-snapshot-in-hardlockup-handler.patch
This patch was dropped because it was merged into mainline or a subsystem tree
------------------------------------------------------
From: Konstantin Khlebnikov <[email protected]>
Subject: kernel/watchdog: use nmi registers snapshot in hardlockup handler
NMI handler doesn't call set_irq_regs(), it's set only by normal IRQ. Thus get_irq_regs() returns NULL or stale registers snapshot with IP/SP pointing to the code interrupted by IRQ which was interrupted by NMI. NULL isn't a problem: in this case watchdog calls dump_stack() and prints full stack trace including NMI. But if we're stuck in IRQ handler then NMI watchlog will print stack trace without IRQ part at all.
This patch uses registers snapshot passed into NMI handler as arguments:
these registers point exactly to the instruction interrupted by NMI.
---
kernel/watchdog.c | 1 - 1 file changed, 1 deletion(-)
kernel/watchdog.c renamed from kernel/watchdog.c~kernel-watchdog-use-nmi-registers-snapshot-in-hardlockup-handler +0 -1
@@ -344,7 +344,6 @@ static void watchdog_overflow_callback(s*/ if (is_hardlockup ()) {int this_cpu =smp_processor_id (); -struct pt_regs *regs =get_irq_regs ();/* only print hardlockups once */ if (__this_cpu_read (hard_watchdog_warn) == true)
_
Patches currently in -mm which might be from [email protected] are