🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: linux.kernel.netdev
1 messages
1 total messages Started by Andrew Lunn Tue, 13 Oct 2026 02:36
Re: [PATCH net-next v5 3/4] net: phy: serialise attach and detach with PHY driver bind and unbind
#2594
Author: Andrew Lunn
Date: Tue, 13 Oct 2026 02:36
20 lines
6940 bytes
On Fri, Oct 09, 2026 at 09:05:49PM +0300, Aleksei Sviridkin wrote:
> phy_attach_direct() reads phydev->drv and d->driver with nothing held
> against the driver core, then calls into the driver through
> phy_init_hw() and phy_resume(). An unbind that runs during an attach
> can remove the driver under it, and an attach that runs while a driver
> is still probing can call config_init before the driver's probe has
> finished.
> 
> Found on a Keenetic KN-1012 (MT7981) while testing how a port copes
> with its PHY driver coming and going, on an OpenWrt 6.18 kernel.
> Unbinding the wan PHY driver through sysfs while "ip link set wan up"
> ran oopsed on the first attempt, with nothing added to widen the
> window, inside the driver's own calibration code:

Given the complexity, i'm don't think it is worth fixing. Unbinding
modules is not a normal use case, it is more of a hackers tool to
speed up development. So i can life with crashes like this.

      Andrew
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads