summaryrefslogtreecommitdiff
path: root/scripts/git.orderFile
diff options
context:
space:
mode:
authorSean Anderson <sean.anderson@linux.dev>2025-02-20 11:29:50 -0500
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2025-03-07 18:25:30 +0100
commitab52446831a7b77408595b71c38b10f12a37c544 (patch)
tree7172ee3f989baaf2a31e3ad6eace8c5381c4a605 /scripts/git.orderFile
parent5353fd89663c48f56bdff975c562cfe78b1a2e4c (diff)
downloadlinux-ab52446831a7b77408595b71c38b10f12a37c544.tar.gz
linux-ab52446831a7b77408595b71c38b10f12a37c544.tar.bz2
linux-ab52446831a7b77408595b71c38b10f12a37c544.zip
net: cadence: macb: Synchronize stats calculations
[ Upstream commit fa52f15c745ce55261b92873676f64f7348cfe82 ] Stats calculations involve a RMW to add the stat update to the existing value. This is currently not protected by any synchronization mechanism, so data races are possible. Add a spinlock to protect the update. The reader side could be protected using u64_stats, but we would still need a spinlock for the update side anyway. And we always do an update immediately before reading the stats anyway. Fixes: 89e5785fc8a6 ("[PATCH] Atmel MACB ethernet driver") Signed-off-by: Sean Anderson <sean.anderson@linux.dev> Link: https://patch.msgid.link/20250220162950.95941-1-sean.anderson@linux.dev Signed-off-by: Jakub Kicinski <kuba@kernel.org> Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'scripts/git.orderFile')
0 files changed, 0 insertions, 0 deletions