]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
ring-buffer: Do not record in NMI if the arch does not support cmpxchg in NMI
authorSteven Rostedt (Google) <rostedt@goodmis.org>
Wed, 13 Dec 2023 22:54:03 +0000 (17:54 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 20 Jan 2024 10:50:07 +0000 (11:50 +0100)
commitb0407f68d917ea2df347decd02465cd9e1f4541d
tree0ab0a7f24993339808a71b71d25896aa189a8594
parent07787918c6cf54f1c7b78771b90fa62dee1c7403
ring-buffer: Do not record in NMI if the arch does not support cmpxchg in NMI

[ Upstream commit 712292308af2265cd9b126aedfa987f10f452a33 ]

As the ring buffer recording requires cmpxchg() to work, if the
architecture does not support cmpxchg in NMI, then do not do any recording
within an NMI.

Link: https://lore.kernel.org/linux-trace-kernel/20231213175403.6fc18540@gandalf.local.home
Cc: Masami Hiramatsu <mhiramat@kernel.org>
Cc: Mark Rutland <mark.rutland@arm.com>
Cc: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
Signed-off-by: Steven Rostedt (Google) <rostedt@goodmis.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
kernel/trace/ring_buffer.c