Netdev List
 help / color / mirror / Atom feed
From: patchwork-bot+netdevbpf@kernel.org
To: Tobias Philipp <tphilipp@gmail.com>
Cc: bpf@vger.kernel.org, ast@kernel.org, daniel@iogearbox.net,
	andrii@kernel.org, martin.lau@linux.dev, eddyz87@gmail.com,
	memxor@gmail.com, song@kernel.org, yonghong.song@linux.dev,
	jolsa@kernel.org, john.fastabend@gmail.com, sdf@fomichev.me,
	emil@etsalapatis.com, ihor.solodrai@linux.dev, hawk@kernel.org,
	davem@davemloft.net, kuba@kernel.org, shuah@kernel.org,
	nbd@nbd.name, hacks@slashdirt.org, stijn@linux-ipv6.be,
	daniel@zonque.org, netdev@vger.kernel.org,
	linux-kselftest@vger.kernel.org, linux-kernel@vger.kernel.org
Subject: Re: [PATCH bpf-next v3 0/4] bpf: Fix 8-byte alignment of map values
Date: Fri, 27 Nov 2026 23:40:06 +0000	[thread overview]
Message-ID: <179582280600.1728472.1333720099674873788.git-patchwork-notify@kernel.org> (raw)
In-Reply-To: <20261126194347.42466-1-tphilipp@gmail.com>

Hello:

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

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



      parent reply	other threads:[~2026-11-27 23:40 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-11-26 19:43 [PATCH bpf-next v3 0/4] bpf: Fix 8-byte alignment of map values Tobias Philipp
2026-11-26 19:43 ` [PATCH bpf-next v3 1/4] bpf: Fix alignment of memory allocator objects on 32-bit archs Tobias Philipp
2026-11-26 19:43 ` [PATCH bpf-next v3 2/4] bpf: Align lpm_trie map values to 8 bytes Tobias Philipp
2026-11-26 20:33   ` bot+bpf-ci
2026-11-26 19:43 ` [PATCH bpf-next v3 3/4] bpf: Align devmap " Tobias Philipp
2026-11-26 19:43 ` [PATCH bpf-next v3 4/4] selftests/bpf: Check that map values are 8-byte aligned Tobias Philipp
2026-11-27 23:40 ` patchwork-bot+netdevbpf [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=179582280600.1728472.1333720099674873788.git-patchwork-notify@kernel.org \
    --to=patchwork-bot+netdevbpf@kernel.org \
    --cc=andrii@kernel.org \
    --cc=ast@kernel.org \
    --cc=bpf@vger.kernel.org \
    --cc=daniel@iogearbox.net \
    --cc=daniel@zonque.org \
    --cc=davem@davemloft.net \
    --cc=eddyz87@gmail.com \
    --cc=emil@etsalapatis.com \
    --cc=hacks@slashdirt.org \
    --cc=hawk@kernel.org \
    --cc=ihor.solodrai@linux.dev \
    --cc=john.fastabend@gmail.com \
    --cc=jolsa@kernel.org \
    --cc=kuba@kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-kselftest@vger.kernel.org \
    --cc=martin.lau@linux.dev \
    --cc=memxor@gmail.com \
    --cc=nbd@nbd.name \
    --cc=netdev@vger.kernel.org \
    --cc=sdf@fomichev.me \
    --cc=shuah@kernel.org \
    --cc=song@kernel.org \
    --cc=stijn@linux-ipv6.be \
    --cc=tphilipp@gmail.com \
    --cc=yonghong.song@linux.dev \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox