summaryrefslogtreecommitdiff
path: root/kernel/capability.c
diff options
context:
space:
mode:
authorJordan Rome <linux@jordanrome.com>2024-10-16 14:00:47 -0700
committerAndrii Nakryiko <andrii@kernel.org>2024-10-17 10:52:18 -0700
commit9495a5b731fcaf580448a3438d63601c88367661 (patch)
treed960fbc1d14c69b8f6954df74fa7621bbe888ffb /kernel/capability.c
parente59db0623f6955986d1be0880b351a1f56e7fd6d (diff)
bpf: Fix iter/task tid filtering
In userspace, you can add a tid filter by setting the "task.tid" field for "bpf_iter_link_info". However, `get_pid_task` when called for the `BPF_TASK_ITER_TID` type should have been using `PIDTYPE_PID` (tid) instead of `PIDTYPE_TGID` (pid). Fixes: f0d74c4da1f0 ("bpf: Parameterize task iterators.") Signed-off-by: Jordan Rome <linux@jordanrome.com> Signed-off-by: Andrii Nakryiko <andrii@kernel.org> Link: https://lore.kernel.org/bpf/20241016210048.1213935-1-linux@jordanrome.com
Diffstat (limited to 'kernel/capability.c')
0 files changed, 0 insertions, 0 deletions