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
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 [thread overview]
Message-ID: <179601051658.3146.1044784961486897007@kernel.org> (raw)
In-Reply-To: <20261129034652.1853485-13-omar@blockcast.net>
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
prev parent reply other threads:[~2026-11-30 3:48 UTC|newest]
Thread overview: 20+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-29 3:46 [PATCH net-next v4 00/12] amt: add an IPv6 outer transport Omar Ramadan
2026-11-29 3:46 ` [PATCH net-next v4 01/12] amt: create an AF_INET6 encapsulation socket for an IPv6 outer address Omar Ramadan
2026-11-29 3:46 ` [PATCH net-next v4 02/12] amt: send the Relay Advertisement over IPv6 Omar Ramadan
2026-11-30 3:48 ` netdev-bot+sashiko
2026-11-30 6:41 ` Omar Ramadan
2026-11-29 3:46 ` [PATCH net-next v4 03/12] amt: key relay tunnels on a union amt_addr endpoint Omar Ramadan
2026-11-29 3:46 ` [PATCH net-next v4 04/12] amt: send the Membership Query over IPv6 Omar Ramadan
2026-11-29 3:46 ` [PATCH net-next v4 05/12] amt: forward multicast data " Omar Ramadan
2026-11-30 3:48 ` netdev-bot+sashiko
2026-11-30 6:41 ` Omar Ramadan
2026-11-29 3:46 ` [PATCH net-next v4 06/12] amt: size the encapsulation headroom by the outer IP version Omar Ramadan
2026-11-29 3:46 ` [PATCH net-next v4 07/12] amt: send the AMT gateway control plane over IPv6 Omar Ramadan
2026-11-29 3:46 ` [PATCH net-next v4 08/12] amt: receive " Omar Ramadan
2026-11-29 3:46 ` [PATCH net-next v4 09/12] amt: add netlink attributes for an IPv6 outer transport Omar Ramadan
2026-11-29 3:46 ` [PATCH net-next v4 10/12] MAINTAINERS: amt: cover the amt headers and selftests Omar Ramadan
2026-11-29 3:46 ` [PATCH net-next v4 11/12] selftests: net: add amt_v6.sh for an IPv6 outer transport Omar Ramadan
2026-11-30 3:48 ` netdev-bot+sashiko
2026-11-30 6:41 ` Omar Ramadan
2026-11-29 3:46 ` [PATCH net-next v4 12/12] selftests: net: add amt_gw_v6.sh for the IPv6 netlink attributes Omar Ramadan
2026-11-30 3:48 ` netdev-bot+sashiko [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=179601051658.3146.1044784961486897007@kernel.org \
--to=netdev-bot+sashiko@kernel.org \
--cc=andrew+netdev@lunn.ch \
--cc=ap420073@gmail.com \
--cc=davem@davemloft.net \
--cc=edumazet@kernel.org \
--cc=horms@kernel.org \
--cc=kuba@kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-kselftest@vger.kernel.org \
--cc=netdev@vger.kernel.org \
--cc=omar@blockcast.net \
--cc=pabeni@redhat.com \
--cc=shuah@kernel.org \
--cc=willemb@google.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®