From: Sven Eckelmann The kernel-doc of batadv_tt_local_remove_entry() only names batadv_tt_local_commit_change() as concurrent context which can remove the entry. But batadv_tt_local_purge_pending_clients() removes BATADV_TT_CLIENT_PENDING entries too. It is called by batadv_tt_local_resize_to_mtu() under the commit_lock. This lock is not taken by batadv_tt_local_remove_entry(). Both removals are only kept away by the hash bucket list_lock and the flags_lock of the entry. Mention batadv_tt_local_purge_pending_clients() in the kernel-doc as well. Reported-by: Sashiko Closes: https://netdev-ai.bots.linux.dev/sashiko/#/patchset/20261123171827.3294525-2-sw%40simonwunderlich.de?part=13 Signed-off-by: Sven Eckelmann Signed-off-by: Simon Wunderlich --- net/batman-adv/translation-table.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/net/batman-adv/translation-table.c b/net/batman-adv/translation-table.c index 252ca1306873..e2275edaa40a 100644 --- a/net/batman-adv/translation-table.c +++ b/net/batman-adv/translation-table.c @@ -1946,8 +1946,9 @@ batadv_tt_local_set_pending(struct batadv_priv *bat_priv, * * All checks and modifications happen under the hash bucket list_lock and the * flags_lock of the entry. This prevents a concurrent - * batadv_tt_local_commit_change() from removing the entry and - * batadv_tt_local_refresh() from modifying it after it was checked. + * batadv_tt_local_commit_change() or batadv_tt_local_purge_pending_clients() + * from removing the entry and batadv_tt_local_refresh() from modifying it after + * it was checked. */ static void batadv_tt_local_remove_entry(struct batadv_priv *bat_priv, -- 2.47.3