netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH net 0/2] Fix missing rtnl lock in suspend path
@ 2025-01-22 16:19 Kory Maincent
  2025-01-22 16:19 ` [PATCH net 1/2] net: ravb: " Kory Maincent
  2025-01-22 16:19 ` [PATCH net 2/2] net: sh_eth: " Kory Maincent
  0 siblings, 2 replies; 13+ messages in thread
From: Kory Maincent @ 2025-01-22 16:19 UTC (permalink / raw)
  To: Paul Barker, Niklas Söderlund, Andrew Lunn, David S. Miller,
	Eric Dumazet, Jakub Kicinski, Paolo Abeni, Mikhail Ulyanov,
	Sergei Shtylyov
  Cc: Thomas Petazzoni, Niklas Söderlund, Claudiu Beznea, netdev,
	linux-renesas-soc, linux-kernel, Kory Maincent

Fix the suspend path by ensuring the rtnl lock is held where required.
Calls to open, close and WOL operations must be performed under the
rtnl lock to prevent conflicts with ongoing ndo operations.

Discussion about this issue can be found here:
https://lore.kernel.org/netdev/20250120141926.1290763-1-kory.maincent@bootlin.com/

While working on the ravb fix, it was discovered that the sh_eth driver
has the same issue. This patch series addresses both drivers.

I do not have access to hardware for either of these MACs, so it would
be great if maintainers or others with the relevant boards could test
these fixes.

Signed-off-by: Kory Maincent <kory.maincent@bootlin.com>
---
Kory Maincent (2):
      net: ravb: Fix missing rtnl lock in suspend path
      net: sh_eth: Fix missing rtnl lock in suspend path

 drivers/net/ethernet/renesas/ravb_main.c | 19 +++++++++++++++----
 drivers/net/ethernet/renesas/sh_eth.c    |  4 ++++
 2 files changed, 19 insertions(+), 4 deletions(-)
---
base-commit: b1754a69e7be48a64b3cdb0df60a96d97959da73
change-id: 20250122-fix_missing_rtnl_lock_phy_disconnect-fc1d6f5db705

Best regards,
-- 
Köry Maincent, Bootlin
Embedded Linux and kernel engineering
https://bootlin.com


^ permalink raw reply	[flat|nested] 13+ messages in thread

end of thread, other threads:[~2025-01-23 14:38 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-01-22 16:19 [PATCH net 0/2] Fix missing rtnl lock in suspend path Kory Maincent
2025-01-22 16:19 ` [PATCH net 1/2] net: ravb: " Kory Maincent
2025-01-22 17:22   ` Niklas Söderlund
2025-01-22 18:33   ` Sergey Shtylyov
2025-01-22 18:53     ` Sergey Shtylyov
2025-01-23  9:30   ` Paul Barker
2025-01-23 11:33   ` Claudiu Beznea
2025-01-23 14:08     ` Kory Maincent
2025-01-23 14:17       ` Claudiu Beznea
2025-01-23 14:38         ` Kory Maincent
2025-01-22 16:19 ` [PATCH net 2/2] net: sh_eth: " Kory Maincent
2025-01-22 17:12   ` Niklas Söderlund
2025-01-22 18:39   ` Sergey Shtylyov

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).