Received: by 2002:a05:7412:f589:b0:e2:908c:2ebd with SMTP id eh9csp1064228rdb; Wed, 1 Nov 2023 10:13:25 -0700 (PDT) X-Google-Smtp-Source: AGHT+IEWNPK9LldKXb2QP0JbJtnixaHz0Kh4lYDalvl99XcXolZ7zEM2xlBgnsd5SENgYQqcBP2F X-Received: by 2002:a05:6e02:50e:b0:359:4ae3:cd9a with SMTP id d14-20020a056e02050e00b003594ae3cd9amr1316277ils.30.1698858805393; Wed, 01 Nov 2023 10:13:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1698858805; cv=none; d=google.com; s=arc-20160816; b=HXL2LE9jCNzevYH04co7i9Ky3q1oY+tPp8XR2QpzqfjJ73neCIi3sBR3FXh/wpVQp3 xdFY/1pcnvXGAEwFguJNI7nIRvQ1ALqCNTpKiXmchNIPx2W0jLlwNjkkcU5fh5YjXfiX STQhQK3C+2Du27wEcQJQIDN3gdl4QIPTtjFehB93h2yGGSilSgcp2aoQ9TCArwDrWymV FpJkijNgsYU5wjHQj2Sdj/XeNrG5aEzRxntHi0ip3E/peBU7VQEJEe4LhOr64Pii2XGG h7Y/bDlpOB95Njg5+4Agt1EkvGhExz3s7vrP6g5sc66pbyS/upKAkJZR7xr4MsZwyWDI CX5w== 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:reply-to:message-id:subject:cc:to:from:date :dkim-signature; bh=m8uKYJFVXqAWSlb6MLGV2RmMLM0m/n+ubrnOx4juEDU=; fh=3ScpczENNZiEkLn/QZvsAui1N66SK2LUATLg9aPCyVw=; b=XpTuonwCHioH+16d+jDH08CBRd5wkqTCnrTGqkzmu5L8RMEAwDPJIqGW+YmYIeIY8t mwJTDMkfRdXGtHqStLt0mnEf+rg3BpIxxjIEvBCpHAsJbk+IyWjhS5PgKKgTsh7hFc9x aj+NpR1ygvzi1PUVW9WCCZkvGfTQxouuGGUyRgfjUfuvR1uqGm8WlcCu7FrSpCPRcOD6 R/X9dVkI8pdHOPwyI1QqBtG7c9z4e8oKYtIu3hlytqLHlWHxre5Q8KI0RmbldO4qTKbg AjiFGYdj4Ppnhry/0uSKLBIeJIeSwpjocNm4erioyKcJG6I+Cywp8qB4/aJT1YLOSAHS tVpw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=k+uuAch9; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:5 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from groat.vger.email (groat.vger.email. [2620:137:e000::3:5]) by mx.google.com with ESMTPS id h2-20020a056a00230200b006bf632a0736si2100741pfh.284.2023.11.01.10.13.23 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 01 Nov 2023 10:13:25 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:5 as permitted sender) client-ip=2620:137:e000::3:5; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=k+uuAch9; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:5 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by groat.vger.email (Postfix) with ESMTP id 09A888047448; Wed, 1 Nov 2023 10:13:21 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at groat.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1344654AbjKARNM (ORCPT + 99 others); Wed, 1 Nov 2023 13:13:12 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58732 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1344598AbjKARNL (ORCPT ); Wed, 1 Nov 2023 13:13:11 -0400 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3720010E; Wed, 1 Nov 2023 10:13:09 -0700 (PDT) Received: by smtp.kernel.org (Postfix) with ESMTPSA id CB57BC433C8; Wed, 1 Nov 2023 17:13:08 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1698858788; bh=FSBuDV3vn5ABFwCq/Fw5E+UxUcGXr0n01nZQCGovems=; h=Date:From:To:Cc:Subject:Reply-To:References:In-Reply-To:From; b=k+uuAch9XlzhQ6zX3uH+i4yKj/TY1VgTdvuHDW2BWMAgvlR/MNCLqoKsfkNVFrOB9 BM8+qaMam0gvD9emFXsJ0kUvmwYFaIjLkbjrgeMfzzWKjnOqTfr6+/0v8o/v4/UICB nTTe9F7PW2/oUCJbHtpDv88UfPxYkusD8iNAHGrcyPAoZHxA83Hl9QI9MWe7ALvaLu IGHVpJQBkN6xpJYa0lJXysvTIjhDWvL20iE5YkQnLm7lhq/nBsZtC9AkB9PYgx3nlX H4Hzlhb9HGw581IFptvys8kTiz6B2aDKhvq3Z2nGFHNfjrMM3ql9kUSJ/99t93hdwm 4ODVtWtRQ0LZw== Received: by paulmck-ThinkPad-P17-Gen-1.home (Postfix, from userid 1000) id 6705ACE09BE; Wed, 1 Nov 2023 10:13:08 -0700 (PDT) Date: Wed, 1 Nov 2023 10:13:08 -0700 From: "Paul E. McKenney" To: Linus Torvalds Cc: Frederic Weisbecker , linux-kernel@vger.kernel.org, Thomas Gleixner , Ingo Molnar , rcu@vger.kernel.org, Boqun Feng , Joel Fernandes , Neeraj Upadhyay , Uladzislau Rezki , Z qiang Subject: Re: [GIT PULL] RCU changes for v6.7 Message-ID: <5e797896-6c0b-4686-98b7-d66bcdb10d0a@paulmck-laptop> Reply-To: paulmck@kernel.org References: <78b18304-c6a5-4ea1-a603-8c8f1d79cc1a@paulmck-laptop> <7416f684-37e7-4355-a5a0-2b1b5ef1b4d7@paulmck-laptop> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <7416f684-37e7-4355-a5a0-2b1b5ef1b4d7@paulmck-laptop> X-Spam-Status: No, score=-1.6 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on groat.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 (groat.vger.email [0.0.0.0]); Wed, 01 Nov 2023 10:13:21 -0700 (PDT) On Tue, Oct 31, 2023 at 06:07:57PM -0700, Paul E. McKenney wrote: > On Tue, Oct 31, 2023 at 01:06:44PM -1000, Linus Torvalds wrote: [ . . . ] > > I really think that we should *never* have any kind of notifiers for > > kernel bugs. They cause problems. The *one* exception is an actual > > honest-to-goodness kernel debugger, and then it should literally > > *only* be the debugger that can register a notifier, so that you are > > *never* in the situation that a kernel without a debugger will just > > hang because of some bogus debug notifier. Here you might have been suggesting that I use gdb and just set a breakpoint in check_cpu_stall(), and then use gdb commands to read out the state. And yes, this work well in some situations. In fact, there is a --gdb parameter to the rcutorture scripting for just this purpose. Except that I normally run a few hundred rcutorture guest OSes spread across 20 systems, and sometimes more than a thousand guest OSes across 50 systems for hard-to-reproduce bugs. In my experience, managing that many remote gdb sessions is cranky and unreliable, which is not helpful when debugging. Writing a few tens of lines of C code in the kernel is much simpler and more reliable. Assuming of course that I avoid the traps you point out. Which I have done thus far. (Famous last words...) Thanx, Paul