Received: by 2002:ad5:4acb:0:0:0:0:0 with SMTP id n11csp600605imw; Fri, 15 Jul 2022 09:16:18 -0700 (PDT) X-Google-Smtp-Source: AGRyM1unAGSClE8yExrOEoek4DoVYIlf//hOMZQwQA938Ruh0K5SpLK3F9ANPh7yjYnofOzsqKfc X-Received: by 2002:a05:620a:2903:b0:6af:41a4:3f71 with SMTP id m3-20020a05620a290300b006af41a43f71mr10388193qkp.350.1657901778037; Fri, 15 Jul 2022 09:16:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1657901778; cv=none; d=google.com; s=arc-20160816; b=ts5pimRxxqowpJd2zXWCnppeLyM0U1EUbWi8mpGm7aI+H0mbQGpOVFdFuLlwCqTdtG WxXsBNcClwu1tNcM4IXlBCqVjT9LQSqeT5z6isqI4SiXYJDi4R6Vpj6tVbrsZgwSkBHs xlj/ynUWNToS2bN/YlRwkjHuh6Lq6EErXGKSA/pzXfXnQUHVSogyliaVqki11BfBEMRI DomY9kxxfsRfViwoZHQ+cImq61ckuDk9LsEqcxTFrPpX1I7cRI9MsRgSx7Oz3z3V308i CQG6T3CVkg0tlPs8xqoDFYI5tLumdgoH0Xc/RL/NB7jDL5lQR88WSf7C7296WG4bn9Hf d1ww== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:subject:cc:to:from:date; bh=SgCDOtz+9DrHrspwF07fqUW0yuIDh3KynaPo2QKvgPs=; b=n8n6l1TQzXVndoiv9QW52CORTOaOGiTHCdfsdzsjpsk4f+V35xR58RbvkEC+AeXl+k o90cOKQec1P1Gp3mrpt6TfFJ2mOQa56KgKnHSVWVfzbOrDfaDvtclRSVv5rYNQrbboHm PDA3esXV9v4sepI2q2ZVQEjiAtIQoZhgWAfkPuubfxqcTW/GEsfOvJ5QnWr9Eq/8oEC+ /a+rqlilJnqxaxOFZc/WmO20c19dRmWrW+jMucqyxu4mHY0D/L+B/H6KJiyDLIhXMkjM FHk9qpPbt/8xgMORtM/VmitMHNvoMiNAYppJZ+w8nW/7l8L7cBW9ZIlV2/RJMWh65n8G mSgg== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id h7-20020a0562140da700b0047347cb18casi2963263qvh.240.2022.07.15.09.15.43; Fri, 15 Jul 2022 09:16:18 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235360AbiGOPZY (ORCPT + 99 others); Fri, 15 Jul 2022 11:25:24 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:32832 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235037AbiGOPZX (ORCPT ); Fri, 15 Jul 2022 11:25:23 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [145.40.68.75]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4625E419A1 for ; Fri, 15 Jul 2022 08:25:21 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id 717C5B82D08 for ; Fri, 15 Jul 2022 15:25:20 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id A6BF6C34115; Fri, 15 Jul 2022 15:25:17 +0000 (UTC) Date: Fri, 15 Jul 2022 11:25:16 -0400 From: Steven Rostedt To: "Paul E. McKenney" Cc: Marco Elver , Petr Mladek , John Ogness , Sergey Senozhatsky , kasan-dev@googlegroups.com, Thomas Gleixner , Johannes Berg , Alexander Potapenko , Dmitry Vyukov , Naresh Kamboju , Peter Zijlstra , Linux Kernel Functional Testing , linux-kernel@vger.kernel.org Subject: Re: [PATCH] printk: Make console tracepoint safe in NMI() context Message-ID: <20220715112516.58e9e5f8@gandalf.local.home> In-Reply-To: <20220715151000.GY1790663@paulmck-ThinkPad-P17-Gen-1> References: <20220715120152.17760-1-pmladek@suse.com> <20220715095156.12a3a0e3@gandalf.local.home> <20220715151000.GY1790663@paulmck-ThinkPad-P17-Gen-1> X-Mailer: Claws Mail 3.17.8 (GTK+ 2.24.33; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-6.7 required=5.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,RCVD_IN_DNSWL_HI,SPF_HELO_NONE,SPF_PASS 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 Fri, 15 Jul 2022 08:10:00 -0700 "Paul E. McKenney" wrote: > So if preemption is enabled at that point in tracing, you really want > to be using rcu_is_watching(). And yes, at that point in tracing, preemption is still enabled if the tracepoint was called with preemption enabled. Thus, we really need to convert that to rcu_is_watching(). -- Steve