Re: [PATCH bpf v2] libbpf: fix possible use-after-free for externs

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hello:

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

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






[Index of Archives]     [Linux Samsung SoC]     [Linux Rockchip SoC]     [Linux Actions SoC]     [Linux for Synopsys ARC Processors]     [Linux NFS]     [Linux NILFS]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]


  Powered by Linux