Re: [PATCH bpf-next v5 0/3] Add validation for bpf_set_retval helper
From: patchwork-bot+netdevbpf
Date: Fri Jun 05 2026 - 19:00:33 EST
Hello:
This series was applied to bpf/bpf-next.git (master)
by Alexei Starovoitov <ast@xxxxxxxxxx>:
On Fri, 5 Jun 2026 14:02:40 +0000 you wrote:
> From: Xu Kuohai <xukuohai@xxxxxxxxxx>
>
> The bpf_set_retval() helper is used by cgroup BPF programs to set the
> return value of the kernel hook. The argument type for this helper is
> ARG_ANYTHING. This allows setting a positive value, which no cgroup
> hook expects and can cause issues, such as the kernel panic reported
> in [1].
>
> [...]
Here is the summary with links:
- [bpf-next,v5,1/3] selftests/bpf: Restrict bpf_set_retval argument in sk_bypass_prot_mem
https://git.kernel.org/bpf/bpf-next/c/6fa2839893e3
- [bpf-next,v5,2/3] bpf: Add validation for bpf_set_retval argument
https://git.kernel.org/bpf/bpf-next/c/b1f7f67b74c2
- [bpf-next,v5,3/3] selftests/bpf: Add tests for bpf_set_retval validation
https://git.kernel.org/bpf/bpf-next/c/7913cdb54ee3
You are awesome, thank you!
--
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html