mirror-linux/arch/parisc
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/Kconfig updates for 7.1 2026-04-14 09:18:40 -07:00
configs Final updates, notably: 2026-04-12 09:17:42 -07:00
include ring-buffer: Flush and stop persistent ring buffer on panic 2026-05-21 08:20:58 -04:00
kernel parisc: Fix build failure for 32-bit kernel with PA2.0 instruction set 2026-04-30 09:10:07 +02:00
lib parisc: Drop ip_fast_csum() inline assembly implementation 2026-04-17 11:32:46 +02:00
math-emu parisc: Fix double SIGFPE crash 2025-05-04 17:30:03 +02:00
mm arch, mm: consolidate empty_zero_page 2026-04-05 13:53:01 -07:00
net bpf: Pass bpf_verifier_env to JIT 2026-04-16 07:03:40 -07:00
video arch: Rename fbdev header and source files 2024-05-03 17:07:50 +02:00
Kbuild parisc: Wire up eBPF JIT compiler 2023-08-22 10:24:47 +02:00
Kconfig module.lds.S: Fix modules on 32-bit parisc architecture 2026-04-17 15:46:46 +02:00
Kconfig.debug parisc: Use page table locks only if DEBUG_KERNEL is enabled 2023-08-20 20:23:46 +02:00
Makefile parisc: Fix build failure for 32-bit kernel with PA2.0 instruction set 2026-04-30 09:10:07 +02:00
defpalo.conf
install.sh kbuild: Abort make on install failures 2024-07-20 13:34:54 +09:00