ring-buffer: Do not have boot mapped buffers hook to CPU hotplug
authorSteven Rostedt <rostedt@goodmis.org>
Tue, 8 Oct 2024 18:32:42 +0000 (14:32 -0400)
committerSteven Rostedt (Google) <rostedt@goodmis.org>
Wed, 9 Oct 2024 13:24:35 +0000 (09:24 -0400)
commit912da2c384d510ce40c5af9c3adc316afa4ec547
tree57ff1afea34fc813e0e4e0179a22a74bb28de05a
parent8cf0b93919e13d1e8d4466eb4080a4c4d9d66d7b
ring-buffer: Do not have boot mapped buffers hook to CPU hotplug

The boot mapped ring buffer has its buffer mapped at a fixed location
found at boot up. It is not dynamic. It cannot grow or be expanded when
new CPUs come online.

Do not hook fixed memory mapped ring buffers to the CPU hotplug callback,
otherwise it can cause a crash when it tries to add the buffer to the
memory that is already fully occupied.

Cc: Masami Hiramatsu <mhiramat@kernel.org>
Cc: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
Link: https://lore.kernel.org/20241008143242.25e20801@gandalf.local.home
Fixes: be68d63a139bd ("ring-buffer: Add ring_buffer_alloc_range()")
Signed-off-by: Steven Rostedt (Google) <rostedt@goodmis.org>
kernel/trace/ring_buffer.c