bpf.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH bpf-next 0/2] Relax allowlist for open-coded css_task iter
@ 2023-10-22 15:45 Chuyi Zhou
  2023-10-22 15:45 ` [PATCH bpf-next 1/2] bpf: Relax allowlist for " Chuyi Zhou
  2023-10-22 15:45 ` [PATCH bpf-next 2/2] selftests/bpf: Add test for css_task iter combining with cgroup iter Chuyi Zhou
  0 siblings, 2 replies; 13+ messages in thread
From: Chuyi Zhou @ 2023-10-22 15:45 UTC (permalink / raw)
  To: bpf; +Cc: ast, daniel, andrii, martin.lau, Chuyi Zhou

Hi,
The patchset aims to relax the allowlist for open-coded css_task iter
suggested by Alexei[1].

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

Patch summary:
 * Patch #1: Relax the allowlist and let css_task iter can be used in
   bpf iters and any sleepable progs.
 * Patch #2: Add a test in cgroup_iters.c which demonstrates how
   css_task iters can be combined with cgroup iter.

link[1]:https://lore.kernel.org/lkml/CAADnVQKafk_junRyE=-FVAik4hjTRDtThymYGEL8hGTuYoOGpA@mail.gmail.com/

Chuyi Zhou (2):
  bpf: Relax allowlist for css_task iter
  selftests/bpf: Add test for css_task iter combining with cgroup iter

 kernel/bpf/verifier.c                         | 15 ++++---
 .../selftests/bpf/prog_tests/cgroup_iter.c    | 33 +++++++++++++++
 .../selftests/bpf/progs/iters_css_task.c      | 41 +++++++++++++++++++
 .../selftests/bpf/progs/iters_task_failure.c  |  4 +-
 4 files changed, 86 insertions(+), 7 deletions(-)

-- 
2.20.1


^ permalink raw reply	[flat|nested] 13+ messages in thread

end of thread, other threads:[~2023-11-02  9:21 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-10-22 15:45 [PATCH bpf-next 0/2] Relax allowlist for open-coded css_task iter Chuyi Zhou
2023-10-22 15:45 ` [PATCH bpf-next 1/2] bpf: Relax allowlist for " Chuyi Zhou
2023-10-22 15:58   ` Alexei Starovoitov
2023-10-22 15:45 ` [PATCH bpf-next 2/2] selftests/bpf: Add test for css_task iter combining with cgroup iter Chuyi Zhou
2023-10-22 16:03   ` Alexei Starovoitov
2023-10-23 13:50     ` Chuyi Zhou
2023-10-23 17:14       ` Alexei Starovoitov
2023-10-30 14:37         ` Chuyi Zhou
2023-10-31 11:37           ` Chuyi Zhou
2023-10-31 22:06             ` Alexei Starovoitov
2023-11-01  2:41               ` Chuyi Zhou
2023-11-02  6:07                 ` Alexei Starovoitov
2023-11-02  9:21                   ` Chuyi Zhou

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).