Received: by 2002:a6b:fb09:0:0:0:0:0 with SMTP id h9csp635038iog; Fri, 17 Jun 2022 10:08:50 -0700 (PDT) X-Google-Smtp-Source: AGRyM1uVF1JbZrSI/lq/VYjms2WqvTlQWaq7ggIg8/dasM4Ut+LutwecLoOJJV19x2rMpv4CnzBn X-Received: by 2002:a17:906:7a08:b0:712:12f6:243a with SMTP id d8-20020a1709067a0800b0071212f6243amr10328336ejo.619.1655485729981; Fri, 17 Jun 2022 10:08:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1655485729; cv=none; d=google.com; s=arc-20160816; b=d6QwT/dBybn5sAx0xzSihU9tSeYBezEknG/bw3nRk1ImwKMgUjyp8W0BaotxU7Ezty aE6C83kBstIYAotSPYv3TI89fmqXHeJIW+hovyhGkzqb1nDt7aDYJPDiviXdn9s4Dt4Z 70yYFQMpXOXo646hWAovBhPu47F1N6F5XfLLm2riFQ6Pz0HSLm8aFQk+y1OZ9PhEjoiH GJK44Q3A/yuP00XzdQaJoZD9v+Hv7m2hORpgnmFrHYU9g6YIz2JSCX7JSbYVI/lDbowJ QnXa8SrDaB1qvVMMDxWzOKTFg5Xi0qflbL5cxfVnP0YcitSHknlU50bm/2sX1wh7fAVN xbbA== 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:dkim-signature :dkim-signature:date; bh=UykvkKuHPgfnuKIJnIaYfKgo9S8iB+wmFcj7vk45wVs=; b=C1m7cTcYYvRNTqQgUHVuFCWPYuzb+fdN+QxMRKyX78cXsFW+BiQ6JvaGUjMwjoBkrd eeSuxJigzYgVPJNssVuuG4wKTQLzi2W3+K09jZnTk9lJWdprb8JsynYPZgfOZrhFTx+l 3sXpOqLnXVrMjScc7XFgDWL8/LXy6sDHLK7i3xORohIlcNWA0h/7hR3Lo7Y+c5R64Osy 2+4m8dphOqW5NvBnf9GVEQPuzomecSpaWkE4SXSOajJ+6yV3/Jf51bl+0fcv8e1M03u8 mzfSiCYHExOAh/b/JfirBctqRMF2xWej9gjYwt16r/KQl0+I4GUB2eLDQm8w93hgSSsp CWNA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b="eUu/qClC"; dkim=neutral (no key) header.i=@linutronix.de header.s=2020e header.b=+gB6pnNu; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id s27-20020a170906221b00b007117417a691si2423248ejs.549.2022.06.17.10.08.23; Fri, 17 Jun 2022 10:08:49 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b="eUu/qClC"; dkim=neutral (no key) header.i=@linutronix.de header.s=2020e header.b=+gB6pnNu; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1382658AbiFQQxX (ORCPT + 99 others); Fri, 17 Jun 2022 12:53:23 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58950 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1383455AbiFQQxC (ORCPT ); Fri, 17 Jun 2022 12:53:02 -0400 Received: from galois.linutronix.de (Galois.linutronix.de [IPv6:2a0a:51c0:0:12e:550::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 45B095A0A1 for ; Fri, 17 Jun 2022 09:51:52 -0700 (PDT) Date: Fri, 17 Jun 2022 18:51:48 +0200 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1655484710; 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=UykvkKuHPgfnuKIJnIaYfKgo9S8iB+wmFcj7vk45wVs=; b=eUu/qClCX/d2AouxGZPJTmu48AdbHUOAEqK6i7LTOzrgE4GEiltOUP/aJutgp44nPnjM1S ulO0fZvQYiVcMfcod60L0fl3em63i+QghmCscjAvwGb0MsWcIiu7iqKCZEdO+OY50UIAWi Fzew3TXJ8JyJ31M5UjJ+UNJvMh+wufip+FNl1U45LGUmqJTGg/BwzaScUhjC14W2WpoYGb MWR63P+t6DeKQTXOdDHQPaH/tLPjlCbOP0/O0DhvtyiUkuQZUOA81nEFSDVBi44tlsUGpt q5eEmHXyFIG5Y6DNq8uYSnfp7/EMsOHcfSZWSQnIs/N65YiLViv4oc/1Ii/WQw== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1655484710; 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=UykvkKuHPgfnuKIJnIaYfKgo9S8iB+wmFcj7vk45wVs=; b=+gB6pnNuCevctPh8aBUsQrzYo/gPjJ8DZnaghzrYDBDxO0I6SqrmLwluRFEY2z9zzM9Eox CDKIjQ9JrIzSaRBg== From: Sebastian Andrzej Siewior To: "Jason A. Donenfeld" Cc: Dmitry Vyukov , John Ogness , Geert Uytterhoeven , Marek Szyprowski , Petr Mladek , Sergey Senozhatsky , Steven Rostedt , Thomas Gleixner , Linux Kernel Mailing List , Greg Kroah-Hartman , "open list:ARM/Amlogic Meson..." , Theodore Ts'o , Alexander Potapenko , Marco Elver , kasan-dev@googlegroups.com Subject: Re: [PATCH printk v5 1/1] printk: extend console_lock for per-console locking Message-ID: References: <87fslyv6y3.fsf@jogness.linutronix.de> <51dfc4a0-f6cf-092f-109f-a04eeb240655@samsung.com> <87k0b6blz2.fsf@jogness.linutronix.de> <32bba8f8-dec7-78aa-f2e5-f62928412eda@samsung.com> <87y1zkkrjy.fsf@jogness.linutronix.de> <87fske3wzw.fsf@jogness.linutronix.de> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,SPF_HELO_NONE, SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2022-06-09 14:27:11 [+0200], Jason A. Donenfeld wrote: > Hi Dmitry, > > On Thu, Jun 09, 2022 at 02:18:19PM +0200, Dmitry Vyukov wrote: > > > AFAIK, CONFIG_PROVE_RAW_LOCK_NESTING is useful for teasing out cases > > > where RT's raw spinlocks will nest wrong with RT's sleeping spinlocks. > > > But nobody who wants an RT kernel will be using KFENCE. So this seems > > > like a non-issue? Maybe just add a `depends on !KFENCE` to > > > PROVE_RAW_LOCK_NESTING? > > > > Don't know if there are other good solutions (of similar simplicity). > > Fortunately, I found one that solves things without needing to > compromise on anything: > https://lore.kernel.org/lkml/20220609121709.12939-1-Jason@zx2c4.com/ > > > Btw, should this new CONFIG_PROVE_RAW_LOCK_NESTING be generally > > enabled on testing systems? We don't have it enabled on syzbot. > > Last time I spoke with RT people about this, the goal was eventually to > *always* enable it when lock proving is enabled, but there are too many > bugs and cases now to do that, so it's an opt-in. I might be > misremembering, though, so CC'ing Sebastian in case he wants to chime > in. That is basically still the case. If CONFIG_PROVE_RAW_LOCK_NESTING yells then there will be yelling on PREEMPT_RT, too. We would like to get things fixed ;) Without going through this thread, John is looking at printk and printk triggers a few of those. That is one of reasons why this is not enabled by default. > Jason Sebastian