]> git.ipfire.org Git - thirdparty/linux.git/commit
bpf: Use user_path_at for path resolution in uprobe_multi
authorJiri Olsa <jolsa@kernel.org>
Thu, 11 Jun 2026 11:42:25 +0000 (13:42 +0200)
committerAlexei Starovoitov <ast@kernel.org>
Mon, 15 Jun 2026 00:24:25 +0000 (17:24 -0700)
commit65d81609e93140d8dd745fd41eb8a195f83ba7cd
tree0bcdf61b42625d2f65ea0f881e5652ee9019cfa7
parent4d87a251d45b4a95eb4c0abcfab809c9f231258a
bpf: Use user_path_at for path resolution in uprobe_multi

Resolve the uprobe_multi user path with user_path_at() instead of copying
the string with strndup_user() and passing it to kern_path(). This removes
the temporary allocation and keeps the lookup logic in one helper.

Signed-off-by: Jiri Olsa <jolsa@kernel.org>
Link: https://lore.kernel.org/r/20260611114230.950379-3-jolsa@kernel.org
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
kernel/trace/bpf_trace.c