Skip to content

Commit 68fa6bf

Browse files
Jiri Olsagregkh
authored andcommitted
tracing/uprobe: Fix uprobe_perf_open probes iteration
commit 1880ed7 upstream. 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> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
1 parent b777c86 commit 68fa6bf

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

‎kernel/trace/trace_uprobe.c‎

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

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

0 commit comments

Comments
 (0)