Skip to content

Commit 1880ed7

Browse files
Jiri Olsarostedt
authored andcommitted
tracing/uprobe: Fix uprobe_perf_open probes iteration
Add missing 'tu' variable initialization in the probes loop, otherwise the head 'tu' is used instead of added probes. Link: https://lkml.kernel.org/r/20211123142801.182530-1-jolsa@kernel.org Cc: stable@vger.kernel.org Fixes: 99c9a92 ("tracing/uprobe: Fix double perf_event linking on multiprobe uprobe") Acked-by: Masami Hiramatsu <mhiramat@kernel.org> Signed-off-by: Jiri Olsa <jolsa@kernel.org> Signed-off-by: Steven Rostedt (VMware) <rostedt@goodmis.org>
1 parent 1360572 commit 1880ed7

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

kernel/trace/trace_uprobe.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1313,6 +1313,7 @@ static int uprobe_perf_open(struct trace_event_call *call,
13131313
return 0;
13141314

13151315
list_for_each_entry(pos, trace_probe_probe_list(tp), list) {
1316+
tu = container_of(pos, struct trace_uprobe, tp);
13161317
err = uprobe_apply(tu->inode, tu->offset, &tu->consumer, true);
13171318
if (err) {
13181319
uprobe_perf_close(call, event);

0 commit comments

Comments
 (0)