Re: [PATCH bpf-next] libbpf: check bpf_map_skeleton link for NULL

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

 



Hello:

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

On Wed, 14 May 2025 12:32:20 +0100 you wrote:
> From: Mykyta Yatsenko <yatsenko@xxxxxxxx>
> 
> Avoid dereferencing bpf_map_skeleton's link field if it's NULL.
> If BPF map skeleton is created with the size, that indicates containing
> link field, but the field was not actually initialized with valid
> bpf_link pointer, libbpf crashes. This may happen when using libbpf-rs
> skeleton.
> Skeleton loading may still progress, but user needs to attach struct_ops
> map separately.
> 
> [...]

Here is the summary with links:
  - [bpf-next] libbpf: check bpf_map_skeleton link for NULL
    https://git.kernel.org/bpf/bpf-next/c/d0445d7dd3fd

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