From: Stefano Munari <stefanomunari.sm@gmail.com>
To: netdev-bot+sashiko@kernel.org
Cc: Thangaraj.S@microchip.com, UNGLinuxDriver@microchip.com,
andrew+netdev@lunn.ch, davem@davemloft.net, edumazet@kernel.org,
kuba@kernel.org, linux-kernel@vger.kernel.org,
linux-usb@vger.kernel.org, linux@armlinux.org.uk,
netdev@vger.kernel.org, o.rempel@pengutronix.de,
pabeni@redhat.com, rmk+kernel@armlinux.org.uk,
stefanomunari.sm@gmail.com
Subject: Re: [PATCH net] net: usb: lan78xx: resume phylink on non-reset USB resume
Date: Thu, 5 Nov 2026 01:06:39 +0100 [thread overview]
Message-ID: <20261105000639.7070-1-stefanomunari.sm@gmail.com> (raw)
In-Reply-To: <179375001506.488856.4516083483989818643@kernel.org>
On Tue, 03 Nov 2026 23:53:35 +0000, Sashiko wrote:
> - [Medium] RTNL self-deadlock.
An open interface holds an autopm reference, so this requires a runtime
resume with a *stale* EVENT_DEV_OPEN, i.e., a failed lan78xx_open().
This error path is fixed separately, moved to net-next per Andrew's review
since the failure is considered theoretical:
https://lore.kernel.org/netdev/20261102211119.8738-1-stefanomunari.sm@gmail.com
https://lore.kernel.org/netdev/1449a6a1-670c-4d1d-bb98-51f92e32d848@lunn.ch
On system resume lan78xx_resume() is not called with RTNL held, so
taking rtnl_lock() is safe there.
> - [Medium] Self-hang caused by re-entering runtime PM from inside the
> USB resume callback.
Same precondition as above. The hang needs lan78xx_resume() to run
inside a runtime resume, with the interface still RPM_SUSPENDED. An
open interface holds an autopm reference, so its runtime PM status stays
RPM_ACTIVE across system sleep. On system resume the nested
usb_autopm_get_interface() from the MDIO accessors therefore only bumps
the usage count and returns immediately.
> - [Medium] On a normal (non-reset) resume, phylink is now restarted
> after the MAC datapaths are already enabled.
Pre-existing on the reset_resume path, can be a follow-up.
> - [High] This problem wasn't introduced by this patch, but
> lan78xx_suspend() inverts the lock order.
Pre-existing, can be a follow-up. An actual deadlock needs a
non-freezable RTNL holder opening or closing this interface during
system suspend: very unlikely in practice. In the commit message,
"mirroring lan78xx_suspend()" refers only to the dev_open condition.
Stefano
next prev parent reply other threads:[~2026-11-05 0:07 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-02 23:51 Stefano Munari
2026-11-03 7:37 ` Oleksij Rempel
2026-11-03 23:53 ` netdev-bot+sashiko
2026-11-05 0:06 ` Stefano Munari [this message]
2026-11-10 2:54 ` patchwork-bot+netdevbpf
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=20261105000639.7070-1-stefanomunari.sm@gmail.com \
--to=stefanomunari.sm@gmail.com \
--cc=Thangaraj.S@microchip.com \
--cc=UNGLinuxDriver@microchip.com \
--cc=andrew+netdev@lunn.ch \
--cc=davem@davemloft.net \
--cc=edumazet@kernel.org \
--cc=kuba@kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-usb@vger.kernel.org \
--cc=linux@armlinux.org.uk \
--cc=netdev-bot+sashiko@kernel.org \
--cc=netdev@vger.kernel.org \
--cc=o.rempel@pengutronix.de \
--cc=pabeni@redhat.com \
--cc=rmk+kernel@armlinux.org.uk \
/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®