🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: linux.kernel.netdev
Article #8636

Re: [PATCH net] tun: drop batched packets while the device is down

#8636
From: patchwork-bot+netdevbpf
Date: Thu, 29 Oct 2026 16:30
25 lines
8585 bytes
Hello:

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

On Tue, 27 Oct 2026 18:18:27 +0800 you wrote:
> tun_sendmsg() handles TUN_MSG_PTR batches from vhost-net by calling
> tun_xdp_one() instead of tun_get_user(). But this path does not check
> IFF_UP, allowing packets from a guest to be injected into the host
> receive path while the device is administratively down.
> 
> Check IFF_UP in tun_xdp_one() before running XDP or building an skb.
> Drop the packet when the device is down, matching tun_get_user().
> 
> [...]

Here is the summary with links:
  - [net] tun: drop batched packets while the device is down
    https://git.kernel.org/netdev/net/c/8f44631ba02a

You are awesome, thank you!
-- 
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html
Technical Details
Message-ID: <179329141279.559085.15478130548672944710.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-353383-linux-kernel-netdev=dewy.ru
References: <20261027101830.85327-1-shaw.leon@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-353383-linux-kernel-netdev=dewy.ru
From: patchwork-bot+netdevbpf@kernel.org
Newsgroups: linux.kernel.netdev
Subject: Re: [PATCH net] tun: drop batched packets while the device is down
Date: Thu, 29 Oct 2026 16:30:12 +0000
Organization: Usenet Network
Message-ID: <179329141279.559085.15478130548672944710.git-patchwork-notify@kernel.org>
References: <20261027101830.85327-1-shaw.leon@gmail.com>
MIME-Version: 1.0
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: 8bit
Injection-Info: usenet.network;
	logging-data="2048016"; mail-complaints-to="abuse@usenet.network"
Cancel-Lock: sha1:MKWsoqlJ/v1l72BKTkmYgLghTP0= sha256:WxlIYhMXOuw8nd/rScWtuEgO5+TIrzMdbrYswak9EE4=
	sha1:GHETlUZjWnbxOQDBMwM/E4NiQsQ= sha256:rHa3gfgljSfwcRkixGjHSbcYZxku+UXbgVi8Iv845RI=
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 2F601125C65; Thu, 29 Oct 2026 19:31:41 +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 P-NJAvxl9YxP;
	Thu, 29 Oct 2026 19:31:38 +0300 (MSK)
X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.232.135.74; helo=sto.lore.kernel.org; envelope-from=netdev+bounces-353383-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 68F85125C6B; Thu, 29 Oct 2026 19:31:29 +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 1AF86602CB1; Thu, 29 Oct 2026 16:30:39 +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=1793291415;
	b=CLrznDtXDWQ06UPew/QbEVTHZ3OYgQaBZHJZv6wEpmZeFcZRgw93LiuiUInlb7jOtPDS
	 BCHM+jcfGBF8gZFQtu2p8agyr71HrO/kuetP8eIFyQMc4RG+imW4iNMXAcAftpgsYZPBu
	 mLl/udhdDfnzCTaSVZIhbNBMryesjj3Iz5B7bkRb1vTow8iSPdUY/ZWYhhUbHNRqavgE6
	 59zilbYKeTFUsNlwVxEKqaw8jsaC/l7xw125S1ce/VYarwIb6ISxySvI3O4TG0qDrCp1v
	 3sUKOVdL3nhOoOYB3BfhpXipImv1jGKHNbKdDVD4tUxd7WA+S9eo1ZGG/1BHZcJN8XQ==
X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015;
	a=rsa-sha256; c=relaxed/relaxed; t=1793291415;
	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=PLt2EAzlaTKDNOPaD9JM/CvAsTFKXTYjF72tAbeUw5U=;
	b=yKOrsWju/kiXqIFckCci76ZRy3YcDh9yyIDuw3U+fY2DHBEoN2v85BrvZm1topLb9yP4
	 VY+yAbpoXTGk31fRsqNyiJ0UT/UMo8LT1QlU4yDpM00YQd7Pl0Yzn+V9sbTWJhmmOmzU/
	 BdNuUhkExZaD1sZmKoeZvhkhVfSi/+KOv1Js0jfHfvQFeknCNjG1tmMbzMMvDWPh1LEET
	 SLd4Q5nTtzz1Gy2ZSj8ovS12aIBZhCaazAKIv75VsEWC0rvuBtHPvzveeYGocKvV/S7GC
	 VKjtGx99maDPCCXwIKkKU2L+7fMayOsSJJOS2WM0m3FX3AirlRtwpx4udmQJoqMWDOw==
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=dyQUUzTT;
	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 C672060A380B;
	Thu, 29 Oct 2026 16:30:15 +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=dyQUUzTT
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=1793291415;
	b=0wz5e5vxicdOb5cD9FKEvyUFzR+Eha2cuju9vJqO7IwWl1f8eobDaWe/pmWTz9b+6wTq
	 OteazQRF0KTHKHC+8q8Jng0mNSVDVTFRGYPnQ6O/10TkMwLuSLDTzUuiXe8qNz61roF/s
	 d5v0t/oKQ3VuTPk8HFR3JqYM79qlq+lCaS9EJOWWiHmyPz44FKviNLaNm5L1S/y9ZeCVS
	 ujaszQ03Or2FNTGr/U+RHcrDclbBi+wtuolR8O3nWsZeM2YgXDa0VSBOIlwaVs0omrLju
	 +jC8G5pdpcFBjGuJW4Mp/20cFGYKoyTJJQ4AnKqA4MdYr68tE51NGiqOECKbieXyjMg==
X-ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015;
	a=rsa-sha256; c=relaxed/relaxed; t=1793291415;
	h=Received:DKIM-Signature:Received:Content-Type:MIME-Version:
	 Content-Transfer-Encoding:Subject:From:Message-Id:Date:References:
	 In-Reply-To:To:Cc;
	bh=PLt2EAzlaTKDNOPaD9JM/CvAsTFKXTYjF72tAbeUw5U=;
	b=4SV2fpO8LY48/Pg4T62rUKwVMkG0V2x7KsGTQP55sXrKQ0ImiWGpoiWi1+E9Yr7nI/Nf
	 6MclC4gQ7DNO4TvDFgC0fNhoSy10uDH85QY4r2CEfenHKcchSCDgWc4z81BjOpMGaj3sC
	 7lplJRNY5E9SfdN6Zr0p64mleuqmgdtsnNZKbja0gTKrwD/pVeGQWBtME3AR0J32IsZrV
	 DgUg4Ux3HL74Vac5UjcuLNvsbi7egTwQJJdIChqmlBjyGcY+qI0acqi3OoqICI7rBsiao
	 8AGHcLx9okSdklV+S0lxBejUn2hhebZ7BLSE6GwjHjKywXInSWpCWtZyjsNBPE8nMeQ==
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=dyQUUzTT;
	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 A8E7060A262D
	for <netdev@vger.kernel.org>; Thu, 29 Oct 2026 16:30:14 +0000 (UTC)
X-Received: by smtp.kernel.org (Postfix) with ESMTPSA id 4750E1F01825;
	Thu, 29 Oct 2026 16:30:14 +0000 (UTC)
X-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org;
	s=k20260515; t=1793291414;
	bh=PLt2EAzlaTKDNOPaD9JM/CvAsTFKXTYjF72tAbeUw5U=;
	h=Subject:From:Date:References:In-Reply-To:To:Cc;
	b=dyQUUzTT/6xa6EMEgaQV6wGjJu+oBk1CVlzI0FgQb+lr7HEE+cfIQtt+C9mF/lDwj
	 akQe1C4X4Y4tLvYGq5uv8ad1n46FykGfhlz99HHwME5RIqjROOBBc8539cby/GXp2I
	 yaUhTotPXFfT2ddpc9S3BCro3LMuUrh9d0AE/q+/cUpopFsaJ0kLYRNPgFHsu7OLJL
	 Ab87uACYfgcxaj2iS8TTaPZArl+ihEMIx2lIxXgQzfCzqe1s5LVkMZJj/bXWMm+k8O
	 PocflK3t1UOFNZLzvc1HySBrXTpfbrimkBse3d4f0m/dbpVoLiq74FB1vuVuMTGNS+
	 Y1NEXbkQbSJLA==
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 401C73808223;
	Thu, 29 Oct 2026 16:30:14 +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: <20261027101830.85327-1-shaw.leon@gmail.com>
X-Cc: willemdebruijn.kernel@gmail.com, jasowangio@gmail.com,
 netdev@vger.kernel.org