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

From: Omar Ramadan

Date: Fri Nov 27 2026 - 04:44:39 EST


On Thu, 26 Nov 2026 19:17:00 +0000, netdev-bot+sashiko@xxxxxxxxxx wrote:
> Is the transport header reliable at this point for an inner IPv6 GSO
> skb that carries extension headers?

No, as you describe: ipv6_mc_check_mld() leaves the transport header
just past the fixed header for every data packet, so
skb_gso_validate_network_len() under-counts each segment by the length
of the extension headers.

v3 saves the transport header offset before ipv6_mc_check_mld() in
amt_dev_xmit() and puts it back afterwards, if it was set, so the
per-segment length counts the extension headers and the check sees the
segment that will be sent. Only a data packet reaches that path; an MLD
packet keeps what the check set. I have no runtime test for the GSO
case: it needs an inner UDP_SEGMENT socket with a hop-by-hop or
destination option, which amt_v6.sh does not have, and v3 does not add
one. The kit has a textual check that the restore is still there.

> Can this u32 subtraction wrap when dst_mtu(dst) is below 50?

Yes. v3's amt_tmtu() returns zero when the route MTU is below the outer
headers, so amt_tmtu_exceeded() is true and the copy is dropped before
it is made.

--
Omar