diff options
| author | Sven Eckelmann <sven@narfation.org> | 2026-08-30 17:21:43 +0200 |
|---|---|---|
| committer | Sven Eckelmann <sven@narfation.org> | 2026-08-30 20:05:56 +0200 |
| commit | f59c4c59df104baf473e20f885071a9d713c3861 (patch) | |
| tree | 00ef7546422311f276aaade977660bfbeff7b232 /tools/lib/python/kdoc/python_version.py | |
| parent | 976b159b3c12be89459390bdf950534f639a5200 (diff) | |
batman-adv: tt: transition NEW local entries only under lock
The batadv_tt_local_size_inc() must never be called for an entry which was
already removed from the list. Otherwise the removal from the hash cannot
correctly determine if the batadv_tt_local_size_dec() needs to be called or
not.
This assumption is broken by the use of rcu_read_lock() in
batadv_tt_local_transition_new() because it might still see entries in the
list which were already removed by a different context from the list. If it
then increments the size counter, nothing will reduce the counter again.
Simply because the removal (responsible for the decrement) already
happened.
Over the whole time, the actual hash list spinlock must be held when
transitioning NEW local entries to avoid list manipulations.
Signed-off-by: Sven Eckelmann <sven@narfation.org>
Diffstat (limited to 'tools/lib/python/kdoc/python_version.py')
0 files changed, 0 insertions, 0 deletions
