Article View: linux.kernel.netdev
Article #11008Re: [PATCH net v3] vhost/vsock: size receive SKBs from declared payload
From: patchwork-bot+netdevbpf
Date: Wed, 04 Nov 2026 14:30
Date: Wed, 04 Nov 2026 14:30
31 lines
9232 bytes
9232 bytes
Hello:
This patch was applied to netdev/net.git (main)
by Paolo Abeni <pabeni@redhat.com>:
On Mon, 5 Oct 2026 08:51:01 +0900 you wrote:
> vhost_vsock_alloc_skb() sizes the skb from iov_length(), the total guest
> descriptor length. virtio_transport_inc_rx_pkt() instead adds hdr->len to
> rx_bytes and buf_used, and budgets each queued skb as SKB_TRUESIZE(0). The
> guest controls the descriptor length and hdr->len independently.
>
> A guest can therefore provide a 64 KiB descriptor while declaring a zero
> payload. The descriptor-sized skb remains queued, rx_bytes and buf_used
> remain unchanged, and only the fixed queue-entry budget limits retention.
> This is not a lifetime leak: the skb is freed when dequeued or at socket
> teardown. Repeating this across connections can nevertheless exhaust host
> memory. On Linux v7.2, 455 such descriptors retained 30,255,680 bytes for
> a 262,144-byte receive buffer; a full-payload control retained 265,984
> bytes.
>
> [...]
Here is the summary with links:
- [net,v3] vhost/vsock: size receive SKBs from declared payload
https://git.kernel.org/netdev/net/c/d5e912448cd9
You are awesome, thank you!
--
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html
Technical Details
Message-ID:
<179380260530.2859910.7796955617386470662.git-patchwork-notify@kernel.org>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-356508-linux-kernel-netdev=dewy.ruReferences:
<20261004235101.1464007-1-4ncienth@gmail.com>Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-356508-linux-kernel-netdev=dewy.ru From: patchwork-bot+netdevbpf@kernel.org Newsgroups: linux.kernel.netdev Subject: Re: [PATCH net v3] vhost/vsock: size receive SKBs from declared payload Date: Wed, 04 Nov 2026 14:30:05 +0000 Organization: Usenet Network Message-ID: <179380260530.2859910.7796955617386470662.git-patchwork-notify@kernel.org> References: <20261004235101.1464007-1-4ncienth@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit Injection-Info: usenet.network; logging-data="3409625"; mail-complaints-to="abuse@usenet.network" Cancel-Lock: sha1:ImhUKvaSmrdLYOPZl7MyJjE/hJQ= sha256:5H0o24bKVK8+YSVLq2gVnYZokoKPMV5ppfpo164BsGY= sha1:z4pT6tiA6g5RtyO2CnndLc/dq3o= sha256:pWobTec4kdIZNdrQQ6whll6s5Flm1CRA3l6s2yPbYxk= 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 6996B112C0E; Wed, 4 Nov 2026 17:35:51 +0300 (MSK) X-Virus-Scanned: Debian amavisd-new at usenet.network X-Spam-Flag: NO X-Spam-Score: -3.501 X-Spam-Status: No, score=-3.501 tagged_above=-9999 required=6.31 tests=[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 F7csI6_JtwDD; Wed, 4 Nov 2026 17:35:47 +0300 (MSK) X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.232.135.74; helo=sto.lore.kernel.org; envelope-from=netdev+bounces-356508-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 sto.lore.kernel.org (sto.lore.kernel.org [172.232.135.74]) by mail.dewy.ru (Postfix) with ESMTPS id C7E5F112C05; Wed, 4 Nov 2026 17:35:39 +0300 (MSK) X-Received: from smtp.subspace.kernel.org (conduit.subspace.kernel.org [100.77.114.92]) by sto.lore.kernel.org (Postfix) with ESMTP id ED06960B042; Wed, 4 Nov 2026 14:30:26 +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=1793802618; b=nwpPuVZs3HpsachwonM6dn3CKZ7Hq/TmCH8iXkNGzitcqTiTjixUsw1gowuP/edMQ79O qKqqGt2Ac7PCYkCp9r/wGT0gLuk3FnMWs+BK7XS+PLpzQqHp+s0gT5cnw69rZ9wz1N9aK T8mbgQKQcoqYhF1yoS8eXHuPbb4iNcJR+E790ULqWy/IUf3we+JZIV9kl31ElZJQxgEts 1YDXhmY4f2YA2GaeDqMAkddLGREwK0t3Ife6DPNiluwqIQf9PU3xKVR0ETKf6mY3KEArf ORe6e3cAZhlGqtGbiX3M27QO/eQB1svrIJ6JuzDaL7IuYug+ELp5Rft3WTQYrRAGmXw== X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1793802618; 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=1rJSq25xfu3r2W4rjWjb/4F/VogDdfQBOz7FAnFZlOs=; b=Mg8qh0vz/fuwH4D95cXh2Qn7u0N5ry10HfS6sTEwyD7BzY9RznBo3KHa/bb7iW1OhvcU B8aTdXCexNASmOBQEVTPBfNfS0YOBZtWh6eMEBwaRyStCovyIWgbkodU/tmkHW+thDqV0 gaK01B0zmsTGfhDiDwad1fMMS7Irase0mV58SN1x4ISk26JCJFGnMcONCRsggZagJuwzm +fNe/Yj2T023/US1gtG/MjC7B8EMOeqlvRFhw+1W034X3hDVOmF5yxxLvM+VqX8RfpDLm RbeZbxTqQrBY3KTLhiWgEkB8UARrxHVaiyqCxd+fkWlBf88dobKA4U0sphgvryzBLig== 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=QjCNgeZB; 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 1100C606A332; Wed, 4 Nov 2026 14:30:18 +0000 (UTC) X-Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key, unprotected) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=QjCNgeZB 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=1793802607; b=RgIAG1KY2nYM9/Lh/hKe/5mBtt3kV7Ant41nfl2K1LylHoq5bQ/h+WY9Dneb4VHndbDP rGT1VLircKEdYCCdrSLwgeM0caMR5lTa++4sCF3Ta4grmnRkjEu74uCYmeedRkHCqju08 OubU0iZ6GDGrR2g6BnbpNUTEMAP1q891AQLuUGjFlo2e2yYCtTQYJdyJ2WWaxHE/bJS6Y amMd2mN7m9ltL564G6FWQuAY7kqmgAeqvNB0a0mZvnDPFQNOomVKaA5qX937ZqSFhc9lI y8qVjBScOjjq8/RA9/6sw80Ht1+i5B+NsG7yJyviO29R9Vb8qClIIaHPCv0vRl3t2NQ== X-ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1793802607; h=Received:DKIM-Signature:Received:Content-Type:MIME-Version: Content-Transfer-Encoding:Subject:From:Message-Id:Date:References: In-Reply-To:To:Cc; bh=1rJSq25xfu3r2W4rjWjb/4F/VogDdfQBOz7FAnFZlOs=; b=Z13UG53pR0u8OknXnm+svqSzQ0s8YVwqTdvEufZVRz9+bMKDVXMeImAkPv+UBiBNmoMW xpI14Y5EqsuEzElbOjvb3fgBjHEwT4Xr/bhtWktY4knqaB9JIi5CaBbg/NaE8mJ6Mkp1P xQ5+j4oLVtPi7VjiK3IJRe2NJNtCPs7p8MfKlms8N5AX3gLOf1DOZI4QOzAw0OEMUo9u/ 4h3GRXgUQjmKy/DsCzLno7AuM7cLbuLfG8cnjGdA6HtDp6JxMATvGcoDgT3szF7IIwnPe FUX5MYL6Y3A6iKbOmMeIX9+V7NrCpu5Yk+OknM/f8lo2PVtcqXQwjY+fS6SnsGhv2kg== 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=QjCNgeZB; 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 DF690606A333; Wed, 4 Nov 2026 14:30:06 +0000 (UTC) X-Received: by smtp.kernel.org (Postfix) with ESMTPSA id 869071F000C1; Wed, 4 Nov 2026 14:30:06 +0000 (UTC) X-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1793802606; bh=1rJSq25xfu3r2W4rjWjb/4F/VogDdfQBOz7FAnFZlOs=; h=Subject:From:Date:References:In-Reply-To:To:Cc; b=QjCNgeZBhcXlxUpDzVBXCY5jzSpVvDTRjqyc6e9WwHp1rlNb+FNTQsyE0cyc8hV+7 hWyzp+k2cI2DITnXUGCB0vLQOLLGN2rU/QG35rOoEdNMQXOgSEq5ovOuDS74gtE6Bl 77yBdNddg6V6uk77OyWyrnh4iybVvGcLtl6fajUXNPluSQhzL+Wmi2HxAQ/drbVKNC jEWGNNAPeDmNkHpIog2I+cmMzAqafs5nXIPMeP9iVkcIISUmD930Nkh8Sd5x6oL7iK QUx+0AIrv1i6WVvU7PUfkUsiV2SvSykoRa4pOkeKSoLGrVcjo39z5uSLGOx2XNPHKI TSL+lOa/1T0Vg== 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 7D1D539E8A46; Wed, 4 Nov 2026 14: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: <20261004235101.1464007-1-4ncienth@gmail.com> X-Cc: stefanha@redhat.com, sgarzare@redhat.com, mst@redhat.com, jasowangio@gmail.com, eperezma@redhat.com, xuanzhuo@linux.alibaba.com, bobby.eshleman@bytedance.com, davem@davemloft.net, will@kernel.org, kvm@vger.kernel.org, virtualization@lists.linux.dev, netdev@vger.kernel.org, linux-kernel@vger.kernel.org