]> git.ipfire.org Git - thirdparty/linux.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)
committerMasami Hiramatsu (Google) <mhiramat@kernel.org>
Thu, 6 Nov 2025 22:36:20 +0000 (07:36 +0900)
commitc91afa7610235f89a5e8f5686aac23892ab227ed
tree0b99b6e5096e4c1d09480b1e70c15df448c93d4b
parent10d9dda426d684e98b17161f02f77894c6de9b60
tracing: tprobe-events: Fix to put tracepoint_user when disable the tprobe

__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>
kernel/trace/trace_fprobe.c