Page MenuHomeFreeBSD

e6000sw: fix incorrect locking
ClosedPublic

Authored by kp on Aug 10 2022, 4:40 PM.
Tags
None
Referenced Files
F82247419: D36117.diff
Fri, Apr 26, 10:53 PM
Unknown Object (File)
Mar 12 2024, 11:00 PM
Unknown Object (File)
Mar 12 2024, 11:00 PM
Unknown Object (File)
Mar 12 2024, 10:52 PM
Unknown Object (File)
Feb 21 2024, 9:19 PM
Unknown Object (File)
Jan 1 2024, 2:43 PM
Unknown Object (File)
Dec 30 2023, 11:58 AM
Unknown Object (File)
Dec 20 2023, 4:29 AM
Subscribers

Details

Summary

During attach we release the lock to call e6000sw_attach_miibus(), which
calls mii_attach(). The mii_attach() function calls miibus_readreg() /
miibus_writereg(). However, these are set to be
e6000sw_readphy_locked().

That is, the read/write phy functions do not acquire the lock, but
expect to be called while locked. Simply do not unlock and relock while
calling mii_attach().

Sponsored by: Rubicon Communications, LLC ("Netgate")

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

kp requested review of this revision.Aug 10 2022, 4:40 PM
This revision was not accepted when it landed; it landed in state Needs Review.Aug 19 2022, 9:10 PM
This revision was automatically updated to reflect the committed changes.