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,
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 05/12] amt: forward multicast data over IPv6
Date: Mon, 30 Nov 2026 06:41:04 +0000 [thread overview]
Message-ID: <20261130064106.1857938-1-omar@blockcast.net> (raw)
In-Reply-To: <179601051244.3146.8134195674516208005@kernel.org>
On Mon, 30 Nov 2026 03:48:32 +0000, netdev-bot+sashiko@kernel.org wrote:
> Does the saved th_off actually account for extension headers on the
> relay's usual input path, IPv6 multicast forwarded by ip6mr?
Only for a Hop-by-Hop header, and you are right about the rest.
ip6_rcv_core() sets the transport header to the network header plus 40,
ipv6_parse_hopopts() moves it past a Hop-by-Hop header, and nothing on
the forwarding path moves it past a Destination Options or Routing
header. For those the restored offset is the end of the fixed header.
> Can this under-count each segment by the length of the extension
> headers, so that segments up to that many bytes over the tunnel MTU
> pass the check?
Yes, for such a packet, by the length of those headers. I did not change
it, because it is not specific to the relay: ip6_forward() and
ip6_finish_output_gso(), where ip6mr forwarding ends, validate a GSO skb
with skb_gso_validate_network_len() from the same offset, so the same
skb is counted the same way when it is forwarded. The patch puts back
the offset the skb had on entry, which is no worse than the rest of the
IPv6 forwarding path. Making the offset exact for every extension header
means walking them with ipv6_skip_exthdr() on this path, or changing the
receive path, and I would rather not put that in this series. The inner
header offsets are copied from this one, so the outer check inherits the
same count: segments up to the length of those headers over the route
MTU can leave the relay and be dropped at the link. I have not made that
exact either.
v5 says this in the message and in the comment. v4's comment said that
the restore makes the per-segment length count extension headers, which
was too strong.
--
Omar
next prev parent reply other threads:[~2026-11-30 6:41 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 [this message]
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
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=20261130064106.1857938-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=linux-kselftest@vger.kernel.org \
--cc=netdev-bot+sashiko@kernel.org \
--cc=netdev@vger.kernel.org \
--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®