Files
linux/drivers
Doug Berger db7aa45c71 net: bcmgenet: synchronize UMAC_CMD access
commit 0d5e2a8223 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: 1c1008c793 ("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-05-25 16:19:06 +02:00
..
2023-09-19 12:20:19 +02:00
2023-07-27 08:44:00 +02:00
2024-05-02 16:23:35 +02:00
2024-05-17 11:48:11 +02:00
2024-05-17 11:48:10 +02:00
2023-11-20 11:06:50 +01:00
2024-02-23 08:42:03 +01:00
2024-01-25 14:37:38 -08:00
2023-07-27 08:44:02 +02:00