From: Simon Horman <horms@kernel.org>
To: netdev-bot+sashiko@kernel.org
Cc: florian.fainelli@broadcom.com, netdev@vger.kernel.org,
rosenp@gmail.com, rafal@milecki.pl,
bcm-kernel-feedback-list@broadcom.com, andrew+netdev@lunn.ch,
davem@davemloft.net, edumazet@kernel.org, kuba@kernel.org,
pabeni@redhat.com, linux-kernel@vger.kernel.org
Subject: Re: [PATCH net] net: bgmac: unregister the fixed PHY on probe failure and removal
Date: Sat, 28 Nov 2026 15:08:58 +0000 [thread overview]
Message-ID: <20261128150858.GI31322@horms.kernel.org> (raw)
In-Reply-To: <179548085846.3135.4498796165187686052@kernel.org>
On Tue, Nov 24, 2026 at 12:40:58AM +0000, netdev-bot+sashiko@kernel.org wrote:
> Thank you for your contribution! Sashiko AI review found 2 potential
> issue(s) to consider.
>
> Critical: 0 · High: 1 · Medium: 1 (1) · Low: 0
>
> If you believe none of the issues are legitimate, please reply to each
> issue of Medium severity or higher and explain why the AI is wrong.
> If any of them are legitimate and you plan to respin, please let patchwork
> know by including "pw-bot: cr" as a separate line at the end of your reply
> (one such reply per series is enough).
>
> - [High] The new bgmac_phy_disconnect() reads phydev after
> phy_disconnect() may have freed it, which is a use-after-free on the…
> - [Medium] bgmac_phy_disconnect() picks the release method from the
> device tree, not from how the connected PHY was registered.
Hi Florian,
I'm suspecting that neither of the above two issues manifest
with in-tree DT. And if so, I'm thinking they are more theoretical
bugs than manifesting ones.
But none the less, maybe it would be nice to make things a bit more robust
at some point. Either by prohibiting configurations that lead to the
conditions described at setup-time. Or making the tear-down more symmetric
with setup.
Nonetheless, I agree this patch fixes a bug in a minimal way appropriate
for net.
Reviewed-by: Simon Horman <horms@kernel.org>
...
prev parent reply other threads:[~2026-11-28 15:09 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-20 0:30 [PATCH net] net: bgmac: unregister the fixed PHY on probe failure and removal Florian Fainelli
2026-11-20 0:32 ` netdev-bot+sinfo
2026-11-20 0:34 ` Florian Fainelli
2026-11-24 0:40 ` netdev-bot+sashiko
2026-11-28 15:08 ` Simon Horman [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20261128150858.GI31322@horms.kernel.org \
--to=horms@kernel.org \
--cc=andrew+netdev@lunn.ch \
--cc=bcm-kernel-feedback-list@broadcom.com \
--cc=davem@davemloft.net \
--cc=edumazet@kernel.org \
--cc=florian.fainelli@broadcom.com \
--cc=kuba@kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=netdev-bot+sashiko@kernel.org \
--cc=netdev@vger.kernel.org \
--cc=pabeni@redhat.com \
--cc=rafal@milecki.pl \
--cc=rosenp@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox