stack overflow safe kdump ( 2.6.15-rc3-i386) - crash
PATCH 2/4 stack overflow safe kdump ( 2.6.15-rc3-i386) - crash
Replace smp_processor_id with the stack overflow safe safe_smp_processor_id in the reboot patch to the crash capture kernel.
---
arch/i386/kernel/crash.c +2 -2
@@ -120,7 +120,7 @@ static void crash_save_self(struct pt_restruct pt_regs regs;int cpu; - cpu =smp_processor_id (); + cpu =safe_smp_processor_id ();if (saved_regs)crash_setup_regs (®s, saved_regs);else
@@ -211,7 +211,7 @@ void machine_crash_shutdown(struct pt_relocal_irq_disable ();/* Make a note of crashing cpu. Will be used in NMI callback.*/ - crashing_cpu =smp_processor_id (); + crashing_cpu =safe_smp_processor_id ();nmi_shootdown_cpus ();lapic_shutdown ();#if defined(CONFIG_X86_IO_APIC )