Re: [PATCH bpf-next] libbpf: Use OPTS_SET() macro in bpf_xdp_query()

[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 Tue,  6 Feb 2024 13:59:22 +0100 you wrote:
> When the feature_flags and xdp_zc_max_segs fields were added to the libbpf
> bpf_xdp_query_opts, the code writing them did not use the OPTS_SET() macro.
> This causes libbpf to write to those fields unconditionally, which means
> that programs compiled against an older version of libbpf (with a smaller
> size of the bpf_xdp_query_opts struct) will have its stack corrupted by
> libbpf writing out of bounds.
> 
> [...]

Here is the summary with links:
  - [bpf-next] libbpf: Use OPTS_SET() macro in bpf_xdp_query()
    https://git.kernel.org/bpf/bpf-next/c/92a871ab9fa5

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