mbox series

[bpf,0/2] Let BPF verifier consider {task,cgroup} is trusted in bpf_iter_reg

Message ID 20231105133458.1315620-1-zhouchuyi@bytedance.com (mailing list archive)
Headers show
Series Let BPF verifier consider {task,cgroup} is trusted in bpf_iter_reg | expand

Message

Chuyi Zhou Nov. 5, 2023, 1:34 p.m. UTC
Hi,
The patchset aims to let the BPF verivier consider
bpf_iter__cgroup->cgroup and bpf_iter__task->task is trused suggested by
Alexei[1].

Please see individual patches for more details. And comments are always
welcome.

Link[1]:https://lore.kernel.org/bpf/20231022154527.229117-1-zhouchuyi@bytedance.com/T/#mb57725edc8ccdd50a1b165765c7619b4d65ed1b0

Chuyi Zhou (2):
  bpf: Let verifier consider {task,cgroup} is trusted in bpf_iter_reg
  selftests/bpf: get trusted cgrp from bpf_iter__cgroup directly

 kernel/bpf/cgroup_iter.c                         |  2 +-
 kernel/bpf/task_iter.c                           |  2 +-
 .../testing/selftests/bpf/progs/iters_css_task.c | 16 ++++------------
 3 files changed, 6 insertions(+), 14 deletions(-)