[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-Id:
<175044480826.1670618.12225951813813785948.git-patchwork-notify@kernel.org>
Date: Fri, 20 Jun 2025 18:40:08 +0000
From: patchwork-bot+netdevbpf@...nel.org
To: Yuan Chen <chenyuan_fl@....com>
Cc: ast@...nel.org, qmo@...n.net, alexei.starovoitov@...il.com,
bpf@...r.kernel.org, linux-kernel@...r.kernel.org, chenyuan@...inos.cn
Subject: Re: [PATCH v3] bpftool: Fix memory leak in dump_xx_nlmsg on realloc
failure
Hello:
This patch was applied to bpf/bpf-next.git (master)
by Alexei Starovoitov <ast@...nel.org>:
On Fri, 20 Jun 2025 09:21:33 +0800 you wrote:
> From: Yuan Chen <chenyuan@...inos.cn>
>
> In function dump_xx_nlmsg(), when realloc() fails to allocate memory,
> the original pointer to the buffer is overwritten with NULL. This causes
> a memory leak because the previously allocated buffer becomes unreachable
> without being freed.
>
> [...]
Here is the summary with links:
- [v3] bpftool: Fix memory leak in dump_xx_nlmsg on realloc failure
https://git.kernel.org/bpf/bpf-next/c/99fe8af069a9
You are awesome, thank you!
--
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html
Powered by blists - more mailing lists