Re: [PATCH bpf-next v3 0/4] bpf: Fix 8-byte alignment of map values

From: patchwork-bot+netdevbpf

Date: Fri Nov 27 2026 - 18:40:13 EST


Hello:

This series was applied to bpf/bpf-next.git (master)
by Alexei Starovoitov <ast@xxxxxxxxxx>:

On Thu, 26 Nov 2026 20:43:43 +0100 you wrote:
> The verifier checks the alignment of BPF_DW atomics and 64-bit
> load-acquire/store-release on PTR_TO_MAP_VALUE only against the offset
> within the value. It assumes that the value itself is 8-byte aligned.
> That does not hold for all map types. Address of the value mod 8, as
> measured on bpf-next (see Testing below):
>
> 64-bit 32-bit
> lpm_trie, key_size 8 (IPv4) 4 0 (by accident)
> lpm_trie, key_size 20 (IPv6) 0 4
> hash, rhash (BPF_F_NO_PREALLOC) 0 4
> devmap, devmap_hash 4 4 (harmless, see patch 3)
>
> [...]

Here is the summary with links:
- [bpf-next,v3,1/4] bpf: Fix alignment of memory allocator objects on 32-bit archs
https://git.kernel.org/bpf/bpf-next/c/41fb3a63e447
- [bpf-next,v3,2/4] bpf: Align lpm_trie map values to 8 bytes
https://git.kernel.org/bpf/bpf-next/c/6856b42055e0
- [bpf-next,v3,3/4] bpf: Align devmap values to 8 bytes
https://git.kernel.org/bpf/bpf-next/c/7846bd82a424
- [bpf-next,v3,4/4] selftests/bpf: Check that map values are 8-byte aligned
https://git.kernel.org/bpf/bpf-next/c/63c1713b2a00

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