BPF List
 help / color / mirror / Atom feed
From: patchwork-bot+netdevbpf@kernel.org
To: Adin Scannell <amscanne@meta.com>
Cc: bpf@vger.kernel.org, andrii@kernel.org, ast@kernel.org
Subject: Re: [PATCH bpf v2] libbpf: fix possible use-after-free for externs
Date: Wed, 25 Jun 2025 19:40:06 +0000	[thread overview]
Message-ID: <175088040601.602008.12808154479939089792.git-patchwork-notify@kernel.org> (raw)
In-Reply-To: <20250625050215.2777374-1-amscanne@meta.com>

Hello:

This patch was applied to bpf/bpf.git (master)
by Andrii Nakryiko <andrii@kernel.org>:

On Tue, 24 Jun 2025 22:02:15 -0700 you wrote:
> The `name` field in `obj->externs` points into the BTF data at initial
> open time. However, some functions may invalidate this after opening and
> before loading (e.g. `bpf_map__set_value_size`), which results in
> pointers into freed memory and undefined behavior.
> 
> The simplest solution is to simply `strdup` these strings, similar to
> the `essent_name`, and free them at the same time.
> 
> [...]

Here is the summary with links:
  - [bpf,v2] libbpf: fix possible use-after-free for externs
    https://git.kernel.org/bpf/bpf/c/fa6f092cc0a0

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



      parent reply	other threads:[~2025-06-25 19:39 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-06-25  5:02 [PATCH bpf v2] libbpf: fix possible use-after-free for externs Adin Scannell
2025-06-25 19:28 ` Andrii Nakryiko
2025-06-25 19:40 ` 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=175088040601.602008.12808154479939089792.git-patchwork-notify@kernel.org \
    --to=patchwork-bot+netdevbpf@kernel.org \
    --cc=amscanne@meta.com \
    --cc=andrii@kernel.org \
    --cc=ast@kernel.org \
    --cc=bpf@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