On Thursday, 30 April 2026 09:16:45 CEST Robert Garcia wrote: > From: Haoze Xie > > [ Upstream commit 82d8701b2c930d0e96b0dbc9115a218d791cb0d2 ] > > batadv_bla_add_claim() can replace claim->backbone_gw and drop the old > gateway's last reference while readers still follow the pointer. > > The netlink claim dump path dereferences claim->backbone_gw->orig and > takes claim->backbone_gw->crc_lock without pinning the underlying > backbone gateway. batadv_bla_check_claim() still has the same naked > pointer access pattern. > > Reuse batadv_bla_claim_get_backbone_gw() in both readers so they operate > on a stable gateway reference until the read-side work is complete. > This keeps the dump and claim-check paths aligned with the lifetime > rules introduced for the other BLA claim readers. > > Fixes: 23721387c409 ("batman-adv: add basic bridge loop avoidance code") > Fixes: 04f3f5bf1883 ("batman-adv: add B.A.T.M.A.N. Dump BLA claims via netlink") > Cc: stable@vger.kernel.org > Reported-by: Yifan Wu > Reported-by: Juefei Pu > Co-developed-by: Yuan Tan > Signed-off-by: Yuan Tan > Suggested-by: Xin Liu > Signed-off-by: Haoze Xie > Signed-off-by: Ao Zhou > Signed-off-by: Sven Eckelmann > Signed-off-by: Simon Wunderlich > Signed-off-by: Robert Garcia See https://lore.kernel.org/r/20260413125407.85603-1-sven@narfation.org for the original backport. Can you explain further why you send a new version? Sasha Levin picked it up for 5.15.y (on Sun, 19 Apr 2026 21:13:58 -0400, MsgId 20260419195610.batman-adv-5.15@kernel.org). Yes, it was not yet published or 5.15 - so maybe fell through the cracks. Regards, Sven