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

From: bot+bpf-ci

Date: Tue Sep 15 2026 - 15:01:21 EST


> libbpf: Fix program log buffer size validation
>
> 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.
>
> Validate the log buffer and size pair consistently with bpf_prog_load(),
> and check the supplied log_size against UINT_MAX.
>
> Signed-off-by: Luis Vieira <luisflavieira@xxxxxxxxx>

This looks like a bug fix. Should this include:

Fixes: 847b98421362 ("adding ci files")


---
AI reviewed your patch. Please fix the bug or email reply why it's not a bug.
See: https://github.com/kernel-patches/vmtest/blob/master/ci/claude/README.md

CI run summary: https://github.com/kernel-patches/bpf/actions/runs/35007077686