]> www.infradead.org Git - users/jedix/linux-maple.git/commit
bpf: Force uprobe bpf program to always return 0
authorJiri Olsa <jolsa@kernel.org>
Fri, 8 Nov 2024 13:45:33 +0000 (14:45 +0100)
committerAndrii Nakryiko <andrii@kernel.org>
Mon, 11 Nov 2024 16:18:00 +0000 (08:18 -0800)
commitf505005bc7426f4309880da94cfbfc37efa225bd
treeed33b18093c1fd543b3d9085c799a949ab04faac
parent17c4b65a24938c6dd79496cce5df15f70d9c253c
bpf: Force uprobe bpf program to always return 0

As suggested by Andrii make uprobe multi bpf programs to always return 0,
so they can't force uprobe removal.

Keeping the int return type for uprobe_prog_run, because it will be used
in following session changes.

Fixes: 89ae89f53d20 ("bpf: Add multi uprobe link")
Suggested-by: Andrii Nakryiko <andrii@kernel.org>
Signed-off-by: Jiri Olsa <jolsa@kernel.org>
Signed-off-by: Andrii Nakryiko <andrii@kernel.org>
Acked-by: Andrii Nakryiko <andrii@kernel.org>
Link: https://lore.kernel.org/bpf/20241108134544.480660-3-jolsa@kernel.org
kernel/trace/bpf_trace.c