Re: [PATCH bpf-next] bpf: reject sleepable BPF_LSM_CGROUP programs at load time
From: patchwork-bot+netdevbpf
Date: Sun Jun 07 2026 - 04:20:19 EST
Hello:
This patch was applied to bpf/bpf-next.git (master)
by Kumar Kartikeya Dwivedi <memxor@xxxxxxxxx>:
On Fri, 5 Jun 2026 10:57:07 -0400 you wrote:
> The cgroup shim runs under rcu_read_lock_dont_migrate(), so we should
> not attach any sleepable BPF programs there. Add support to the verifier
> to explicitly reject attempts to load sleepable BPF programs destined
> for LSM cgroup attachment.
>
> Without this, we get the following splat from a BPF_LSM_CGROUP
> program marked BPF_F_SLEEPABLE attached to file_open when it calls
> bpf_get_dentry_xattr():
>
> [...]
Here is the summary with links:
- [bpf-next] bpf: reject sleepable BPF_LSM_CGROUP programs at load time
https://git.kernel.org/bpf/bpf-next/c/5b038319be44
You are awesome, thank you!
--
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html