Re: [PATCH net-next v3 05/12] amt: forward multicast data over IPv6

From: Omar Ramadan

Date: Sat Nov 28 2026 - 22:43:00 EST


On Sat, 28 Nov 2026 09:48:39 +0000, netdev-bot+sashiko@xxxxxxxxxx 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