Project

General

Profile

Actions

Bug #462

open

bla: potential deletion of wrong claim

Added by Sven Eckelmann 11 days ago.

Status:
New
Priority:
Normal
Target version:
-
Start date:
07/30/2026
Due date:
% Done:

0%

Estimated time:

Description

Does the same hash removal bug fixed by this patch also exist in the Bridge Loop Avoidance (BLA) subsystem?

Looking at batadv_bla_del_claim():
net/batman-adv/bridge_loop_avoidance.c:batadv_bla_del_claim() {
        ...
        claim_removed_node = batadv_hash_remove(bat_priv->bla.claim_hash,
                                                batadv_compare_claim,
                                                batadv_choose_claim, claim);
        ...
}

Since batadv_compare_claim() matches any claim with the same MAC address and VLAN ID rather than checking exact pointer identity, could a newly added claim be incorrectly unlinked from the hash if a concurrent UNCLAIM preempts the process?

See https://sashiko.dev/#/patchset/20260730-tt-fixes-v1-0-64e9e525d555%40narfation.org

No data to display

Actions

Also available in: Atom PDF