Re: [PATCH bpf v2] bpf, sockmap: reject max_entries > INT_MAX in sock_map_alloc
From: patchwork-bot+netdevbpf
Date: Tue Sep 22 2026 - 20:02:55 EST
Hello:
This patch was applied to bpf/bpf.git (master)
by Alexei Starovoitov <ast@xxxxxxxxxx>:
On Thu, 17 Sep 2026 20:10:16 +0800 you wrote:
> From: Zhao Gongyi <zhaogongyi@xxxxxxxxxxxxx>
>
> sock_map_alloc() only rejects max_entries == 0 and otherwise allows any
> u32 value. sock_map_free() then walks the sks[] array with a signed int
> iterator:
>
> int i;
> for (i = 0; i < stab->map.max_entries; i++)
> struct sock **psk = &stab->sks[i];
>
> [...]
Here is the summary with links:
- [bpf,v2] bpf, sockmap: reject max_entries > INT_MAX in sock_map_alloc
https://git.kernel.org/bpf/bpf/c/814a81c842bd
You are awesome, thank you!
--
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html