mirror-linux/arch/powerpc
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 powerpc updates for 7.1 2026-04-14 17:10:15 -07:00
configs powerpc/g5: Enable all windfarms by default 2026-05-12 11:48:01 +05:30
crypto lib/crypto: powerpc/ghash: Migrate optimized code into library 2026-03-23 16:44:29 -07:00
include ring-buffer: Flush and stop persistent ring buffer on panic 2026-05-21 08:20:58 -04:00
kernel powerpc/time: Remove redundant preempt_disable|enable() calls from arch_irq_work_raise() 2026-05-14 11:15:26 +05:30
kexec powerpc/kdump: fix KASAN sanitization flag for core_$(BITS).o 2026-05-06 07:31:27 +05:30
kvm KVM: PPC: remove hugetlb.h inclusion 2026-04-05 13:53:23 -07:00
lib powerpc/vmx: avoid KASAN instrumentation in enter_vmx_ops() for kexec 2026-05-06 07:31:28 +05:30
math-emu
mm mm.git review status for linus..mm-stable 2026-04-15 12:59:16 -07:00
net bpf: Pass bpf_verifier_env to JIT 2026-04-16 07:03:40 -07:00
perf powerpc/hv-gpci: fix preempt count leak in sysfs show paths 2026-05-12 11:51:17 +05:30
platforms powerpc/powermac: Remove pmac_low_i2c_{lock,unlock}() 2026-05-12 11:50:09 +05:30
purgatory Makefile: remove redundant tool coverage variables 2024-05-14 23:35:48 +09:00
sysdev powerpc updates for 7.1 2026-04-14 17:10:15 -07:00
tools powerpc64/ftrace: fix OOL stub count with clang 2026-03-07 16:02:25 +05:30
xmon powerpc/xmon: replace sizeof calculations with ARRAY_SIZE macro 2025-09-01 13:40:46 +05:30
Kbuild powerpc64/ftrace: Move ftrace sequence out of line 2024-10-31 11:00:54 +11:00
Kconfig integrity-v7.1 2026-04-17 15:42:01 -07:00
Kconfig.debug powerpc: fix dead default for GUEST_STATE_BUFFER_TEST 2026-05-12 11:50:52 +05:30
Makefile kbuild: Add missing $(objtree) prefix to powerpc crtsavres.o artifact 2025-09-01 13:41:57 +05:30
Makefile.postlink powerpc/ftrace: Add a postlink script to validate function tracer 2024-10-31 11:00:54 +11:00