🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: linux.kernel.netdev
Article #11387

Re: [PATCH net 0/3] net: ethernet: disable async work before teardown

#11387
From: Andrew Lunn
Date: Wed, 04 Nov 2026 21:20
19 lines
8694 bytes
On Wed, Nov 04, 2026 at 02:32:42PM +0800, BeaCox wrote:
> Three Ethernet drivers free the netdev while an asynchronously queued
> work item can still dereference it.  The queue sites and the handlers
> differ, but the lifetime rule is the same: stop the producer, drain the
> work, then free the object.

No need for a wall of text nobody is going to read. The commit message
should be terse. Please tell your LLM that.

Do any of these problems bother anybody?

If not, please target net-next.


    Andrew

---
pw-bot: cr
Technical Details
Message-ID: <d1c79ee3-a0e6-4835-8c0f-88744fe29715@lunn.ch>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-356963-linux-kernel-netdev=dewy.ru
References: <20261104063245.23402-1-0xbeac@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-356963-linux-kernel-netdev=dewy.ru
From: andrew@lunn.ch (Andrew Lunn)
Newsgroups: linux.kernel.netdev
Subject: Re: [PATCH net 0/3] net: ethernet: disable async work before teardown
Date: Wed, 4 Nov 2026 22:20:18 +0100
Organization: Usenet Network
Message-ID: <d1c79ee3-a0e6-4835-8c0f-88744fe29715@lunn.ch>
References: <20261104063245.23402-1-0xbeac@gmail.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Injection-Info: usenet.network;
	logging-data="3522747"; mail-complaints-to="abuse@usenet.network"
Cancel-Lock: sha1:SWJZDK0k5GbpADmXXINzDas67P4= sha256:LH4peSm/+R4kHzLh72F9rx1+GoXd57JXX4bG6mbke40=
	sha1:7F40oW1gTWc4SrS0ZxwLJCKVKyw= sha256:VM6dPGAWNvD56vg29sjyG79jtUXtI+DDadu52+1YdT0=
Content-Disposition: inline
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 28BD8112E10; Thu,  5 Nov 2026 03:13:02 +0300 (MSK)
X-Virus-Scanned: Debian amavisd-new at usenet.network
X-Spam-Flag: NO
X-Spam-Score: -3.05
X-Spam-Status: No, score=-3.05 tagged_above=-9999 required=6.31
	tests=[DCC_REPUT_70_89=0.1, DKIM_SIGNED=0.1, DKIM_VALID=-0.1,
	DKIM_VALID_AU=-0.1, HEADER_FROM_DIFFERENT_DOMAINS=0.249,
	MAILING_LIST_MULTI=-1, RCVD_IN_DNSWL_MED=-2.3, SPF_HELO_NONE=0.001,
	SPF_PASS=-0.001, URIBL_BLOCKED=0.001] autolearn=ham autolearn_force=no
X-Authentication-Results: mail.dewy.ru (amavisd-new); dkim=pass (1024-bit key)
	header.d=lunn.ch
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 NxLnOlQQp2_Q;
	Thu,  5 Nov 2026 03:12:54 +0300 (MSK)
X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.105.105.114; helo=tor.lore.kernel.org; envelope-from=netdev+bounces-356963-linux-kernel-netdev=dewy.ru@vger.kernel.org; receiver=<UNKNOWN> 
X-Authentication-Results: OpenDMARC; dmarc=fail (p=none dis=none) header.from=lunn.ch
X-Received: from tor.lore.kernel.org (tor.lore.kernel.org [172.105.105.114])
	by mail.dewy.ru (Postfix) with ESMTPS id 06526112E06; Thu,  5 Nov 2026 03:12:45 +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 2ABB11689B1; Wed,  4 Nov 2026 22:00:17 +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=1793827231;
	b=G/+Iom4DnloDvqHgpPmtfXWvR9z2SSvf+TrYRo5DWFk60/OpEfDz1/YrGjUMGKfGBMRu
	 mJoQOko3z36E2xPbTJbM8JWatJlFUuQHoBy2E/023AuMkfix6R0Fajve9MCeJheXr9n+S
	 EjHaRcdCkqlJAhxXHLbwIPyeXDZ4Yoc5AnGikugy5nXQkDRdqGRf3xBzvXJBwCqQHgw8W
	 svf4PWhKDZhFn1eBQwpoBLGCKZeUf3Spx9MnWrl0Jeryw+Z3sI1nJ6x7KeDWKGJeUaeem
	 eW18RxwZYteGrM/Ke6Io3Uhuk1Bg6bCYOhl4iRhOfeCUqIyzZj1sUTkegWkjt784eEw==
X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015;
	a=rsa-sha256; c=relaxed/relaxed; t=1793827231;
	h=X-Original-To:Received:DMARC-Filter:DKIM-Signature:Received:Date:
	 From:To:Cc:Subject:Message-ID:References:X-Mailing-List:List-Id:
	 List-Post:List-Help:List-Subscribe:List-Unsubscribe:List-Owner:
	 Precedence:MIME-Version:Content-Type:Content-Disposition:In-Reply-To;
	bh=FrGxsTdCdc6qgTFxU8Grw7WOtNLPMD9rEo6YljyHB+s=;
	b=yURL/9nTkTOO32B+GuNDCALTTbTu2Tob/ubiCbFAnjDTq1ZodhDre8oY1RT06UjnZ9x6
	 rIcW0XDiFDUBWQyoUqCN6rIHE/YaM+J1jqZ/Ip7ZZROPPtygxPq1XAxhZxHCZfoRBCaHf
	 HWtCIiKlC7XKjC76NssAAT97jIbhG8ZSxES2bp410QtetSZ7PpALA/P81j3hnv6L/hMB7
	 JQgDI+0yB2OxoTe7BMpzeJADtquREcSu5pbleW0uIX5Niczx+hnC8qSQKDfpeNkt2AJKm
	 BzXvDx8co1agdvVEMtsER4vAVVEMk2z0aE6/BkFRSiJyJg9d2zKzzwY/wpAaF1j+nHA==
X-ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; 
	dkim=pass header.d=lunn.ch header.i=@lunn.ch header.a=rsa-sha256 header.s=20171124 header.b=HeP9FOMs;
	dmarc=pass header.from=lunn.ch;
	spf=pass smtp.mailfrom=lunn.ch;
	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 6A6FF606A864;
	Wed,  4 Nov 2026 21:20:31 +0000 (UTC)
X-Authentication-Results: smtp.subspace.kernel.org;
	dkim=pass (1024-bit key, unprotected) header.d=lunn.ch header.i=@lunn.ch header.a=rsa-sha256 header.s=20171124 header.b=HeP9FOMs
X-Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=156.67.10.101
X-ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none;
	t=1793827225;
	b=4kSR5TjvVWOlJhQ+AT7E3ORlT+Qy5sv9f8L+289XTCipkogVm0Wz1l2L/Y2xnwDIQ3oU
	 f7zSU2DFAGEVpBcoAUxiVRctjAM1BU5x/eItXC4Gf9gElVSg/ZSYpBNtCAesINNJggpFv
	 A5YYqKf4EK2N3YEE66IFjiVHV8RYGjTnbhq1oJBbu2QIBkxyu05W6dJZb4CbzTUIdEJLL
	 wMqdGMWIKF5mWJI293w4cEnPq64dyocxb4AaZO5dWWozoHsPVmMBN0myvvJe+WuqEidjc
	 7W6M43KnGXWqP9cOVspk/Kc31qd28sdoUr3K2W1ymk/t7obXVkP3rgVYBqGJzQihQ/g==
X-ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015;
	a=rsa-sha256; c=relaxed/relaxed; t=1793827225;
	h=DMARC-Filter:DKIM-Signature:Received:Date:From:To:Cc:Subject:
	 Message-ID:References:MIME-Version:Content-Type:Content-Disposition:
	 In-Reply-To;
	bh=FrGxsTdCdc6qgTFxU8Grw7WOtNLPMD9rEo6YljyHB+s=;
	b=EKouK8T4PbJemTp454NIBsGapdfQ1NGQL6iBYpDzsm9cFItJaqPR+TmSra0hMWqy4v5V
	 hcLyAG+ljMwEU9N9g1KKsoxnjoYy3fvRmQv12fL4wx48X1x5gesiHavjONcDn+gbfEKdX
	 TJJ85b7CN+Azi5icCVPWDz6Bex7m0vHK2ew41AAbX3viYAdAQHC7VP6oxGOWe3ySdlsFt
	 k9VC0IzQt4wbLtg9s7zhRtmuhddbyK2VqRvOI/sCbC89VWCX53D1mv9enfEOlxL1YG+SQ
	 C+AD0qddpEDvdnK9WHwukSB+s312xZd6gYPIR0LIYZlaCC7YeVU9bnaClafLe7TNo6w==
X-ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; 
	dmarc=pass header.from=lunn.ch;
	spf=pass smtp.mailfrom=lunn.ch;
	dkim=pass header.d=lunn.ch header.i=@lunn.ch header.a=rsa-sha256 header.s=20171124 header.b=HeP9FOMs;
	arc=none smtp.remote-ip=156.67.10.101
X-Received: from vps0.lunn.ch (vps0.lunn.ch [156.67.10.101])
	(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)
	 key-exchange ECDHE (prime256v1) server-signature ECDSA (prime256v1) server-digest SHA256)
	(No client certificate requested)
	by smtp.subspace.kernel.org (Postfix) with ESMTPS id 1250E606B3B7;
	Wed,  4 Nov 2026 21:20:24 +0000 (UTC)
X-DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 1250E606B3B7
X-Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=lunn.ch
X-Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=lunn.ch
X-DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lunn.ch;
	s=20171124; h=In-Reply-To:Content-Disposition:Content-Type:MIME-Version:
	References:Message-ID:Subject:Cc:To:From:Date:From:Sender:Reply-To:Subject:
	Date:Message-ID:To:Cc:MIME-Version:Content-Type:Content-Transfer-Encoding:
	Content-ID:Content-Description:Content-Disposition:In-Reply-To:References;
	bh=FrGxsTdCdc6qgTFxU8Grw7WOtNLPMD9rEo6YljyHB+s=; b=HeP9FOMsIlnnGHHsw7JD43qbbu
	J0BnErIZWlaquTZA0D5oTIOvfjqcim6xuRF645y43YhyparG1rWp9bZP4pb3jx7LojQonCBgs0lEy
	uBFAvDZxgrUQeMKAdZmbb39QhjxtV5Ks9uSnNO/ksYJ7UfeJjpsVA/JJ4HskyP8utCeM=;
X-Received: from andrew by vps0.lunn.ch with local (Exim 4.94.2)
	(envelope-from <andrew@lunn.ch>)
	id 1xOiP4-00EOFu-4K; Wed, 04 Nov 2026 22:20:18 +0100
X-Cc: Andrew Lunn <andrew+netdev@lunn.ch>,
	"David S. Miller" <davem@davemloft.net>,
	Eric Dumazet <edumazet@kernel.org>,
	Jakub Kicinski <kuba@kernel.org>, Paolo Abeni <pabeni@redhat.com>,
	netdev@vger.kernel.org, linux-kernel@vger.kernel.org
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: <20261104063245.23402-1-0xbeac@gmail.com>