Re: [PATCH net v2 1/4] net: skbuff: limit folio refcount when copying skb frag references

From: David Hildenbrand (Arm)

Date: Sun Nov 29 2026 - 05:26:01 EST


On 11/27/26 22:21, netdev-bot+sashiko@xxxxxxxxxx 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