From: "David Hildenbrand (Arm)" <david@kernel.org>
To: netdev-bot+sashiko@kernel.org
Cc: davem@davemloft.net, edumazet@kernel.org, kuba@kernel.org,
pabeni@redhat.com, sdf.kernel@gmail.com, willemb@google.com,
horms@kernel.org, akpm@linux-foundation.org, kas@kernel.org,
songliubraving@fb.com, hannes@cmpxchg.org, riel@surriel.com,
willy@infradead.org, ncardwell@google.com, kuniyu@google.com,
pfalcato@suse.de, cel@kernel.org, jlayton@kernel.org,
netdev@vger.kernel.org, linux-kernel@vger.kernel.org,
linux-mm@kvack.org, stable@vger.kernel.org
Subject: Re: [PATCH net v2 1/4] net: skbuff: limit folio refcount when copying skb frag references
Date: Sun, 29 Nov 2026 11:25:40 +0100 [thread overview]
Message-ID: <3e3e3995-b6a0-4838-99ff-b63e80152c88@kernel.org> (raw)
In-Reply-To: <179581450836.3135.326843222571201832@kernel.org>
On 11/27/26 22:21, netdev-bot+sashiko@kernel.org wrote:
> Thank you for your contribution! Sashiko AI review found more severe
> issue(s) in other patches of this series. This mail is only an FYI, in case
> you want to address the nit picks below when you respin.
>
> Low priority / nit picks for your consideration:
>
> - [Low] Concern: this commit converts only pskb_expand_head(),
> __pskb_copy_fclone(), skb_zerocopy() and pskb_carve_inside_*() to the…
>
> --
>
> net: skbuff: limit folio refcount when copying skb frag references
>
> This commit adds skb_frag_try_ref() and skb_frags_try_ref(). Both take
> frag page references with try_get_page(), so they refuse a new reference
> when the folio refcount is at its limit. The commit converts
> pskb_expand_head(), __pskb_copy_fclone(), skb_zerocopy() and
> pskb_carve_inside_*() to these helpers, and those functions now fail when
> a reference can't be taken.
>
>> Let's introduce skb_frag_try_ref() and skb_frags_try_ref(), which use
>> try_get_page(), and use them in pskb_expand_head(), __pskb_copy_fclone(),
>> skb_zerocopy() and pskb_carve_inside_*(). All of these can already fail,
>> and their callers handle that.
>
> [Severity: Low]
> This isn't a bug, but could the commit message mention the frag reference
> sites that still use plain skb_frag_ref() at this point in the series?
I won't be further delaying this patch series because of random minor thing the
AI nitpicks ;)
--
Cheers,
David
next prev parent reply other threads:[~2026-11-29 10:25 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-26 21:18 [PATCH net v2 0/4] net: skbuff: limit pagecache folio refcount David Hildenbrand (Arm)
2026-11-26 21:18 ` [PATCH net v2 1/4] net: skbuff: limit folio refcount when copying skb frag references David Hildenbrand (Arm)
2026-11-27 21:21 ` netdev-bot+sashiko
2026-11-29 10:25 ` David Hildenbrand (Arm) [this message]
2026-11-26 21:18 ` [PATCH net v2 2/4] net: skbuff: limit folio refcount when rearranging skb frags David Hildenbrand (Arm)
2026-11-26 21:18 ` [PATCH net v2 3/4] net: skbuff: limit folio refcount when splicing pages into skbs David Hildenbrand (Arm)
2026-11-27 21:21 ` netdev-bot+sashiko
2026-11-29 10:24 ` David Hildenbrand (Arm)
2026-11-26 21:18 ` [PATCH net v2 4/4] net: skbuff: limit folio refcount when splicing from sockets David Hildenbrand (Arm)
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=3e3e3995-b6a0-4838-99ff-b63e80152c88@kernel.org \
--to=david@kernel.org \
--cc=akpm@linux-foundation.org \
--cc=cel@kernel.org \
--cc=davem@davemloft.net \
--cc=edumazet@kernel.org \
--cc=hannes@cmpxchg.org \
--cc=horms@kernel.org \
--cc=jlayton@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-bot+sashiko@kernel.org \
--cc=netdev@vger.kernel.org \
--cc=pabeni@redhat.com \
--cc=pfalcato@suse.de \
--cc=riel@surriel.com \
--cc=sdf.kernel@gmail.com \
--cc=songliubraving@fb.com \
--cc=stable@vger.kernel.org \
--cc=willemb@google.com \
--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