Re: [PATCH bpf-next] selftests/bpf: Fix memory leak in msg_alloc_iov

From: patchwork-bot+netdevbpf

Date: Tue Jul 07 2026 - 14:30:45 EST


Hello:

This patch was applied to bpf/bpf-next.git (master)
by Kumar Kartikeya Dwivedi <memxor@xxxxxxxxx>:

On Tue, 7 Jul 2026 16:14:34 +0800 you wrote:
> From: Feng Yang <yangfeng@xxxxxxxxxx>
>
> In the msg_alloc_iov function, the iov pointer is only assigned to
> msg->msg_iov after all memory allocations complete successfully.
> Therefore, when a calloc failure triggers the unwind_iov cleanup branch,
> we should use the local variable iov instead of msg->msg_iov.
>
> [...]

Here is the summary with links:
- [bpf-next] selftests/bpf: Fix memory leak in msg_alloc_iov
https://git.kernel.org/bpf/bpf-next/c/f425a0443b7f

You are awesome, thank you!
--
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html