aboutsummaryrefslogtreecommitdiff
path: root/tools/testing/selftests/bpf/prog_tests/prog_array_init.c
diff options
context:
space:
mode:
authorJordan Rome <[email protected]>2024-10-16 14:00:47 -0700
committerAndrii Nakryiko <[email protected]>2024-10-17 10:52:18 -0700
commit9495a5b731fcaf580448a3438d63601c88367661 (patch)
treed960fbc1d14c69b8f6954df74fa7621bbe888ffb /tools/testing/selftests/bpf/prog_tests/prog_array_init.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 <[email protected]> Signed-off-by: Andrii Nakryiko <[email protected]> Link: https://lore.kernel.org/bpf/[email protected]
Diffstat (limited to 'tools/testing/selftests/bpf/prog_tests/prog_array_init.c')
0 files changed, 0 insertions, 0 deletions