linux-edac.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] mce: fix missing stack-dumping in mce_panic()
@ 2022-12-02 16:37 Miaohe Lin
  2022-12-02 14:44 ` Luck, Tony
  2022-12-10  2:28 ` Miaohe Lin
  0 siblings, 2 replies; 19+ messages in thread
From: Miaohe Lin @ 2022-12-02 16:37 UTC (permalink / raw)
  To: tony.luck, bp, tglx, mingo, dave.hansen
  Cc: x86, hpa, linux-edac, linux-kernel, linmiaohe

When machine check exception occurs, there is no stack-dumping now in
mce_panic(). It's because bust_spinlocks(1) is called prematurely so
oops_in_progress will be >= 2 when trying to call dump_stack() in
panic(). Thus dump_stack() won't be called as this is considered as
nested stack-dumping.

Signed-off-by: Miaohe Lin <linmiaohe@huawei.com>
---
 arch/x86/kernel/cpu/mce/core.c | 1 -
 1 file changed, 1 deletion(-)

diff --git a/arch/x86/kernel/cpu/mce/core.c b/arch/x86/kernel/cpu/mce/core.c
index 2c8ec5c71712..c40dad1a6749 100644
--- a/arch/x86/kernel/cpu/mce/core.c
+++ b/arch/x86/kernel/cpu/mce/core.c
@@ -254,7 +254,6 @@ static noinstr void mce_panic(const char *msg, struct mce *final, char *exp)
 			wait_for_panic();
 		barrier();
 
-		bust_spinlocks(1);
 		console_verbose();
 	} else {
 		/* Don't log too much for fake panic */
-- 
2.23.0


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

end of thread, other threads:[~2023-01-09  6:55 UTC | newest]

Thread overview: 19+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-12-02 16:37 [PATCH] mce: fix missing stack-dumping in mce_panic() Miaohe Lin
2022-12-02 14:44 ` Luck, Tony
2022-12-03  2:19   ` Miaohe Lin
2022-12-03  4:22     ` Tony Luck
2022-12-03  6:48       ` Miaohe Lin
2022-12-29 11:54     ` Borislav Petkov
2022-12-29 12:33       ` Miaohe Lin
2022-12-29 12:51         ` Borislav Petkov
2022-12-30  1:56           ` Miaohe Lin
2023-01-03 21:12             ` Luck, Tony
2023-01-06  1:57               ` Miaohe Lin
2023-01-06 17:42                 ` Luck, Tony
2023-01-07  2:27                   ` Miaohe Lin
2023-01-08 17:54                     ` Luck, Tony
2023-01-09  2:16                       ` Miaohe Lin
2023-01-09  4:45                         ` Luck, Tony
2023-01-09  6:54                           ` Miaohe Lin
2022-12-10  2:28 ` Miaohe Lin
2022-12-28 12:33   ` Miaohe Lin

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).