Article View: linux.kernel.netdev
Article #9760Re: [PATCH net] net: phy: don't require RTNL to detach a PHY from an unregistered netdev
From: patchwork-bot+netdevbpf
Date: Mon, 02 Nov 2026 15:20
Date: Mon, 02 Nov 2026 15:20
24 lines
8830 bytes
8830 bytes
Hello:
This patch was applied to netdev/net.git (main)
by Paolo Abeni <pabeni@redhat.com>:
On Thu, 29 Oct 2026 21:24:23 +0700 you wrote:
> phy_detach_internal() reads dev->hwprov with rtnl_dereference(), but
> MAC drivers commonly attach and detach PHYs while their net_device is
> not registered, without holding RTNL. Before register_netdev(), a failed
> phylink_connect_phy() or phy_attach_direct() unwinds through
> phy_detach_internal(). After unregister_netdev(), a driver's remove path
> may call phy_disconnect(). Both trip lockdep:
>
> [...]
Here is the summary with links:
- [net] net: phy: don't require RTNL to detach a PHY from an unregistered netdev
https://git.kernel.org/netdev/net/c/d1cf56164dc2
You are awesome, thank you!
--
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html
Technical Details
Message-ID:
<179363280418.4162126.1315192404332122134.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-354857-linux-kernel-netdev=dewy.ruReferences:
<20261029142423.93573-1-ngocthang2710.1999@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-354857-linux-kernel-netdev=dewy.ru From: patchwork-bot+netdevbpf@kernel.org Newsgroups: linux.kernel.netdev Subject: Re: [PATCH net] net: phy: don't require RTNL to detach a PHY from an unregistered netdev Date: Mon, 02 Nov 2026 15:20:04 +0000 Organization: Usenet Network Message-ID: <179363280418.4162126.1315192404332122134.git-patchwork-notify@kernel.org> References: <20261029142423.93573-1-ngocthang2710.1999@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit Injection-Info: usenet.network; logging-data="2968866"; mail-complaints-to="abuse@usenet.network" Cancel-Lock: sha1:bBKh1aBdFexbsgGYbfBZDziT4Qw= sha256:+0qMHnL/M7U/j7ausg7+5zzyq9p5Wz/rY2oEYGHTDJg= sha1:FEXstbuxC4hWkNJvMCb7OMsMsF4= sha256:x4L8ask5Pwmi9wrZTFmNrtEbNxBYMCNjJRvkcOsOzk8= 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 1570D112595; Mon, 2 Nov 2026 19:32: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 HEp4vlzZblCP; Mon, 2 Nov 2026 19:32:18 +0300 (MSK) X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=104.64.211.4; helo=sin.lore.kernel.org; envelope-from=netdev+bounces-354857-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 sin.lore.kernel.org (sin.lore.kernel.org [104.64.211.4]) by mail.dewy.ru (Postfix) with ESMTPS id B56E51124DC; Mon, 2 Nov 2026 19:32:09 +0300 (MSK) X-Received: from smtp.subspace.kernel.org (conduit.subspace.kernel.org [100.77.114.92]) by sin.lore.kernel.org (Postfix) with ESMTP id 04DD6145158; Mon, 2 Nov 2026 16:04:13 +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=1793632807; b=wqJ1rvoN9IYbSOpcctXSOAlHceZNmBQCX2DcAdMLswO6pdwCq3VccQUgJN4NxXPG5o+Y EQiQbLEWk+D7g2Effg1Z3rALItQxX7sjCCwZ8/c999nONK6S0u0P4KdSRWEqU1S/GrdtC 5Fq/ZMbomTz86VL2fb2QnlZv46J/cBmcS/RLC3wxnwn9B5YHXyIkHrAgqxPxip9wWq1ED BCMri3hpZadZHcxhHLy19uN99A2I1GHopZGSeeJGTrFgDb9oMpgANGhp6BPAYAL0uIi9A zdfuu7gro4f+Az6eTB893HraRwfaScWJ00lylPIqBi69uBntV+A5Lix6ppCNauguyzA== X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1793632807; 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=98BKo5w330jTx1Gy6YlkHbY1yuhdZVskGGPDYtobJq0=; b=cgbuFW0IKYxZk3u4UM7yyUAd5fjI/BKTLT8EGS0c8XWeODFO6Gtay6xaxWcf8HRBEu8F +ckKSmZiiWxwg4eVz8AvGGtJ7k4292kbm3DnW75vqjzHHxrQ8mpetvuy5vbNh6xTt3+NC DacrWXW7kqV+3TUBcKQiOFeH6qgLEuZepcrmc8w8rSCxD7wuELABKKPWCVNM3ctgPLab4 eBLJr7KH33LDEGkr+tLB8up62lzWlgUFzydrERG6IvTxyCg025cErVBJqalYyL1blAmDo J6Gm6K24wDsDQjn0XJC08Qh3ASeZVhTA8nNQDM8eVXgpTv2wsA8MgSp++NmfavDPjyw== 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=iwWTSD5W; 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 265856080A61; Mon, 2 Nov 2026 15:20:07 +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=iwWTSD5W 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=1793632806; b=B5UQ343sJGBSNFHaVfKsFaaEFfOfq1Ad+HYXBgqmEfm5YkswB9+siOgHUKHDGIVgvoL8 4DQhO7HKRVm8kVAOnMGtSAMqxN7/+QCmxR+Y4j64fVFBXBjNjdErih0H7iXF8Fy8dUhNG sY2c8ybZ2xqsVZfU2kZPcsTz5tXTW5Ecp8m+NIBkFmGRQYENbCAxLP8Mva6jT0dnbe+PM m5yG9HRVx1+TILLSSsGBaci24rbmid00AAex4lGgVzPDKN+vf109wfuHDKUSN6VT/OJpM 4KvDgnsxA/HX1Ku06m705mHU5bDM0i9oa/+SHVAXS7xTx1F0MaXE5GJGmr0y+c43J3w== X-ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1793632806; h=Received:DKIM-Signature:Received:Content-Type:MIME-Version: Content-Transfer-Encoding:Subject:From:Message-Id:Date:References: In-Reply-To:To:Cc; bh=98BKo5w330jTx1Gy6YlkHbY1yuhdZVskGGPDYtobJq0=; b=rbbFZCdToCPGaQdZhrOr7jXaVu+awrxJ31ladcsRjP96meVLzxgT9hYPFF2oahABaDn2 i6l95ggVD361jWsclLG1v1pTLJawTzkvXo696nuosJeaXGECv6nYyHhPs6idzntLMUAAB qpyDLXYjyZHtpbJfGoPUCpDP3XhWQEXQ5A4SXUABdzd/CFPVjrrg+4PQy7A17d5nmYvmT hde2NHPfiuGMzu90GQgDosOx25NMuSNxvjvJZy7lHbe/YTUO46RrQKf4wFoS+cnKI9tq2 AzYyQJ6CRzfCm9RVU34v8oX7xsp29ywGT5WcpLsaK1NDHNSdmHTWI2wIcvoo3pKJYNQ== 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=iwWTSD5W; 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 01E166080A58; Mon, 2 Nov 2026 15:20:05 +0000 (UTC) X-Received: by smtp.kernel.org (Postfix) with ESMTPSA id 89E8C1F00A27; Mon, 2 Nov 2026 15:20:05 +0000 (UTC) X-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1793632805; bh=98BKo5w330jTx1Gy6YlkHbY1yuhdZVskGGPDYtobJq0=; h=Subject:From:Date:References:In-Reply-To:To:Cc; b=iwWTSD5WLWW4XSsvAVImoe5KOYqvc5JTJ8hl8HqRR7FhIBz9ufxFl8hnBdxktykIG mBtZG/fsmS/quex5qei5snc1zSWuDTPMtptkZ4rCdKDhxw6Ga3YIAmGZiLncc6aaRZ yyomUwdl4/vtid7EfjQ4P0V2GpwzJBY1VmOc13XsgtL7Y/Z676igrv8NiOnB8ertn8 pzoqSP9t3aa9f7bCTYU2B0uesjuamAn48OzihiwZfhRzv5zMgjlY2qqR7aC2EapEvd wWTH1U9IXi3uzQXr7wlhnfrNdDVtvgUQ1WTIry36SfD2MUlxVKAcpbr6/MGiysP8aB FDSW8M2pqpwag== 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 7D47A380821F; Mon, 2 Nov 2026 15:20: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: <20261029142423.93573-1-ngocthang2710.1999@gmail.com> X-Cc: andrew@lunn.ch, hkallweit1@gmail.com, linux@armlinux.org.uk, davem@davemloft.net, edumazet@kernel.org, kuba@kernel.org, pabeni@redhat.com, kory.maincent@bootlin.com, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, syzbot+583f42a41879bb60de32@syzkaller.appspotmail.com