From: Paul Cacheux Date: Sun, 4 May 2025 18:27:52 +0000 (+0200) Subject: tracing: add missing trace_probe_log_clear for eprobes X-Git-Tag: v6.15-rc7~34^2~1 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=e41b5af4519f90f9a751805ede2102ae36caf5d0;p=thirdparty%2Fkernel%2Flinux.git tracing: add missing trace_probe_log_clear for eprobes Make sure trace_probe_log_clear is called in the tracing eprobe code path, matching the trace_probe_log_init call. Link: https://lore.kernel.org/all/20250504-fix-trace-probe-log-race-v3-1-9e99fec7eddc@gmail.com/ Signed-off-by: Paul Cacheux Acked-by: Steven Rostedt (Google) Signed-off-by: Masami Hiramatsu (Google) --- diff --git a/kernel/trace/trace_eprobe.c b/kernel/trace/trace_eprobe.c index c08355c3ef32b..916555f0de811 100644 --- a/kernel/trace/trace_eprobe.c +++ b/kernel/trace/trace_eprobe.c @@ -969,10 +969,13 @@ static int __trace_eprobe_create(int argc, const char *argv[]) goto error; } } + trace_probe_log_clear(); return ret; + parse_error: ret = -EINVAL; error: + trace_probe_log_clear(); trace_event_probe_cleanup(ep); return ret; }