From: Florian Fainelli <florian.fainelli@broadcom.com>
To: Simon Horman <horms@kernel.org>, netdev-bot+sashiko@kernel.org
Cc: 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: Mon, 30 Nov 2026 10:32:43 -0800 [thread overview]
Message-ID: <6bd219a7-72c2-423c-9e73-b2a6980c0995@broadcom.com> (raw)
In-Reply-To: <20261128150858.GI31322@horms.kernel.org>
On 11/28/26 07:08, Simon Horman wrote:
> 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.
Thanks, yes, this is mostly defensive at this point, but it helps keep
the noise floor level down with Sashiko such that subsequent changes are
more meaningful when reviewed.
--
Florian
prev parent reply other threads:[~2026-11-30 18:32 UTC|newest]
Thread overview: 7+ 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
2026-11-30 18:32 ` Florian Fainelli
2026-11-30 18:32 ` Florian Fainelli [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=6bd219a7-72c2-423c-9e73-b2a6980c0995@broadcom.com \
--to=florian.fainelli@broadcom.com \
--cc=andrew+netdev@lunn.ch \
--cc=bcm-kernel-feedback-list@broadcom.com \
--cc=davem@davemloft.net \
--cc=edumazet@kernel.org \
--cc=horms@kernel.org \
--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