From: "Josef Bacik" <josef@bacik.io>
To: "Paolo Abeni" <pabeni@redhat.com>
Cc: "David S. Miller" <davem@davemloft.net>,
"Eric Dumazet" <edumazet@kernel.org>,
"Jakub Kicinski" <kuba@kernel.org>,
"Simon Horman" <horms@kernel.org>,
"Andrew Lunn" <andrew+netdev@lunn.ch>,
"Willem de Bruijn" <willemdebruijn.kernel@gmail.com>,
"Fernando Fernandez Mancera" <fmancera@suse.de>,
"Mina Almasry" <almasrymina@google.com>,
"David Laight" <david.laight.linux@gmail.com>,
netdev@vger.kernel.org
Subject: Re: [PATCH net-next 2/4] net: skbuff: don't clone a stale frag_list member
Date: Tue, 01 Dec 2026 14:33:58 -0500 [thread overview]
Message-ID: <179615213775.2.1422504045964811119@bacik.io> (raw)
In-Reply-To: <e57353ef-9994-4ec4-b831-05a4fa41537c@redhat.com>
> I must admit the problematic layout is not clear to me, nor if there is
> anything build such skbs in the kernel.
>
> Could you please clarify? Note that in the latter case I think we should
> drop even this patch.
Say gso_size is 1000, the head has 500 bytes, and one member has 1000
linear bytes and a 700 byte frag. Without SG the first segment is the
head plus the member's first 500 bytes, copied by offset. The copy
doesn't move list_skb along, so for the second segment the member's
linear part still matches the segment length and it gets cloned from its
first byte. Those first 500 bytes go out twice.
Nothing I know of builds that though. GRO's heads are always a whole
number of segments, and with one of those the clone starts at the right
byte. So I agree, I'll drop this one too, and its cases in patch 4.
Thanks,
Josef
next prev parent reply other threads:[~2026-12-02 0:21 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-13 0:21 [PATCH net-next 0/4] net: skbuff: skb_segment() fixes for frag_lists without SG Josef Bacik
2026-11-13 0:21 ` [PATCH net-next 1/4] net: skbuff: don't clone a nested frag_list member Josef Bacik
2026-11-19 9:23 ` Paolo Abeni
2026-11-13 0:21 ` [PATCH net-next 2/4] net: skbuff: don't clone a stale " Josef Bacik
2026-11-19 9:26 ` Paolo Abeni
2026-12-01 19:33 ` Josef Bacik [this message]
2026-11-13 0:21 ` [PATCH net-next 3/4] net: compare the payload in the GSO KUnit test Josef Bacik
2026-11-13 0:21 ` [PATCH net-next 4/4] net: test more frag_list layouts without SG Josef Bacik
2026-11-13 2:52 ` [PATCH net-next 0/4] net: skbuff: skb_segment() fixes for frag_lists " Mina Almasry
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=179615213775.2.1422504045964811119@bacik.io \
--to=josef@bacik.io \
--cc=almasrymina@google.com \
--cc=andrew+netdev@lunn.ch \
--cc=davem@davemloft.net \
--cc=david.laight.linux@gmail.com \
--cc=edumazet@kernel.org \
--cc=fmancera@suse.de \
--cc=horms@kernel.org \
--cc=kuba@kernel.org \
--cc=netdev@vger.kernel.org \
--cc=pabeni@redhat.com \
--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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox