Article View: linux.kernel.netdev
Article #7795Re: [PATCH net 07/10] batman-adv: tt: only transmit local ROAM flag together with DEL
From: netdev-bot+sashiko
Date: Tue, 27 Oct 2026 08:55
Date: Tue, 27 Oct 2026 08:55
105 lines
12129 bytes
12129 bytes
Thank you for your contribution! Sashiko AI review found 1 potential
issue(s) to consider.
Critical: 0 · High: 0 · Medium: 1 · Low: 0
If you believe none of the issues are legitimate, please reply to each
issue of Medium severity or higher and explain why the AI is wrong.
If any of them are legitimate and you plan to respin, please let patchwork
know by including "pw-bot: cr" as a separate line at the end of your reply
(one such reply per series is enough).
- [Medium] The fix leaves the requester-side client drop in place even
though the commit message lists it as a symptom, and the message…
--
batman-adv: tt: only transmit local ROAM flag together with DEL
This patch stops local TT entries from sending BATADV_TT_CLIENT_ROAM
unless it comes with BATADV_TT_CLIENT_DEL. The ROAM bit is now cleared
for non-DEL events in __batadv_tt_local_event() and for full table
responses in batadv_tt_local_valid(). The goal is to stop receivers from
treating a plain ADD as a roaming advertisement.
> diff --git a/net/batman-adv/translation-table.c b/net/batman-adv/translation-table.c
> index 3349376a9087d..39b61426f1680 100644
> --- a/net/batman-adv/translation-table.c
> +++ b/net/batman-adv/translation-table.c
[ ... ]
> @@ -3342,8 +3350,12 @@ static bool batadv_tt_local_valid(void *entry_ptr,
> if (tt_flags & BATADV_TT_CLIENT_NEW)
> return false;
>
> + /* the entry is (still) announced. A ROAM flag of an entry which is
> + * pending to be removed must not be transmitted. Otherwise, the
> + * receiver would handle it like a roaming advertisement
> + */
> if (flags)
> - *flags = tt_flags;
> + *flags = tt_flags & ~BATADV_TT_CLIENT_ROAM;
>
> return true;
> }
[Severity: Medium]
Does this fix the requester-side symptom described in the commit
message? The commit message says:
When the requester is the node which sent the ROAMING_ADV, it then
marks its own (new) local client as roamed back to the old originator
and drops it when it is still NEW.
After this change, batadv_tt_local_valid() still reports an entry that
batadv_tt_local_mark_removed() marked ROAM|PENDING as valid. It only
clears the ROAM bit. So the entry still goes out as a plain ADD in the
full table response built by batadv_send_my_tt_response().
Take node B, which sent the ROAMING_ADV for client C to the old
originator A. B gets A's full table response before A's next TT commit:
batadv_tt_fill_gtable()
batadv_tt_global_del_orig(bat_priv, orig_node, -1, "Received full table")
/* removes B's ROAM-marked global entry for C if A was the only orig */
_batadv_tt_update_changes()
batadv_tt_global_add(..., flags without ROAM, ...)
out_remove:
batadv_tt_global_purge_local(bat_priv, tt_global_entry, flags)
batadv_tt_local_remove(..., flags & BATADV_TT_CLIENT_ROAM) /* false */
batadv_tt_local_mark_removed()
if (common->flags & BATADV_TT_CLIENT_NEW)
break;
batadv_tt_local_remove_now()
The NEW check in batadv_tt_local_mark_removed() does not depend on
roaming. B's newly roamed-in local entry for C is therefore still
removed right away by batadv_tt_local_remove_now(). If the entry was
already committed, a DEL is queued instead. B's global table then
points C at A.
On A, the local entry for C is ROAM|PENDING, so batadv_is_my_client()
returns false there as well. Would traffic for C then be disrupted
until C sends another frame through B and batadv_tt_local_add()
recreates the entry?
The first bullet list in the commit message also has a related
statement:
* batadv_tt_global_purge_local() removes a local entry of the receiver
It is listed there as an effect of an ADD carrying ROAM. However,
batadv_tt_global_add() reaches out_remove and calls
batadv_tt_global_purge_local() on every successful non-multicast global
add, whether or not ROAM is set. ROAM only selects the roaming argument
passed to batadv_tt_local_remove().
Is more needed to keep B from dropping its local client in this case?
If not, should the commit message say that this patch only fixes the
ROAM marking of the global entry and the resulting CRC mismatch?
--
Sashiko AI review · https://netdev-ai.bots.linux.dev/sashiko/#/patchset/20261026085309.1074911-2-sw%40simonwunderlich.de
Technical Details
Message-ID:
<179309132249.3134.16887364336514212941@kernel.org>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-352292-linux-kernel-netdev=dewy.ruReferences:
<20261026085309.1074911-8-sw@simonwunderlich.de>Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-352292-linux-kernel-netdev=dewy.ru From: netdev-bot+sashiko@kernel.org Newsgroups: linux.kernel.netdev Subject: Re: [PATCH net 07/10] batman-adv: tt: only transmit local ROAM flag together with DEL Date: Tue, 27 Oct 2026 08:55:22 +0000 Organization: Usenet Network Message-ID: <179309132249.3134.16887364336514212941@kernel.org> References: <20261026085309.1074911-8-sw@simonwunderlich.de> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit Injection-Info: usenet.network; logging-data="1496917"; mail-complaints-to="abuse@usenet.network" Cancel-Lock: sha1:4242uHAZf7u/5z3nnQmh6I0XmRA= sha256:sppy71HhsOpY5b3ASnegfwa4mQH+eIontwkHPcoTk68= sha1:c9urcirA+vOU8L/tIN8UPocqUy0= sha256:59GnCJWDm15ALrXa0VEXvipAcRdXQ3A95mBMpekqbfo= List-ID: <netdev.vger.kernel.org> X-Mailpost-Empty-Hdrs: X-Spam-Level X-Received: from localhost (localhost [127.0.0.1]) by mail.dewy.ru (Postfix) with ESMTP id 5B3D8125BDE; Tue, 27 Oct 2026 11:55:51 +0300 (MSK) X-Virus-Scanned: Debian amavisd-new at usenet.network X-Spam-Flag: NO X-Spam-Score: -3.739 X-Spam-Status: No, score=-3.739 tagged_above=-9999 required=6.31 tests=[DCC_REPUT_70_89=0.1, DKIMWL_WL_HIGH=-0.339, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, MAILING_LIST_MULTI=-1, RCVD_IN_DNSWL_MED=-2.3, SPF_HELO_NONE=0.001, SPF_PASS=-0.001] autolearn=ham autolearn_force=no X-Authentication-Results: mail.dewy.ru (amavisd-new); dkim=pass (2048-bit key) header.d=kernel.org X-Received: from mail.dewy.ru ([127.0.0.1]) by localhost (mail.dewy.ru [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id kSr3mYuM7-4D; Tue, 27 Oct 2026 11:55:48 +0300 (MSK) X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.234.253.10; helo=sea.lore.kernel.org; envelope-from=netdev+bounces-352292-linux-kernel-netdev=dewy.ru@vger.kernel.org; receiver=<UNKNOWN> X-Authentication-Results: OpenDMARC; dmarc=pass (p=quarantine dis=none) header.from=kernel.org X-Received: from sea.lore.kernel.org (sea.lore.kernel.org [172.234.253.10]) by mail.dewy.ru (Postfix) with ESMTPS id 9C5E8125BE2; Tue, 27 Oct 2026 11:55:38 +0300 (MSK) X-Received: from smtp.subspace.kernel.org (conduit.subspace.kernel.org [100.77.114.92]) by sea.lore.kernel.org (Postfix) with ESMTP id 23EE427238; Tue, 27 Oct 2026 08:55:25 +0000 (UTC) X-Authentication-Results: smtp.subspace.kernel.org; arc=pass header.oldest-pass=0 smtp.remote-ip=127.0.0.1 X-ARC-Seal: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=pass; t=1793091325; b=EPHPXJqLyYBTTdzrF4Q7tiCRyjBj34CHdsSO9pJLFnk8EnFD633Apvb4z09rrMAXlW7W PFfyxnsjfe0jSeAJVNjhXdUvOaTRHpZ6hGUcw8xNrdnJ9YFjg3VYhEYDYnmB1meUl3a82 qX+qef3beWcMwzH9axTVzLTrQ5A31+fjGFCoabx70UZndJi7w98KpuSrWz1JBaVoW1gFr THvw7PsbrpP91qz+2KcMewVQrSo//AYzxJHjKEHCGn8IT9tM/pFqw9HQUMNRVgJRrIBQp iYXN+Ca3891VL+IJ2luEbrbv8e1S5RjlR7rDmXgB1qpTnyHOh+VDp32g7Br4AXqs0kA== X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1793091325; h=X-Original-To:Received:Received:DKIM-Signature:Subject:From:To:Cc: Date:Message-ID:In-Reply-To:References:X-sashiko-severity: Content-Type:Content-Transfer-Encoding:X-Mailing-List:List-Id: List-Post:List-Help:List-Subscribe:List-Unsubscribe:List-Owner: Precedence:MIME-Version; bh=vFE78Mt/RT5W0a8LHAY83nSeo9T+I0JI1DQ+N1in6PI=; b=BaJWrHuAZN1ButuwXEgEr6GsCiDSjAlkgaJriI3fq5A/TG0q5Lgp1N/d3/eMgZNJNUP1 La+0kQXix+jCuYl5W3KPIVp99FArYbsOVEjT5NFZQ6uTdnT+j+9mmKHhC5tsaLcdpumpj 3RTne/C/+BHyP3pl41xYlwll+U0g14GkBOHeWCvrMyHzwAWUwhC8TU18chLYL+aDJsah9 TU3AQnGkNOyaPJkMRI/sK3L1JiJoV1UQ3HV2Xdyyux0L7jhPi3N07cQYyV8Bg1EVvwpx8 2SMoGFVVxXeQ1cMMbsNUT4IZ+KU1zcgCDTc0Jv5JCH7Fio5A09LMcSbVnF7gJcx27kQ== X-ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; dkim=pass header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=WNGRAl9G; arc=pass header.oldest-pass=0 smtp.remote-ip=127.0.0.1 X-Received: from localhost.localdomain (localhost [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id E9BC8606A31E; Tue, 27 Oct 2026 08:55:24 +0000 (UTC) X-Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key, unprotected) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=WNGRAl9G X-Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=100.103.45.18 X-ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1793091324; b=wfn8cOskrc1vqb9UdkYsnSjYTnmQKxdBcppWMchK8PVhumBtgxBelGs/B+zVHONJfGuZ Y3JL8zOAjL5d0IZRtLulmCfLxxfoaa9fh+bJY3vodeW3SSiYKSB/EG6tzaOD3a2tt5S1b znCtBYSXwotU6mX2QeK1YuYqR6/JLnN7mGqjlXzQH8KjpEu8TbHm4c7ZapDzZ+JHQXUgr d1AAFxa23NoX27HugfjDLvX1sMDMQc234ZSA7PR8FcRNR6rzzMS1TX1D4riOYe3dRBcQ5 jFppHKjRoUbJaPUQWF4J7pctKi+wsvU0ymizVvHg/3+7oJJZeI2rCrZiepIOCTnB3yw== X-ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1793091324; h=Received:DKIM-Signature:Subject:From:To:Cc:Date:Message-ID: In-Reply-To:References:X-sashiko-severity:Content-Type: Content-Transfer-Encoding:MIME-Version; bh=vFE78Mt/RT5W0a8LHAY83nSeo9T+I0JI1DQ+N1in6PI=; b=EDgbZEWSHP25IT2+MdngwgvyG/FA0olzRK4w5luGOfbTmJUxpkQskN7A0YA+Zgw9OVrt bZn4ZNJesU0xFALY5vxmopbtp/45jgPb5SypJl/530Tda1DPVbnq8ygeLUFoJN8wmzGjY NnpByhHHkPRDP3giXsoujI4rfNk630FdrQEgXLF5QdQ9gaNUMuCYe/wUl4oCOObzCXOKE adSHeRXhYSsMGVDn1BqQ37FqNRLNWE8wgvgGZ6h9TLApHIJ4VUnIrG389RyfX2FSLcgti GjwM4ZuJrXe6U49147ronF9Pa8URa0CYTpWw8UlSV/Opyk729782mqdWZCKBf3/c7Kw== X-ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=WNGRAl9G; arc=none smtp.remote-ip=100.103.45.18 X-Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id CAC04606A320 for <netdev@vger.kernel.org>; Tue, 27 Oct 2026 08:55:23 +0000 (UTC) X-Received: by smtp.kernel.org (Postfix) with ESMTPSA id E60F91F01828; Tue, 27 Oct 2026 08:55:22 +0000 (UTC) X-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1793091323; bh=vFE78Mt/RT5W0a8LHAY83nSeo9T+I0JI1DQ+N1in6PI=; h=Subject:From:To:Cc:Date:In-Reply-To:References; b=WNGRAl9Gd0g1s15kSqpVJRpYgTPn7+MFJUq1xqRJScXXnTquyRYh+JmMb/4aRn/KO En85SvqTAJwXjGswzKlezVeHAY15G4RdXgSRPU3urQacquTurGoLI/MKdgnFqOcYJF b2MWyeU4V43Vrz4FbFcpjI1LNJzF2Zu76RXqiv0dL4Hggi/g75JfGl9GIVYURUGU9l YmC/V49GQPx5BigOyvER+WZ7qwJSIrjh4/6Nhbymq/PICAsC5OEiheBuoq122hyUiG +cLOdNQSYf2XCoCe2CYeQOSw6AcW07ia0eWaOO3kpjsTQybtO8pdgxJL5oJuHJ4ASD VLdrHtT4+esag== X-Cc: netdev@vger.kernel.org, davem@davemloft.net, edumazet@google.com, kuba@kernel.org, pabeni@redhat.com, horms@kernel.org, b.a.t.m.a.n@lists.open-mesh.org, sven@narfation.org, sashiko-bot@kernel.org X-In-Reply-To: <20261026085309.1074911-8-sw@simonwunderlich.de> X-sashiko-severity: Medium X-Mailing-List: netdev@vger.kernel.org X-List-Post: <mailto:netdev@vger.kernel.org> X-List-Help: <mailto:netdev+help@vger.kernel.org> X-List-Subscribe: <mailto:netdev+subscribe@vger.kernel.org> X-List-Unsubscribe: <mailto:netdev+unsubscribe@vger.kernel.org> X-List-Owner: <mailto:netdev+owner@vger.kernel.org> X-Precedence: list