🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: linux.kernel.netdev
Article #20929

Re: [PATCH net] tun: complete the zerocopy buffer of packets consumed by XDP

#20929
From: patchwork-bot+netdevbpf
Date: Mon, 23 Nov 2026 11:50
24 lines
8892 bytes
Hello:

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

On Sat, 14 Nov 2026 00:28:41 +0100 you wrote:
> When vhost-net passes a zerocopy buffer that tun_get_user() does not use,
> because the packet spans too many pages, the packet is copied and the
> buffer completed. If the copy goes through build_skb() and native XDP
> consumes the packet (DROP, TX or REDIRECT), tun_get_user() returns
> without completing it: vhost-net never gets the descriptor back, and
> closing the vhost-net device then blocks forever.
> 
> [...]

Here is the summary with links:
  - [net] tun: complete the zerocopy buffer of packets consumed by XDP
    https://git.kernel.org/netdev/net/c/3896ae4adf5f

You are awesome, thank you!
-- 
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html
Technical Details
Message-ID: <179543460453.2338965.1975770060566006606.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-369289-linux-kernel-netdev=dewy.ru
References: <20261113232843.2338734-1-antonio@mandelbit.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-369289-linux-kernel-netdev=dewy.ru
From: patchwork-bot+netdevbpf@kernel.org
Newsgroups: linux.kernel.netdev
Subject: Re: [PATCH net] tun: complete the zerocopy buffer of packets consumed
 by
 XDP
Date: Mon, 23 Nov 2026 11:50:04 +0000
Organization: Usenet Network
Message-ID: <179543460453.2338965.1975770060566006606.git-patchwork-notify@kernel.org>
References: <20261113232843.2338734-1-antonio@mandelbit.com>
MIME-Version: 1.0
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: 8bit
Injection-Info: usenet.network;
	logging-data="3866431"; mail-complaints-to="abuse@usenet.network"
Cancel-Lock: sha1:NLVr9QGxWcM/AQRCrNpAn89K054= sha256:yOLLn3DzV2Mrz1PaxArRMjw6+FbpaspqIbz8B1Q1M9s=
	sha1:4kljACN6qrwPkGsJYDFXA30vw3c= sha256:I+IDOkBZ8VPK6j9dD5JzRMiJXFtweuTmt//+8cEZI+4=
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 EB4AE125DA1; Mon, 23 Nov 2026 14:50:21 +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 pYA5lYPKBl_d;
	Mon, 23 Nov 2026 14:50:18 +0300 (MSK)
X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.105.105.114; helo=tor.lore.kernel.org; envelope-from=netdev+bounces-369289-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 tor.lore.kernel.org (tor.lore.kernel.org [172.105.105.114])
	by mail.dewy.ru (Postfix) with ESMTPS id 137C0125DA0; Mon, 23 Nov 2026 14:50:09 +0300 (MSK)
X-Received: from smtp.subspace.kernel.org (conduit.subspace.kernel.org [100.77.114.92])
	by tor.lore.kernel.org (Postfix) with ESMTP id 7281D2A87B; Mon, 23 Nov 2026 11:50:07 +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=1795434607;
	b=npq5ed39C+O3+oCn9HY6cuQFmz/JpV2ii/ZRjpXR9/sGUzDxEW7xWJ6kFzRm1sIz+jMH
	 /CqT3QQrp+2IU81MZ/00qArdOjnHTxMgtce/H2wMRW0x4U2d5jJkIxmbkxbrXZx/kIGtA
	 Ef7ful5ZgP4iPRuqh/haWKMvRfoDfNeoZpzaMBVi0KBfuC1vZx9XFNPrX+wXoywlIO1Hg
	 ARKmbytP3WW0QDUsZrfr8Skl0licjNr/yZROOunmcMisMB6PgL5CdO623NRy88X0zwWrh
	 pnJrPHDwLvD0fC65vx5YITho3Ro/l+uysXfUXS+xOxXJetoj3FRmIKAlWoWL/XDS32A==
X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015;
	a=rsa-sha256; c=relaxed/relaxed; t=1795434607;
	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=ZuJcgSdqpqCKxNvlfebWKYAlIipyM0Z/cnY85S62i90=;
	b=RA3c7jlunsfG2L0tJmH1YKf8WJIAhSVL7Y3H5X7+bb3ZgWh/qpmq4LKJx8TecTK9eBbL
	 VqcE5Mp/9RFIgMYZmTO1eqoI6uZlTgLlbNPGRE03jlzv1InlFoN/vaY9hkfVd7q7MZnnb
	 X+JFrvTGxEqYqhNeXl0Dm5hQySO2rmAbAuUCNd0wGPpKuGzhYY6/uDLoIcAxDz8lgFj00
	 o/XPX12TxMqe+bgbI/vqd8Aj8PWwOHZkR+iZi/f8HFS85rwnPfrofxCiX/SU19CUaFxLM
	 H2elO8IJXkSYyh3wglr5uJ4x/k8Cjs1efZ+gY6jRa2yXX/9xVsykOAyufaCJ5CCq5aA==
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=RwawEDJe;
	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 E07BC606A333;
	Mon, 23 Nov 2026 11:50:06 +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=RwawEDJe
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=1795434606;
	b=RoMRP/scvU1ycCFeuu+U+za+AWEHLFA68NE1809Pg1LdSDlEV6y000BRC39eds+792g5
	 X7hJH9XSpIAHgvC2JNdZ+1qGuuHtNSkvp71hTIFpdeLkqMy5m4vBGcQqYu/mdgtb3ZPHs
	 kp+gUpCxYJeizXe45EkyF8TDYuCn9GkIviP1RgFjviW6JuDjTBr2OILeOBHCFpYNMCk80
	 FUxQr8TtzRxzSQvTR6s+M6VpZVAOFYXRDnBlsBFEchX3zABEMlaJ7jjTgfIeXmVVwuBjV
	 S7+5eP6UZQKB8NsrUaN9HfdlHU0PCc2EbTl9U2S3t9m9466MlKalBHP07elL1vWX3IA==
X-ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015;
	a=rsa-sha256; c=relaxed/relaxed; t=1795434606;
	h=Received:DKIM-Signature:Received:Content-Type:MIME-Version:
	 Content-Transfer-Encoding:Subject:From:Message-Id:Date:References:
	 In-Reply-To:To:Cc;
	bh=ZuJcgSdqpqCKxNvlfebWKYAlIipyM0Z/cnY85S62i90=;
	b=Ty877PkEoXZzRyTYEA6G+1SggWrj7howRxMWg/cxlvKdIIN9KwdwBbaf36T5G5Nbbvy1
	 PM/j2nBatAWWP0MooQldxEfo7dNq9tC7HnsUtYwVmaq7czsh/kNDkh8bJQ6dqppbpSD0s
	 i5DsrMNJ8wNe+QLnaE0QJUgBG9Ql5PY/zoPN275kaNrQZKfU3LXgezz5YJPHgwVcz0qk4
	 yBMdp9Ux30UWA+SPNfmwOi8uzvQAiCvtB6BLwk/s4MJUWspy7AMd/uXYwXtiriKIDHwl5
	 cGjs5ahyjf+pk8fl8zg+ubvltljuyx7ffrGp4cw5UEEvdASF6GPtR2onI0gSYr5qfjw==
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=RwawEDJe;
	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 09103606A31A;
	Mon, 23 Nov 2026 11:50:05 +0000 (UTC)
X-Received: by smtp.kernel.org (Postfix) with ESMTPSA id BCB521F000C4;
	Mon, 23 Nov 2026 11:50:05 +0000 (UTC)
X-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org;
	s=k20260515; t=1795434605;
	bh=ZuJcgSdqpqCKxNvlfebWKYAlIipyM0Z/cnY85S62i90=;
	h=Subject:From:Date:References:In-Reply-To:To:Cc;
	b=RwawEDJeLLTVq0aLOV92cxBvfS9B9ZdMV+04TVYTZXFileauuOJ14Am9MXJvzjVj2
	 Q4+wyPVkezsnePy8WF579jxQiY//X7b7L39OmWKuuC7nWo/9QeBGm4LvXEdpKPkKt5
	 HXuR/D6hzw1vWXJF2SJUSO8KEiXNRbGr+0uT+7NwdCrLuVs2FtLfkg8dN9ruPK7Nvf
	 E7pA1sQbjOFVRuoIRXOBr7qYW7JWIAhH8BGCYekpymmgYhUw/E2MNpn/uNBAD3EIxy
	 ngOqdXE+42tPtKnF4sDD4H0EjdEJtfPZOD4ESMNCo295o/8txDsQryjfYAjMW9gelj
	 3efTLb8A2Nxgw==
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 B45BE392ED9E;
	Mon, 23 Nov 2026 11:50:05 +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: <20261113232843.2338734-1-antonio@mandelbit.com>
X-Cc: willemdebruijn.kernel@gmail.com, jasowangio@gmail.com,
 andrew+netdev@lunn.ch, davem@davemloft.net, edumazet@kernel.org,
 kuba@kernel.org, pabeni@redhat.com, horms@kernel.org, mst@redhat.com,
 eperezma@redhat.com, ast@kernel.org, daniel@iogearbox.net, hawk@kernel.org,
 john.fastabend@gmail.com, sdf@fomichev.me, netdev@vger.kernel.org,
 virtualization@lists.linux.dev, bpf@vger.kernel.org