Re: [patch net-next v3] net: ethtool: fix unheld rtnl lock
From: Maxime Chevallier
Date: Tue Aug 27 2024 - 03:23:49 EST
Hi,
On Mon, 26 Aug 2024 14:38:53 -0300
Diogo Jahchan Koike <djahchankoike@xxxxxxxxx> wrote:
> ethnl_req_get_phydev should be called with rtnl lock held.
>
> Reported-by: syzbot+ec369e6d58e210135f71@xxxxxxxxxxxxxxxxxxxxxxxxx
> Closes: https://syzkaller.appspot.com/bug?extid=ec369e6d58e210135f71
> Fixes: 31748765bed3 ("net: ethtool: pse-pd: Target the command to the requested PHY")
> Signed-off-by: Diogo Jahchan Koike <djahchankoike@xxxxxxxxx>
This looks good to me.
Even though RTNL is released between the .validate() and .set()
calls, should the PHY disappear, the .set() callback handles that.
Reviewed-by: Maxime Chevallier <maxime.chevallier@xxxxxxxxxxx>
Thanks,
Maxime