linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* kdump: crash_kexec()-smp_send_stop() race in panic
@ 2011-10-24 14:55 Michael Holzheu
  2011-10-24 15:14 ` Eric W. Biederman
  0 siblings, 1 reply; 14+ messages in thread
From: Michael Holzheu @ 2011-10-24 14:55 UTC (permalink / raw)
  To: Vivek Goyal
  Cc: ebiederm, akpm, schwidefsky, heiko.carstens, kexec, linux-kernel

Hello Vivek,

In our tests we ran into the following scenario:

Two CPUs have called panic at the same time. The first CPU called
crash_kexec() and the second CPU called smp_send_stop() in panic()
before crash_kexec() finished on the first CPU. So the second CPU
stopped the first CPU and therefore kdump failed.

1st CPU:
panic()->crash_kexec()->mutex_trylock(&kexec_mutex)-> do kdump

2nd CPU:
panic()->crash_kexec()->kexec_mutex already held by 1st CPU
       ->smp_send_stop()-> stop CPU 1 (stop kdump)

How should we fix this problem? One possibility could be to do
smp_send_stop() before we call crash_kexec().

What do you think?

Michael



^ permalink raw reply	[flat|nested] 14+ messages in thread

end of thread, other threads:[~2011-10-25 15:29 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-10-24 14:55 kdump: crash_kexec()-smp_send_stop() race in panic Michael Holzheu
2011-10-24 15:14 ` Eric W. Biederman
2011-10-24 15:23   ` Américo Wang
2011-10-24 17:07     ` Eric W. Biederman
2011-10-24 17:33       ` Vivek Goyal
2011-10-24 22:24         ` Seiji Aguchi
2011-10-25  8:33           ` Michael Holzheu
2011-10-25  8:44       ` Michael Holzheu
2011-10-25 12:04         ` Eric W. Biederman
2011-10-25 14:54           ` Vivek Goyal
2011-10-25 14:58           ` Michael Holzheu
2011-10-25 15:08             ` Vivek Goyal
2011-10-25 15:28               ` Michael Holzheu
2011-10-25 15:28               ` Don Zickus

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).