]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
tracing/osnoise: Call synchronize_rcu() when unregistering
authorCrystal Wood <crwood@redhat.com>
Tue, 9 Jun 2026 04:54:30 +0000 (23:54 -0500)
committerSteven Rostedt <rostedt@goodmis.org>
Mon, 6 Jul 2026 18:56:18 +0000 (14:56 -0400)
commitfe58f457ad8d0a2bef4e053cfecca4b5cd266b1a
tree3c23cc66287864f34e3e129e4587339e87733682
parentc37e0a4b79a6bbb96ce5ffe279d7c001e20529e0
tracing/osnoise: Call synchronize_rcu() when unregistering

This ensures that any RCU readers traversing the instance list
have finished, before releasing the reference on the tracer that
the instance points to.

Cc: stable@vger.kernel.org
Fixes: a6ed2aee54644 ("tracing: Switch to kvfree_rcu() API")
Link: https://patch.msgid.link/20260609045430.1589786-1-crwood@redhat.com
Suggested-by: Steven Rostedt <rostedt@goodmis.org>
Signed-off-by: Crystal Wood <crwood@redhat.com>
Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
kernel/trace/trace_osnoise.c