aboutsummaryrefslogtreecommitdiffstats
path: root/tools/testing/selftests/bpf/prog_tests/recursion.c
diff options
context:
space:
mode:
authorChuyi Zhou <[email protected]>2023-11-07 13:22:04 +0000
committerMartin KaFai Lau <[email protected]>2023-11-07 23:28:06 +0000
commit3c5864ba9cf912ff9809f315d28f296f21563cce (patch)
tree3de609f4f0ac0e64b1684ce0007776d92833b703 /tools/testing/selftests/bpf/prog_tests/recursion.c
parentbpf: Let verifier consider {task,cgroup} is trusted in bpf_iter_reg (diff)
downloadkernel-3c5864ba9cf912ff9809f315d28f296f21563cce.tar.gz
kernel-3c5864ba9cf912ff9809f315d28f296f21563cce.zip
selftests/bpf: get trusted cgrp from bpf_iter__cgroup directly
Commit f49843afde (selftests/bpf: Add tests for css_task iter combining with cgroup iter) added a test which demonstrates how css_task iter can be combined with cgroup iter. That test used bpf_cgroup_from_id() to convert bpf_iter__cgroup->cgroup to a trusted ptr which is pointless now, since with the previous fix, we can get a trusted cgroup directly from bpf_iter__cgroup. Signed-off-by: Chuyi Zhou <[email protected]> Acked-by: Yonghong Song <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Martin KaFai Lau <[email protected]>
Diffstat (limited to 'tools/testing/selftests/bpf/prog_tests/recursion.c')
0 files changed, 0 insertions, 0 deletions