From: "David Hildenbrand (Arm)" <david@kernel.org>
To: Paolo Abeni <pabeni@redhat.com>,
"David S. Miller" <davem@davemloft.net>,
Eric Dumazet <edumazet@kernel.org>,
Jakub Kicinski <kuba@kernel.org>, Simon Horman <horms@kernel.org>,
Andrew Morton <akpm@linux-foundation.org>,
Kiryl Shutsemau <kas@kernel.org>,
Song Liu <songliubraving@fb.com>,
Johannes Weiner <hannes@cmpxchg.org>,
Rik van Riel <riel@surriel.com>,
"Matthew Wilcox (Oracle)" <willy@infradead.org>,
Neal Cardwell <ncardwell@google.com>,
Kuniyuki Iwashima <kuniyu@google.com>,
Pedro Falcato <pfalcato@suse.de>
Cc: netdev@vger.kernel.org, linux-kernel@vger.kernel.org,
linux-mm@kvack.org, stable@vger.kernel.org
Subject: Re: [PATCH net 4/4] net: skbuff: limit folio refcount when splicing from sockets
Date: Thu, 26 Nov 2026 17:12:11 +0100 [thread overview]
Message-ID: <b36f40f0-3f9c-4ba6-8c1c-a76f99623944@kernel.org> (raw)
In-Reply-To: <bcbb57bd-6447-4faa-a56c-9bdf1c7bc90a@redhat.com>
On 11/26/26 17:10, Paolo Abeni wrote:
> On 11/26/26 15:44, David Hildenbrand (Arm) wrote:
>> On 11/26/26 15:18, Paolo Abeni wrote:
>>> which is arguably ugly but IMHO no more than the tristate
>>> return value in the current version.
>>
>> That doesn't work. "len" you write in the function is not tlen ...
>
> Sorry, I rushed it too much.
No worries.
>
>> __splice_segment() passes &flen.
>>
>> Further all these lengths are unsigned int, not signed :/
>>
>> Also, I think we have to respect spd.nr_pages.
>>
>> If we want it minimal, a separate error pointer might be the easiest way to fix it. Still
>> ugly, but I tried to get it clean above and there is no way around some churn I'm afraid.
>
> I actually prefer what you suggest here more than the current patch.
> I suspect Willem may have some other option avail, but he will
> not back for a few days.
Okay, just let me now whenever you want a resend with the proposed changes. I
tested them a bit and they seem to get the job done as well.
--
Cheers,
David
next prev parent reply other threads:[~2026-11-26 16:12 UTC|newest]
Thread overview: 22+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-18 8:32 [PATCH net 0/4] net: skbuff: limit pagecache folio refcount David Hildenbrand (Arm)
2026-11-18 8:32 ` [PATCH net 1/4] net: skbuff: limit folio refcount when copying skb frag references David Hildenbrand (Arm)
2026-11-19 13:53 ` David Hildenbrand (Arm)
2026-11-20 16:21 ` Stanislav Fomichev
2026-11-20 21:01 ` David Hildenbrand (Arm)
2026-11-22 9:19 ` netdev-bot+sashiko
2026-11-22 12:58 ` David Hildenbrand (Arm)
2026-11-22 18:43 ` David Hildenbrand (Arm)
2026-11-18 8:32 ` [PATCH net 2/4] net: skbuff: limit folio refcount when rearranging skb frags David Hildenbrand (Arm)
2026-11-22 9:19 ` netdev-bot+sashiko
2026-11-22 12:48 ` David Hildenbrand (Arm)
2026-11-18 8:32 ` [PATCH net 3/4] net: skbuff: limit folio refcount when splicing pages into skbs David Hildenbrand (Arm)
2026-11-22 9:19 ` netdev-bot+sashiko
2026-11-22 13:05 ` David Hildenbrand (Arm)
2026-11-18 8:32 ` [PATCH net 4/4] net: skbuff: limit folio refcount when splicing from sockets David Hildenbrand (Arm)
2026-11-22 9:19 ` netdev-bot+sashiko
2026-11-22 13:09 ` David Hildenbrand (Arm)
2026-11-26 14:18 ` Paolo Abeni
2026-11-26 14:44 ` David Hildenbrand (Arm)
2026-11-26 16:10 ` Paolo Abeni
2026-11-26 16:12 ` David Hildenbrand (Arm) [this message]
2026-11-26 16:31 ` Paolo Abeni
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=b36f40f0-3f9c-4ba6-8c1c-a76f99623944@kernel.org \
--to=david@kernel.org \
--cc=akpm@linux-foundation.org \
--cc=davem@davemloft.net \
--cc=edumazet@kernel.org \
--cc=hannes@cmpxchg.org \
--cc=horms@kernel.org \
--cc=kas@kernel.org \
--cc=kuba@kernel.org \
--cc=kuniyu@google.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-mm@kvack.org \
--cc=ncardwell@google.com \
--cc=netdev@vger.kernel.org \
--cc=pabeni@redhat.com \
--cc=pfalcato@suse.de \
--cc=riel@surriel.com \
--cc=songliubraving@fb.com \
--cc=stable@vger.kernel.org \
--cc=willy@infradead.org \
/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