Re: [PATCH bpf-next v2] libbpf: Fix program log buffer size validation

From: patchwork-bot+netdevbpf

Date: Thu Sep 17 2026 - 18:50:12 EST


Hello:

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

On Tue, 15 Sep 2026 15:13:35 -0300 you wrote:
> bpf_program__set_log_buf() checks the existing prog->log_size instead
> of the incoming log_size argument when enforcing the UINT_MAX limit.
> As a result, an oversized value can be accepted.
>
> The setter also accepts a non-NULL log_buf with a zero log_size, while
> bpf_prog_load() rejects mismatched log buffer and size values.
>
> [...]

Here is the summary with links:
- [bpf-next,v2] libbpf: Fix program log buffer size validation
https://git.kernel.org/bpf/bpf-next/c/8cca9a6bb681

You are awesome, thank you!
--
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html