🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: linux.kernel.netdev
Article #13584

Re: [PATCH net] net: wait for in-flight device unregistrations before netns dismantle

#13584
From: patchwork-bot+netdevbpf
Date: Tue, 10 Nov 2026 02:54
28 lines
8909 bytes
Hello:

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

On Thu,  5 Nov 2026 15:45:43 +0100 you wrote:
> A device can be unregistered by a context other than the cleanup_net()
> of its own netns, for instance a veth whose peer in another netns is
> deleted. If references on it are still held, it stays in
> netdev_wait_allrefs_any(), which rebroadcasts NETDEV_UNREGISTER every
> second.
> 
> Meanwhile its netns can be dismantled: default_device_exit_batch()
> only takes care of devices still listed in the netns, then pernet exit
> handlers free their state, and finally struct net is freed while the
> device still points to it.
> 
> [...]

Here is the summary with links:
  - [net] net: wait for in-flight device unregistrations before netns dismantle
    https://git.kernel.org/netdev/net/c/c164a431a646

You are awesome, thank you!
-- 
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html
Technical Details
Message-ID: <179427928217.3612825.16476819658097015103.git-patchwork-notify@kernel.org>
Path: mbox-mo1.pugleaf.net!news-lax.pugleaf.net!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-359782-linux-kernel-netdev=dewy.ru
References: <20261105144543.1624238-1-edumazet@kernel.org>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-lax.pugleaf.net!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-359782-linux-kernel-netdev=dewy.ru
From: patchwork-bot+netdevbpf@kernel.org
Newsgroups: linux.kernel.netdev
Subject: Re: [PATCH net] net: wait for in-flight device unregistrations before
 netns dismantle
Date: Tue, 10 Nov 2026 02:54:42 +0000
Organization: Usenet Network
Message-ID: <179427928217.3612825.16476819658097015103.git-patchwork-notify@kernel.org>
References: <20261105144543.1624238-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="506037"; mail-complaints-to="abuse@usenet.network"
Cancel-Lock: sha1:w673Q5EscflX6cXF1zZ0Bh+K7qE= sha256:Uqnl4PaclVthpyzEiF2OB6ikjUOuBZxZFYJPcZfShao=
	sha1:L5tKeOep2d2TkhQmk0GLaxK1Il8= sha256:PvJnKFEtP2YIvfj02S4USo2ghXxWSjD0h2t/bUDBxfs=
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 07F3D1139F6; Tue, 10 Nov 2026 05:58:37 +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 bExe3SmcjVxB;
	Tue, 10 Nov 2026 05:58:33 +0300 (MSK)
X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.232.135.74; helo=sto.lore.kernel.org; envelope-from=netdev+bounces-359782-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 A1BDC1139E9; Tue, 10 Nov 2026 05:58:25 +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 71CCF6230CC; Tue, 10 Nov 2026 02:54:59 +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=1794279285;
	b=ORLcelUcATyHgj6I5KBCXKumLz8uWA36omWE54xJiDWqH3yO5kACcwpAxU/fxO2+DEmM
	 7Qvoc8He+WAUAmYltpKyRh+NSdQd17E2RJvFakCgiqPEQT9dDFRlTZceDFZ3fMZXuKrhB
	 KdLSAJ+N2JNUnlBkZtJ8HquMKaIGTv6kZHbbKc0BpIfl0UzYm23nstXITxqdC0zKVwRTB
	 d6rD0S7eQacI6fDpIwMUkCOIkuTPVR5NpeMaW4B3s7EXQZHcY1Fk4lQcmRNyaMdTZ0dgo
	 SXddFnslxmCdg/dWRD6pSslpseQXxH8i/mYl0OmiuZFLhp8Yeh1ags/fkQBV1rciwBA==
X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015;
	a=rsa-sha256; c=relaxed/relaxed; t=1794279285;
	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=kLvh7tubLXt3zphZJJDCBQWndhkqnqxKlZmt/Xu44wc=;
	b=U3JXKx+gcoC6nGXUajQ1V4XHjBvm++4z451rP1wv8Pc/89YrH1n9qldIQ1vI2IaAL4BF
	 I1WZLkTmUQML64M0EOlXbynl76sKW9A2f2TkMdE0H3BzdHbgKBEoOajq0YRVA5DCpZa2y
	 CRCNo/kUlXOwyvcNvxr+V3PjM80NQOx/TCQ6WIpDZ4i7PwIa8L7ZyaUWlrq5HHnc53O5W
	 FH9ymNEechYPY7+wqS0GqPzgBbzmy5H1orBVNaXCD/DTfOoF2nj600RmH4El6N4vWUzQb
	 lGfwNM1xiNf3gPkswtRrIj3u7wOrhi6SrIhEhxm7YVAQIBTj59rygKcR2m0xbkmWKbw==
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=V8K8CueU;
	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 1E013606A326;
	Tue, 10 Nov 2026 02:54:45 +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=V8K8CueU
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=1794279284;
	b=IHoGlxeg/w5ZnK9LpuP5G/7LNlZD/yUm50MLpV9ic0OCX3e3kFmpWGU9Yu3THx79zoM5
	 v6kJqNe2zA5YzQRboqaiR8MDGZEdFWBZTrczSTmP67Mcd+4WMlbL8YkJMVVhvvlLzHpp9
	 uXMVPSYaoxBvRyUbRVKzzg9ZuEsPAFnPowzkJoVSsyqJcVAzez3GvB9kf5Fo9A2b2oDVG
	 WsHb18NZrq0f5vCiLiSnfScmmeUbtpn1A53Lil+ABrKanaQL5dFTzROMQ5mG8k8R8LxqK
	 IZ1fcPcZ6PD17rS8QMzbMOtf61VTJd4+enF1xwCpyNhlhIvoHaKDO8ZMJXNQfDJ7IJA==
X-ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015;
	a=rsa-sha256; c=relaxed/relaxed; t=1794279284;
	h=Received:DKIM-Signature:Received:Content-Type:MIME-Version:
	 Content-Transfer-Encoding:Subject:From:Message-Id:Date:References:
	 In-Reply-To:To:Cc;
	bh=kLvh7tubLXt3zphZJJDCBQWndhkqnqxKlZmt/Xu44wc=;
	b=KBn8H3fgZZ+lmO2SF7duNafv3Db4cPR4wmMjW71Cg1EYRZe8IGT1qKWze+K1BI4qqWWA
	 ftuFkX3UebMLbTiJgHoDaj3CJDMjOJ0PiK0wcAU6f+wj52Z8xwn4vq40H/Tg5ZNi6wOrv
	 wBgvxoNNRzuSh5n63eqmv6CPQRma4vrscmHDq/1TLmuxCreqq9DKLDXr12zxJNwLWpCGk
	 Tn4Jr5VuqJ0wbzGauUp5oapk+Kdedb3QheOkw+NWQFr2bbuBLELDZ+ftue679YX/qnolF
	 TPb1RgW5zIPzNZm8BAhv/xqaGxFlpj7J81kUzwWyngDmLovJZHmf2waP4T/6kx8IIDg==
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=V8K8CueU;
	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 F28E7606A338;
	Tue, 10 Nov 2026 02:54:43 +0000 (UTC)
X-Received: by smtp.kernel.org (Postfix) with ESMTPSA id A3B871F008A2;
	Tue, 10 Nov 2026 02:54:43 +0000 (UTC)
X-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org;
	s=k20260515; t=1794279283;
	bh=kLvh7tubLXt3zphZJJDCBQWndhkqnqxKlZmt/Xu44wc=;
	h=Subject:From:Date:References:In-Reply-To:To:Cc;
	b=V8K8CueUa+6xjowSiaNRMxVZs8lztAZ7vRCatxa0tl5NkVniMWQxcEU/GcYV7Jcnw
	 oY1vOVluIx1tPe1uWXfi1PXCTQwJJ3oWmZ6HOwr5hFrsZjloYpP5ZHOjxuVmZTtaNV
	 8e9oqVh7BezJmfSTVmLhckjxsTTSXp3eB1C1hBRMagcmsRL22q0rjPzntUyUK10VRx
	 fzM9cVrGz82s+tk/5UDy2SZnRboutchcVBa4IlLh2xy83V+n+Ysmcf34w7WyEPrZmh
	 /mBPJ3XfF2hqz3iJ5VTUM8MReAOUDveKLNtC0WcAWb66ZqSKDewIlIrBwLwZgQULOb
	 PSAxu6VCEw8qQ==
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 9B03E391AFCB;
	Tue, 10 Nov 2026 02:54:43 +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: <20261105144543.1624238-1-edumazet@kernel.org>
X-Cc: davem@davemloft.net, kuba@kernel.org, pabeni@redhat.com, horms@kernel.org,
 netdev@vger.kernel.org, stable@vger.kernel.org,
 syzbot+1269fe6cc2016008124e@syzkaller.appspotmail.com,
 bsdhenrymartin@gmail.com, kuniyu@google.com, namangulati@google.com,
 pablo@netfilter.org, fw@strlen.de