mbox series

[bpf-next,v6,0/2] bpf: enable some functions in cgroup programs

Message ID 20240819162805.78235-1-technoboy85@gmail.com (mailing list archive)
Headers show
Series bpf: enable some functions in cgroup programs | expand

Message

Matteo Croce Aug. 19, 2024, 4:28 p.m. UTC
From: Matteo Croce <teknoraver@meta.com>

Enable some BPF kfuncs and the helper bpf_current_task_under_cgroup()
for program types BPF_CGROUP_*.
These will be used by systemd-networkd:
https://github.com/systemd/systemd/pull/32212

v5->v6:
Called register_btf_kfunc_id_set() only once
Fixed build error with !CONFIG_CGROUPS

v4->v5:
Same code, but v4 had an old cover letter

v3->v4:
Reset all the acked-by tags because the code changed a bit.

Signed-off-by: Matteo Croce <teknoraver@meta.com>

Matteo Croce (2):
  bpf: enable generic kfuncs for BPF_CGROUP_* programs
  bpf: allow bpf_current_task_under_cgroup() with BPF_CGROUP_*

 include/linux/bpf.h      |  1 +
 kernel/bpf/btf.c         |  8 ++++++--
 kernel/bpf/cgroup.c      |  2 ++
 kernel/bpf/helpers.c     | 24 ++++++++++++++++++++++++
 kernel/trace/bpf_trace.c | 27 ++-------------------------
 5 files changed, 35 insertions(+), 27 deletions(-)

Comments

patchwork-bot+netdevbpf@kernel.org Aug. 19, 2024, 10:50 p.m. UTC | #1
Hello:

This series was applied to bpf/bpf-next.git (master)
by Andrii Nakryiko <andrii@kernel.org>:

On Mon, 19 Aug 2024 18:28:03 +0200 you wrote:
> From: Matteo Croce <teknoraver@meta.com>
> 
> Enable some BPF kfuncs and the helper bpf_current_task_under_cgroup()
> for program types BPF_CGROUP_*.
> These will be used by systemd-networkd:
> https://github.com/systemd/systemd/pull/32212
> 
> [...]

Here is the summary with links:
  - [bpf-next,v6,1/2] bpf: enable generic kfuncs for BPF_CGROUP_* programs
    https://git.kernel.org/bpf/bpf-next/c/67666479edf1
  - [bpf-next,v6,2/2] bpf: allow bpf_current_task_under_cgroup() with BPF_CGROUP_*
    https://git.kernel.org/bpf/bpf-next/c/7f6287417baf

You are awesome, thank you!