Re: [PATCH net 2/2] net: add a KUnit test for the alloc_skb_with_frags() tail split

From: Narcisa Vasile

Date: Sun Nov 08 2026 - 03:24:35 EST


On Sun, Nov 08, 2026 at 07:06:17PM +0900, Haishuang Yan wrote:
> Allocate MAX_SKB_FRAGS - 2 full chunks of PAGE_ALLOC_COSTLY_ORDER plus
> a 7 page tail. Rounding the tail down to 4 + 2 + 1 pages would need
> one frag more than MAX_SKB_FRAGS, which made the allocation fail with
> -ENOBUFS before the previous patch.
>
> Signed-off-by: Haishuang Yan <yanhaishuang@xxxxxxxxxxxxxxxxxxxx>
> ---
> net/core/net_test.c | 24 ++++++++++++++++++++++++
> 1 file changed, 24 insertions(+)
>
> diff --git a/net/core/net_test.c b/net/core/net_test.c

Thanks, I tried it locally.
Reviewed-by: Narcisa Vasile <narcisav.kernel@xxxxxxxxx>