Article View: linux.kernel.netdev
Article #3525Re: [PATCH net-next v2 1/2] netconsole: avoid printing partially updated target attributes
From: Breno Leitao
Date: Thu, 15 Oct 2026 09:59
Date: Thu, 15 Oct 2026 09:59
20 lines
7060 bytes
7060 bytes
On Mon, Oct 12, 2026 at 06:03:43PM +0100, Gustavo Luiz Duarte wrote: > The configfs store callbacks all serialize on dynamic_netconsole_mutex > but not on the read side, so reading an attribute while it is being > written returns a partially updated value. > > Hold dynamic_netconsole_mutex on *_show() callbacks to avoid racing with > writers. > > The dev_name_show() callback can also race with > netconsole_netdev_event() writing to np.dev_name due to > NETDEV_CHANGENAME. So it needs to hold target_list_lock in addition to > dynamic_netconsole_mutex. > > Reported-by: Sashiko <netdev-bot+sashiko@kernel.org> > Closes: https://netdev-ai.bots.linux.dev/sashiko/#/patchset/20260814-netcons_ipv6-v3-7-bc0915e8c75f@gmail.com > Closes: https://netdev-ai.bots.linux.dev/sashiko/#/patchset/20260928-netcons-fixes-v1-0-bb5ffe5e698a%40gmail.com > Signed-off-by: Gustavo Luiz Duarte <gustavold@gmail.com> Reviewed-by: Breno Leitao <leitao@debian.org>
Technical Details
Message-ID:
<atCj2rOpqy83s5bC@gmail.com>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-346651-linux-kernel-netdev=dewy.ruReferences:
<20261012-netcons-fixes-next-v2-0-ac8ec4c62edb@gmail.com> <20261012-netcons-fixes-next-v2-1-ac8ec4c62edb@gmail.com>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-346651-linux-kernel-netdev=dewy.ru From: leitao@debian.org (Breno Leitao) Newsgroups: linux.kernel.netdev Subject: Re: [PATCH net-next v2 1/2] netconsole: avoid printing partially updated target attributes Date: Thu, 15 Oct 2026 02:59:03 -0700 Organization: Usenet Network Message-ID: <atCj2rOpqy83s5bC@gmail.com> References: <20261012-netcons-fixes-next-v2-0-ac8ec4c62edb@gmail.com> <20261012-netcons-fixes-next-v2-1-ac8ec4c62edb@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Injection-Info: usenet.network; logging-data="2505585"; mail-complaints-to="abuse@usenet.network" Cancel-Lock: sha1:/lNIxOyqbTJbs3nIBMbpJZY1Aqc= sha256:TVv9tPaUgXXWeph4eNZXVElC98Y6DFkS3MmA7Cme8Cw= sha1:A1+5H2+luBMxa1fL+lzDeagEsv0= sha256:fIe6OYhtVWsM/N+pTeRy24rB5K18XmYEib8rYF/+jic= Content-Disposition: inline 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 711641102B4; Thu, 15 Oct 2026 13:23:19 +0300 (MSK) X-Virus-Scanned: Debian amavisd-new at usenet.network X-Spam-Flag: NO X-Spam-Score: -3.289 X-Spam-Status: No, score=-3.289 tagged_above=-9999 required=6.31 tests=[DCC_REPUT_70_89=0.1, DKIMWL_WL_HIGH=-0.24, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, HEADER_FROM_DIFFERENT_DOMAINS=0.25, MAILING_LIST_MULTI=-1, RCVD_IN_DNSWL_MED=-2.3, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001] autolearn=ham autolearn_force=no X-Authentication-Results: mail.dewy.ru (amavisd-new); dkim=pass (2048-bit key) header.d=debian.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 ZwlQPySioib0; Thu, 15 Oct 2026 13:23:16 +0300 (MSK) X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.234.253.10; helo=sea.lore.kernel.org; envelope-from=netdev+bounces-346651-linux-kernel-netdev=dewy.ru@vger.kernel.org; receiver=<UNKNOWN> X-Authentication-Results: OpenDMARC; dmarc=fail (p=none dis=none) header.from=debian.org X-Received: from sea.lore.kernel.org (sea.lore.kernel.org [172.234.253.10]) by mail.dewy.ru (Postfix) with ESMTPS id 9D50711029E; Thu, 15 Oct 2026 13:23:07 +0300 (MSK) X-Received: from smtp.subspace.kernel.org (conduit.subspace.kernel.org [100.90.174.1]) by sea.lore.kernel.org (Postfix) with ESMTP id 8205168370; Thu, 15 Oct 2026 10:02:32 +0000 (UTC) X-Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id B40C851B178; Thu, 15 Oct 2026 09:59:16 +0000 (UTC) X-Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=debian.org header.i=@debian.org header.b="ukyERuE4" X-Received: from stravinsky.debian.org (stravinsky.debian.org [82.195.75.108]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 0B2C450EBFE; Thu, 15 Oct 2026 09:59:14 +0000 (UTC) X-Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=82.195.75.108 X-ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1792058356; cv=none; b=RKxHAKDkELCK9ZeUcaZfvcH+CDcI6PdJObHqbo6HdH/HyU9MQ602OOjfKe2FGhNmqEtY6v42tjjVK5caRnz6mbwumNi9SPBMwPCs1VIBRpmfjaRUcDHwZbuPhwsbY17DnY0ytON22mkEEnXsPDBYA7Tgx9OBete/72w5TyySuVE= X-ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1792058356; c=relaxed/simple; bh=NVOia/N7LIk8muVKWJmeQ6PHy+eo+cQ9zaVjQs9I690=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=eTGjzG/tU8bP2celyKl12TbnCHbnhzL5tNABedSRkOSai2vmoWBtGWLgNw8yZD/7FPvITNwpGduz2JGkG7tN333UsRakY5U/c9uJiNcoFClCL2mbryqywhkvsofsGVqODgTel7LRogYEzJPNxOeM8WXKXIbf7Pb8y1p2ImzcQW0= X-ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=debian.org; spf=pass smtp.mailfrom=debian.org; dkim=pass (2048-bit key) header.d=debian.org header.i=@debian.org header.b=ukyERuE4; arc=none smtp.client-ip=82.195.75.108 X-Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=debian.org X-Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=debian.org X-DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=debian.org; s=smtpauto.stravinsky; h=X-Debian-User:In-Reply-To:Content-Type:MIME-Version: References:Message-ID:Subject:Cc:To:From:Date:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description; bh=uAHo67pn/12jxJum+3WSXwcW7pfgqgyfx97rw9oiqW8=; b=ukyERuE4dLZMVahRFReNWVx0gi qEQqcN+leoQIn50ENP2cPXNGKIMmgNnDAA/vG+i/dkWamyUm9HRf5duku3Vz1FQrVVuQpqJM9bhsz /V58VQLOrBLx91zm5gddj6smw9rnOKVlZQ8xC3q62Z+WGNMYnbhIwXFXxcsAA1R6MuDfIiWI5z3fI kyum1w1dD9HMe5T436aYRj3qzYiQHczQEgLonJX0zIdFih3YIl4rV9HB0ZvgjxxSyz8QxmcQrYB5y L9Wt0lfzO+eMsp+g9ABkEOwPPuPj0K+XgSYrjMKxoYosAvfb4hRr0FTcOjT4xdN5hZfyEb8GTtwhC 4V4rTIvQ==; X-Received: from authenticated-user by stravinsky.debian.org with esmtpsa (TLS1.3:ECDHE_X25519__RSA_PSS_RSAE_SHA256__AES_256_GCM:256) (Exim 4.96) (envelope-from <leitao@debian.org>) id 1xHIEt-0056yl-1s; Thu, 15 Oct 2026 09:59:08 +0000 X-Cc: Andrew Lunn <andrew+netdev@lunn.ch>, "David S. Miller" <davem@davemloft.net>, Eric Dumazet <edumazet@kernel.org>, Jakub Kicinski <kuba@kernel.org>, Paolo Abeni <pabeni@redhat.com>, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, Sashiko <netdev-bot+sashiko@kernel.org> X-Precedence: bulk X-Mailing-List: netdev@vger.kernel.org X-List-Subscribe: <mailto:netdev+subscribe@vger.kernel.org> X-List-Unsubscribe: <mailto:netdev+unsubscribe@vger.kernel.org> X-In-Reply-To: <20261012-netcons-fixes-next-v2-1-ac8ec4c62edb@gmail.com> X-Debian-User: leitao