summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorSven Eckelmann <sven@narfation.org>2026-05-06 23:20:51 +0300
committerSven Eckelmann <sven@narfation.org>2026-05-08 15:28:56 +0300
commitcf6b604011591865ae39ac82de8978c1120d17af (patch)
tree025b0f78e45e5788e56c569bf308568cd8a6ba74 /scripts
parent4ae1709a314060a196981b344610d023ea841e57 (diff)
downloadlinux-cf6b604011591865ae39ac82de8978c1120d17af.tar.xz
batman-adv: bla: only purge non-released claims
When batadv_bla_purge_claims() goes through the list of claims, it is only traversing the hash list with an rcu_read_lock(). Due to a potential parallel batadv_claim_put(), it can happen that it encounters a claim which was actually in the process of being released+freed by batadv_claim_release(). In this case, backbone_gw is set to NULL before the delayed RCU kfree is started. Calling batadv_bla_claim_get_backbone_gw() is then no longer allowed because it would cause a NULL-ptr derefence. To avoid this, only claims with a valid reference counter must be purged. All others are already taken care of. Cc: stable@kernel.org Fixes: 23721387c409 ("batman-adv: add basic bridge loop avoidance code") Signed-off-by: Sven Eckelmann <sven@narfation.org>
Diffstat (limited to 'scripts')
0 files changed, 0 insertions, 0 deletions