[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-Id: <168988322273.13634.6290441658966987818.git-patchwork-notify@kernel.org>
Date: Thu, 20 Jul 2023 20:00:22 +0000
From: patchwork-bot+netdevbpf@...nel.org
To: Vladimir Oltean <vladimir.oltean@....com>
Cc: netdev@...r.kernel.org, davem@...emloft.net, edumazet@...gle.com,
kuba@...nel.org, pabeni@...hat.com, andrew@...n.ch,
hkallweit1@...il.com, linux@...linux.org.uk, f.fainelli@...il.com,
linux-kernel@...r.kernel.org
Subject: Re: [PATCH net] net: phy: prevent stale pointer dereference in phy_init()
Hello:
This patch was applied to netdev/net.git (main)
by Jakub Kicinski <kuba@...nel.org>:
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
Powered by blists - more mailing lists