Article View: linux.kernel.netdev
Article #24363Re: [PATCH net-next v4 12/12] selftests: net: add amt_gw_v6.sh for the IPv6 netlink attributes
From: netdev-bot+sashiko
Date: Mon, 30 Nov 2026 03:48
Date: Mon, 30 Nov 2026 03:48
68 lines
10659 bytes
10659 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] 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 <v4>` together with `discovery <v6>`, or `local <v4>` > +# together with `local <v6>`, 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
Technical Details
Message-ID:
<179601051658.3146.1044784961486897007@kernel.org>Path:
mbox-mo1.pugleaf.net!srv.newsdeef.eu!newsfeed.bofh.team!news.nntp4.net!nntp.xenet.de!news.neodome.net!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-373833-linux-kernel-netdev=dewy.ruReferences:
<20261129034652.1853485-13-omar@blockcast.net>Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!srv.newsdeef.eu!newsfeed.bofh.team!news.nntp4.net!nntp.xenet.de!news.neodome.net!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-373833-linux-kernel-netdev=dewy.ru From: netdev-bot+sashiko@kernel.org Newsgroups: linux.kernel.netdev Subject: Re: [PATCH net-next v4 12/12] selftests: net: add amt_gw_v6.sh for the IPv6 netlink attributes Date: Mon, 30 Nov 2026 03:48:36 +0000 Organization: Usenet Network Message-ID: <179601051658.3146.1044784961486897007@kernel.org> References: <20261129034652.1853485-13-omar@blockcast.net> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit Injection-Info: usenet.network; logging-data="1325285"; mail-complaints-to="abuse@usenet.network" Cancel-Lock: sha1:EQfxJPLT4DgBQagbhL6h5h+6MRI= sha256:QtZzZeUfxnJu6jiuuY3BRRZfm4iVvjlXL6OqgwCnDdA= sha1:mnwWBBuJc0ftFZFMqf0Fmhffmsg= sha256:pYsH4MmSs1x0oSHpwTyUO6QtTe9iCW2ZkAlNSZCrsBY= 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 24DC7125FBE; Mon, 30 Nov 2026 06:49:27 +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 u7yEo6j6PMjF; Mon, 30 Nov 2026 06:49:24 +0300 (MSK) X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.234.253.10; helo=sea.lore.kernel.org; envelope-from=netdev+bounces-373833-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 9D40C125D6D; Mon, 30 Nov 2026 06:49: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 D3BB62B626; Mon, 30 Nov 2026 03:48:43 +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=1796010519; b=B1mtHTfzMgcE5X7Vf9JWVXCdCC3CyOZB7wTBMIUijhbb5wVOH/IZ6f4xwXX6AXsEu3MB Dy/UzMz8eEi7prPdVh0AYS/6/3SFVRac9wvBItIq3BborpZcao3+woEwvpOSNZmQ13UfZ mdZyWPQcauhWln9JwjqMkL3fY0hDKHSDBu42S/f4ywZTmW5TZbbyO1O1OsaNF6mkIlewd p1GAt/1QpjIEoDxAVqMVIaLfEAarIASFyLTd2TYbFdy7xYn1b1jZd5eES+NOy7M25qYgW jRfQrJKkM2lmVHkgr4OMrvKwGjafYPHeLGalf/xX9xJgZEhNe9yM5Kag2uC10gmKBYw== X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796010519; 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=efKkDOAzeDEANwFAQBAYxIMpwL24hkq2bsM9DTfhGSw=; b=oHS/fnBKoQf5ljtp6q+/TOM/ZyBB4cd8UnLrDaWHwa1jlF2a8RwWuM8Wlgk0TfYeqKlq oh7S87S2qgCJOhk3z4nnuuy6zaXfFnSnz2ME+a+9g8s34esl1jhqmquX2IPh3vq2z+Ows KPUmG1Gri0F1sZP2dTioy07IFSNa8+djCpLzEfh8P+X583eVRR4nQIHjVUOgQKQcWm4AT c93hQnXPaTL93nw6aoWSfPJDrQ3lwrr2PDzJbjHyq33rCGdWoaGDfTFUK185Mt0CEVyJV GBF/pBDsPxB0wkyi1AO+3UwOwSa82Oljrps6Q4tzu33bskl2wtwpnAxAXxk0I/6TdTA== 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=RNOCUrS4; 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 4BA84606A6BB; Mon, 30 Nov 2026 03:48:39 +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=RNOCUrS4 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=1796010518; b=mgRSoK/VKKgY5CvOW4sHp1XCFzdgYt6TZriQSteY1e9doQNGuqR50eH19ADDgiF+Nul5 +CxLfT1sBd6DyXgL/REp6E0mPIImU739E4I+giNP2QindMyd+k95VNFRS0zg+CgnA2jj4 z3cvMiTvjDOaE+epBaKa8nXkWDVjSZwMkG9mTxj6SD84EINm8EmU3sYW7Qp8Nn7jjWos5 I9r4LWizNZ0qUV+UrSCNBIq37ahgl5Q9UjuwbFVAPn/cpK2ccXUHel9/edgoC3QU7F4Kf 2A6lVvPB3xodmhB/ERMmGfmO0S2ME+wyH6QPr6AxUb0ccXNOroqoO//JDUIcUfl1ErA== X-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== 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=RNOCUrS4; 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 6DD25606A6AD; Mon, 30 Nov 2026 03:48:38 +0000 (UTC) X-Received: by smtp.kernel.org (Postfix) with ESMTPSA id 07B3E1F00936; Mon, 30 Nov 2026 03:48:36 +0000 (UTC) X-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== 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 X-In-Reply-To: <20261129034652.1853485-13-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