mirror-linux/arch/sparc
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 kbuild: Abort make on install failures 2024-07-20 13:34:54 +09:00
configs crypto: Remove michael_mic from crypto_shash API 2026-04-08 10:11:37 +02:00
crypto crypto: sparc - Remove des and des3_ede code 2026-04-03 08:56:12 +08:00
include ring-buffer: Flush and stop persistent ring buffer on panic 2026-05-21 08:20:58 -04:00
kernel memblock: updates for 7.0-rc1 2026-04-18 11:29:14 -07:00
lib sparc: move the XOR code to lib/raid/ 2026-04-02 23:36:19 -07:00
math-emu
mm sparc: use vmemmap_populate_hugepages for vmemmap_populate 2026-04-05 13:53:19 -07:00
net bpf: Pass bpf_verifier_env to JIT 2026-04-16 07:03:40 -07:00
power sparc64: Fix prototype warnings in hibernate.c 2024-07-11 15:58:28 +02:00
prom sparc64: Replace deprecated strcpy() with strscpy() in prom_nextprop() 2025-09-26 17:27:06 +02:00
vdso sparc64: vdso: Implement clock_gettime64() 2026-03-11 10:18:33 +01:00
video arch: Fix name collision with ACPI's video.o 2024-05-20 21:17:06 +00:00
Kbuild
Kconfig sparc64: vdso: Switch to the generic vDSO library 2026-03-11 10:18:32 +01:00
Kconfig.debug
Makefile sparc/build: Put usage of -fcall-used* flags behind cc-option 2024-11-16 09:52:56 +01:00