Re: [PATCH bpf] libbpf: fix handling of BPF arena relocations

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

 



Hello:

This patch was applied to bpf/bpf.git (master)
by Alexei Starovoitov <ast@xxxxxxxxxx>:

On Thu, 17 Jul 2025 17:10:09 -0700 you wrote:
> Initial __arean global variable support implementation in libbpf
> contains a bug: it remembers struct bpf_map pointer for arena, which is
> used later on to process relocations. Recording this pointer is
> problematic because map pointers are not stable during ELF relocation
> collection phase, as an array of struct bpf_map's can be reallocated,
> invalidating all the pointers. Libbpf is dealing with similar issues by
> using a stable internal map index, though for BPF arena map specifically
> this approach wasn't used due to an oversight.
> 
> [...]

Here is the summary with links:
  - [bpf] libbpf: fix handling of BPF arena relocations
    https://git.kernel.org/bpf/bpf/c/0238c45fbbf8

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