From mboxrd@z Thu Jan 1 00:00:00 1970 From: Peter Zijlstra Subject: Re: [PATCH v4 05/27] x86: Replace ist_enter() with nmi_enter() Date: Mon, 24 Feb 2020 22:31:39 +0100 Message-ID: <20200224213139.GO11457@worktop.programming.kicks-ass.net> References: <20200221133416.777099322@infradead.org> <20200221134215.328642621@infradead.org> <20200221202246.GA14897@hirez.programming.kicks-ass.net> <20200224104346.GJ14946@hirez.programming.kicks-ass.net> <20200224112708.4f307ba3@gandalf.local.home> <20200224163409.GJ18400@hirez.programming.kicks-ass.net> <20200224114754.0fb798c1@gandalf.local.home> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Received: from merlin.infradead.org ([205.233.59.134]:42534 "EHLO merlin.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726980AbgBXVc1 (ORCPT ); Mon, 24 Feb 2020 16:32:27 -0500 Content-Disposition: inline In-Reply-To: <20200224114754.0fb798c1@gandalf.local.home> Sender: linux-arch-owner@vger.kernel.org List-ID: To: Steven Rostedt Cc: Andy Lutomirski , LKML , linux-arch , Ingo Molnar , Joel Fernandes , Greg KH , gustavo@embeddedor.com, Thomas Gleixner , paulmck@kernel.org, Josh Triplett , Mathieu Desnoyers , Lai Jiangshan , Tony Luck , Frederic Weisbecker , Dan Carpenter , Masami Hiramatsu On Mon, Feb 24, 2020 at 11:47:54AM -0500, Steven Rostedt wrote: > On Mon, 24 Feb 2020 17:34:09 +0100 > Peter Zijlstra wrote: > > > Looking at nmi_enter(), that leaves trace_hardirq_enter(), since we know > > we marked rcu_nmi_enter() as NOKPROBES, per the patches elsewhere in > > this series. > > Maybe this was addressed already in the series, but I'm just looking at > Linus's master branch we have: > > #define nmi_enter() \ > do { \ > arch_nmi_enter(); \ > printk_nmi_enter(); \ > lockdep_off(); \ > ftrace_nmi_enter(); \ > BUG_ON(in_nmi()); \ > preempt_count_add(NMI_OFFSET + HARDIRQ_OFFSET); \ > rcu_nmi_enter(); \ > trace_hardirq_enter(); \ > } while (0) > > > Just want to confirm that printk_nmi_enter(), lockdep_off(), > and ftrace_nmi_enter() are all marked fully with NOKPROBE. *sigh*, right you are, I only looked at notrace, not nokprobe. In particular the ftrace one is a bit off a mess, let me sort through that.