summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/stackcollapse.py
diff options
context:
space:
mode:
authorSven Eckelmann <sven@narfation.org>2026-07-06 18:36:47 +0200
committerSven Eckelmann <sven@narfation.org>2026-08-05 10:04:36 +0200
commite6de568d3eda3e3c01c868fabd7a9535d5ee4a73 (patch)
treecab6d042c72998f47b0f53e218fa71ea25d0b093 /tools/perf/scripts/python/stackcollapse.py
parent0121afa52cdb88cfb4d5d7bd126a23a9100121d8 (diff)
batman-adv: dat: atomically update mac addresses
When a MAC address is updated in batadv_dat_entry_add(), it is done using a simple copy function. A parallel reader might only see parts of this update. In worst case, the reader is transporting the half updated MAC address over the network or is creating an ARP response using it - poisoning the ARP cache. atomic64_t can be used to store the 48 bit of a mac address. A reader will then either see the old mac address or the new one - never a mixture of both. Cc: stable@vger.kernel.org Reported-by: Sashiko <sashiko-bot@kernel.org> Fixes: 2f1dfbe18507 ("batman-adv: Distributed ARP Table - implement local storage") Signed-off-by: Sven Eckelmann <sven@narfation.org>
Diffstat (limited to 'tools/perf/scripts/python/stackcollapse.py')
0 files changed, 0 insertions, 0 deletions