🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: linux.kernel.netdev
Article #20241

Re: [PATCH net v3 0/2] net: do not run out of frags in alloc_skb_with_frags()

#20241
From: patchwork-bot+netdevbpf
Date: Sat, 21 Nov 2026 22:30
32 lines
9147 bytes
Hello:

This series was applied to netdev/net.git (main)
by Jakub Kicinski <kuba@kernel.org>:

On Mon, 16 Nov 2026 20:56:18 +0900 you wrote:
> alloc_skb_with_frags() can fail with -ENOBUFS for a data_len that passed
> its size check. Patch 1 fixes it, patch 2 adds a KUnit test.
> 
> The issues were found with the help of an AI coding assistant.
> 
> Changes in v3:
> - Patch 1: check the frags left only after a failed allocation, with a
>   shift (Eric).
> - Patch 1: say that the allocation still fails if the retry fails.
> - Patch 2: skip only if MAX_SKB_FRAGS - 1 order-3 pages can't be held
>   at once; one page was nearly always available (netdev AI review).
> - Shorter changelogs (Eric).
> 
> [...]

Here is the summary with links:
  - [net,v3,1/2] net: do not run out of frags in alloc_skb_with_frags()
    https://git.kernel.org/netdev/net/c/5924465bb4e9
  - [net,v3,2/2] net: add a KUnit test for the alloc_skb_with_frags() tail split
    https://git.kernel.org/netdev/net/c/e8c39bfac24d

You are awesome, thank you!
-- 
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html
Technical Details
Message-ID: <179530020578.1192635.2530675311737257518.git-patchwork-notify@kernel.org>
Path: mbox-mo1.pugleaf.net!srv.newsdeef.eu!newsfeed.bofh.team!news.nntp4.net!nntp.xenet.de!news.neodome.net!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-368475-linux-kernel-netdev=dewy.ru
References: <20261116115620.18151-1-yanhaishuang@cmss.chinamobile.com>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!srv.newsdeef.eu!newsfeed.bofh.team!news.nntp4.net!nntp.xenet.de!news.neodome.net!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-368475-linux-kernel-netdev=dewy.ru
From: patchwork-bot+netdevbpf@kernel.org
Newsgroups: linux.kernel.netdev
Subject: Re: [PATCH net v3 0/2] net: do not run out of frags in
 alloc_skb_with_frags()
Date: Sat, 21 Nov 2026 22:30:05 +0000
Organization: Usenet Network
Message-ID: <179530020578.1192635.2530675311737257518.git-patchwork-notify@kernel.org>
References: <20261116115620.18151-1-yanhaishuang@cmss.chinamobile.com>
MIME-Version: 1.0
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: 8bit
Injection-Info: usenet.network;
	logging-data="3509137"; mail-complaints-to="abuse@usenet.network"
Cancel-Lock: sha1:T6mVGTjyCg5QtBcYjC15HT7TJ0Q= sha256:0mxL+oO96izZb/jKbiG/emnwt9NLzJbpwLEZiyOvNxk=
	sha1:wYkBnNAze76AztXpt2nAzK6Og5E= sha256:Pewxy7HON9JEw2x21A6t5GjMDDjv5avS1s00cDcTgMQ=
List-ID: <netdev.vger.kernel.org>
X-Mailpost-Empty-Hdrs: X-Spam-Level
X-Received: from localhost (localhost [127.0.0.1])
	by mail.dewy.ru (Postfix) with ESMTP id B6F3E116025; Sun, 22 Nov 2026 01:30:22 +0300 (MSK)
X-Virus-Scanned: Debian amavisd-new at usenet.network
X-Spam-Flag: NO
X-Spam-Score: -3.401
X-Spam-Status: No, score=-3.401 tagged_above=-9999 required=6.31
	tests=[DCC_REPUT_70_89=0.1, DKIMWL_WL_HIGH=-0.001, DKIM_SIGNED=0.1,
	DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1,
	MAILING_LIST_MULTI=-1, RCVD_IN_DNSWL_MED=-2.3, SPF_HELO_NONE=0.001,
	SPF_PASS=-0.001] autolearn=ham autolearn_force=no
X-Authentication-Results: mail.dewy.ru (amavisd-new); dkim=pass (2048-bit key)
	header.d=kernel.org
X-Received: from mail.dewy.ru ([127.0.0.1])
	by localhost (mail.dewy.ru [127.0.0.1]) (amavisd-new, port 10024)
	with ESMTP id 6wc5LmGgimzP;
	Sun, 22 Nov 2026 01:30:19 +0300 (MSK)
X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.234.253.10; helo=sea.lore.kernel.org; envelope-from=netdev+bounces-368475-linux-kernel-netdev=dewy.ru@vger.kernel.org; receiver=<UNKNOWN> 
X-Authentication-Results: OpenDMARC; dmarc=pass (p=quarantine dis=none) header.from=kernel.org
X-Received: from sea.lore.kernel.org (sea.lore.kernel.org [172.234.253.10])
	by mail.dewy.ru (Postfix) with ESMTPS id DE7E5DFFA1; Sun, 22 Nov 2026 01:30:10 +0300 (MSK)
X-Received: from smtp.subspace.kernel.org (conduit.subspace.kernel.org [100.77.114.92])
	by sea.lore.kernel.org (Postfix) with ESMTP id 855EA3886F; Sat, 21 Nov 2026 22:30:08 +0000 (UTC)
X-Authentication-Results: smtp.subspace.kernel.org; arc=pass header.oldest-pass=0 smtp.remote-ip=127.0.0.1
X-ARC-Seal: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=pass;
	t=1795300208;
	b=tg6yYss9iswrL4ENCh92QrQolnd1xElsys0uZQi0WWtc183SXg5W2LptBdZnT8y7UsiH
	 c2gtpV/a7Xi0bm6+o8W+/Ae3jQO88VLFSgqks9tHp4z3QOVskwkcorejajbdGo6Dgl1Zs
	 fXBNW/unx1Apjs2lMlj7G5IhSWrzTtY7Hr2jh+Bo+cVMxlmUaI0AOW+BBiNrh7xb8MOca
	 y1btq/9PC9f6HxlzPjz+19j0GbuuwX61VeVhmkjFdMKJjldrg/HUQAhDz3oU1ONkPsmt/
	 uSHjeAaZ8To0d8dYEQD9svrHrVHAYljfVYkS3hEO0D5rU0nLJpgJLVlK4uQaoFVyscA==
X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015;
	a=rsa-sha256; c=relaxed/relaxed; t=1795300208;
	h=X-Original-To:Received:Received:DKIM-Signature:Received:Content-Type:
	 X-Mailing-List:List-Id:List-Post:List-Help:List-Subscribe:
	 List-Unsubscribe:List-Owner:Precedence:MIME-Version:
	 Content-Transfer-Encoding:Subject:From:Message-Id:Date:References:
	 In-Reply-To:To:Cc;
	bh=5JWJEVm5ycxocJaBKUv1x27gdNjptbNYtP5TvAZBP64=;
	b=iWAtvcT9y4wdDyPV/b5cUqVfS5/kiA+grOEfgGpa4qYMzWOr+vTxOGJeUUcVyEq+6oqL
	 31ePr0txPDrUwxEzkYgqlhe2/rDqFTeuVw4s28MeUx345+t3Fm1M6UIReEGCOUW7A5hNs
	 lGHygPA5ua8iSNeIajs5Ve+Td/YA8jZz2lHbcCaCqk+JYKMhQUM0vFctIlpRj360uEwGk
	 RNCFnIGqgx1BGWRv1bvIjAVmYIXxx0yIVq7IFFGZjBYAxd66HkiwCr8UpdEblyF3x2r/C
	 3wx/xHQpadwTXBL7PBCge/XxyK/4RYVmr+8JylU0x4FI9eG86zcxseNx41t06c3llMA==
X-ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; 
	dkim=pass header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=XjUs8Ohg;
	arc=pass header.oldest-pass=0 smtp.remote-ip=127.0.0.1
X-Received: from localhost.localdomain (localhost [127.0.0.1])
	by smtp.subspace.kernel.org (Postfix) with ESMTP id 11A72606A33F;
	Sat, 21 Nov 2026 22:30:08 +0000 (UTC)
X-Authentication-Results: smtp.subspace.kernel.org;
	dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=XjUs8Ohg
X-Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=100.103.45.18
X-ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none;
	t=1795300207;
	b=5MNPjAGodcaGmVNGsElPBBg5ttRz3aX9jzGkP0g2N0BSuFGMNtgS684seDNxRfq6mLM6
	 4g2mNdCRCANI+ik0F0Yh4kLJoWAO9XVnr3TfmC70A1J9Mj2BXt+WdVnizqX5WzHnUS5+D
	 01Xbz+a8/4oBU6d+4bC48MCnxWlY036AI0rdF4tGvfRBx5bp9Sml92i+/1Zt/yeETJjHn
	 vDsqtqxpZ2vzgTJ6yRBp9smWx80TmkRhW28JFRFF7PMF5V/QYZTjoRzHyEg5lgW/WdS2Q
	 GFeXuXYmeurZOOG9zqqJvOkga7xmHhWyCT6zpjfw08RXLjIkno32sOiIpbjf6AxQu6A==
X-ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015;
	a=rsa-sha256; c=relaxed/relaxed; t=1795300207;
	h=Received:DKIM-Signature:Received:Content-Type:MIME-Version:
	 Content-Transfer-Encoding:Subject:From:Message-Id:Date:References:
	 In-Reply-To:To:Cc;
	bh=5JWJEVm5ycxocJaBKUv1x27gdNjptbNYtP5TvAZBP64=;
	b=DfLHhxmRi4yNUkU1y7qEZ/AeZFOwrWyNgu7JTtJAVTDyvotaQyu2fB2pP0BBrXCLpG33
	 SZc0GLtZkVfp10nTA1V+h/XChpZbgjPUxKpfD5wMwb0ijOWjFkVtcBoIyvtRfDXAKnpZZ
	 dbeHxr51RlXDeyg/QrB16ynYdxy3ejPGoJ0ZRH4qt5/bZDSvhYoM6fYYUtru5yQ+nflUC
	 2sjgg9MPToGhNQbygTcMZYep/7iIyqmbbLIVAeBIFQk1PSb8OwF4mPOBqlwlkM4Gg9fJ2
	 v/OiBUiIgX86Ou3OGkgSYMDxw41RHYOVs6OeVyzNMkmeL0qIS/OFiYwD5/NvhMriFWw==
X-ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; 
	dkim=pass header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=XjUs8Ohg;
	arc=none smtp.remote-ip=100.103.45.18
X-Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18])
	(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)
	 key-exchange X25519 server-signature ECDSA (prime256v1))
	(No client certificate requested)
	by smtp.subspace.kernel.org (Postfix) with ESMTPS id 30976606A32C;
	Sat, 21 Nov 2026 22:30:07 +0000 (UTC)
X-Received: by smtp.kernel.org (Postfix) with ESMTPSA id 07E3C1F000C4;
	Sat, 21 Nov 2026 22:30:07 +0000 (UTC)
X-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org;
	s=k20260515; t=1795300207;
	bh=5JWJEVm5ycxocJaBKUv1x27gdNjptbNYtP5TvAZBP64=;
	h=Subject:From:Date:References:In-Reply-To:To:Cc;
	b=XjUs8OhgGTwy90ejxwmUS83s/sNS0aa6x0gUtNvoNTr1teNMHoKQhfJOWGzm47xLk
	 YtJgKAuX8XX2C8L0ZCCT5HaebHnV7vxE5akI349CHbqFvpzwnm/z8T5sKvAx19eeRy
	 ctq5Za2Y+l0LbCa3PZg1H98AZGGLPjCdIOPfsmPT3NoatfH/wUT2O4iJ82rwwee8E/
	 nJHr1jL56JpGS3CTCmclstUMWJJN+s2Fo3vpd04+vMUHiXx7g828tDqLZUUXt1r0XL
	 bDL2WQmlKRkED1QIVX/2NmGTfWf6FJaY6TnFQ9KXokrcgSXI13GXQd+DggicOnh1mD
	 aLqNmDFc/V4IA==
X-Received: from [10.30.226.235] (localhost [IPv6:::1])
	by aws-us-west-2-korg-oddjob-rhel9-1.codeaurora.org (Postfix) with ESMTP id F18B0391B081;
	Sat, 21 Nov 2026 22:30:06 +0000 (UTC)
X-Mailing-List: netdev@vger.kernel.org
X-List-Post: <mailto:netdev@vger.kernel.org>
X-List-Help: <mailto:netdev+help@vger.kernel.org>
X-List-Subscribe: <mailto:netdev+subscribe@vger.kernel.org>
X-List-Unsubscribe: <mailto:netdev+unsubscribe@vger.kernel.org>
X-List-Owner: <mailto:netdev+owner@vger.kernel.org>
X-Precedence: list
X-In-Reply-To: <20261116115620.18151-1-yanhaishuang@cmss.chinamobile.com>
X-Cc: netdev@vger.kernel.org, davem@davemloft.net, edumazet@kernel.org,
 kuba@kernel.org, pabeni@redhat.com, horms@kernel.org, almasrymina@google.com,
 daniel@iogearbox.net, willemb@google.com, willemdebruijn.kernel@gmail.com,
 mst@redhat.com, jasowangio@gmail.com, eperezma@redhat.com,
 narcisav.kernel@gmail.com, linux-kernel@vger.kernel.org