Re: [PATCH bpf] bpf: Fix precedence bug in convert_bpf_ld_abs alignment check

patchwork-bot+netdevbpf
2026-04-16T14:40:38Z

Hello:

This patch was applied to bpf/bpf.git (master)
by Alexei Starovoitov <ast@kernel.org>:

On Thu, 16 Apr 2026 14:27:19 +0200 you wrote:
> Fix an operator precedence issue in convert_bpf_ld_abs() where the
> expression offset + ip_align % size evaluates as offset + (ip_align % size)
> due to % having higher precedence than +. That latter evaluation does
> not make any sense. The intended check is (offset + ip_align) % size == 0
> to verify that the packet load offset is properly aligned for direct
> access.
>
> [...]

Here is the summary with links:
- [bpf] bpf: Fix precedence bug in convert_bpf_ld_abs alignment check
https://git.kernel.org/bpf/bpf/c/e5f635edd393

You are awesome, thank you!
--
Deet-doot-dot, I am a bot.