🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: linux.kernel.netdev
Article #16595

Re: [PATCH net-next 02/15] batman-adv: bla: use dedicated key type for backbone gateway hash

#16595
From: Sven Eckelmann
Date: Sun, 15 Nov 2026 09:37
47 lines
9794 bytes
--nextPart6047506.DvuYhMxLoT
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:37:39 +0100
Message-ID: <13009955.O9o76ZdvQC@sven-desktop>
In-Reply-To: <sashiko-outbox-215348@kernel.org>
MIME-Version: 1.0

On Sunday, 15 November 2026 10:24:42 CET sashiko-bot@kernel.org wrote:
[...]
> [Severity: Medium]
> This problem wasn't introduced by this patch, but should
> batadv_bla_purge_backbone_gw() and batadv_bla_del_backbone_claims()
> [1] increment hash->generation when removing entries with
> hlist_del_rcu()?
> 
> Netlink dumps such as batadv_bla_backbone_dump() and
> batadv_bla_claim_dump() set cb->seq from atomic_read(&hash->generation) and
> rely on genl_dump_check_consistent() to flag concurrent table changes with
> NLM_F_DUMP_INTR.  Because these bulk deletions (as well as
> __batadv_dat_purge() and batadv_purge_orig_ref()) unlink entries directly
> without bumping hash->generation, a concurrent netlink dump can miss
> NLM_F_DUMP_INTR and return an inconsistent snapshot to userspace.

This is done in the "increase hash generation when purging entries" patches in 
this series.

And it is absolutely unrelated to this patch.

Regards,
	Sven
--nextPart6047506.DvuYhMxLoT
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/OW8cVND3cr0xT1ywUCavl9YwAKCRBND3cr0xT1
yyY4AQCqj6pW6rJ265sQV3f8auxGfvDlUuerS5OMIji8HgG76QEA7hVNDYG02lCD
WQlSSI2FSAkxM1Od6pw/IX65AhH3pA0=
=eLP7
-----END PGP SIGNATURE-----

--nextPart6047506.DvuYhMxLoT--
Technical Details
Message-ID: <13009955.O9o76ZdvQC@sven-desktop>
Path: mbox-mo1.pugleaf.net!news-lax.pugleaf.net!srl.newsdeef.eu!news.mb-net.net!open-news-network.org!3.eu.feeder.erje.net!feeder.erje.net!feeder1.feed.ams11.usenet.farm!feed.usenet.farm!feeder.usenetexpress.com!tr3.eu1.usenetexpress.com!news.neodome.net!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-363632-linux-kernel-netdev=dewy.ru
References: <20261114091556.3336038-1-sw@simonwunderlich.de> <20261114091556.3336038-3-sw@simonwunderlich.de> <sashiko-outbox-215348@kernel.org>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-lax.pugleaf.net!srl.newsdeef.eu!news.mb-net.net!open-news-network.org!3.eu.feeder.erje.net!feeder.erje.net!feeder1.feed.ams11.usenet.farm!feed.usenet.farm!feeder.usenetexpress.com!tr3.eu1.usenetexpress.com!news.neodome.net!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-363632-linux-kernel-netdev=dewy.ru
From: sven@narfation.org (Sven Eckelmann)
Newsgroups: linux.kernel.netdev
Subject: Re: [PATCH net-next 02/15] batman-adv: bla: use dedicated key type for backbone gateway hash
Date: Sun, 15 Nov 2026 10:37:39 +0100
Organization: Usenet Network
Message-ID: <13009955.O9o76ZdvQC@sven-desktop>
References: <20261114091556.3336038-1-sw@simonwunderlich.de> <20261114091556.3336038-3-sw@simonwunderlich.de> <sashiko-outbox-215348@kernel.org>
MIME-Version: 1.0
Content-Type: multipart/signed; boundary="nextPart6047506.DvuYhMxLoT"; micalg="pgp-sha512"; protocol="application/pgp-signature"
Injection-Info: usenet.network; logging-data="1764211"; mail-complaints-to="abuse@usenet.network"
Cancel-Lock: sha1:axeTRdMuemMtfC/oejB+WibwjTM= sha256:BXK3WpXdc4UQ+hemhOUph6R11MYj6mnZU2sABIUSMWs= sha1:Yrvh14wqTriYnWpxKXzXpdGb71E= sha256:Fh3vlX7KX4Ed75LQAbJYSnS8HLf+V6/08Zo24hwVsuc=
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 DF6FC114978; Sun, 15 Nov 2026 12:38:15 +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 2y2pktAllCCP; Sun, 15 Nov 2026 12:38:08 +0300 (MSK)
X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.105.105.114; helo=tor.lore.kernel.org; envelope-from=netdev+bounces-363632-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 tor.lore.kernel.org (tor.lore.kernel.org [172.105.105.114]) by mail.dewy.ru (Postfix) with ESMTPS id E35BD114973; Sun, 15 Nov 2026 12:37:59 +0300 (MSK)
X-Received: from smtp.subspace.kernel.org (conduit.subspace.kernel.org [100.77.114.92]) by tor.lore.kernel.org (Postfix) with ESMTP id 5DE1F298E5; Sun, 15 Nov 2026 09:37:58 +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=1794735475; b=q0RBTKtaiwE7PiMV5WClYQbf8mTGUUQTANnE/xpwXbZO/pwpgo8MJ0MU12QIzHoqaPaR 2Z/3wVOXaLyhV5Cth1EQCKrVOa8YuIrsedoKYqLAit5Ej1m5xQ7uID6+oVQQmO55yF/Lo /muk3eXN2fRuOsRKFV/zA5X6fQZM87uajNEjpZpPrEpG14cLAwMvJC8licJRnkKz6CFDZ KfG/beh7HXhe8JB2/duGgbWwpilq6tBHGz4zigz2yacuzvKH93SGXPvviMnncXVvRXi5Q KcXz66pS6JzOfWQRRZSe1AxBU3lqnjnQWaDanRXoQaBKSgDvQVOMe2VYTh2jH7RYBpQ==
X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1794735475; 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=wwmpXvyRTyVJUt+RqQWfGJPUrlqMaIfW3WE9yDFdAx4=; b=JPYsWEGC72Y/47HIWc7Iw0GxXYLJDn/S1qwpLQ/cIAgUlR+JyI9p/KPpzcRDSzwBr5S+ 9uXZFkU29vs8IF5MnDUu9js6YIgSrT3uD55oUrIRhkiRPpKkvjNJnzEPDFFq+eOjdDI6B ujIz85OooLCFO3W/njzH/jVYbQkqi3PRYPQeBgjQBsu3dAHFQYxwJ2AW1JljWmoApHkLv z3NfKJnEopUfP/igZ7HuFWqjzJ26w1Hw0NQTDdYnnhaWNDo8xqakWatYnv7bP4FGmIQTi 24IHKHfn+INXidlNRArVLDZPhUrX5Cr2tUnimLpH0WoLwk0VNMneJHxgvJl+paqfy4w==
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="ti/mgU+I"; 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 BEB7F606A31E; Sun, 15 Nov 2026 09:37:55 +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=ti/mgU+I
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=1794735474; b=n9Y4pukeHndDvxN7HStZykuhGDBqwk+CgR07z1zJz/VrDQdhl96225sIgwsIuMffgc6m 0Ux8+5Mj6jzjFq5au5iuCPB3vOmPJFlHzNX2zzLAsd9qdJnQTAeaQ8HtVuSXGDacnmkcN y63nDheufkhixAVBbYBoSRTNgbOHf6FLCaTSKTIGe335trWqGBWcRSLDA9qDA4AdRMXMa weEIpx49WLj48k6VHulgSEZnjTJY9NcmDbr5C05sGtLLcwUzACjVXQoHZwSQ2YaxVjxn5 ts7IXiTkiHxZmyHeYY8BsD+8sZI1ecgRi3Tb99mHRQf7hID3QDYkplmFvhJj40zincg==
X-ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1794735474; h=DMARC-Filter:Received:DKIM-Signature:From:To:Cc:Subject:Date: Message-ID:In-Reply-To:References:MIME-Version:Content-Type; bh=wwmpXvyRTyVJUt+RqQWfGJPUrlqMaIfW3WE9yDFdAx4=; b=z2bb7HwezTbHQU9qXqvty4ukYb1c5SbEqrzrrJTD2dq27OkrldUUGZ94Zj2fGbZINEwu WiFEYci7wvJrx/Z1T34c8DDAz/eCDoTaKxCkLi/oZBvKTkN8Sb0uUy+yEUr/MBp5j5EdQ NVM2lb9SvygM+oeZjrAIkZb9EghVn2hKDTdFqz1ajAbPwLosK281sE4C25Aqr5mdY9mcv ovBcLyCSCputA7AlJYWzx6YKZhS5LMenBJI6WXhs/UonFKWmDlyaw6adccyhf6iX8+CkC u3Oe+nYBQwhwKKvmfVuTrRkUpXVeOIsHQAe8zuEh8v741n5fOuuigUijlFMkjPISOQQ==
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="ti/mgU+I"; 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) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 4E50B606A31A for <netdev@vger.kernel.org>; Sun, 15 Nov 2026 09:37:54 +0000 (UTC)
X-DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 4E50B606A31A
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 D0E681FDCB; Sun, 15 Nov 2026 09:37:46 +0000 (UTC)
X-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=narfation.org; s=20121; t=1794735467; 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=wwmpXvyRTyVJUt+RqQWfGJPUrlqMaIfW3WE9yDFdAx4=; b=ti/mgU+I2rgdcQk1OnSy+Xef2JsFl2ybsKWDeMwV+E0hKr0qEXH5lRsFeGYkOiiw9gOkzl DvlOqjkVgKxaVP0jodRleBp0lu7OfE3WqiYdSdlS7RHE1sCEo+kRITZrtYyQl4ExcazFbW 5A1z5tgMu5GE7RWhZ7nBEDEFw6C4V4s=
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-215348@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