]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
tracing: tprobe-events: Fix to put tracepoint_user when disable the tprobe
authorMasami Hiramatsu (Google) <mhiramat@kernel.org>
Thu, 6 Nov 2025 16:52:24 +0000 (01:52 +0900)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 13 Nov 2025 20:37:40 +0000 (15:37 -0500)
commitd9168cda12ff51bb8fa5c12815e46203e9df5daa
treed01a0bb4fc542308d9a03a02bcee6b1db4b3f530
parent5b30f8e69da31fb1874ffebac83b7f083120036e
tracing: tprobe-events: Fix to put tracepoint_user when disable the tprobe

commit c91afa7610235f89a5e8f5686aac23892ab227ed upstream.

__unregister_trace_fprobe() checks tf->tuser to put it when removing
tprobe. However, disable_trace_fprobe() does not use it and only calls
unregister_fprobe(). Thus it forgets to disable tracepoint_user.

If the trace_fprobe has tuser, put it for unregistering the tracepoint
callbacks when disabling tprobe correctly.

Link: https://lore.kernel.org/all/176244794466.155515.3971904050506100243.stgit@devnote2/
Fixes: 2867495dea86 ("tracing: tprobe-events: Register tracepoint when enable tprobe event")
Cc: stable@vger.kernel.org
Signed-off-by: Masami Hiramatsu (Google) <mhiramat@kernel.org>
Tested-by: Beau Belgrave <beaub@linux.microsoft.com>
Reviewed-by: Beau Belgrave <beaub@linux.microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
kernel/trace/trace_fprobe.c