From: Maxime Chevallier <maxime.chevallier@bootlin.com>
To: Paolo Abeni <pabeni@redhat.com>, netdev-bot+sashiko@kernel.org
Cc: davem@davemloft.net, andrew@lunn.ch, kuba@kernel.org,
edumazet@google.com, linux@armlinux.org.uk, hkallweit1@gmail.com,
netdev@vger.kernel.org, linux-kernel@vger.kernel.org,
thomas.petazzoni@bootlin.com, christophe.leroy@csgroup.eu,
herve.codina@bootlin.com, f.fainelli@gmail.com,
vladimir.oltean@nxp.com, kory.maincent@bootlin.com,
kabel@kernel.org, o.rempel@pengutronix.de, nicveronese@gmail.com,
horms@kernel.org, mwojtas@chromium.org,
romain.gantois@bootlin.com, daniel@makrotopia.org,
dimitri.fedrau@liebherr.com, frank.wunderlich@linux.dev,
p.ameruoso@live.it, f@lex.la, chleroy@kernel.org
Subject: Re: [PATCH net-next v19 06/10] net: phy: phy_port: Store information about a port's upstream
Date: Wed, 21 Oct 2026 11:47:12 +0200 [thread overview]
Message-ID: <65a821ad-e219-4f1e-b76d-6cc8502eb117@bootlin.com> (raw)
In-Reply-To: <130d9b15-238e-48c6-a293-f48e7d1ada06@redhat.com>
Hi Paolo,
On 10/21/26 11:24, Paolo Abeni wrote:
> On 10/19/26 15:33, 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: 0 · Low: 1
>>
>> 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] net: phy: UAF in upstream_port when connect_phy fails
>
> I think this concern has not been reported nor answered in previous
> revision?
Well it's been reported as low on v17, but this issue isn't correct from
what I see from the bot's analysis. The bus->phydev pointer is correctly
cleared, and for the upstream_port part, it's also not correct. the case
explained in the report can't happen :(
> Same for the ops-lock related in the next patch.
So for the ops-lock, for now we simply don't use phy_port when using ops-lock,
and there's a separate series that has been sent that addresses the ops-lock
crash when phylink_create is called prior to the netdev ops being set :
https://lore.kernel.org/r/20261008022656.3592191-1-mmyangfl@gmail.com
>
> I understand that the high prio comment on patch 9 still relates to
> PHY-in-SFP unbinding and should be addressed separately, am I correct?
Yes indeed :)
>
> The problem is that the net-next PR should be coming very soon and
> the backlog is still very long, we need a fast clear-cut.
Sorry I didn't aswer sashiko's feedback sooner, it's getting a bit
overwhelming sifting through these, and when I tell sashiko that an
issue isn't correct on vXX, it comes back with a similar comment on
vXX+1, with a different severity :(
I understand your point as a maintainer though, I'll make sure I reply
faster :(
I've done my best to test this series in and out on various HW, including
the MAC -> PHY -> PHY setup that sashiko is concerned about, and I did
not reproduce its reports.
Maxime
>
> /P
next prev parent reply other threads:[~2026-10-21 9:47 UTC|newest]
Thread overview: 21+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-10-16 13:30 [PATCH net-next v19 00/10] net: phy_port: SFP modules representation and phy_port listing Maxime Chevallier
2026-10-16 13:30 ` [PATCH net-next v19 01/10] net: phy: phy_link_topology: Add a helper for opportunistic alloc Maxime Chevallier
2026-10-16 13:30 ` [PATCH net-next v19 02/10] net: phy: phy_link_topology: Track ports in phy_link_topology Maxime Chevallier
2026-10-19 13:32 ` netdev-bot+sashiko
2026-10-16 13:30 ` [PATCH net-next v19 03/10] net: phylink: Register a phy_port for MAC-driven SFP cages Maxime Chevallier
2026-10-19 13:33 ` netdev-bot+sashiko
2026-10-16 13:30 ` [PATCH net-next v19 04/10] net: phy: Create SFP phy_port before registering upstream Maxime Chevallier
2026-10-19 13:33 ` netdev-bot+sashiko
2026-10-16 13:31 ` [PATCH net-next v19 05/10] net: phy: Represent PHY-less SFP modules with phy_port Maxime Chevallier
2026-10-19 13:33 ` netdev-bot+sashiko
2026-10-16 13:31 ` [PATCH net-next v19 06/10] net: phy: phy_port: Store information about a port's upstream Maxime Chevallier
2026-10-19 13:33 ` netdev-bot+sashiko
2026-10-21 9:24 ` Paolo Abeni
2026-10-21 9:47 ` Maxime Chevallier [this message]
2026-10-16 13:31 ` [PATCH net-next v19 07/10] net: phy: phy_link_topology: Add a helper to retrieve ports Maxime Chevallier
2026-10-19 13:33 ` netdev-bot+sashiko
2026-10-16 13:31 ` [PATCH net-next v19 08/10] netlink: specs: Add ethernet port listing with ethtool Maxime Chevallier
2026-10-19 13:33 ` netdev-bot+sashiko
2026-10-16 13:31 ` [PATCH net-next v19 09/10] net: ethtool: Introduce ethtool command to list ports Maxime Chevallier
2026-10-19 13:33 ` netdev-bot+sashiko
2026-10-16 13:31 ` [PATCH net-next v19 10/10] Documentation: networking: Update the phy_port infrastructure description Maxime Chevallier
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=65a821ad-e219-4f1e-b76d-6cc8502eb117@bootlin.com \
--to=maxime.chevallier@bootlin.com \
--cc=andrew@lunn.ch \
--cc=chleroy@kernel.org \
--cc=christophe.leroy@csgroup.eu \
--cc=daniel@makrotopia.org \
--cc=davem@davemloft.net \
--cc=dimitri.fedrau@liebherr.com \
--cc=edumazet@google.com \
--cc=f.fainelli@gmail.com \
--cc=f@lex.la \
--cc=frank.wunderlich@linux.dev \
--cc=herve.codina@bootlin.com \
--cc=hkallweit1@gmail.com \
--cc=horms@kernel.org \
--cc=kabel@kernel.org \
--cc=kory.maincent@bootlin.com \
--cc=kuba@kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux@armlinux.org.uk \
--cc=mwojtas@chromium.org \
--cc=netdev-bot+sashiko@kernel.org \
--cc=netdev@vger.kernel.org \
--cc=nicveronese@gmail.com \
--cc=o.rempel@pengutronix.de \
--cc=p.ameruoso@live.it \
--cc=pabeni@redhat.com \
--cc=romain.gantois@bootlin.com \
--cc=thomas.petazzoni@bootlin.com \
--cc=vladimir.oltean@nxp.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
all inboxes | Powered by JetHome®