From: Omar Ramadan <omar@blockcast.net>
To: netdev-bot+sashiko@kernel.org
Cc: ap420073@gmail.com, andrew+netdev@lunn.ch, davem@davemloft.net,
edumazet@kernel.org, kuba@kernel.org, pabeni@redhat.com,
netdev@vger.kernel.org, linux-kernel@vger.kernel.org,
horms@kernel.org
Subject: Re: [PATCH net-next v3 05/12] amt: forward multicast data over IPv6
Date: Sun, 29 Nov 2026 03:42:46 +0000 [thread overview]
Message-ID: <20261129034247.1825859-1-omar@blockcast.net> (raw)
In-Reply-To: <179585931904.3135.10573142335250073634@kernel.org>
On Sat, 28 Nov 2026 09:48:39 +0000, netdev-bot+sashiko@kernel.org wrote:
> Is this an accurate description of the effect? With a route PMTU of
> 1280, amt_tmtu() returns 1280 - (40 + 8 + 2) = 1230
No. You are right on the arithmetic and on the scope: a forged Packet
Too Big for a gateway's address lowers the route MTU to 1280, the tunnel
MTU is then 1230, and every multicast payload above that, IPv4 or IPv6,
is dropped toward that gateway. Its source gets no Packet Too Big,
because 1230 is below the 1280 one can ask for. My message said "an IPv6
payload between that and 1280 bytes", which is far too narrow.
> Doesn't this mean an off-path sender can silently black-hole all
> multicast above 1230 bytes toward a chosen gateway, [...]? Could the
> commit message describe the real scope, or could the design be
> reconsidered?
It can, until the route exception expires (10 minutes by default). I
checked the path: udpv6_err() calls udpv6_err_update_exception() before
the socket lookup, ip6_update_pmtu() takes the quoted headers' addresses,
and __ip6_rt_update_pmtu() raises any value below IPV6_MIN_MTU to 1280.
"mtu lock" does not apply to IPv6, so nothing in a tunnel can stop it.
v4 describes this scope in the message. I did not change the design. An
AMT relay must not send a Fragment header over IPv6 (RFC 7450
s5.3.3.6), so the only choices are to drop at the relay, as here, or to
ignore the route's MTU and send at the device MTU, which moves the same
loss onto the path whenever the real path MTU is smaller. I would rather
have the relay follow the path MTU, as every IPv6 UDP tunnel in the tree
does, and say so.
> Do the header comments match this check?
No; v4 says in both that no Packet Too Big is sent for a tunnel MTU below
IPV6_MIN_MTU, and for an IPv4 source. The two paths that were not
counted, a failed skb_copy_expand() and a failed
udp_tunnel_handle_offloads(), now count in tx_dropped, and the message
says which failure carries a drop reason.
I will send v4.
pw-bot: cr
--
Omar
next prev parent reply other threads:[~2026-11-29 3:42 UTC|newest]
Thread overview: 21+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-27 9:46 [PATCH net-next v3 00/12] amt: add an IPv6 outer transport Omar Ramadan
2026-11-27 9:46 ` [PATCH net-next v3 01/12] amt: create an AF_INET6 encapsulation socket for an IPv6 outer address Omar Ramadan
2026-11-27 9:46 ` [PATCH net-next v3 02/12] amt: send the Relay Advertisement over IPv6 Omar Ramadan
2026-11-27 9:46 ` [PATCH net-next v3 03/12] amt: key relay tunnels on a union amt_addr endpoint Omar Ramadan
2026-11-28 9:48 ` netdev-bot+sashiko
2026-11-27 9:46 ` [PATCH net-next v3 04/12] amt: send the Membership Query over IPv6 Omar Ramadan
2026-11-28 9:48 ` netdev-bot+sashiko
2026-11-27 9:46 ` [PATCH net-next v3 05/12] amt: forward multicast data " Omar Ramadan
2026-11-28 9:48 ` netdev-bot+sashiko
2026-11-29 3:42 ` Omar Ramadan [this message]
2026-11-27 9:46 ` [PATCH net-next v3 06/12] amt: size the encapsulation headroom by the outer IP version Omar Ramadan
2026-11-27 9:46 ` [PATCH net-next v3 07/12] amt: send the AMT gateway control plane over IPv6 Omar Ramadan
2026-11-27 9:46 ` [PATCH net-next v3 08/12] amt: receive " Omar Ramadan
2026-11-28 9:48 ` netdev-bot+sashiko
2026-11-27 9:47 ` [PATCH net-next v3 09/12] amt: add netlink attributes for an IPv6 outer transport Omar Ramadan
2026-11-27 9:47 ` [PATCH net-next v3 10/12] MAINTAINERS: amt: cover the amt headers and selftests Omar Ramadan
2026-11-27 9:47 ` [PATCH net-next v3 11/12] selftests: net: add amt_v6.sh for an IPv6 outer transport Omar Ramadan
2026-11-28 9:48 ` netdev-bot+sashiko
2026-11-27 9:47 ` [PATCH net-next v3 12/12] selftests: net: add amt_gw_v6.sh for the IPv6 netlink attributes Omar Ramadan
2026-11-28 9:48 ` netdev-bot+sashiko
2026-11-29 3:42 ` Omar Ramadan
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=20261129034247.1825859-1-omar@blockcast.net \
--to=omar@blockcast.net \
--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=netdev-bot+sashiko@kernel.org \
--cc=netdev@vger.kernel.org \
--cc=pabeni@redhat.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®