Re: [PATCH bpf-next 0/2] bpf: Fix setting retval to -EPERM for cgroup hooks not returning errno
From: patchwork-bot+netdevbpf
Date: Fri Jun 12 2026 - 23:41:07 EST
Hello:
This series was applied to bpf/bpf-next.git (master)
by Alexei Starovoitov <ast@xxxxxxxxxx>:
On Wed, 10 Jun 2026 20:17:22 +0000 you wrote:
> This series fixes the issue reported by sashiko in [1]. The issue is that,
> when a cgroup BPF program exits with 0, bpf_prog_run_array_cg() sets
> the hook return value to -EPERM if it is not a valid errno. This is
> correct for errno-based hooks, which return 0 on success and negative
> errno on failure, but wrong for void and boolean LSM hooks. Boolean
> LSM hooks should only return true or false, and void LSM hooks have
> no return value at all.
>
> [...]
Here is the summary with links:
- [bpf-next,1/2] bpf: Fix setting retval to -EPERM for cgroup hooks not returning errno
https://git.kernel.org/bpf/bpf-next/c/4c71303c8374
- [bpf-next,2/2] selftests/bpf: Add retval test for bool and errno LSM cgroup hooks
https://git.kernel.org/bpf/bpf-next/c/cec842377617
You are awesome, thank you!
--
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html