Commit 671dd1fb authored by Tao Chen's avatar Tao Chen Committed by Greg Kroah-Hartman
Browse files

bpf: Check link_create.flags parameter for multi_kprobe



[ Upstream commit 24391198 ]

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: 0dcac272 ("bpf: Add multi kprobe link")
Signed-off-by: default avatarTao Chen <chen.dylane@linux.dev>
Signed-off-by: default avatarAndrii Nakryiko <andrii@kernel.org>
Link: https://lore.kernel.org/bpf/20250407035752.1108927-1-chen.dylane@linux.dev


Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
parent fa5977d8
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment