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=1796010518; b=mgRSoK/VKKgY5CvOW4sHp1XCFzdgYt6TZriQSteY1e9doQNGuqR50eH19ADDgiF+Nul5 +CxLfT1sBd6DyXgL/REp6E0mPIImU739E4I+giNP2QindMyd+k95VNFRS0zg+CgnA2jj4 z3cvMiTvjDOaE+epBaKa8nXkWDVjSZwMkG9mTxj6SD84EINm8EmU3sYW7Qp8Nn7jjWos5 I9r4LWizNZ0qUV+UrSCNBIq37ahgl5Q9UjuwbFVAPn/cpK2ccXUHel9/edgoC3QU7F4Kf 2A6lVvPB3xodmhB/ERMmGfmO0S2ME+wyH6QPr6AxUb0ccXNOroqoO//JDUIcUfl1ErA== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796010518; 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=efKkDOAzeDEANwFAQBAYxIMpwL24hkq2bsM9DTfhGSw=; b=gf6fJEbN56nJdWNBFba5T/dkyWl/EWyOGpW0oZV/e9NjGE76FrsT7Vib329xHjdVIhc7 JwSNh73SXm6KaYeDFtIXhLxQdEkygu0f6ZfFlF+T6d4jdBUatjx101sc7nXnfl1jI227t buvzojToSWuQ+hi5y2akL0KPpgR/mA/aZSyT5i4yzedkeppm8DnSSrVzbpIQUc3XyWQlC W5U/X91kz0r26+toIJTDTJ6vIH5s4CqXde66HGMgKbwYohd5e5kDhIb7QM2/KCDgmjwPy y/qjSyNcKOl3vd76gjDngfvHTW+u9+wxc2dOrNDB+erpalQKlyNuYY0ff5ZRRYT60ug== 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=RNOCUrS4; 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 6DD25606A6AD; Mon, 30 Nov 2026 03:48:38 +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=RNOCUrS4 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 07B3E1F00936; Mon, 30 Nov 2026 03:48:36 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1796010517; bh=efKkDOAzeDEANwFAQBAYxIMpwL24hkq2bsM9DTfhGSw=; h=Subject:From:To:Cc:Date:In-Reply-To:References; b=RNOCUrS4dqXMi9Bfcr9kd8aHqA5tCErtGxBqGs6hVD3C4wRSgQ2TWhGQe9dX/e1mp 0JG7SB43YXBr0/N/dHrcQuR7PPrJYFMopoJCppHXZIP2H6RJ6QFdhp1BFs34K4S5A8 fiwCVmxG+ZXbsm6cvyh2OfKXD6RmYBgyTX+TnqtaUh3srlelXp+AFIlH/fg6P9iLsz Lsk7M7HlL1/wYLmb2dhfxym5UgTWG+rpQIXXzes95piTAMd7MUwwNwSaUG5uoPHrXr 2VCq/RjrP4Bm4aF4tl5ujapZdyKHUOpVbydGZCO5IVWMF+ytG/ehxOLlMCvs+1kMQu q2h+xZbZXyiBA== Subject: Re: [PATCH net-next v4 12/12] selftests: net: add amt_gw_v6.sh for the IPv6 netlink attributes 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: Mon, 30 Nov 2026 03:48:36 +0000 Message-ID: <179601051658.3146.1044784961486897007@kernel.org> In-Reply-To: <20261129034652.1853485-13-omar@blockcast.net> References: <20261129034652.1853485-13-omar@blockcast.net> X-sashiko-severity: Low Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit X-Mailing-List: linux-kernel@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] The file header of tools/testing/selftests/net/amt_gw_v6.sh (lines 8-12) contradicts probe_v6_gateway() in the same file. -- selftests: net: add amt_gw_v6.sh for the IPv6 netlink attributes This adds a netlink-only selftest for the AMT IPv6 attributes, IFLA_AMT_LOCAL_IP6 and IFLA_AMT_DISCOVERY_IP6. It checks that IPv6 and IPv4 local and discovery addresses read back through amt_fill_info(), and that each invalid combination is rejected with the expected extack message. A probe skips the test when iproute2 or the kernel lacks IPv6 AMT support. > diff --git a/tools/testing/selftests/net/amt_gw_v6.sh b/tools/testing/selftests/net/amt_gw_v6.sh > new file mode 100755 > index 0000000000000..b1467f3121bd8 > --- /dev/null > +++ b/tools/testing/selftests/net/amt_gw_v6.sh > @@ -0,0 +1,219 @@ > +#!/bin/bash > +# SPDX-License-Identifier: GPL-2.0 > +# > +# Netlink coverage for the AMT IPv6 attributes, IFLA_AMT_LOCAL_IP6 and > +# IFLA_AMT_DISCOVERY_IP6, and the rules that validate them. amt_v6.sh covers > +# the data plane; this needs only one netns and one dummy device. > +# > +# Not covered: `discovery ` together with `discovery `, or `local ` > +# together with `local `, in one command. iproute2 rejects the duplicate > +# argument itself, so those checks are reachable only from a raw netlink > +# client, as is a 16-byte IFLA_AMT_LOCAL_IP or IFLA_AMT_DISCOVERY_IP, which > +# the exact-length policy refuses before any rule here runs. [Severity: Low] This isn't a bug, but does this header comment match what probe_v6_gateway() does later in the same file? The header lists a 16-byte IFLA_AMT_LOCAL_IP or IFLA_AMT_DISCOVERY_IP under "Not covered" and says only a raw netlink client can send one. probe_v6_gateway() expects that same refusal from an older iproute2 that packs the IPv6 literal into the 4-byte IPv4 attribute. It also logs the refusal as a passing test before it skips: *"binary attribute size out of range"*) # An older iproute2 on this kernel: the exact length of # the IPv4 attribute is what refused the 16 bytes. RET=0 log_test "16-byte IPv4 address attribute is refused" The commit message says the case is "reachable only from a raw netlink client or an older iproute2", which agrees with the probe. Could the header drop the 16-byte clause from the "Not covered" list and mention the older iproute2 path? The other option is for the probe to stop calling log_test for this case. [ ... ] -- Sashiko AI review ยท https://netdev-ai.bots.linux.dev/sashiko/#/patchset/20261129034652.1853485-1-omar%40blockcast.net