milos-linux/arch/m68k
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
..
68000 m68k: Fix task info flags handling for 68000 2026-04-06 08:46:14 +10:00
amiga Convert 'alloc_obj' family to use the new default GFP_KERNEL argument 2026-02-21 17:09:51 -08:00
apollo m68k: remove unneeded tty includes 2025-06-17 13:42:33 +02:00
atari Convert 'alloc_obj' family to use the new default GFP_KERNEL argument 2026-02-21 17:09:51 -08:00
bvme6000
coldfire m68k: coldfire: remove creating a fixed phy 2025-11-04 18:46:13 -08:00
configs m68k updates for v7.1 2026-04-16 08:11:01 -07:00
emu m68k: emu: Replace unbounded sprintf() in nfhd_init_one() 2026-04-08 11:15:21 +02:00
fpsp040
hp300 serial: 8250: Move hp300_setup_serial_console() to <linux/serial_8250.h> 2024-01-27 19:01:39 -08:00
ifpsp060
include ring-buffer: Flush and stop persistent ring buffer on panic 2026-05-21 08:20:58 -04:00
kernel pci-v7.1-changes 2026-04-15 14:41:21 -07:00
lib m68k: nommu: fix memmove() with differently aligned src and dest for 68000 2026-01-27 12:38:52 +10:00
mac m68k updates for v6.17 2025-07-29 20:19:47 -07:00
math-emu m68k: Replace __ASSEMBLY__ with __ASSEMBLER__ in non-uapi headers 2025-07-06 12:50:50 +02:00
mm arch, mm: consolidate empty_zero_page 2026-04-05 13:53:01 -07:00
mvme16x m68k: mvme147, mvme16x: Adopt rtc-m48t59 platform driver 2024-11-22 20:59:40 +01:00
mvme147 RTC for 6.13 2024-11-30 11:18:16 -08:00
q40 m68k: q40: Remove commented out code 2026-03-30 13:47:32 +02:00
sun3 m68k: sun3: Replace vsprintf() with bounded vsnprintf() 2026-01-26 12:26:01 +01:00
sun3x
tools/amiga
virt m68k: virt: Switch to qemu-virt-ctrl driver 2026-04-13 12:16:10 +02:00
install.sh kbuild: Abort make on install failures 2024-07-20 13:34:54 +09:00
Kbuild
Kconfig m68k: Enable dead code elimination 2025-07-06 12:50:50 +02:00
Kconfig.bus
Kconfig.cpu m68k: Select M68020 as fallback for classic 2024-11-06 15:10:14 +01:00
Kconfig.debug m68k: Don't unregister boot console needlessly 2025-07-06 12:50:50 +02:00
Kconfig.devices
Kconfig.machine m68k: virt: Switch to qemu-virt-ctrl driver 2026-04-13 12:16:10 +02:00
Makefile kbuild: use 4-space indentation when followed by conditionals 2024-02-15 06:05:44 +09:00