public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH v2 0/2] printk: CPU backtrace not printing on panic
@ 2024-08-03  8:04 takakura
  2024-08-03  8:12 ` [PATCH v2 1/2] Handle flushing of CPU backtraces during panic takakura
  2024-08-03  8:16 ` [PATCH v2 2/2] Allow cpu backtraces to be written into ringbuffer " takakura
  0 siblings, 2 replies; 9+ messages in thread
From: takakura @ 2024-08-03  8:04 UTC (permalink / raw)
  To: pmladek, rostedt, john.ogness, senozhatsky, akpm, bhe, lukas,
	wangkefeng.wang, ubizjak, feng.tang, j.granados,
	stephen.s.brennan
  Cc: linux-kernel, nishimura, taka, Ryo Takakura

From: Ryo Takakura <takakura@valinux.co.jp>

Hi! 

This patchset fixes 2 issues on CPU backtrace during panic. The first 
issue was pointed out by John [1].

(1) The usual(non-panic context) flushing of backtraces written into 
ringbuffer does not work during panic as non-panicked CPUs can't do the 
flushing themselves.

(2) CPU backtrace triggered during panic has stopped working since the 
commit 779dbc2e78d7 ("printk: Avoid non-panic CPUs writing to ringbuffer") 
as it disabled non-panicked cpus writing into ringbuffer after panic.

Sincerely,
Ryo Takakura

---

Changes since V1:
[1] https://lore.kernel.org/all/20240729114601.176047-1-takakura@valinux.co.jp/T/

- Thanks for the feedbacks by Petr and John.
- Fix the issue (1) seperately from original patch.
- Fix the issue (2) by allowing non-panicked CPUs to write into ringbuffer 
while CPU backtrace is triggered as suggested by Petr.

---

Ryo Takakura (2):
  Handle flushing of CPU backtraces during panic
  Allow cpu backtraces to be written into ringbuffer during panic

 include/linux/panic.h  | 1 +
 kernel/panic.c         | 9 ++++++++-
 kernel/printk/printk.c | 2 +-
 3 files changed, 10 insertions(+), 2 deletions(-)

-- 
2.34.1


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

end of thread, other threads:[~2024-08-07  8:59 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-08-03  8:04 [PATCH v2 0/2] printk: CPU backtrace not printing on panic takakura
2024-08-03  8:12 ` [PATCH v2 1/2] Handle flushing of CPU backtraces during panic takakura
2024-08-05 13:49   ` Petr Mladek
2024-08-05 14:08     ` John Ogness
2024-08-07  8:56     ` takakura
2024-08-05 14:04   ` John Ogness
2024-08-07  8:59     ` takakura
2024-08-03  8:16 ` [PATCH v2 2/2] Allow cpu backtraces to be written into ringbuffer " takakura
2024-08-05 13:51   ` Petr Mladek

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox