On Tuesday, 24 November 2026 18:20:44 CET netdev-bot+sashiko@kernel.org wrote: [...] > > @@ -1779,13 +1793,24 @@ batadv_tt_local_set_pending(struct batadv_priv *bat_priv, > > { > > struct batadv_tt_common_entry *common = &tt_local_entry->common; > > struct batadv_hashtable *hash = bat_priv->tt.local_hash; > > + bool queued; > > u32 i; > > > > i = batadv_choose_tt(&common->key, hash->size); > > lockdep_assert_held(&hash->list_locks[i]); > > lockdep_assert_held(&common->flags_lock); > > > > - __batadv_tt_local_event(bat_priv, common, common->flags | flags); > > + queued = __batadv_tt_local_event(bat_priv, common, > > + common->flags | flags); > > [Severity: Low] > This isn't a bug, but this code now relies on __batadv_tt_local_event() > returning bool. That return value was added by the preceding patch, > "batman-adv: tt: keep local entry unchanged when ADD can't be queued". What? I am now not even allowed to build on top of other patches in a patch series? This is insane. > The commit message doesn't mention this dependency, and there is no > Fixes: tag. No patch in the series has a Fixes: tag, so this may be > intentional. Is the series meant to stay out of stable? It is in the same patch series. Why should I add a Fixes: tag? This wouldn't even be allowed in a submission for net-next. And when this would not be a pull-request then I would not even have a commit ID to use here. > > > + > > + /* a failed attempt must not hide the still queued DEL of an already > > + * pending entry > > + */ > > + if (queued) > > + tt_local_entry->del_unqueued = false; > > + else if (!(common->flags & BATADV_TT_CLIENT_PENDING)) > > + tt_local_entry->del_unqueued = true; > > [Severity: Low] > What happens here when the entry is already BATADV_TT_CLIENT_PENDING and > the new event carries BATADV_TT_CLIENT_ROAM? [...] > Say a plain DEL was already queued earlier in the same OGM interval, for > example by the timeout in batadv_tt_local_purge_list(). The DEL+DEL > update can still fail, because __batadv_tt_local_event() allocates > before it looks for the queued change to merge into: > > tt_change_node = kmem_cache_alloc(batadv_tt_change_cache, GFP_ATOMIC); > if (!tt_change_node) > return false; > > In that case the else-if above leaves del_unqueued false. So > batadv_tt_local_purge_list() never requeues the DEL with the ROAM flag. [...] > Could __batadv_tt_local_event() look up the existing change before > allocating, so the in-place update can't fail? If not, the kernel-doc > could say that an already pending entry only keeps its first DEL. This is a corner case (already existing in the current code) but I will make a note to think about first searching the list before trying to allocate a new entry. https://www.open-mesh.org/issues/491 One case would remain: if the plain DEL has already been taken out of changes_list for the next ttvn but not yet committed, the ROAM flag is lost. That is unavoidable, because the DEL is already part of the announced change set. > > > + > > common->flags |= BATADV_TT_CLIENT_PENDING; > > [ ... ] > > > @@ -1911,11 +1936,18 @@ static void batadv_tt_local_purge_list(struct batadv_priv *bat_priv, > > common); > > > > scoped_guard(spinlock_bh, &tt_local_entry->common.flags_lock) { > > - if (tt_local_entry->common.flags & BATADV_TT_CLIENT_NOPURGE) > > + /* entry already marked for deletion */ > > + if (tt_local_entry->common.flags & BATADV_TT_CLIENT_PENDING) { > > + /* but its removal must still be announced */ > > + if (tt_local_entry->del_unqueued) > > + batadv_tt_local_set_pending(bat_priv, > > + tt_local_entry, > > + BATADV_TT_CLIENT_DEL, > > + "requeued"); > > [Severity: Low] > This is a pre-existing issue and wasn't introduced by this patch. This > requeue runs from the periodic work without tt.commit_lock. > > Can it clear del_unqueued after the splice but before > batadv_tt_local_purge_pending_clients() runs in > batadv_tt_local_commit_changes_nolock()? This is just a preparation for the "batman-adv: tt: commit only the announced local changes". It is normal that a patch at the beginning of a patch series doesn't have everything which is there after the patch series ended. This is why it is a patch series and not a patch. Regards, Sven