Skip to content
Commit 3c5864ba authored by Chuyi Zhou's avatar Chuyi Zhou Committed by Martin KaFai Lau
Browse files

selftests/bpf: get trusted cgrp from bpf_iter__cgroup directly

Commit f49843af

 (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: default avatarChuyi Zhou <zhouchuyi@bytedance.com>
Acked-by: default avatarYonghong Song <yonghong.song@linux.dev>
Link: https://lore.kernel.org/r/20231107132204.912120-3-zhouchuyi@bytedance.com
Signed-off-by: default avatarMartin KaFai Lau <martin.lau@kernel.org>
parent 0de4f50d
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment