mirror-linux/arch/alpha
Masami Hiramatsu (Google) a494d3c8d5 ring-buffer: Flush and stop persistent ring buffer on panic
On real hardware, panic and machine reboot may not flush hardware cache
to memory. This means the persistent ring buffer, which relies on a
coherent state of memory, may not have its events written to the buffer
and they may be lost. Moreover, there may be inconsistency with the
counters which are used for validation of the integrity of the
persistent ring buffer which may cause all data to be discarded.

To avoid this issue, stop recording of the ring buffer on panic and
flush the cache of the ring buffer's memory.

Fixes: e645535a95 ("tracing: Add option to use memmapped memory for trace boot instance")
Cc: stable@vger.kernel.org
Cc: Will Deacon <will@kernel.org>
Cc: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
Cc: Ian Rogers <irogers@google.com>
Link: https://patch.msgid.link/177751969602.2136606.12031934362587643488.stgit@mhiramat.tok.corp.google.com
Signed-off-by: Masami Hiramatsu (Google) <mhiramat@kernel.org>
Acked-by: Catalin Marinas <catalin.marinas@arm.com>
Acked-by: Geert Uytterhoeven <geert@linux-m68k.org>
Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
2026-05-21 08:20:58 -04:00
..
boot alpha/boot/misc: trim unused declarations 2023-02-24 23:14:22 -05:00
configs net: packetengines: remove obsolete yellowfin driver and vendor dir 2026-04-23 14:49:08 -07:00
include ring-buffer: Flush and stop persistent ring buffer on panic 2026-05-21 08:20:58 -04:00
kernel alpha updates for v7.1 2026-04-17 08:34:43 -07:00
lib alpha: remove duplicate included header file 2025-01-12 20:21:07 -08:00
math-emu alpha: missing includes 2024-05-03 22:09:30 +02:00
mm mm.git review status for linus..mm-stable 2026-02-12 11:32:37 -08:00
Kbuild kbuild: use more subdir- for visiting subdirectories while cleaning 2021-10-24 13:49:46 +09:00
Kconfig alpha: add support for SECCOMP and SECCOMP_FILTER 2026-04-12 19:13:59 +02:00
Kconfig.debug treewide: replace '---help---' in Kconfig files with 'help' 2020-06-14 01:57:21 +09:00
Makefile alpha: drop pre-EV56 support 2024-05-06 12:05:00 +02:00