summaryrefslogtreecommitdiff
path: root/scripts/Makefile.thinlto
diff options
context:
space:
mode:
authorSven Eckelmann <sven@narfation.org>2026-06-11 08:04:13 +0200
committerSven Eckelmann <sven@narfation.org>2026-06-13 07:57:52 +0200
commit6dde0cfcb36e4d5b3de35b75696937478441eed4 (patch)
tree1b13bcf5aa43edaae3c980ca86707a66ad1f68a7 /scripts/Makefile.thinlto
parentd67c728f07fca2ee6ffdc6dd4421cf2e8691f4d1 (diff)
batman-adv: tp_meter: prevent parallel modifications of last_recv
When last_recv is updated to store the last receive sequence number, it is assuming that nothing is modifying in parallel while: * check for outdated packets is done * out of order check is performed (and packets are stored in out-of-order queue) * the out-of-order queue was searched for closed gaps * sequence number for next ack is calculated Nothing of that was actually protected. It could therefore happen that the last_recv was updated multiple times in parallel and the final sequence number was calculated with deltas which had no connection to the sequence number they were added to. Lock this whole region with the same lock which was already used to protect the unacked (out-of-order) list. Cc: stable@kernel.org Fixes: 33a3bb4a3345 ("batman-adv: throughput meter implementation") Signed-off-by: Sven Eckelmann <sven@narfation.org>
Diffstat (limited to 'scripts/Makefile.thinlto')
0 files changed, 0 insertions, 0 deletions