[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-Id:
<175070280727.3256207.16732864015027671510.git-patchwork-notify@kernel.org>
Date: Mon, 23 Jun 2025 18:20:07 +0000
From: patchwork-bot+netdevbpf@...nel.org
To: Yuan Chen <chenyuan_fl@....com>
Cc: ast@...nel.org, andrii.nakryiko@...il.com, bpf@...r.kernel.org,
linux-kernel@...r.kernel.org, chenyuan@...inos.cn
Subject: Re: [PATCH v2] libbpf: Fix null pointer dereference in btf_dump__free
on
allocation failure
Hello:
This patch was applied to bpf/bpf.git (master)
by Andrii Nakryiko <andrii@...nel.org>:
On Wed, 18 Jun 2025 09:19:33 +0800 you wrote:
> From: chenyuan <chenyuan@...inos.cn>
>
> When btf_dump__new() fails to allocate memory for the internal hashmap
> (btf_dump->type_names), it returns an error code. However, the cleanup
> function btf_dump__free() does not check if btf_dump->type_names is NULL
> before attempting to free it. This leads to a null pointer dereference
> when btf_dump__free() is called on a btf_dump object.
>
> [...]
Here is the summary with links:
- [v2] libbpf: Fix null pointer dereference in btf_dump__free on allocation failure
https://git.kernel.org/bpf/bpf/c/aa485e8789d5
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