🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: linux.kernel.netdev
Article #13726

Re: [PATCH v2 net] inet: frags: bound the wmem charge of the socket completing a reassembly

#13726
From: patchwork-bot+netdevbpf
Date: Tue, 10 Nov 2026 09:10
29 lines
9041 bytes
Hello:

This patch was applied to netdev/net.git (main)
by Paolo Abeni <pabeni@redhat.com>:

On Wed,  4 Nov 2026 13:29:27 +0100 you wrote:
> When a socket owned fragment completes a reassembly queue,
> inet_frag_reasm_prepare() and inet_frag_reasm_finish() charge the
> truesize of all other fragments to its sk_wmem_alloc. These fragments
> were orphaned when queued, and might have been sent by someone else,
> for instance padded TUN packets.
> 
> Commit 3ae20e4697eb ("inet: frags: limit the truesize of a reassembly
> queue") bounds this charge to INT_MAX / 2 per queue, but a socket can
> complete several queues while the reassembled skbs are still alive,
> for instance held in a qdisc. sk_wmem_alloc can then go past INT_MAX,
> refcount_add() saturates it with a WARN, and the socket is leaked.
> 
> [...]

Here is the summary with links:
  - [v2,net] inet: frags: bound the wmem charge of the socket completing a reassembly
    https://git.kernel.org/netdev/net/c/b71c101bbb98

You are awesome, thank you!
-- 
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html
Technical Details
Message-ID: <179430180543.3797379.5984567968316678172.git-patchwork-notify@kernel.org>
Path: mbox-mo1.pugleaf.net!news-lax.pugleaf.net!srl.newsdeef.eu!newsfeed.bofh.team!nntp.comgw.net!eternal-september.org!feeder.eternal-september.org!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-359978-linux-kernel-netdev=dewy.ru
References: <20261104122927.1033747-1-edumazet@kernel.org>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-lax.pugleaf.net!srl.newsdeef.eu!newsfeed.bofh.team!nntp.comgw.net!eternal-september.org!feeder.eternal-september.org!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-359978-linux-kernel-netdev=dewy.ru
From: patchwork-bot+netdevbpf@kernel.org
Newsgroups: linux.kernel.netdev
Subject: Re: [PATCH v2 net] inet: frags: bound the wmem charge of the socket
 completing a reassembly
Date: Tue, 10 Nov 2026 09:10:05 +0000
Organization: Usenet Network
Message-ID: <179430180543.3797379.5984567968316678172.git-patchwork-notify@kernel.org>
References: <20261104122927.1033747-1-edumazet@kernel.org>
MIME-Version: 1.0
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: 8bit
Injection-Info: usenet.network;
	logging-data="565596"; mail-complaints-to="abuse@usenet.network"
Cancel-Lock: sha1:X1xzSrxBQqZScONI9H1/hzsB53M= sha256:dVjc/pBg1wE2zi5bHd+JkfzZQwdXLaLjKgCO7wIhmcw=
	sha1:HHYdB9uU08AhuHNvBcA28Djr57A= sha256:v0nErfd5YA4IQ7A0LSrxCIR4WwPQEHAQcaHXO4b0DeI=
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 CACCA113AA5; Tue, 10 Nov 2026 12:12:05 +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 ccLuxl5CKTE9;
	Tue, 10 Nov 2026 12:12:02 +0300 (MSK)
X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.234.253.10; helo=sea.lore.kernel.org; envelope-from=netdev+bounces-359978-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 0DEE9113A6D; Tue, 10 Nov 2026 12:11:53 +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 796633FC5E; Tue, 10 Nov 2026 09:10: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=1794301808;
	b=CV8RfVNbOBL28T9nxlBXO23Q3LFF1914JGFXlVW8PNW8peomuaFZpn8Eyy+Et4MnFl0R
	 PNsLhFRoCNonmAJ5v5FQtnWWbroSYGugJspALl2mTgNxJDBwSLK84V7xZHrCgG7I7e+8e
	 G4HEiSnt9TqdAIrmNV4Dlifol1LCUSkEVby7vr0r5b9hzFb/QQdCaHkDyoiZQS92xiGqR
	 cAUG7ODn10C6EZ62lbRpdFviOHNhp5mbVlVaaBQpqK2/tTjOU9J9EmBMkpSLdWo2ZKJDp
	 mUjpD2vV8H/EpUlMnvmsL1jiQjpPPTDjbcmn3/7P3AP7gm7RbHsDUKM3TIiJmipk93A==
X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015;
	a=rsa-sha256; c=relaxed/relaxed; t=1794301808;
	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=V2sIc8s24cF7L0auPIZIKq2tXAdoDlboyvzI445LkEU=;
	b=1mcXxsLgYDL/F4N/ifVHoq283PhiWS8gij6h6JWarm1+gzU5RGkG1NX4EVYHQmxNKz9G
	 RwwuU+HzfLAqEfsyMNrTT3xf4lTD8JHZdwcbMk6LN80AreQW8rxTrT6MYS3xZCiJalb0J
	 lT2Zd8Q/gw5hIBsCcu5Kz/p3N1j8Ya8tq6QwRa4iNsH/crO2V3Ct5HjQ7yjq0RVynnS5A
	 Z+0f1nNzFZdk9Vyl2eJjM5DzjLXYEfh3l5Bq2g/QUz+wHedyrLJ27hD701LI01OILUT6+
	 d0U2Nch4rjcWaRQT6pDHzfgXyAb1QyH2rCzU2mNk2ujov8/2z7l3nsR+FZNnisQZa5w==
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=Jw8UVGKd;
	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 4D31C606A331;
	Tue, 10 Nov 2026 09:10: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=Jw8UVGKd
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=1794301807;
	b=CPi6mB8ztGbBziYdwIokaEDicN9Nc6CqbFUZSIWUJM71KwlgQruC0JGXAhl2K4Gt0axx
	 LTzJptSyzVY6C+H1CTfop0NWsc1ma6v4R+DjszAiX9wgOQMLFr0ngRniAK2lMokmp3VU6
	 fYOB/DBdVHM+2r7FxUc8QTxSRz+CPFZdNjBtLuRk7mgs2BLaT0SqAYW7yCxjm/dVGw32E
	 OL613s/6XOtBqRqUler1C+uAbxvW2P6q/oNap8jyzZ208RjABcsyZ9Q/PRvmtaqwZRKgb
	 2i6O+UxKUnk58ZSGZg6SOleKgOlUmB7vN2iXSphVUX+tJ5WKrtaJiymhzXtHfj+5zEw==
X-ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015;
	a=rsa-sha256; c=relaxed/relaxed; t=1794301807;
	h=Received:DKIM-Signature:Received:Content-Type:MIME-Version:
	 Content-Transfer-Encoding:Subject:From:Message-Id:Date:References:
	 In-Reply-To:To:Cc;
	bh=V2sIc8s24cF7L0auPIZIKq2tXAdoDlboyvzI445LkEU=;
	b=a0ygNDCkYDUlukae5/tqN8BeMt2u39hn6g0hS0cbLECGab0jvdHyC3+DP4mphIhmvNBH
	 vgaiSSFaRweFbPodwb1tozpUJ/cKa7ToXXSKrRFyMpb/Zqfh8w0B4pRt1Md3dBzVrhHUZ
	 7kM+Jf0Odf9G0vi7uA37blAghoYET27Q+LqeM7VfyFaiKCrVvHCBgi3WUXSoZvQIH3KrN
	 CmXtih2qFht90OsbQAY32PHAEUZJnCGx6ufwIwaflycGXMhIg0wj4qC1eDMpx/9IXarTY
	 aM8i0DSWHnuI15//Ux8srs+PHmBYfo+qiXHdgo//yfKOn6cPHI3HQvgJjeacfvCNJ3Q==
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=Jw8UVGKd;
	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 2CC0D606A325
	for <netdev@vger.kernel.org>; Tue, 10 Nov 2026 09:10:06 +0000 (UTC)
X-Received: by smtp.kernel.org (Postfix) with ESMTPSA id A4ACF1F0089F;
	Tue, 10 Nov 2026 09:10:06 +0000 (UTC)
X-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org;
	s=k20260515; t=1794301806;
	bh=V2sIc8s24cF7L0auPIZIKq2tXAdoDlboyvzI445LkEU=;
	h=Subject:From:Date:References:In-Reply-To:To:Cc;
	b=Jw8UVGKd2ONnalWKfVYtAwywVyoKLKaUq+OK3m7OJnIU0UYzo4bSapeF3ZgME3PUB
	 d0l+RG5IBD9qhuQu2ksHv81HAF57qKgEmcwgZ2Iy+lBnLVQT8Yuevsgufq/vNIQ4RA
	 zZH5axFlCdICDCamQrTL/eLOaLNX38UkAbPsh8RHvErlW6705bD2INe50NCXtHpqkY
	 5zBDFHq13od9o6zhn+NuljcT6VrbrDxHcru4sRIrj83WFDU1Kae0rqD+8OtKxsRUVK
	 nuC37B0DeBm89bm0ZlZMO8BTrbHO75FdR9YPH1YmaS2wKb/3l2Yi839Kh7faLl0NVk
	 OobF2voftON8g==
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 9B102391B0A7;
	Tue, 10 Nov 2026 09:10: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: <20261104122927.1033747-1-edumazet@kernel.org>
X-Cc: davem@davemloft.net, kuba@kernel.org, pabeni@redhat.com, horms@kernel.org,
 dsahern@kernel.org, idosch@nvidia.com, netdev@vger.kernel.org, fw@strlen.de,
 pablo@netfilter.org, phil@nwl.cc