Commit 671dd1f
bpf: Check link_create.flags parameter for multi_kprobe
[ Upstream commit 2439119 ]
The link_create.flags are currently not used for multi-kprobes, so return
-EINVAL if it is set, same as for other attach APIs.
We allow target_fd, on the other hand, to have an arbitrary value for
multi-kprobe, as there are existing users (libbpf) relying on this.
Fixes: 0dcac27 ("bpf: Add multi kprobe link")
Signed-off-by: Tao Chen <chen.dylane@linux.dev>
Signed-off-by: Andrii Nakryiko <andrii@kernel.org>
Link: https://lore.kernel.org/bpf/20250407035752.1108927-1-chen.dylane@linux.dev
Signed-off-by: Sasha Levin <sashal@kernel.org>1 parent fa5977d commit 671dd1f
1 file changed
+3
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2932 | 2932 | | |
2933 | 2933 | | |
2934 | 2934 | | |
| 2935 | + | |
| 2936 | + | |
| 2937 | + | |
2935 | 2938 | | |
2936 | 2939 | | |
2937 | 2940 | | |
| |||
0 commit comments