🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: linux.kernel.netdev
Article #16598

Re: [PATCH net-next 04/15] batman-adv: tt: use dedicated key type for hashes

#16598
From: Sven Eckelmann
Date: Sun, 15 Nov 2026 09:42
58 lines
10228 bytes
--nextPart2433226.ElGaqSPkdT
Content-Transfer-Encoding: 7Bit
Content-Type: text/plain; charset="utf-8"; protected-headers="v1"
From: Sven Eckelmann <sven@narfation.org>
Date: Sun, 15 Nov 2026 10:42:13 +0100
Message-ID: <4777859.LvFx2qVVIh@sven-desktop>
In-Reply-To: <sashiko-outbox-215350@kernel.org>
MIME-Version: 1.0

On Sunday, 15 November 2026 10:24:43 CET sashiko-bot@kernel.org wrote:
[...]
> [Severity: Medium]
> This problem wasn't introduced by this patch, but can batadv_tt_local_crc()
> include a BATADV_TT_CLIENT_PENDING entry in the local CRC calculation
> [1]?
> 
> batadv_tt_local_commit_changes_nolock() runs
> batadv_tt_local_purge_pending_clients() and batadv_tt_local_update_crc()
> sequentially under per-bucket locks, and batadv_tt_local_crc() only skips
> BATADV_TT_CLIENT_NEW:
> 
> CPU0                                    CPU1
> batadv_tt_local_commit_changes_nolock()
>   batadv_tt_local_purge_pending_clients()
>                                         batadv_tt_purge()
>                                           batadv_tt_local_purge()
>                                             ...
>                                               common->flags |=
>                                                 BATADV_TT_CLIENT_PENDING
>   batadv_tt_local_update_crc()
>     batadv_tt_local_crc()
>       includes pending entry in crc     <-- CRC mismatch
> 
> The local CRC then disagrees with the committed translation table state and
> triggers unnecessary full TT synchronizations across the mesh.


Not related to this patch. And the patchset to handle this better is pending [1].

Regards,
	Sven

[1] https://git.open-mesh.org/pub/ecsv/batman-adv.git/log/?h=b4/tt-avoid-unhashed-event
--nextPart2433226.ElGaqSPkdT
Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: This is a digitally signed message part.
Content-Transfer-Encoding: 7Bit

-----BEGIN PGP SIGNATURE-----

iHUEABYKAB0WIQS81G/PswftH/OW8cVND3cr0xT1ywUCavl+dQAKCRBND3cr0xT1
y6oOAQCKyP0GEmH1xuxYPjD3qa2YYZvDjNW99ur5+VT7Yt97uQEA4rDoEHRecu4r
PYXljqTRHgyXPN3+KI4Z3DyQouxt3g8=
=CaO4
-----END PGP SIGNATURE-----

--nextPart2433226.ElGaqSPkdT--
Technical Details
Message-ID: <4777859.LvFx2qVVIh@sven-desktop>
Path: mbox-mo1.pugleaf.net!news-lax.pugleaf.net!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-363636-linux-kernel-netdev=dewy.ru
References: <20261114091556.3336038-1-sw@simonwunderlich.de> <20261114091556.3336038-5-sw@simonwunderlich.de> <sashiko-outbox-215350@kernel.org>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-lax.pugleaf.net!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-363636-linux-kernel-netdev=dewy.ru
From: sven@narfation.org (Sven Eckelmann)
Newsgroups: linux.kernel.netdev
Subject: Re: [PATCH net-next 04/15] batman-adv: tt: use dedicated key type for hashes
Date: Sun, 15 Nov 2026 10:42:13 +0100
Organization: Usenet Network
Message-ID: <4777859.LvFx2qVVIh@sven-desktop>
References: <20261114091556.3336038-1-sw@simonwunderlich.de>
 <20261114091556.3336038-5-sw@simonwunderlich.de>
 <sashiko-outbox-215350@kernel.org>
MIME-Version: 1.0
Content-Type: multipart/signed; boundary="nextPart2433226.ElGaqSPkdT";
 micalg="pgp-sha512"; protocol="application/pgp-signature"
Injection-Info: usenet.network;
	logging-data="1765060"; mail-complaints-to="abuse@usenet.network"
Cancel-Lock: sha1:x0kjt8tZghP4SxI/Ap5BKbDgXLA= sha256:/6cIqxFpC89b1bAej380oxjCqDgMkFxReJzzsnrhA/s=
	sha1:3zXbZQoky3Hixs51Q/wMkOjyET8= sha256:fE2gt+XqQbUgt8rpDUszkPofD/wON3kUBnXnRiSxjUw=
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 93596114989; Sun, 15 Nov 2026 12:42:35 +0300 (MSK)
X-Virus-Scanned: Debian amavisd-new at usenet.network
X-Spam-Flag: NO
X-Spam-Score: -3.051
X-Spam-Status: No, score=-3.051 tagged_above=-9999 required=6.31
	tests=[DCC_REPUT_70_89=0.1, DKIM_SIGNED=0.1, DKIM_VALID=-0.1,
	DKIM_VALID_AU=-0.1, HEADER_FROM_DIFFERENT_DOMAINS=0.249,
	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 (1024-bit key)
	header.d=narfation.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 MEyw8bNsRr9Q;
	Sun, 15 Nov 2026 12:42:31 +0300 (MSK)
X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.234.253.10; helo=sea.lore.kernel.org; envelope-from=netdev+bounces-363636-linux-kernel-netdev=dewy.ru@vger.kernel.org; receiver=<UNKNOWN> 
X-Authentication-Results: OpenDMARC; dmarc=fail (p=none dis=none) header.from=narfation.org
X-Received: from sea.lore.kernel.org (sea.lore.kernel.org [172.234.253.10])
	by mail.dewy.ru (Postfix) with ESMTPS id 34A85114982; Sun, 15 Nov 2026 12:42:22 +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 A10353C15F; Sun, 15 Nov 2026 09:42:20 +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=1794735740;
	b=FB75uW/BsKff0yOfl5xLDEG0rVhhxmRmpyZrZGuTuvRUMW9D3GtGr0aMkkN8wMfm1LhG
	 TxHn4Nuv4yy555uIDUpdCVJJ1AOsdjxHVxrJE0Cy2+O8eXZoXJforvpy2wi4SUBGZwwHg
	 qgXe5KQUu3YUZIccBC2N1slrHQlXGk4PkJu4hqOf1r3lmwoqFt7WVeDX2bYJqo+a1k3eH
	 breaFY3aafh2a9MX7JPkVOd8GMoSA3DRLVcMVblbr/E3/Wm6On4oYAgVxDPwdc0RzL6ua
	 oM522ASh8jmjhUyqpjKaLGdJwutoxXxtY0eLvUHMPC723Bujq3UdZEsCBw7+Mjhjbvw==
X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015;
	a=rsa-sha256; c=relaxed/relaxed; t=1794735740;
	h=X-Original-To:Received:DMARC-Filter:Received:DKIM-Signature:From:To:
	 Cc:Subject:Date:Message-ID:In-Reply-To:References:X-Mailing-List:
	 List-Id:List-Post:List-Help:List-Subscribe:List-Unsubscribe:
	 List-Owner:Precedence:MIME-Version:Content-Type;
	bh=jyi0ZYdSXMFjxWis5yIKPZ/e/pVOg1Og2RcpInXXxw8=;
	b=BlD7FnNhbqpU8DGYasxSxCH5dRBsDTI35qfKnx6NlzAYr/uzI+xP12OTtWY1eytX8yuO
	 LLyph8enn8DpE8v44nug1CJ+/n4KM2i/wf5wD9lDuMFx7yY7e7duB3eLTLDNcADI8/8ED
	 lRPdR9mKhKM0oE5IG2hTFdVZc1lg9UB/PFyI+kgN8ieLXK8YXH5g0c+R3PcZgmI912gVk
	 3qTXflA/+Z9HcsOY2ugADhAjLY012Xi3+EFJRBJzjGZEcG+GPYJhWflXjieqXwJ/z9+Zy
	 XcYiw9t/A0AlNglKm0WnwBXfeawhCcMNkqS6N0by+ZIB/hYGhIpkvgGL50nGPCq3whg==
X-ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; 
	dkim=pass header.d=narfation.org header.i=@narfation.org header.a=rsa-sha256 header.s=20121 header.b=2dJ5YK7Q;
	dmarc=pass header.from=narfation.org;
	spf=pass smtp.mailfrom=narfation.org;
	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 785B6606A323;
	Sun, 15 Nov 2026 09:42:20 +0000 (UTC)
X-Authentication-Results: smtp.subspace.kernel.org;
	dkim=pass (1024-bit key) header.d=narfation.org header.i=@narfation.org header.a=rsa-sha256 header.s=20121 header.b=2dJ5YK7Q
X-Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=213.160.73.56
X-ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none;
	t=1794735739;
	b=txTFXU2EFNnx1DUyNePbKi2iL86sV+Xk/xcloOA0codrBUUCRehcVNgwVYgqGXUOggDQ
	 VD1F6CJpWhioZL1mYz5l39m3fMb8sres9zCs6yTnVnfoVTtLe3vAW7YmHXdTvtw9FRhB5
	 aoN2y5ZdzroQeC0waW/shv0neaZMFD76nMh8hD8rwNx55dFlh4QZSaKimBFjI/Qp8pPWY
	 anVDpwe3WiaGtUmQN0LNGprdr5x30S3UiY7K0EsTpi546V/sVmDBvqwWLqn8ZXsfIp5NP
	 B8lRpFeVThg+6KP1S35XkDMZ45v8a39G/ZAnW09QKNqDx4y6wBC+B98syED5F7XQQyw==
X-ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015;
	a=rsa-sha256; c=relaxed/relaxed; t=1794735739;
	h=DMARC-Filter:Received:DKIM-Signature:From:To:Cc:Subject:Date:
	 Message-ID:In-Reply-To:References:MIME-Version:Content-Type;
	bh=jyi0ZYdSXMFjxWis5yIKPZ/e/pVOg1Og2RcpInXXxw8=;
	b=tuooyiX6mZQbxCTeKjjMduXr1KKh/LQXZJh3DbGvyRsjjYD5sY40Nr9SDLiowSbaME8K
	 3oiT4vb6xyXHAppETe4ba28vG4ocoz8wy4x77rVms2/yMPoa0ZdtyPyFBTayEbJ34vbhZ
	 vsEAeAZNsJAhFzFG08RdYVaqGSHkumFQ11luA3w1k26FJADYeVehLUlhAOasjOhWr/SPD
	 lXy6ttVS7jxyacryh+6/PHZvzQBQRt06MSilOXGX/q/7GoPj2Y3962Murke88bOotFVg6
	 7sobQkHK4I9tZo8yyrFxF4VAskblPzWK6a19oRtAAgwJGY6rFqr2dvHSpCifC6V2IMA==
X-ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; 
	dmarc=pass header.from=narfation.org;
	spf=pass smtp.mailfrom=narfation.org;
	dkim=pass header.d=narfation.org header.i=@narfation.org header.a=rsa-sha256 header.s=20121 header.b=2dJ5YK7Q;
	arc=none smtp.remote-ip=213.160.73.56
X-Received: from dvalin.narfation.org (dvalin.narfation.org [213.160.73.56])
	(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 9880B606A31E
	for <netdev@vger.kernel.org>; Sun, 15 Nov 2026 09:42:18 +0000 (UTC)
X-DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 9880B606A31E
X-Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=narfation.org
X-Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=narfation.org
X-Received: by dvalin.narfation.org (Postfix) id BAC5A1FD16;
	Sun, 15 Nov 2026 09:42:16 +0000 (UTC)
X-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=narfation.org;
	s=20121; t=1794735736;
	h=from:from:reply-to:subject:subject:date:date:message-id:message-id:
	 to:to:cc:cc:mime-version:mime-version:content-type:content-type:
	 in-reply-to:in-reply-to:references:references;
	bh=jyi0ZYdSXMFjxWis5yIKPZ/e/pVOg1Og2RcpInXXxw8=;
	b=2dJ5YK7QgAfvNQVVaVJdmuWNlNlG87tdSddq1xEh5UJBMdX58p49zinqu6YR6whGjIz/LD
	prKGB6QESgD1kXYCieRxW6E2EWWDHtl6szTA5Qk5WqrIgD9aAmkAxygZq3IIPk+84cf2VL
	QlXVmQ6fmMB3n8E4qWSK8NPL9ZVfpfU=
X-Cc: marek.lindner@mailbox.org, antonio@mandelbit.com, netdev@vger.kernel.org,
 b.a.t.m.a.n@lists.open-mesh.org
X-In-Reply-To: <sashiko-outbox-215350@kernel.org>
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