Re: [PATCH] tools/bpf/bpftool: Fix vmlinux BTF leak in cgroup commands
From: patchwork-bot+netdevbpf
Date: Sun Jun 21 2026 - 21:10:36 EST
Hello:
This patch was applied to bpf/bpf.git (master)
by Alexei Starovoitov <ast@xxxxxxxxxx>:
On Wed, 17 Jun 2026 17:01:17 +0800 you wrote:
> bpftool cgroup show and tree call libbpf_find_kernel_btf() to
> resolve attach_btf names, but never release the returned BTF object.
>
> For cgroup tree, do_show_tree_fn() is called once for each cgroup
> visited by nftw(). When more than one cgroup has attached programs,
> each callback overwrites btf_vmlinux with a new object and loses the
> previous allocation.
>
> [...]
Here is the summary with links:
- tools/bpf/bpftool: Fix vmlinux BTF leak in cgroup commands
https://git.kernel.org/bpf/bpf/c/bda6a7308ef8
You are awesome, thank you!
--
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html