🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: linux.kernel.netdev
Article #23765

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

#23765
From: patchwork-bot+netdevbpf
Date: Fri, 27 Nov 2026 23:40
35 lines
9674 bytes
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
Technical Details
Message-ID: <179582280600.1728472.1333720099674873788.git-patchwork-notify@kernel.org>
Path: mbox-mo1.pugleaf.net!news-fra.pugleaf.net!srl.newsdeef.eu!news.mb-net.net!open-news-network.org!news.nntp4.net!nntp.xenet.de!news.neodome.net!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-372979-linux-kernel-netdev=dewy.ru
References: <20261126194347.42466-1-tphilipp@gmail.com>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-fra.pugleaf.net!srl.newsdeef.eu!news.mb-net.net!open-news-network.org!news.nntp4.net!nntp.xenet.de!news.neodome.net!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-372979-linux-kernel-netdev=dewy.ru
From: patchwork-bot+netdevbpf@kernel.org
Newsgroups: linux.kernel.netdev
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
Organization: Usenet Network
Message-ID: <179582280600.1728472.1333720099674873788.git-patchwork-notify@kernel.org>
References: <20261126194347.42466-1-tphilipp@gmail.com>
MIME-Version: 1.0
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: 8bit
Injection-Info: usenet.network;
	logging-data="843466"; mail-complaints-to="abuse@usenet.network"
Cancel-Lock: sha1:nsgvEkhqAHwwx+T/B5SvgGa/6YQ= sha256:vwAC/gzlozQh1UmH+WF/m+wUWUzLaHmizbmPwXL0E7Y=
	sha1:Gnecs5bzwMy5++gIa2tVDPfCFJA= sha256:rqPu+cufr+bQaMkG4NZUDNEeYN+Tlmqy6QCwondlvj4=
List-ID: <netdev.vger.kernel.org>
X-Mailpost-Empty-Hdrs: X-Spam-Level
X-Received: from localhost (localhost [127.0.0.1])
	by mail.dewy.ru (Postfix) with ESMTP id 7F773125F69; Sat, 28 Nov 2026 02:40:33 +0300 (MSK)
X-Virus-Scanned: Debian amavisd-new at usenet.network
X-Spam-Flag: NO
X-Spam-Score: -3.401
X-Spam-Status: No, score=-3.401 tagged_above=-9999 required=6.31
	tests=[DCC_REPUT_70_89=0.1, DKIMWL_WL_HIGH=-0.001, DKIM_SIGNED=0.1,
	DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1,
	MAILING_LIST_MULTI=-1, RCVD_IN_DNSWL_MED=-2.3, SPF_HELO_NONE=0.001,
	SPF_PASS=-0.001] autolearn=ham autolearn_force=no
X-Authentication-Results: mail.dewy.ru (amavisd-new); dkim=pass (2048-bit key)
	header.d=kernel.org
X-Received: from mail.dewy.ru ([127.0.0.1])
	by localhost (mail.dewy.ru [127.0.0.1]) (amavisd-new, port 10024)
	with ESMTP id ZCaLdBp5KqvK;
	Sat, 28 Nov 2026 02:40:25 +0300 (MSK)
X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.234.253.10; helo=sea.lore.kernel.org; envelope-from=netdev+bounces-372979-linux-kernel-netdev=dewy.ru@vger.kernel.org; receiver=<UNKNOWN> 
X-Authentication-Results: OpenDMARC; dmarc=pass (p=quarantine dis=none) header.from=kernel.org
X-Received: from sea.lore.kernel.org (sea.lore.kernel.org [172.234.253.10])
	by mail.dewy.ru (Postfix) with ESMTPS id 3E42C125F65; Sat, 28 Nov 2026 02:40:15 +0300 (MSK)
X-Received: from smtp.subspace.kernel.org (conduit.subspace.kernel.org [100.77.114.92])
	by sea.lore.kernel.org (Postfix) with ESMTP id 3C5262D72B; Fri, 27 Nov 2026 23:40:14 +0000 (UTC)
X-Authentication-Results: smtp.subspace.kernel.org; arc=pass header.oldest-pass=0 smtp.remote-ip=127.0.0.1
X-ARC-Seal: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=pass;
	t=1795822809;
	b=MwmR+sbhiW16uUJ4uuyb+QV4drcgO2JscgY1MwdjITXOPhrbzJ1KEvcX5B0fPFNm8vJp
	 W2pgPdnqFSdpHKJ0I+ESxBsgC/rrQT+i/GUCqrX6WSFESU7uq0dFvrBV1OVTWAwKGQFnE
	 GmsNy8wHkIXPbQAmhoSQrXjuy1EDwW6nIU2o0PFPmzp0QqlM4fMndtlq++i8w5Ab9oQ3D
	 DIQoT4ceTOGIWWxrzvAsvQUvapKS8u5rNWjJD7yTcQ7P5B3M3J4pGmdA8DJah7IBV4CdL
	 nh9pVvkJ5TvIDSI9HbL2fwsJ95IrGsuTsC1ptPIP6+PxjYcWI7A6K0/0AOA8J4K8kNA==
X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015;
	a=rsa-sha256; c=relaxed/relaxed; t=1795822809;
	h=X-Original-To:Received:Received:DKIM-Signature:Received:Content-Type:
	 X-Mailing-List:List-Id:List-Post:List-Help:List-Subscribe:
	 List-Unsubscribe:List-Owner:Precedence:MIME-Version:
	 Content-Transfer-Encoding:Subject:From:Message-Id:Date:References:
	 In-Reply-To:To:Cc;
	bh=Fo12o+uIQqF1uYYvqYc1dxJIvtGt4oQoEvFL3ArBouM=;
	b=Vk6OgFaiqE8efkNcg5fGa6gRD0EZxb5+othwSz9IjnAAoF94IqgpMJCQ81CkYYVqMsUm
	 1ppGTEl53hI6g6xSs8Piv5UrUE9nnvM9GXxGyKKXTsdKi0tzIimuVdGx5tnFBsRt4wqI1
	 mvZl+JhmcHTJxAiL7qadZkUrUEib4h6cYKJvs4iz6ELmuggXpb4RmkTvhEJY63YmYSxZh
	 zNQTrexRPkKmhDN7ExPJJr1xaSd7DjRjZ6nfJge3BFJP1oUJbyDygaPc1mLTFz7HlQM6K
	 /g9ylmwiHE1J1Y0dKNHKuk7SzESuT8DH1vgR0PiW3Y/JIlTQAHnGzoMPtvPpdi+ZJXg==
X-ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; 
	dkim=pass header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=S4QPhqrD;
	arc=pass header.oldest-pass=0 smtp.remote-ip=127.0.0.1
X-Received: from localhost.localdomain (localhost [127.0.0.1])
	by smtp.subspace.kernel.org (Postfix) with ESMTP id F3B44606A331;
	Fri, 27 Nov 2026 23:40:08 +0000 (UTC)
X-Authentication-Results: smtp.subspace.kernel.org;
	dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=S4QPhqrD
X-Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=100.103.45.18
X-ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none;
	t=1795822808;
	b=CGyjhd6VGjOYpdjZo0G8AwHhN4niwTJ7IP+WOTlBVR3wUH9j3U8jZ7Nj3S38XNVzDRZC
	 bq4Xeb2VDv15Ckk6rKbKrr2Wm98w2BYN2nmrl+oWUkfK0LlqVxDaYDoZz43i67btdJbcm
	 KrTnxM+nO91TYlVnGHPYREO70xGiy5f7rIj/u5bfUq+MoWHSuElGTfIo4qymhxusI1Ych
	 bsfMuQTqw8UDyHt9OUWc8aKnsNsOi/dyJh/AIlZt/gXgrsimC15VHzYUTgjoVTw3nKjar
	 bud2m8+HkVI0Tb18DTBs947LJ0lsdslx3Fvdiz/oaEhwcXktKK05/nJfpFVo+Utgakw==
X-ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015;
	a=rsa-sha256; c=relaxed/relaxed; t=1795822808;
	h=Received:DKIM-Signature:Received:Content-Type:MIME-Version:
	 Content-Transfer-Encoding:Subject:From:Message-Id:Date:References:
	 In-Reply-To:To:Cc;
	bh=Fo12o+uIQqF1uYYvqYc1dxJIvtGt4oQoEvFL3ArBouM=;
	b=1oR7fUfP+woVdiIHSDMA4GgwZi9PS/vpLwR/F3w5/6CmQLnetd7TQj8Dnmo+ZiKXOdpV
	 tyo1ceuW1+7UXZDMT1QTdDA8Iw6h5hejA58iNQG/BoIDRNf1O4okDVUdDlDiILKaamcEs
	 FrmK5N2eD/jBxtvXx8YoeohHu6G/azi0Mh7UP10ydrwC840ENaHkxwMf//PmP3F2Q3b9+
	 /4wAoZnxM9GNMtLbDULaPXEi4Fs8aqmoKtQIyAWVcvAbyBigIsp9boiEvsmPMgmslNVqo
	 eb5OhHE/UajgtF8yH1IsdnmjWVViM5Tmelp1qXoxuNCM8WSg6oG8pbUu+A8+yEfFnUA==
X-ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; 
	dkim=pass header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=S4QPhqrD;
	arc=none smtp.remote-ip=100.103.45.18
X-Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18])
	(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)
	 key-exchange X25519 server-signature ECDSA (prime256v1))
	(No client certificate requested)
	by smtp.subspace.kernel.org (Postfix) with ESMTPS id 1735D606A31C;
	Fri, 27 Nov 2026 23:40:07 +0000 (UTC)
X-Received: by smtp.kernel.org (Postfix) with ESMTPSA id 2B5441F00897;
	Fri, 27 Nov 2026 23:40:07 +0000 (UTC)
X-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org;
	s=k20260515; t=1795822807;
	bh=Fo12o+uIQqF1uYYvqYc1dxJIvtGt4oQoEvFL3ArBouM=;
	h=Subject:From:Date:References:In-Reply-To:To:Cc;
	b=S4QPhqrDhQt+2s51pN3bsdyfTxJiZounSsIcqCBTw2SZJrUUaiF8F0o9mXgCQacRC
	 UvxfU1MI33/jVyKvNv3QFcRe0tjcC4nNGFpmSQSjnSXHNIpzCeJ9Je9ZXR7StemSwy
	 Lolf7Incm27oVr2YozZghwxWpPK9IafphGruigqZ/SfopXY8fC51N6H3eJNKJf6SyJ
	 eAxt0/Kny2O+OoaNQnjVWKyQMqNnExOPOSx6gEcVG1AlDEWedK4QliBpvokMGHAYIl
	 k/pUH/BauaVcWLdEgX4aUdSO5GqL9H5dz6V7eZHtzLfIX1/EWS5UiX6eBKml4uBVIE
	 Mn/XUa0KbnALw==
X-Received: from [10.30.226.235] (localhost [IPv6:::1])
	by aws-us-west-2-korg-oddjob-rhel9-1.codeaurora.org (Postfix) with ESMTP id 2120F3927068;
	Fri, 27 Nov 2026 23:40:07 +0000 (UTC)
X-Mailing-List: netdev@vger.kernel.org
X-List-Post: <mailto:netdev@vger.kernel.org>
X-List-Help: <mailto:netdev+help@vger.kernel.org>
X-List-Subscribe: <mailto:netdev+subscribe@vger.kernel.org>
X-List-Unsubscribe: <mailto:netdev+unsubscribe@vger.kernel.org>
X-List-Owner: <mailto:netdev+owner@vger.kernel.org>
X-Precedence: list
X-In-Reply-To: <20261126194347.42466-1-tphilipp@gmail.com>
X-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