* [PATCH 4/4] stack overflow safe kdump (2.6.18-rc1-i386) - safe_smp_send_nmi_allbutself
@ 2006-07-11 6:06 Fernando Luis Vázquez Cao
0 siblings, 0 replies; only message in thread
From: Fernando Luis Vázquez Cao @ 2006-07-11 6:06 UTC (permalink / raw)
To: vgoyal
Cc: Eric W. Biederman, akpm, ak, James.Bottomley, linux-kernel, fastboot
Re-implement smp_send_nmi_allbutself so that calls to smp_processor_id
(through send_IPI_allbutself) can be replaced with safe_smp_processor_id
without affecting other parts of the kernel (as suggested by Eric Biederman).
Signed-off-by: Fernando Vazquez <fernando@intellilink.co.jp>
---
diff -urNp linux-2.6.18-rc1/arch/i386/kernel/crash.c linux-2.6.18-rc1-sof/arch/i386/kernel/crash.c
--- linux-2.6.18-rc1/arch/i386/kernel/crash.c 2006-07-11 14:14:04.000000000 +0900
+++ linux-2.6.18-rc1-sof/arch/i386/kernel/crash.c 2006-07-11 14:15:49.000000000 +0900
@@ -122,7 +122,10 @@ static int crash_nmi_callback(struct pt_
static void smp_send_nmi_allbutself(void)
{
- send_IPI_allbutself(NMI_VECTOR);
+ cpumask_t mask = cpu_online_map;
+ cpu_clear(safe_smp_processor_id(), mask);
+ if (!cpus_empty(mask))
+ send_IPI_mask(mask, NMI_VECTOR);
}
static void nmi_shootdown_cpus(void)
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2006-07-11 6:06 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-07-11 6:06 [PATCH 4/4] stack overflow safe kdump (2.6.18-rc1-i386) - safe_smp_send_nmi_allbutself Fernando Luis Vázquez Cao
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
Powered by JetHome