Re: [PATCH] bpf: Plug a potential exclusive map memory leak
From: patchwork-bot+netdevbpf
Date: Fri Nov 21 2025 - 19:53:34 EST
Hello:
This patch was applied to bpf/bpf.git (master)
by Alexei Starovoitov <ast@xxxxxxxxxx>:
On Sun, 16 Nov 2025 22:58:13 +0800 you wrote:
> When excl_prog_hash is 0 and excl_prog_hash_size is non-zero, the map also
> needs to be freed. Otherwise, the map memory will not be reclaimed, just
> like the memory leak problem reported by syzbot [1].
>
> syzbot reported:
> BUG: memory leak
> backtrace (crc 7b9fb9b4):
> map_create+0x322/0x11e0 kernel/bpf/syscall.c:1512
> __sys_bpf+0x3556/0x3610 kernel/bpf/syscall.c:6131
>
> [...]
Here is the summary with links:
- bpf: Plug a potential exclusive map memory leak
https://git.kernel.org/bpf/bpf/c/22d70d400556
You are awesome, thank you!
--
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html