From: patchwork-bot+netdevbpf@kernel.org
To: Yuan Chen <chenyuan_fl@163.com>
Cc: ast@kernel.org, andrii.nakryiko@gmail.com, bpf@vger.kernel.org,
linux-kernel@vger.kernel.org, chenyuan@kylinos.cn
Subject: Re: [PATCH v2] libbpf: Fix null pointer dereference in btf_dump__free on allocation failure
Date: Mon, 23 Jun 2025 18:20:07 +0000 [thread overview]
Message-ID: <175070280727.3256207.16732864015027671510.git-patchwork-notify@kernel.org> (raw)
In-Reply-To: <20250618011933.11423-1-chenyuan_fl@163.com>
Hello:
This patch was applied to bpf/bpf.git (master)
by Andrii Nakryiko <andrii@kernel.org>:
On Wed, 18 Jun 2025 09:19:33 +0800 you wrote:
> From: chenyuan <chenyuan@kylinos.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
prev parent reply other threads:[~2025-06-23 18:19 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-06-18 1:19 chenyuan
2025-06-23 18:20 ` patchwork-bot+netdevbpf [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=175070280727.3256207.16732864015027671510.git-patchwork-notify@kernel.org \
--to=patchwork-bot+netdevbpf@kernel.org \
--cc=andrii.nakryiko@gmail.com \
--cc=ast@kernel.org \
--cc=bpf@vger.kernel.org \
--cc=chenyuan@kylinos.cn \
--cc=chenyuan_fl@163.com \
--cc=linux-kernel@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®