Article View: linux.kernel.netdev
Article #15085Re: [PATCH net-next 08/15] batman-adv: tt: annotate last_seen with READ/WRITE_ONCE
From: Sven Eckelmann
Date: Thu, 12 Nov 2026 10:57
Date: Thu, 12 Nov 2026 10:57
49 lines
9786 bytes
9786 bytes
--nextPart3402950.aV6nBDHxoP Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="utf-8"; protected-headers="v1" From: Sven Eckelmann <sven@narfation.org> To: sashiko-reviews@lists.linux.dev, netdev@vger.kernel.org Cc: b.a.t.m.a.n@lists.open-mesh.org Date: Thu, 12 Nov 2026 11:57:55 +0100 Message-ID: <2765052.7s5MMGUR32@ripper> In-Reply-To: <sashiko-outbox-210958@kernel.org> MIME-Version: 1.0 On Thursday, 12 November 2026 11:34:43 CET sashiko-bot@kernel.org wrote: [...] > [Severity: High] > This problem wasn't introduced by this patch, but can dropping > common->flags_lock in batadv_tt_local_add_existing() before queueing the > ADD event [1] let a delayed ADD cancel a concurrent DEL event? > > batadv_tt_local_add_existing() clears BATADV_TT_CLIENT_PENDING under > common->flags_lock, and its caller batadv_tt_local_add() only queues the > corresponding ADD event via batadv_tt_local_event() after the lock has > been released: This is handled by a pending patchset [1] which couldn't be submitted here because were have so many other things to fix in the TT code and already fill our submission up to the max of 15 patchset since a while. And it is completely irrelevant for the submitted patchset. Regards, Sven [1] https://git.open-mesh.org/pub/ecsv/batman-adv.git/log/?h=b4/tt-avoid-unhashed-event --nextPart3402950.aV6nBDHxoP 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/OW8cVND3cr0xT1ywUCavWbswAKCRBND3cr0xT1 y/YpAP9pCjha3Y6xeOY65LTDoFqSdDfgud9m+uI8fWcRtekfsQEAsqHTFRxclv59 2bqkJCF1r3maEqFRRG6k5F/gwf64VAo= =b0cZ -----END PGP SIGNATURE----- --nextPart3402950.aV6nBDHxoP--
Technical Details
Message-ID:
<2765052.7s5MMGUR32@ripper>Path:
mbox-mo1.pugleaf.net!news-lax.pugleaf.net!srl.newsdeef.eu!news.mb-net.net!open-news-network.org!news.nntp4.net!nntp.xenet.de!news.neodome.net!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-361743-linux-kernel-netdev=dewy.ruReferences:
<20261111102729.2096241-1-sw@simonwunderlich.de> <20261111102729.2096241-9-sw@simonwunderlich.de> <sashiko-outbox-210958@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!news.nntp4.net!nntp.xenet.de!news.neodome.net!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-361743-linux-kernel-netdev=dewy.ru From: sven@narfation.org (Sven Eckelmann) Newsgroups: linux.kernel.netdev Subject: Re: [PATCH net-next 08/15] batman-adv: tt: annotate last_seen with READ/WRITE_ONCE Date: Thu, 12 Nov 2026 11:57:55 +0100 Organization: Usenet Network Message-ID: <2765052.7s5MMGUR32@ripper> References: <20261111102729.2096241-1-sw@simonwunderlich.de> <20261111102729.2096241-9-sw@simonwunderlich.de> <sashiko-outbox-210958@kernel.org> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="nextPart3402950.aV6nBDHxoP"; micalg="pgp-sha512"; protocol="application/pgp-signature" Injection-Info: usenet.network; logging-data="1069294"; mail-complaints-to="abuse@usenet.network" Cancel-Lock: sha1:zOYwAmlKhM/qXvKighUH6hoNkrA= sha256:TaYJDvZ5zSeO9qhaJci71camUJ6GEjLBF+VcvLinKi8= sha1:SvYd6f1KAxMWP93z0Xknk4oGiAA= sha256:r1rvk48O2zUTNVh6MpCMHWvvqbqA84e3yPTPqtfEn0c= 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 4A1571141E6; Thu, 12 Nov 2026 14:06:17 +0300 (MSK) X-Virus-Scanned: Debian amavisd-new at usenet.network X-Spam-Flag: NO X-Spam-Score: -3.151 X-Spam-Status: No, score=-3.151 tagged_above=-9999 required=6.31 tests=[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 fmamvPvK3udi; Thu, 12 Nov 2026 14:06:13 +0300 (MSK) X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.232.135.74; helo=sto.lore.kernel.org; envelope-from=netdev+bounces-361743-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 sto.lore.kernel.org (sto.lore.kernel.org [172.232.135.74]) by mail.dewy.ru (Postfix) with ESMTPS id 97CD31141E1; Thu, 12 Nov 2026 14:06:05 +0300 (MSK) X-Received: from smtp.subspace.kernel.org (conduit.subspace.kernel.org [100.77.114.92]) by sto.lore.kernel.org (Postfix) with ESMTP id 1261466685D; Thu, 12 Nov 2026 10:58:07 +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=1794481080; b=jFdUcoap6zkWAXKjX4hY7s4DtSvOjMhtzE1ku2EkZWxw/p2FUiwLLJl43Wy60o3R62tz Tqbi9v2Eqndf5aSTLWQOMRW1vDMYCBqr8F8W78k5EUdc9Qi6cExpbVOmNP3ajN69rxdMQ 1JPjFMkInL0EcAw7r9RUr4lJvumEARrPr8meKEJSbA1w2txzLWjSQTC9MPbUlddm1ifbo q8W7HYJih4zGO8+LpwOPkT9L7HJs3oWxJXssbQCi5fDgWIIHKdAI6wNbknt3gbz70W2/3 y2nBOrpYEwFYsGqNNOo70GPCSev8bAOWrMfFbQc2hI5/eAZTfiMsIBhsPrb8KdUNXrQ== X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1794481080; 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=ycpTw26ozG7nGyxNHYwJnlgidjx45yFTso1Q38E6eC8=; b=4sM+O+C5iCjqQq0hBKoqnDLbRQEbKj0A1D8+oclB9BcMron4PgWoLA5zXPoiDrvv/BzO B4FfJ7xWFeDMrqVYtD9lutI+Ca/Rom5WyUnVzvXXhnF+RdPd4yPQnhbzEOzaojYvdzzbo KOL/d5FUEsZNjvRvQXJrCXgoAhKaVpg2B0HMdCBRawaxpdRs+ws/kg4opko/OKC9TPuP/ z7VGPz0akdCqZdeureiXEAvMvFc3J6iQ53fGfsUY8vp9kPhD4NV5y+DSOQYUIHrNc9VkA rv10Ja9DFt+pzdDA93JQBMl7oxDluD2RcsjgbfhHSSPAGscMeT+Y6V+yQfr9QNbEOZw== 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=V2zvC8CS; 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 A63E1606A880; Thu, 12 Nov 2026 10:58:00 +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=V2zvC8CS 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=1794481079; b=NYL23/suniKhipQMiTMY010yby+Ky+gRn/WVmjFDxaL5VIRT3NkJOOPT+44fnd/oKm3E l0oz23qOqpxmmHtcggKpePi2jWzB220a4+WRzlkpS0lNoNbsGmKCHB04/v3nTmX3pSWV4 ClUdythONhC2z163TqwJelH+SR2I3jsAD+GJNoFvXDI06HNdjtbpi5MfswVeFvqTV+81h 7FkWZKZelxcdnjxXRK0iUP0W7Bqwo1M8oFuQn5h5lQu7h6ohgEdVsSU3S0Mz+kTADSCXc Q79uaJy6rkjHzRxBoTS9JL4Oxw+/4mviaGD1fCw8RQj2JXkmj3KbYluv8KqWU8Tk8ZQ== X-ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1794481079; h=DMARC-Filter:Received:DKIM-Signature:From:To:Cc:Subject:Date: Message-ID:In-Reply-To:References:MIME-Version:Content-Type; bh=ycpTw26ozG7nGyxNHYwJnlgidjx45yFTso1Q38E6eC8=; b=UcOst0nj3TDekbW08456Bzf0DA/dQnf+/7LOwsMCa/jcuQl+WohRONoi5Mr1igSsGpP9 0DyGw+x/U5x+0w5uSa7hdLLAFHinYix76fazg8pj3Fae/wN3PbinhtBgWPvXbVjdkcUuo QnwEOlChxkiVacj4+VypXf8WovQiEK4ECozGFNyEv6UaJ33pssLUZglA8+vatyiChrh1A GNf7vTI+khOCQMlCBVWcWgUItsjy26xaNsVHgIg4UmpzumoSteG6lXTZHCjQcVY/RF0es lkOweLaQCDZArNqnsgyYasP7MHUcW9nPpPS0PU+dIYFYxsaQr1ybYHuz1KoE0lqN7Hg== 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=V2zvC8CS; 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 5B6BC606A327 for <netdev@vger.kernel.org>; Thu, 12 Nov 2026 10:57:59 +0000 (UTC) X-DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 5B6BC606A327 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 7DB7A1FEF7; Thu, 12 Nov 2026 10:57:57 +0000 (UTC) X-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=narfation.org; s=20121; t=1794481077; 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=ycpTw26ozG7nGyxNHYwJnlgidjx45yFTso1Q38E6eC8=; b=V2zvC8CS10XdJfMs1wizSVU/bVMVxl4+Y4HkAcFfF6Qy+Ib+WuFKzV6cVukCowGYJp/WjH 4AMEHM5ikYrdPyEEXPGwsKlQJPi2+fQKN0a28+017xhQjmsNKhZhouBbnKdM5Z9anJPgSU oP6Wg2FEEDh0dY/kEQ+4Fsx2nkrnP8M= X-Cc: b.a.t.m.a.n@lists.open-mesh.org X-In-Reply-To: <sashiko-outbox-210958@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