๐Ÿš€ go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: linux.kernel.netdev
Article #26141

Re: [PATCH net-next v6 08/12] amt: receive the AMT gateway control plane over IPv6

#26141
From: netdev-bot+sashiko
Date: Thu, 03 Dec 2026 04:33
76 lines
10467 bytes
Thank you for your contribution! Sashiko AI review found more severe
issue(s) in other patches of this series. This mail is only an FYI, in case
you want to address the nit picks below when you respin.

Low priority / nit picks for your consideration:

- [Low] This patch changes the transmit path in a way the commit message
  never mentions.

--

amt: receive the AMT gateway control plane over IPv6

This patch lets amt_rcv() and amt_advertisement_handler() handle the
replies a gateway gets over an IPv6 outer transport. The learned
remote_ipv6 is now published under a new seqlock, and a relay drops
packets whose IPv6 source is one of the host's own addresses. The UDP
zero-checksum policy for an IPv6 gateway is also adjusted.

> diff --git a/drivers/net/amt.c b/drivers/net/amt.c
> index 40481b0f9d5ef..c2126c7ba625a 100644
> --- a/drivers/net/amt.c
> +++ b/drivers/net/amt.c
> @@ -767,6 +767,10 @@ static struct dst_entry *amt_route6(struct amt_dev *amt, struct sock *sk,
>  {
>  	struct flowi6 fl6;
>
> +	/* A gateway that just forgot its relay publishes ::. */
> +	if (ipv6_addr_any(daddr))
> +		return ERR_PTR(-EINVAL);
> +

[Severity: Low]
This isn't a bug, but should the commit message mention this transmit
side change?

amt_route6() is shared by every IPv6 sender: amt_send_ctrl_v6(),
amt_udp_xmit() and amt_send_multicast_data(). With this check, each of
them now gets -EINVAL instead of a route lookup when the destination
is ::. amt_send_ctrl_v6() also counts it in tx_errors:

	dst = amt_route6(amt, sk, saddr, daddr, sport, dport);
	if (IS_ERR(dst)) {
		DEV_STATS_INC(amt->dev, tx_errors);
		err = PTR_ERR(dst);

The check follows from this patch's own amt_clear_remote(), which writes
in6addr_any into remote_ipv6. amt_send_request_v6() and
amt_send_membership_update() then read that value back through
amt_get_remote_ipv6().

The commit message describes the other hunks in detail, and the subject
says the patch is about receiving. It never says that sends to :: are
now refused or that they show up in tx_errors.

Could this be described in the commit message? Alternatively, it could
go into the earlier "amt: send the AMT gateway control plane over IPv6"
patch, which added the IPv6 senders.

>  	memset(&fl6, 0, sizeof(fl6));
>  	fl6.flowi6_oif		= amt->stream_dev->ifindex;
>  	fl6.flowi6_proto	= IPPROTO_UDP;

[ ... ]

> +static void amt_clear_remote(struct amt_dev *amt)
> +{
> +	WRITE_ONCE(amt->remote_ip, 0);
> +	amt_set_remote_ipv6(amt, &in6addr_any);
> +}

[ ... ]

-- 
Sashiko AI review ยท https://netdev-ai.bots.linux.dev/sashiko/#/patchset/20261202043200.286260-1-omar%40blockcast.net
Technical Details
Message-ID: <179627240157.3146.10044161677966001613@kernel.org>
Path: mbox-mo1.pugleaf.net!news-can.pugleaf.net!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-376285-linux-kernel-netdev=dewy.ru
References: <20261202043200.286260-9-omar@blockcast.net>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-can.pugleaf.net!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-376285-linux-kernel-netdev=dewy.ru
From: netdev-bot+sashiko@kernel.org
Newsgroups: linux.kernel.netdev
Subject: Re: [PATCH net-next v6 08/12] amt: receive the AMT gateway control
 plane over IPv6
Date: Thu, 03 Dec 2026 04:33:21 +0000
Organization: Usenet Network
Message-ID: <179627240157.3146.10044161677966001613@kernel.org>
References: <20261202043200.286260-9-omar@blockcast.net>
MIME-Version: 1.0
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: 8bit
Injection-Info: usenet.network;
	logging-data="2142571"; mail-complaints-to="abuse@usenet.network"
Cancel-Lock: sha1:0Q3UFZfyAvejdTDSnBSZqetvFdE= sha256:v5Y2hf0CFpH9shnxZoewpc0AoHYYVHuVVkHQzNtjVtU=
	sha1:HCoub8A3HKZDDufsieX+R1uMa18= sha256:50Tu7dYEa0PMwjH596BQCem/HePEy41/TKFTMoBbLG0=
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 1165111780A; Thu,  3 Dec 2026 07:33:48 +0300 (MSK)
X-Virus-Scanned: Debian amavisd-new at usenet.network
X-Spam-Flag: NO
X-Spam-Score: -3.501
X-Spam-Status: No, score=-3.501 tagged_above=-9999 required=6.31
	tests=[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 hQOF5Ne-rvdn;
	Thu,  3 Dec 2026 07:33:44 +0300 (MSK)
X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.105.105.114; helo=tor.lore.kernel.org; envelope-from=netdev+bounces-376285-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 tor.lore.kernel.org (tor.lore.kernel.org [172.105.105.114])
	by mail.dewy.ru (Postfix) with ESMTPS id 40377117815; Thu,  3 Dec 2026 07:33:35 +0300 (MSK)
X-Received: from smtp.subspace.kernel.org (conduit.subspace.kernel.org [100.77.114.92])
	by tor.lore.kernel.org (Postfix) with ESMTP id 47AAF2662D; Thu,  3 Dec 2026 04:33:28 +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=1796272403;
	b=LcBdrrqpqfZucz+oBa+xzWQVuKfu8jxl3Vki69H/cUpNt19CJVswStZuSo6428ZGi85k
	 t5hTKbU38HIZtMSrUzzYuWCRCEp+R8XrGd2htDBXAVOmlyR94yQITgFM/EHOg2elraTZT
	 no7sfuI43CRefxqedeSDWb5qm5K3luZ9W+I+pja+QXdcSAyTwUzX8fShamZOjWqabxfpG
	 0Tv8/cnUwf6Pz0s0/QiDqgJs50hGQVc2c/etGqf49kmT8XWR6Zf/jA+Cx4bFk/JTcHDVk
	 cF2lOxClMOZUGfAQkgs6orUc3w7vYYIetwsryvJXgJvj42sdiuH/48KJ+1RA8+DDQ5Q==
X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015;
	a=rsa-sha256; c=relaxed/relaxed; t=1796272403;
	h=X-Original-To:Received:Received:DKIM-Signature:Subject:From:To:Cc:
	 Date:Message-ID:In-Reply-To:References:X-sashiko-severity:
	 Content-Type:Content-Transfer-Encoding:X-Mailing-List:List-Id:
	 List-Post:List-Help:List-Subscribe:List-Unsubscribe:List-Owner:
	 Precedence:MIME-Version;
	bh=XQaCV1LaZM+Xlf1tfHvRrfZu/RvIOKnwxwOhVgG89Is=;
	b=DIWY/1NUxvgDhT4kSp3lAYt9AOHrewiLpZP3JboJn1SYeokSh/0fF2EleveWWaHBYia+
	 2rHtNNp9zjbG6M/ROeYuy7dJ2FPG0YWBuckulFswB3YDgsoixAcKfVGwoAknioBdFx9TD
	 48LqzTb7QZTZbfAQ5RhrqXmnkvTq6Be9CcHNve2/XyFmbSdytWX1zzwjjHySoXPHBhL1z
	 WbJ12WJPwvbRG+XxSibLloOgDJyY8fDvGIc99nrmmAcF7560Z41sPH9Bo2zE+rZutbq17
	 vIHjxva9DXGiF4QID7c7Y/0wAP5wLkm50/dZcWIy3+MgjbBOFTeUh2l3qjRFq+kA1jg==
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=KUbfXT16;
	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 B95E8606A69E;
	Thu,  3 Dec 2026 04:33:23 +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=KUbfXT16
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=1796272402;
	b=dXsXU27tFpVVH4xYk2mVoalPOSaqsd4nkHaIcY9CVeD8jf0UYJxqSM7mniJ9uBMG7Xr9
	 3M8Ez/hX0paAtaIMGxpH/RGb0S9npn5AmxkePPkxQBfPFpuRVsOTRwsoMfjYVTXNEKb3M
	 4bV5qBGA0Q3JSWAXOWwg04u4roKUjZqE7f5LQUalUuA/uD12kubjCaku3IwITUrrZSt1i
	 XLiapv2BVdi+lN7bbZJbtx8OUd6lFQiGjc4pOG6combZdMpqOzp0x8QuEEMWS7IdtGCdj
	 ukq8TJNoIEXY8Ub84+1IthR/3i2Hoc+rJ9gOqCKaYIOqlIistPEJJkqP9zR7651q+ng==
X-ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015;
	a=rsa-sha256; c=relaxed/relaxed; t=1796272402;
	h=Received:DKIM-Signature:Subject:From:To:Cc:Date:Message-ID:
	 In-Reply-To:References:X-sashiko-severity:Content-Type:
	 Content-Transfer-Encoding:MIME-Version;
	bh=XQaCV1LaZM+Xlf1tfHvRrfZu/RvIOKnwxwOhVgG89Is=;
	b=gepO6AXLKXm2q76RFX73101zPL5D9qHQPgxtSRTD6QAts2Cl8/B5uOi6NsdDeuCX+wTO
	 WVX9zFW2kYYY+CEOi4VJHXEreKtsnUcriyhz2fst/s/r0Rd1IWm2IImGo2t8aDq+oqQyJ
	 wC5nkK3ZYL4y3XSBbhkrp3MHBAwzMcYw5BnmNO2cpJHaEBennlhRQ/pwDk97VYgPuioLp
	 nGGF6UYN0+iwKwgmF7x+A+AGgygKV80d0Kr5QXnbriMU38pOrECWpdlzJ8g5u02z9UQOJ
	 vXG5TOu+P7Wz7awqRIQw0dzOZeD45IMrZDzzCU+a9dppWq64SrCW8QdSk6OVU4RU8JA==
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=KUbfXT16;
	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 DAA84606A6B2;
	Thu,  3 Dec 2026 04:33:22 +0000 (UTC)
X-Received: by smtp.kernel.org (Postfix) with ESMTPSA id F1EE81F00924;
	Thu,  3 Dec 2026 04:33:21 +0000 (UTC)
X-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org;
	s=k20260515; t=1796272402;
	bh=XQaCV1LaZM+Xlf1tfHvRrfZu/RvIOKnwxwOhVgG89Is=;
	h=Subject:From:To:Cc:Date:In-Reply-To:References;
	b=KUbfXT16zjHQNBgGJJ5qPFwpEpvwMLRxwctSPerexHPYVF++Xec+/U9KycGUDpzFo
	 VxVrcqMhj1KjX/ovlZTczIDITQl7SwzNL4QGN+Ph3f1SlxJR7r/KHino0qwLbn47xk
	 pSzr+d8LBf2rIYlPqeQA1adKZqLim1i209dfUcu2xedJiWn3LBC3naAmJjKgBzbsw+
	 BLFbB4UWWLcxovtl8P/m/2cga/gvXKiQXU0NtXJn5UrerFaZ/Zo3iJAeuLTk/W8KE9
	 HPO6xFDKtaX0Kz1+IzFvgfVZ9fPyErcL1Xj/6wM9umiPdjVAXsrmLEll5RFTN2VzeO
	 TvZ0+KJcxh5Ig==
X-Cc: ap420073@gmail.com, andrew+netdev@lunn.ch, davem@davemloft.net,
 edumazet@kernel.org, kuba@kernel.org, pabeni@redhat.com, shuah@kernel.org,
 horms@kernel.org, netdev@vger.kernel.org, linux-kselftest@vger.kernel.org,
 linux-kernel@vger.kernel.org, willemb@google.com, dsahern@kernel.org,
 idosch@nvidia.com
X-In-Reply-To: <20261202043200.286260-9-omar@blockcast.net>
X-sashiko-severity: Low
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