linux/drivers/net/ethernet
Kory Maincent 13c9e38509 net: sh_eth: Fix missing rtnl lock in suspend/resume path
[ Upstream commit b95102215a ]

Fix the suspend/resume path by ensuring the rtnl lock is held where
required. Calls to sh_eth_close, sh_eth_open and wol operations must be
performed under the rtnl lock to prevent conflicts with ongoing ndo
operations.

Fixes: b71af04676 ("sh_eth: add more PM methods")
Tested-by: Niklas Söderlund <niklas.soderlund+renesas@ragnatech.se>
Reviewed-by: Sergey Shtylyov <s.shtylyov@omp.ru>
Signed-off-by: Kory Maincent <kory.maincent@bootlin.com>
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
History 2025-02-08 09:58:08 +01:00
..
3com net: annotate data-races around dev->if_port 2024-05-08 18:51:30 -07:00
8390 net: ethernet: 8390: ne2k-pci: remove unused struct 'ne2k_pci_card' 2024-05-28 15:21:12 +02:00
actions net: ethernet: actions: Convert to platform remove callback returning void 2023-09-20 09:06:37 +01:00
adaptec net: ethernet: starfire: remove unused structs 2024-05-28 15:21:04 +02:00
adi net: ethernet: adi: adin1110: Fix some error handling path in adin1110_read_fifo() 2024-10-07 16:49:43 -07:00
aeroflex net: ethernet: aeroflex: fix potential memory leak in greth_start_xmit_gbit() 2024-10-15 09:59:20 -07:00
agere net: annotate writes on dev->mtu from ndo_change_mtu() 2024-05-07 16:19:14 -07:00
alacritech net: alacritech: Partially revert "net: alacritech: Switch to use dev_err_probe()" 2024-09-03 15:28:57 -07:00
allwinner net: ethernet: allwinner: Convert to platform remove callback returning void 2023-09-20 09:06:37 +01:00
alteon net: alteon: Convert tasklet API to new bottom half workqueue mechanism 2024-07-31 18:59:46 -07:00
altera net: annotate writes on dev->mtu from ndo_change_mtu() 2024-05-07 16:19:14 -07:00
amazon net: ena: Extend customer metrics reporting support 2024-09-12 18:01:17 -07:00
amd net: ethernet: xgbe: re-add aneg to supported features in PHY quirks 2025-01-23 17:22:59 +01:00
apm net: annotate writes on dev->mtu from ndo_change_mtu() 2024-05-07 16:19:14 -07:00
apple net: apple: bmac: Use IRQF_NO_AUTOEN flag in request_irq() 2024-09-12 20:35:04 -07:00
aquantia net: atlantic: convert comma to semicolon 2024-09-06 18:05:53 -07:00
arc net: arc: rockchip: fix emac mdio node support 2024-11-07 13:39:42 +01:00
asix net: asix: fix fortify warning 2023-12-12 13:20:37 -08:00
atheros net: ag71xx: remove dead code path 2024-09-13 19:53:47 -07:00
broadcom bgmac: reduce max frame size to support just MTU 1500 2025-02-08 09:58:08 +01:00
brocade bna: adjust 'name' buf size of bna_tcb and bna_ccb structures 2024-07-12 01:56:48 +01:00
cadence net: macb: Avoid 20s boot delay by skipping MDIO bus registration for fixed-link PHY 2024-10-15 10:40:47 -07:00
calxeda net: annotate writes on dev->mtu from ndo_change_mtu() 2024-05-07 16:19:14 -07:00
cavium net: thunderx: Remove setting of RX software timestamp 2024-09-09 17:44:41 -07:00
chelsio cxgb4: Avoid removal of uninserted tid 2025-01-17 13:40:38 +01:00
cirrus net: cirrus: use u8 for addr to calm down sparse 2024-09-23 06:58:37 +00:00
cisco enic: Report some per queue statistics in ethtool 2024-09-13 21:17:12 -07:00
cortina net: ethernet: cortina: Implement .set_pauseparam() 2024-06-01 16:07:29 -07:00
davicom net: davicom: fix UAF in dm9000_drv_remove 2025-02-08 09:58:06 +01:00
dec move asm/unaligned.h to linux/unaligned.h 2024-10-02 17:23:23 -04:00
dlink net: ethernet: dlink: replace deprecated macro 2024-08-14 12:20:55 +01:00
emulex be2net: fix potential memory leak in be_xmit() 2024-10-19 16:06:08 -05:00
engleder tsnep: Remove setting of RX software timestamp 2024-09-03 15:17:48 -07:00
ezchip net: fill in MODULE_DESCRIPTION()s for nps_enet 2024-01-24 15:12:20 -08:00
faraday net: ftgmac100: fixed not check status from fixed phy 2024-10-09 17:56:55 -07:00
freescale net: fec: implement TSO descriptor cleanup 2025-02-08 09:58:02 +01:00
fujitsu net: handle HAS_IOPORT dependencies 2024-04-08 11:56:56 +01:00
fungible net/funeth: Remove setting of RX software timestamp 2024-09-09 17:44:41 -07:00
google eth: gve: use appropriate helper to set xdp_features 2025-01-17 13:40:39 +01:00
hisilicon net: hns3: fix oops when unload drivers paralleling 2025-02-08 09:58:02 +01:00
huawei net: hinic: Fix cleanup in create_rxqs/txqs() 2024-12-27 14:02:04 +01:00
i825xx net/sun3_82586: fix potential memory leak in sun3_82586_send_packet() 2024-10-19 16:04:20 -05:00
ibm net: ibm: emac: mal: add dcr_unmap to _remove 2024-10-09 19:27:09 -07:00
intel iavf: allow changing VLAN state without calling PF 2025-02-08 09:58:04 +01:00
litex net: fill in MODULE_DESCRIPTION()s for litex 2024-01-24 15:12:21 -08:00
marvell octeon_ep_vf: remove firmware stats fetch in ndo_get_stats64 2025-02-08 09:57:24 +01:00
mediatek net: airoha: Fix wrong GDM4 register definition 2025-02-08 09:58:02 +01:00
mellanox net/mlxfw: Drop hard coded max FW flash image size 2025-02-08 09:57:24 +01:00
meta eth: fbnic: don't disable the PCI device twice 2024-12-05 14:02:00 +01:00
micrel net: ks8851: Fix potential TX stall after interface reopen 2024-07-11 11:52:29 +02:00
microchip net: sparx5: fix the maximum frame length register 2024-12-19 18:13:14 +01:00
microsoft net: mana: Fix irq_contexts memory leak in mana_gd_setup_irqs 2024-12-19 18:13:18 +01:00
moxa net: ethernet: moxa:: Convert to platform remove callback returning void 2023-09-20 09:06:39 +01:00
mscc net: mscc: ocelot: fix incorrect IFH SRC_PORT field in ocelot_ifh_set_basic() 2024-12-27 14:02:02 +01:00
myricom net: annotate writes on dev->mtu from ndo_change_mtu() 2024-05-07 16:19:14 -07:00
natsemi net: annotate writes on dev->mtu from ndo_change_mtu() 2024-05-07 16:19:14 -07:00
neterion net: annotate writes on dev->mtu from ndo_change_mtu() 2024-05-07 16:19:14 -07:00
netronome nfp: bpf: prevent integer overflow in nfp_bpf_event_output() 2025-01-23 17:22:50 +01:00
ni net: annotate writes on dev->mtu from ndo_change_mtu() 2024-05-07 16:19:14 -07:00
nvidia net: annotate writes on dev->mtu from ndo_change_mtu() 2024-05-07 16:19:14 -07:00
nxp net: ethernet: nxp: Convert to platform remove callback returning void 2023-09-20 09:06:40 +01:00
oki-semi net: annotate writes on dev->mtu from ndo_change_mtu() 2024-05-07 16:19:14 -07:00
packetengines move asm/unaligned.h to linux/unaligned.h 2024-10-02 17:23:23 -04:00
pasemi netdev_features: convert NETIF_F_LLTX to dev->lltx 2024-09-03 11:36:43 +02:00
pensando ionic: use ee->offset when returning sprom data 2024-12-27 14:02:03 +01:00
qlogic net/qed: allow old cards not supporting "num_images" to work 2024-12-14 20:03:05 +01:00
qualcomm qca_spi: Make driver probing reliable 2024-12-19 18:13:15 +01:00
rdc r6040: Fix kmemleak in probe and remove 2022-12-15 12:48:34 +01:00
realtek rtase: Fix a check for error in rtase_alloc_msix() 2025-01-17 13:40:41 +01:00
renesas net: sh_eth: Fix missing rtnl lock in suspend/resume path 2025-02-08 09:58:08 +01:00
rocker rocker: fix link status detection in rocker_carrier_init() 2024-12-14 20:03:57 +01:00
samsung net: annotate writes on dev->mtu from ndo_change_mtu() 2024-05-07 16:19:14 -07:00
seeq net: seeq: Fix use after free vulnerability in ether3 Driver Due to Race Condition 2024-09-19 15:17:30 +02:00
sfc net: ethtool: only allow set_rxnfc with rss + ring_cookie if driver opts in 2025-02-08 09:58:06 +01:00
sgi net: ethernet: sgi: Convert to platform remove callback returning void 2023-09-20 09:06:40 +01:00
silan ethernet: use eth_hw_addr_set() in unmaintained drivers 2021-10-18 13:20:38 +01:00
sis net: annotate data-races around dev->if_port 2024-05-08 18:51:30 -07:00
smsc move asm/unaligned.h to linux/unaligned.h 2024-10-02 17:23:23 -04:00
socionext eth: link netdev to page_pools in drivers 2023-11-28 15:48:39 +01:00
stmicro net: stmmac: Limit FIFO size by hardware capability 2025-02-08 09:58:07 +01:00
sun net: sunvnet: use ethtool_sprintf/puts 2024-08-12 13:25:38 +01:00
sunplus net: ethernet: sunplus: Convert to platform remove callback returning void 2023-09-20 09:06:41 +01:00
synopsys net: dwc-xlgmac: fix missing MODULE_DESCRIPTION() warning 2024-06-17 18:05:38 -07:00
tehuti netdev_features: convert NETIF_F_LLTX to dev->lltx 2024-09-03 11:36:43 +02:00
ti net: ethernet: ti: am65-cpsw: fix freeing IRQ in am65_cpsw_nuss_remove_tx_chns() 2025-02-08 09:57:25 +01:00
toshiba netdev_features: convert NETIF_F_LLTX to dev->lltx 2024-09-03 11:36:43 +02:00
tundra net: ethernet: tundra: Convert to platform remove callback returning void 2023-09-20 09:06:41 +01:00
vertexcom net: vertexcom: mse102x: Fix tx_bytes calculation 2024-11-09 13:41:17 -08:00
via net: annotate writes on dev->mtu from ndo_change_mtu() 2024-05-07 16:19:14 -07:00
wangxun net: libwx: fix firmware mailbox abnormal return 2025-01-17 13:40:37 +01:00
wiznet ethernet: wiznet: Use devm_platform_get_and_ioremap_resource() in w5300_hw_probe() 2024-02-09 12:27:36 -08:00
xilinx net: xilinx: axienet: Fix IRQ coalescing packet count overflow 2025-01-23 17:22:50 +01:00
xircom net: annotate data-races around dev->if_port 2024-05-08 18:51:30 -07:00
xscale ixp4xx_eth: Remove setting of RX software timestamp 2024-09-09 17:44:42 -07:00
dnet.c net: ethernet: dnet: Convert to platform remove callback returning void 2023-09-20 09:06:38 +01:00
dnet.h net/dnet: Delete static version from the driver 2020-03-03 17:54:55 -08:00
ec_bhf.c net: fill in MODULE_DESCRIPTION()s for ec_bhf 2024-01-29 12:12:51 +00:00
ethoc.c net: ethernet: ethoc: Convert to platform remove callback returning void 2023-09-20 09:06:38 +01:00
fealnx.c eth: fealnx: bring back this old driver 2023-03-08 23:22:04 -08:00
jme.c net: ethernet: use ip_hdrlen() instead of bit shift 2024-08-11 04:41:15 +01:00
jme.h jme: remove an unnecessary indirection 2022-05-05 15:53:28 -07:00
Kconfig net: ethernet: oa_tc6: implement register write operation 2024-09-11 20:53:42 -07:00
korina.c net: ethernet: korina: Convert to platform remove callback returning void 2023-09-20 09:06:39 +01:00
lantiq_etop.c net: ethernet: lantiq_etop: fix memory disclosure 2024-10-01 10:58:07 +02:00
lantiq_xrx200.c net: annotate writes on dev->mtu from ndo_change_mtu() 2024-05-07 16:19:14 -07:00
Makefile net: ethernet: oa_tc6: implement register write operation 2024-09-11 20:53:42 -07:00
oa_tc6.c net: ethernet: oa_tc6: fix tx skb race condition between reference pointers 2024-12-27 14:02:04 +01:00