[SRU][N][PATCH 0/2] bpftool required patches for "bpftool: Fix cgroup command to only show cgroup bpf programs"

Mehmet Basaran mehmet.basaran at canonical.com
Mon Dec 15 11:49:43 UTC 2025


BugLink: https://bugs.launchpad.net/bugs/2134382

[Impact]
bpf-tool fails to compile because the commit 
b69d4413aa1961930fbf9ffad8376d577378daf9 from upstream (bpftool: 
Fix cgroup command to only show cgroup bpf programs) also requires 
the following commit from upstream:

  commit 98b303c9bf05dae932efbd71e18d81f6c64f20d8 
  bpftool: Query only cgroup-related attach types

[Fix]
Apply the following commit from the upstream:

  commit 98b303c9bf05dae932efbd71e18d81f6c64f20d8 
  bpftool: Query only cgroup-related attach types


I have also included 

  commit: d969194bdae6b814b66a544c62c3aac683deb94c
  bpftool: Fix regression of "bpftool cgroup tree" EINVAL on older kernels

since this targets older kernels and 6.12.37 upstream tag also included it.

[Test]
Compile test.

[Where problems could occur]
Together with the already applied upstream comments can cause regressions in 
the bpf tool.

Kenta Tada (1):
  bpftool: Query only cgroup-related attach types

YiFei Zhu (1):
  bpftool: Fix regression of "bpftool cgroup tree" EINVAL on older
    kernels

 tools/bpf/bpftool/cgroup.c | 38 +++++++++++++++++++++++++++++++++++---
 1 file changed, 35 insertions(+), 3 deletions(-)

-- 
2.43.0




More information about the kernel-team mailing list