Re: [PATCH bpf-next v2] bpf, lsm: Fix cgroup shim selection for socket hooks
From: patchwork-bot+netdevbpf
Date: Tue Nov 03 2026 - 16:20:17 EST
Hello:
This patch was applied to bpf/bpf-next.git (master)
by Alexei Starovoitov <ast@xxxxxxxxxx>:
On Tue, 3 Nov 2026 17:55:40 +0100 you wrote:
> bpf_lsm_find_cgroup_shim() picks the shim that runs a BPF_LSM_CGROUP
> program from the first argument of the attached hook. It compares
> args[0].type, the BTF id of the argument's pointer type, against
> btf_sock_ids[], which holds the struct ids of struct socket and struct
> sock. A pointer id is never equal to a struct id, so neither branch is
> taken and every cgroup LSM program runs through
> __cgroup_bpf_run_lsm_current().
>
> [...]
Here is the summary with links:
- [bpf-next,v2] bpf, lsm: Fix cgroup shim selection for socket hooks
https://git.kernel.org/bpf/bpf-next/c/7b8b803c3ce6
You are awesome, thank you!
--
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html