stack overflow safe kdump ( 2.6.15-rc3-i386) - do_nmi
PATCH 3/4 stack overflow safe kdump ( 2.6.15-rc3-i386) - do_nmi
crash_nmi_callback is called right after a system crash which might have caused by stack overflow, thus smp_processor_id should not be trusted. Use the safe replacement safe_smp_processor_id.
---
arch/i386/kernel/traps.c +1 -1
@@ -648,7 +648,7 @@ fastcall void do_nmi(struct pt_regs * renmi_enter (); - cpu =smp_processor_id (); + cpu =safe_smp_processor_id ();#ifdef CONFIG_HOTPLUG_CPU if (!cpu_online (cpu)) {