Re: [PATCH net] net: phy: prevent stale pointer dereference in phy_init()

From: patchwork-bot+netdevbpf
Date: Thu Jul 20 2023 - 16:00:28 EST


Hello:

This patch was applied to netdev/net.git (main)
by Jakub Kicinski <kuba@xxxxxxxxxx>:

On Thu, 20 Jul 2023 03:02:31 +0300 you wrote:
> mdio_bus_init() and phy_driver_register() both have error paths, and if
> those are ever hit, ethtool will have a stale pointer to the
> phy_ethtool_phy_ops stub structure, which references memory from a
> module that failed to load (phylib).
>
> It is probably hard to force an error in this code path even manually,
> but the error teardown path of phy_init() should be the same as
> phy_exit(), which is now simply not the case.
>
> [...]

Here is the summary with links:
- [net] net: phy: prevent stale pointer dereference in phy_init()
https://git.kernel.org/netdev/net/c/1c613beaf877

You are awesome, thank you!
--
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html