From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=100.103.45.18 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796107578; b=vHY2Vx9nHfIn6hoG0ESQSmXacXnqUB3+dVnOgTOBLqhSqOWp2W2Ncf1i8HblUtnSeK3g zo4SAi3op+6Uz9ZSWWwuG8qj8mmZNJ4DJzzUN+mdTA/b34/Ftz8i9ZuiKmfO99sjEVLV2 WsJphzl5aT/Fwr8y3LVjAozPVpWiGcQ7oBzgSxlvFXtfvKTyu+Bcalk4YXtKORpMURFgu 407b71vrFZS/9GskmhaJmdvZjgtGOvCAqSx4QnMvLrrrer3ti17lb4QJ9Tzi2zMFL7WcR ReRan6MxKLsS6G0Eei3o0FB/2M1xSYwA+1Q/Zn4nZDy+WdrPgUwZ9B2+qM8VuVa48aQ== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796107578; 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=eM8a2EoLPJaUP6pWhsbfxKY7SuPgnmQ7KslHf85iHA8=; b=ja9GqxT3FknxQD1Coum84KenbExWUsR6Eh1mIT/ttCnzeNHLC3ds7+ZDklzc1pJKyVxN u2dtpnn+B0eCiV1GSNbjcFZDSCRX0CIJv6L/ZeHuN7d89YAQpdjodSnlTGoKoi1U7pmGu +ebeIEXbQ96g3zmMWOtrbjzD/tnrHdyoQl7pojnZMJ8dZB+vUsElqRRcsgvQOPiBiwkqh v9KyQIykkL617fCK6KTavi6FNuylZZgXF3L8Z24GRARCXT1e0HowYP95QD0jSI3zEIE7G cPWf1D2j1+tBauZn1w8jFiCGH2HiK4N2R0SaIMQZbDGazGXCSOvQiUtRoh6eoOG+1SQ== 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="AaE110/5"; arc=none smtp.remote-ip=100.103.45.18 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 43240606A339; Tue, 1 Dec 2026 06:46:18 +0000 (UTC) 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=AaE110/5 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 21D2F1F0089F; Tue, 1 Dec 2026 06:46:17 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1796107577; bh=eM8a2EoLPJaUP6pWhsbfxKY7SuPgnmQ7KslHf85iHA8=; h=Subject:From:To:Cc:Date:In-Reply-To:References; b=AaE110/5S8Jt5j6lOsZmQwy+V4ktYfiw4h8zAcEpQQmeCz5cyNJWIEPuW92BWfWiq ZFYvCb70cH62VrVrpe6nfNaP1EMxCCTl+wOq6OEAawP+iLVQ1IswEbIM6TWoj+uBc7 Ttq4L3H8xxAuGq8w8bfmTYDBq2ipBoIPsC/eov+N6Twdrg34iLx1H3Ch67ESoDEGqw PApU9wx7ymuJGzA2kDKv1qaSa3d9XMNtqJ5WSUKnpF7hQ+uGWIeADfkCg84wKSTzJq 0nESEzO82DahyfsO9cLomIOufsDWvB21olmfCzPaHAEXJQpHRELKqCezdYguj2uZZB 8O5YpJjWMQVrQ== Subject: Re: [PATCH net-next v5 02/12] amt: send the Relay Advertisement over IPv6 From: netdev-bot+sashiko@kernel.org To: omar@blockcast.net 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 Date: Tue, 01 Dec 2026 06:46:16 +0000 Message-ID: <179610757665.3146.10077245653924427699@kernel.org> In-Reply-To: <20261130064249.1874523-3-omar@blockcast.net> References: <20261130064249.1874523-3-omar@blockcast.net> X-sashiko-severity: Low Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit X-Mailing-List: netdev@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 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] Both the commit message and the new comment above struct amt_header_advertisement_v6 in include/net/amt.h ("s5.2 selects the… -- amt: send the Relay Advertisement over IPv6 This adds struct amt_header_advertisement_v6 and amt_send_advertisement_v6(), which send the 24-byte IPv6 form of the Relay Advertisement. They use a new amt_send_ctrl_v6()/amt_route6() pair built on udp_tunnel6_xmit_skb(). On an IPv6 device, amt_discovery_handler() answers a Discovery with this form, sent from the address the Discovery was sent to; amt_v6() is still false for every device, so there is no functional change yet. > diff --git a/include/net/amt.h b/include/net/amt.h > index ca35782f8d3a2..52d77bc6b4193 100644 > --- a/include/net/amt.h > +++ b/include/net/amt.h > @@ -133,6 +133,27 @@ struct amt_header_advertisement { > __be32 ip4; > } __packed; > > +/* The IPv6 form of the Relay Advertisement (RFC 7450 s5.1.2): the same > + * header and nonce, followed by a 16-byte relay address. s5.2 selects the > + * form from the IP version of the outer header, not from a field in the > + * message, so it is a type of its own. > + */ [Severity: Low] Is this an accurate reading of RFC 7450? As far as I can tell, section 5.1.2.1 says the Relay Address field holds either an IPv4 or an IPv6 address, and the length of the Advertisement tells you which. Section 5.2 is about gateway operation. It doesn't seem to tie the Advertisement family to the outer header version. The commit message makes the same claim: ... and s5.2 selects the form from the IP version of the outer header rather than from a field in the message. An amt relay on an IPv6 outer transport therefore has to answer with the 24-byte IPv6 form. So does the new comment in amt_discovery_handler(): /* The Advertisement takes the form of the outer IP version, and * RFC 7450 s5.1.2 sources it from the address the Discovery was ... A later patch in this series, "amt: receive the AMT gateway control plane over IPv6", describes it differently in amt_advertisement_handler(): /* The two forms differ only in their length. An IPv6 device's family * picks one, so a message of the other form is not accepted; an IPv4 * device keeps the minimum-length check it always had. */ That comment reads as though length is what tells the two forms apart, and matching the Advertisement family to the device's outer family is a choice this driver makes. The code looks fine. Could this header comment, the comment in amt_discovery_handler() and the commit message describe this as driver policy rather than something RFC 7450 s5.2 requires? > +struct amt_header_advertisement_v6 { [ ... ] -- Sashiko AI review · https://netdev-ai.bots.linux.dev/sashiko/#/patchset/20261130064249.1874523-1-omar%40blockcast.net