Re: [PATCH bpf-next] bpf, cgroup: Don't lose errors in effective BPF_LSM_CGROUP queries

From: patchwork-bot+netdevbpf

Date: Sat Nov 14 2026 - 13:51:13 EST


Hello:

This patch was applied to bpf/bpf.git (master)
by Alexei Starovoitov <ast@xxxxxxxxxx>:

On Thu, 12 Nov 2026 10:38:03 -0800 you wrote:
> An effective BPF_LSM_CGROUP query walks one attach type per LSM hook.
> __cgroup_bpf_query() sets ret to -ENOSPC before the loop when prog_cnt
> is too small, but the effective branch then overwrites ret with each
> type's copy result:
>
> - If the buffer runs out exactly at the end of a type, the last copy
> returns 0 and the query returns 0 instead of -ENOSPC.
> - If one type's copy faults and a later one succeeds, the query returns
> 0 instead of -EFAULT.
>
> [...]

Here is the summary with links:
- [bpf-next] bpf, cgroup: Don't lose errors in effective BPF_LSM_CGROUP queries
https://git.kernel.org/bpf/bpf/c/e6cd32b8dbea

You are awesome, thank you!
--
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html