kernel_samsung_a53x/drivers/net/ethernet/broadcom
Doug Berger 5441924407 net: bcmgenet: synchronize UMAC_CMD access
commit 0d5e2a82232605b337972fb2c7d0cbc46898aca1 upstream.

The UMAC_CMD register is written from different execution
contexts and has insufficient synchronization protections to
prevent possible corruption. Of particular concern are the
acceses from the phy_device delayed work context used by the
adjust_link call and the BH context that may be used by the
ndo_set_rx_mode call.

A spinlock is added to the driver to protect contended register
accesses (i.e. reg_lock) and it is used to synchronize accesses
to UMAC_CMD.

Fixes: 1c1008c793fa ("net: bcmgenet: add main driver file")
Cc: stable@vger.kernel.org
Signed-off-by: Doug Berger <opendmb@gmail.com>
Acked-by: Florian Fainelli <florian.fainelli@broadcom.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2024-11-19 12:26:38 +01:00
..
bnx2x net/bnx2x: Prevent access to a freed page in page_pool 2024-11-19 08:44:59 +01:00
bnxt bnxt_en: Wait for FLR to complete during probe 2024-11-18 12:13:00 +01:00
genet net: bcmgenet: synchronize UMAC_CMD access 2024-11-19 12:26:38 +01:00
b44.c net: b44: set pause params only when interface is up 2024-11-19 11:32:39 +01:00
b44.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
bcm63xx_enet.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
bcm63xx_enet.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
bcmsysport.c Backport mac80211 patches from linux-6.1.y 2024-06-15 16:29:20 -03:00
bcmsysport.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
bgmac-bcma-mdio.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
bgmac-bcma.c Backport mac80211 patches from linux-6.1.y 2024-06-15 16:29:20 -03:00
bgmac-platform.c Backport mac80211 patches from linux-6.1.y 2024-06-15 16:29:20 -03:00
bgmac.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
bgmac.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
bnx2.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
bnx2.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
bnx2_fw.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
cnic.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
cnic.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
cnic_defs.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
cnic_if.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
Kconfig Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
Makefile Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
sb1250-mac.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00