[PATCH 2/4] stack overflow safe kdump ( 2.6.15-rc3-i386) - crash
From: Fernando Luis Vazquez Cao (fernando_at_intellilink.co.jp)
Date: 11/30/05
- Previous message: Fernando Luis Vazquez Cao: "[PATCH 4/4] stack overflow safe kdump ( 2.6.15-rc3-i386) - fault"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
To: "Eric W. Biederman" <ebiederm@xmission.com> Date: Wed, 30 Nov 2005 16:36:28 +0900
Replace smp_processor_id with the stack overflow safe
safe_smp_processor_id in the reboot patch to the crash capture kernel.
--- diff -urNp linux-2.6.15-rc3/arch/i386/kernel/crash.c linux-2.6.15-rc3-sov/arch/i386/kernel/crash.c --- linux-2.6.15-rc3/arch/i386/kernel/crash.c 2005-10-28 09:02:08.000000000 +0900 +++ linux-2.6.15-rc3-sov/arch/i386/kernel/crash.c 2005-11-30 14:55:20.000000000 +0900 @@ -120,7 +120,7 @@ static void crash_save_self(struct pt_re struct 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_re local_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) - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
- Previous message: Fernando Luis Vazquez Cao: "[PATCH 4/4] stack overflow safe kdump ( 2.6.15-rc3-i386) - fault"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
- [PATCH 2.6.9-rc2-mm4] [m32r] Architecture upgrade on 20040928
... Miscellaneous upgrade for recent m32r kernel changes. ... struct pt_regs
*regs, struct irqaction *action) ... send the line "unsubscribe linux-kernel" in ...
(Linux-Kernel) - [PATCH 2.4.31 6/9] gcc4: fix x86_64 sys_iopl() bug
... struct pt_regs regs) ... +asmlinkage long sys_iopl(unsigned int level,
struct pt_regs *regs) ... send the line "unsubscribe linux-kernel" in ...
(Linux-Kernel) - [KGDB PATCH][4/7] Fix x86_64 hooks
... +/* Register KGDB with the die_chain so that we hook into all of the right ...
+static struct notifier_block kgdb_notifier = { ... void die(const char * str, struct pt_regs
* regs, long err) ... send the line "unsubscribe linux-kernel" in ... (Linux-Kernel) - [PATCH 2/4] stack overflow safe kdump (i386) - crash
... struct pt_regs regs; ... send the line "unsubscribe linux-kernel" in
... (Linux-Kernel) - [PATCH][2.4.30-rc1] v10 of gcc4 fixes (solves X crash on x86_64)
... >to compile the 2.4.30-rc1 kernel. ... struct pt_regs regs) ...
struct pt_regs *regs) ... send the line "unsubscribe linux-kernel" in ...
(Linux-Kernel)