Re: [PATCH net-next v12 02/15] phylib: Add support for PHYs with broken forced mode
From: Birger Koblitz
Date: Sun Sep 27 2026 - 05:05:11 EST
On 17/09/2026 11:24 pm, netdev-bot+sashiko@xxxxxxxxxx wrote:
Thank you for your contribution! Sashiko AI review found 2 potentialNot sure this is an actuall problem, but will add check on phydev->drv as a guard.
issue(s) to consider:
Critical: 0 · High: 1 · Medium: 1 · Low: 0 (1)
- [High] NULL pointer dereference of `phydev->drv` in
phy_ethtool_ksettings_set() (drivers/net/phy/phy.c:1193-1195).
- [Medium] Incomplete gating of PHY_BROKEN_FORCED: the new flag isI don't think this is an issue as these are direct MII register writes,
consulted only in phy_ethtool_ksettings_set()…
the device will just not do what is requested, the PHY_BROKEN_FORCED was
introduced to prevent a stacktrace in phylink.
This comes for the relevant PHYs in a later patch of the series.
Pre-existing issues:
- [Low] Concern that PHY_BROKEN_FORCED has no in-tree user, making the
patch behaviorally inert (dead branch in phy_ethtool_ksettings_set())…