Thread (5 messages) 5 messages, 4 authors, 20d ago

Re: [PATCH bpf v2] bpf, sockmap: reject max_entries > INT_MAX in sock_map_alloc

flat view

From: patchwork-bot+netdevbpf@kernel.org
Date: 2026-09-23 00:01:14
Also in: bpf, lkml

Hello:

This patch was applied to bpf/bpf.git (master)
by Alexei Starovoitov [off-list ref]:

On Thu, 17 Sep 2026 20:10:16 +0800 you wrote:
From: Zhao Gongyi <redacted>

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

Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help