Re: [PATCH bpf 1/1] bpf: Fix insn_aux_data leak on verifier err_free_env path
From: patchwork-bot+netdevbpf
Date: Fri Jun 26 2026 - 08:29:11 EST
Hello:
This patch was applied to bpf/bpf.git (master)
by Alexei Starovoitov <ast@xxxxxxxxxx>:
On Wed, 24 Jun 2026 20:35:35 +0800 you wrote:
> When bpf_check() allocates env->insn_aux_data successfully but later
> fails to allocate env->succ, it jumps directly to err_free_env.
>
> The existing vfree(env->insn_aux_data) sits before the err_free_env
> label, so that direct jump bypasses it and leaks insn_aux_data.
>
> Move vfree(env->insn_aux_data) into err_free_env so all early and late
> exit paths release it consistently.
>
> [...]
Here is the summary with links:
- [bpf,1/1] bpf: Fix insn_aux_data leak on verifier err_free_env path
https://git.kernel.org/bpf/bpf/c/26490a375cb9
You are awesome, thank you!
--
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html