]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
batman-adv: bla: annotate lasttime access with READ/WRITE_ONCE
authorSven Eckelmann <sven@narfation.org>
Tue, 26 May 2026 19:50:51 +0000 (21:50 +0200)
committerSven Eckelmann <sven@narfation.org>
Wed, 3 Jun 2026 06:25:11 +0000 (08:25 +0200)
commit98b0fb191c878a64cbaebfe231d96d57576acf8c
tree013a3119a47b035f8252947639701f4ec234968d
parent4f117f5626287c0d0efa8fa99b82f264a26bc8f7
batman-adv: bla: annotate lasttime access with READ/WRITE_ONCE

The lasttime field for claim, backbone_gw, and loopdetect tracks the
jiffies value of the most recent activity and is used to detect timeouts.
These accesses are not consistently protected by a lock, so
READ_ONCE/WRITE_ONCE must be used to prevent data races caused by compiler
optimizations.

Cc: stable@kernel.org
Fixes: 23721387c409 ("batman-adv: add basic bridge loop avoidance code")
Signed-off-by: Sven Eckelmann <sven@narfation.org>
net/batman-adv/bridge_loop_avoidance.c