From: Justin Iurman <justin.iurman@gmail.com>
To: Eric Dumazet <edumazet@kernel.org>,
"David S. Miller" <davem@davemloft.net>,
Jakub Kicinski <kuba@kernel.org>, Paolo Abeni <pabeni@redhat.com>
Cc: "Simon Horman" <horms@kernel.org>,
"David Ahern" <dsahern@kernel.org>,
"Ido Schimmel" <idosch@nvidia.com>,
"Willem de Bruijn" <willemdebruijn.kernel@gmail.com>,
"Marcelo Ricardo Leitner" <marcelo.leitner@gmail.com>,
"Xin Long" <lucien.xin@gmail.com>,
"Aaron Conole" <aconole@redhat.com>,
"Eelco Chaudron" <echaudro@redhat.com>,
"Ilya Maximets" <i.maximets@ovn.org>,
"Daniel Borkmann" <daniel@iogearbox.net>,
"Linus Lüssing" <linus.luessing@c0d3.blue>,
"Sabrina Dubroca" <sd@queasysnail.net>,
"Stefano Brivio" <sbrivio@redhat.com>,
"Hyunwoo Kim" <imv4bel@gmail.com>,
netdev@vger.kernel.org, linux-sctp@vger.kernel.org,
dev@openvswitch.org
Subject: Re: [PATCH net 0/5] net: avoid truncated transport header offsets
Date: Sat, 14 Nov 2026 21:17:41 +0100 [thread overview]
Message-ID: <9a75d365-fff0-42b1-95fa-8907ed69106e@gmail.com> (raw)
In-Reply-To: <20261113124625.4010206-1-edumazet@kernel.org>
On 11/13/26 13:46, Eric Dumazet wrote:
> skb->transport_header is a 16-bit offset from skb->head, and U16_MAX
> is reserved as the "not set" value. skb_set_transport_header() silently
> truncates an offset that does not fit.
>
> The first patch addresses the report from Hyunwoo Kim, by applying
> the IP6_MAX_EXT_HDRS_CNT limit to ipv6_gro_pull_exthdrs().
>
> The four following patches convert places storing an offset derived
> from an IPv6 extension header walk to skb_set_transport_header_careful().
> A single chain being bounded to 24576 bytes, these need a large
> skb->data - skb->head to overflow, for instance after nested
> decapsulations. They are hardening, no reproducer was written.
>
> The same change for nf_ct_frag6_gather() is sent separately to
> the netfilter tree.
>
> Eric Dumazet (5):
> ipv6: gro: limit the number of extension headers
> ipv6: mcast: use skb_set_transport_header_careful() in
> ipv6_mc_check_exthdrs()
> net: openvswitch: use skb_set_transport_header_careful() in
> parse_ipv6hdr()
> sctp: use skb_set_transport_header_careful() in sctp_v6_err()
> udp: use skb_set_transport_header_careful() in __udp6_lib_err_encap()
>
> net/ipv6/ip6_offload.c | 8 ++++++++
> net/ipv6/mcast_snoop.c | 3 ++-
> net/ipv6/udp.c | 7 ++++---
> net/openvswitch/flow.c | 3 ++-
> net/sctp/ipv6.c | 5 ++++-
> 5 files changed, 20 insertions(+), 6 deletions(-)
For the series:
Reviewed-by: Justin Iurman <justin.iurman@gmail.com>
prev parent reply other threads:[~2026-11-14 20:17 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-13 12:46 [PATCH net 0/5] net: avoid truncated transport header offsets Eric Dumazet
2026-11-13 12:46 ` [PATCH net 1/5] ipv6: gro: limit the number of extension headers Eric Dumazet
2026-11-13 12:58 ` Hyunwoo Kim
2026-11-16 11:33 ` Ido Schimmel
2026-11-16 15:47 ` netdev-bot+sashiko
2026-11-13 12:46 ` [PATCH net 2/5] ipv6: mcast: use skb_set_transport_header_careful() in ipv6_mc_check_exthdrs() Eric Dumazet
2026-11-16 11:45 ` Ido Schimmel
2026-11-13 12:46 ` [PATCH net 3/5] net: openvswitch: use skb_set_transport_header_careful() in parse_ipv6hdr() Eric Dumazet
2026-11-13 12:46 ` [PATCH net 4/5] sctp: use skb_set_transport_header_careful() in sctp_v6_err() Eric Dumazet
2026-11-16 15:47 ` netdev-bot+sashiko
2026-11-16 19:20 ` Xin Long
2026-11-13 12:46 ` [PATCH net 5/5] udp: use skb_set_transport_header_careful() in __udp6_lib_err_encap() Eric Dumazet
2026-11-15 14:40 ` Stefano Brivio
2026-11-14 20:17 ` Justin Iurman [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=9a75d365-fff0-42b1-95fa-8907ed69106e@gmail.com \
--to=justin.iurman@gmail.com \
--cc=aconole@redhat.com \
--cc=daniel@iogearbox.net \
--cc=davem@davemloft.net \
--cc=dev@openvswitch.org \
--cc=dsahern@kernel.org \
--cc=echaudro@redhat.com \
--cc=edumazet@kernel.org \
--cc=horms@kernel.org \
--cc=i.maximets@ovn.org \
--cc=idosch@nvidia.com \
--cc=imv4bel@gmail.com \
--cc=kuba@kernel.org \
--cc=linus.luessing@c0d3.blue \
--cc=linux-sctp@vger.kernel.org \
--cc=lucien.xin@gmail.com \
--cc=marcelo.leitner@gmail.com \
--cc=netdev@vger.kernel.org \
--cc=pabeni@redhat.com \
--cc=sbrivio@redhat.com \
--cc=sd@queasysnail.net \
--cc=willemdebruijn.kernel@gmail.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.