diff options
author | Doug Berger <opendmb@gmail.com> | 2024-04-26 01:27:21 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2024-04-29 08:24:22 +0300 |
commit | 0d5e2a82232605b337972fb2c7d0cbc46898aca1 (patch) | |
tree | 093258eef2c8fc6285ee6e86654a426ffad2255f /tools/perf/scripts/python/exported-sql-viewer.py | |
parent | 2dbe5f19368caae63b1f59f5bc2af78c7d522b3a (diff) | |
download | linux-0d5e2a82232605b337972fb2c7d0cbc46898aca1.tar.xz |
net: bcmgenet: synchronize UMAC_CMD access
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>
Diffstat (limited to 'tools/perf/scripts/python/exported-sql-viewer.py')
0 files changed, 0 insertions, 0 deletions