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

From: [email-masked]
Date: Tue, 06 Feb 2024 18:00:29 +0000

Hello:

This patch was applied to bpf/bpf-next.git (master)
by Andrii Nakryiko <[email-masked]>:

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