Received: by 2002:a05:7412:f589:b0:e2:908c:2ebd with SMTP id eh9csp569175rdb; Tue, 31 Oct 2023 16:07:19 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHLtltwh2dfNw+/3xDR9LkCa6HC1katA5DUSbnEsuSxCZc8VdFnRBlp4mJ+lwZOaQpYMXrG X-Received: by 2002:a05:6358:60c6:b0:169:845b:343d with SMTP id i6-20020a05635860c600b00169845b343dmr4534714rwi.28.1698793638830; Tue, 31 Oct 2023 16:07:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1698793638; cv=none; d=google.com; s=arc-20160816; b=MKlizJ5DeYRBIERa2cd+5I3hVE6YI/QEb/WWXgXhGmGl+5sXAbYGxo/Td48XjgQ1st 253rjw69sbbqJ3WI96LZSu+R731S0iLR/NdCDzqzHOY+8VOFNseD/nR7p4BRVCywUawz 5IU9ljP5g6uMEPMMNkkx3o7gAV16W4nEAAWsSWpM/UGliHdB1weCpLdpc6z8diyIrtl6 3TAGrNvECtgd++iKuq+NUnPf3D+n5wpCP3PqXz26GcVy3jWi7d6rWiHdzWpu0WlWtnA9 cNjOke6CNA9ln5x76EfSMul8Aa6UyVKZBh9FdbeaNCeYezy4+dIuBqa4g4G1gYs3FRXE Z1xg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=0wUvOEnKmTi8WEvQZdsskLf9E1FQBX1NqUbV0gaScgU=; fh=aQw5iTOPkmQBNa52EE1qhbI7MFIXyITniBHwIqnckxs=; b=q1bJ8Kz5kxSefwUZTLqFPcXm+eC6IbHXXBSlG9XIs2L6Ze1/LkqmB4pSkvjuIP2kvS xzupU3prmKi9YT1nHbl6iwr5v0o+pl6w2Jk2HibaZQpYSaUphfhIbD/47E3jMNLBI7Dj AaNogPLG56jhm0YVpfj5EjGzc2x9thK9NMlnPqsNGWreHv1mantCMfITIxYu5jMH8XwW Nt9Ma2DiU1cNWPpM0SBMtKbg9QX8OYTs3jcbauB7NylvvYJhBHp2Nhu/gLyRUmjbGVSE uyakEeUu/W4Cr9oioDBKRsV3k0wLDOwBO8IIaA7YG87WPHOBK2dwaxj3Ld90ZdYH3LFt 4r/Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linux-foundation.org header.s=google header.b=J4BbpNb5; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.35 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from groat.vger.email (groat.vger.email. [23.128.96.35]) by mx.google.com with ESMTPS id m1-20020a632601000000b0057942bfab4dsi1710128pgm.395.2023.10.31.16.07.18 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 31 Oct 2023 16:07:18 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.35 as permitted sender) client-ip=23.128.96.35; Authentication-Results: mx.google.com; dkim=pass header.i=@linux-foundation.org header.s=google header.b=J4BbpNb5; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.35 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 groat.vger.email (Postfix) with ESMTP id 456FE8098FEE; Tue, 31 Oct 2023 16:07:16 -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 S1376468AbjJaXHI (ORCPT + 99 others); Tue, 31 Oct 2023 19:07:08 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59200 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1376458AbjJaXHG (ORCPT ); Tue, 31 Oct 2023 19:07:06 -0400 Received: from mail-ed1-x530.google.com (mail-ed1-x530.google.com [IPv6:2a00:1450:4864:20::530]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 28220C9 for ; Tue, 31 Oct 2023 16:07:04 -0700 (PDT) Received: by mail-ed1-x530.google.com with SMTP id 4fb4d7f45d1cf-53e2dc8fa02so10777395a12.2 for ; Tue, 31 Oct 2023 16:07:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux-foundation.org; s=google; t=1698793622; x=1699398422; darn=vger.kernel.org; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=0wUvOEnKmTi8WEvQZdsskLf9E1FQBX1NqUbV0gaScgU=; b=J4BbpNb5yErcBTuBOh1OSxduKVp4iaAk0LcxgKYX7p61S/ZmS6Cn3WXnZaaZa1kTKc d8v3uPCIlKAD5aG09mA/B9mGs8ZyJ5W1mR3BpdcpXwcnXsHumQ9qzIKzFEHa7zu6vZ80 PDeuNpzdJ5kKJI0Z52TuIVxOpW+hDb9Q0mKZ4= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1698793622; x=1699398422; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=0wUvOEnKmTi8WEvQZdsskLf9E1FQBX1NqUbV0gaScgU=; b=JmZc7rcxiEODNqwkr7ufjvIMRPEoMTKSAnL3tIQPNpRHbOLlrqvzi7Bg5bgaFgfFDU GgBEzuGzWXFVXXc+8oH+uoZcKLGTu9YkGId5Avi63EEBIW33Ot5k6Nj+jemOSmgCWHfF 4slZvLOth9wD7HJwkeVOBYFzk3nWVWS0OpLq0joXtL7nauh1uQzT0WNf5XERbVlA5wF9 UHYdv9eybu2sdkPCnUsk35DDjUuM6IbIqFJCSqfIUx8al+eyc3KQt2s2S3b0GQEdZp6P EijjIVZ6cTpe5MVjw1SD5mN2JWNt4kQv5pALCgrq3ngIq1s3yFpB6aLXEajxcu5RRKQu 7vQg== X-Gm-Message-State: AOJu0YwDVihWE4aytqUGgkRqdtc61Ps5kEuARIm5+57U+WPZKPwgstU4 OuQBwRzJ7qB0KcXKpoDtTZ6rEmzu7BJlsGrGMaVwJnND X-Received: by 2002:aa7:d54b:0:b0:53d:d9d1:7029 with SMTP id u11-20020aa7d54b000000b0053dd9d17029mr10355627edr.15.1698793622290; Tue, 31 Oct 2023 16:07:02 -0700 (PDT) Received: from mail-ej1-f51.google.com (mail-ej1-f51.google.com. [209.85.218.51]) by smtp.gmail.com with ESMTPSA id c94-20020a509fe7000000b00543b2d6f88asm98514edf.15.2023.10.31.16.07.01 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 31 Oct 2023 16:07:01 -0700 (PDT) Received: by mail-ej1-f51.google.com with SMTP id a640c23a62f3a-9d10972e63eso596692066b.2 for ; Tue, 31 Oct 2023 16:07:01 -0700 (PDT) X-Received: by 2002:a17:906:ef0e:b0:9c7:4d3e:1e50 with SMTP id f14-20020a170906ef0e00b009c74d3e1e50mr631104ejs.76.1698793621035; Tue, 31 Oct 2023 16:07:01 -0700 (PDT) MIME-Version: 1.0 References: <78b18304-c6a5-4ea1-a603-8c8f1d79cc1a@paulmck-laptop> In-Reply-To: <78b18304-c6a5-4ea1-a603-8c8f1d79cc1a@paulmck-laptop> From: Linus Torvalds Date: Tue, 31 Oct 2023 13:06:44 -1000 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [GIT PULL] RCU changes for v6.7 To: paulmck@kernel.org 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 Content-Type: text/plain; charset="UTF-8" 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,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]); Tue, 31 Oct 2023 16:07:16 -0700 (PDT) On Tue, 31 Oct 2023 at 03:57, Paul E. McKenney wrote: > > Would it help if we make rcu_stall_chain_notifier_register() print a > suitably obnoxious message saying that future RCU CPU stall warnings > might be unreliable? It's not the future stall warnings I worry about. It's literally things like somebody thinking they are being clever, registering a rcu stall notifier that prints out extra information in order to be helpful, and in the process takes a spinlock or something without thinking about it. And that spinlock might be the *reason* for the RCU stall in the first place. So now the RCU stall code prints out NOTHING AT ALL, because now the stall notifier itself has deadlocked. This is *exactly* what has happened before with these kinds of "helpful" exception case notifiers. Because they never trigger in normal loads, they get basically zero testing - and then when bad things happen, it turns out that the "helpful" debug code actually just makes things worse. Or, if they get testing, they get tested in artificial bad cases (eg "let's just write a busy loop that hangs for 30 seconds to trigger a RCU stall"), which doesn't show any of the issues, because they aren't real bugs with real existing deadlocks. See what I'm saying? Having notifiers for "sh*t happened" is fundmanetally questionable to begin with, because they get no testing. And then calling said notifiers *before* you even have the core printout for "Look, things are going down hill quickly", now you've turned a bad situation even worse. 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. Linus