Received: by 2002:a05:7412:2a8c:b0:e2:908c:2ebd with SMTP id u12csp3332678rdh; Thu, 28 Sep 2023 08:42:14 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHM5YL87lCJJ368yYoyomXEX2PKJ2mLNgzlZRe8XVvYUdHi5xgQwtbpCVMFpFLb41i+/tlj X-Received: by 2002:a17:903:25d4:b0:1b9:e972:134d with SMTP id jc20-20020a17090325d400b001b9e972134dmr1329742plb.3.1695915733207; Thu, 28 Sep 2023 08:42:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1695915733; cv=none; d=google.com; s=arc-20160816; b=VQUmNQkzLYLKf5IpP3PIFBmPCsaKHJ1ndrHTbYOgXlxP27d/vdGsxdxiIZUMaRo1fn FgjtwlltMur/XdWgIONslWs7wOmu0GKrfouHtFqfZewfHo266Zkfs6I7Mj2I4jXo7uad U4AiR+vzuYQ92EctOHql9uTquUdXdBoudIuJf8kMfQwr+jJjAX0hbvf3dNW0NjEupi/B PlhWaAfhdDGhVMc8acSvyoWg8iF3EWkyuV+xSuyqrySh2Gk2XUJGk7czBw+qoGg2exdK xEHQz10g1aueDvFoL7o4LOYFs+WUycFHN9R2SsQBS+jtn/eDX7kW2qqtxaSBwhaVf5X0 n+lQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=jd8dYp7Pt8k7CilbcSNgX/vhKFjZi5YS/kaYrGpcaOg=; fh=oelvOC+fdbzRoKt4V/Y+8Nyeq7D+/y4SF8aIaBWZCKc=; b=dsypIfQ7NLNi6/GVbvZnqRUyJm5YhdZ5q1gjikaFAL9vwEqD0xolVncKNbzLg7WEKS 9Wbjw+vd3OTf6UzlAQplBALkDB2pJeHJHt/bF2y80kVe2vdzlTOVQlJ8tzJr57gPnzIT k3jwQMqqOoEm0QURbnWzABfkVgFxoqlhAXVNruy92dXuUz9iAP47EzsqewZ/ldZj7VmZ bitzSUsieqjdDqhK1cLpnjXD5nO73Eg+y3bIRS8pGeEQLWyJwn6WOaGLAU9oNh/11w1S Fe2jERjzMjdoY8l5+O8gTXkIIlQ0QvWT8kky4Vjl2Ben+XksqMYIB2hzWg9kEEbeBFsg BtaA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=desiato.20200630 header.b=Tho9mKtJ; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.36 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from pete.vger.email (pete.vger.email. [23.128.96.36]) by mx.google.com with ESMTPS id p15-20020a170902ebcf00b001c0727658c3si17736619plg.259.2023.09.28.08.42.12 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 28 Sep 2023 08:42:13 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.36 as permitted sender) client-ip=23.128.96.36; Authentication-Results: mx.google.com; dkim=pass header.i=@infradead.org header.s=desiato.20200630 header.b=Tho9mKtJ; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.36 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by pete.vger.email (Postfix) with ESMTP id 46A98812280C; Thu, 28 Sep 2023 08:30:15 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at pete.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231874AbjI1PaC (ORCPT + 99 others); Thu, 28 Sep 2023 11:30:02 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41360 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231384AbjI1P37 (ORCPT ); Thu, 28 Sep 2023 11:29:59 -0400 Received: from desiato.infradead.org (desiato.infradead.org [IPv6:2001:8b0:10b:1:d65d:64ff:fe57:4e05]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 77D27B7; Thu, 28 Sep 2023 08:29:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=desiato.20200630; h=In-Reply-To:Content-Type:MIME-Version: References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description; bh=jd8dYp7Pt8k7CilbcSNgX/vhKFjZi5YS/kaYrGpcaOg=; b=Tho9mKtJbnXYlt4hSYEACcM56G q45VTY9HK9+1l97sJufYzPbUu6F26LTsmKIlv02ZgfCOTqDNynlWvidyGUafGQfqxp3OIhR61LmWx 9tbndOmSa2gdFN5XG8O01QNBbVRo68zOUf98BfbZxLCZHCz4t3pHsOpZxgtDKyWAV0p6YZBdvfN/q QSAvWJENsjxFyojQAK1eobn6RjO+jkz0eb3KQe/lGS0e+/9EDiHcxiSNoJxoEiO/KbZ6ogx3JKneS QeSQZ9xW0tj5fZNxSh0/7TxWKUvYkdn5KxPNckXqmJ2KDMGAXmEyODk9iE2vlUVmC14OV3PAGHCJM kRGDIkLQ==; Received: from j130084.upc-j.chello.nl ([24.132.130.84] helo=noisy.programming.kicks-ass.net) by desiato.infradead.org with esmtpsa (Exim 4.96 #2 (Red Hat Linux)) id 1qlsxR-0058br-2J; Thu, 28 Sep 2023 15:29:43 +0000 Received: by noisy.programming.kicks-ass.net (Postfix, from userid 1000) id CEEC63002E3; Thu, 28 Sep 2023 17:29:42 +0200 (CEST) Date: Thu, 28 Sep 2023 17:29:42 +0200 From: Peter Zijlstra To: Boqun Feng Cc: Sebastian Andrzej Siewior , linux-kernel@vger.kernel.org, rcu@vger.kernel.org, "Paul E. McKenney" , Frederic Weisbecker , Ingo Molnar , Joel Fernandes , John Ogness , Josh Triplett , Lai Jiangshan , Mathieu Desnoyers , Neeraj Upadhyay , Steven Rostedt , Thomas Gleixner , Waiman Long , Will Deacon , Zqiang Subject: Re: [RFC PATCH] srcu: Use try-lock lockdep annotation for NMI-safe access. Message-ID: <20230928152942.GE27245@noisy.programming.kicks-ass.net> References: <20230927160231.XRCDDSK4@linutronix.de> <20230928080900.GF9829@noisy.programming.kicks-ass.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on pete.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (pete.vger.email [0.0.0.0]); Thu, 28 Sep 2023 08:30:15 -0700 (PDT) On Thu, Sep 28, 2023 at 07:54:10AM -0700, Boqun Feng wrote: > On Thu, Sep 28, 2023 at 10:09:00AM +0200, Peter Zijlstra wrote: > > On Wed, Sep 27, 2023 at 11:06:09PM -0700, Boqun Feng wrote: > > > > > I think this is a "side-effect" of commit f0f44752f5f6 ("rcu: Annotate > > > SRCU's update-side lockdep dependencies"). In verify_lock_unused(), i.e. > > > the checking for NMI lock usages, the logic is that > > > > I think I'm having a problem with this commit -- that is, by adding > > lockdep you're adding tracepoint, which rely on RCU being active. > > > > The result is that SRCU is now no longer usable from !RCU regions. > > > > Interesting > > > Was this considered and intended? > > > > No, I don't think I have considered this before, I think I may still > miss something here, maybe you or Paul can provide an example for such > a case? The whole trace_.*_rcuidle() machinery. Which I thought I had fully eradicated, but apparently still exists (with *one* user) :-/ Search for rcuidle in include/linux/tracepoint.h Also, git grep trace_.*_rcuidle