From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751962AbdBWRLQ (ORCPT ); Thu, 23 Feb 2017 12:11:16 -0500 Received: from one.firstfloor.org ([193.170.194.197]:51257 "EHLO one.firstfloor.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751246AbdBWRLN (ORCPT ); Thu, 23 Feb 2017 12:11:13 -0500 Date: Thu, 23 Feb 2017 09:11:10 -0800 From: Andi Kleen To: Jiri Olsa Cc: Peter Zijlstra , Steven Rostedt , "Paul E. McKenney" , linux-kernel@vger.kernel.org, Ingo Molnar , Josh Triplett , Andi Kleen , Jan Stancek Subject: Re: [BUG] msr-trace.h:42 suspicious rcu_dereference_check() usage! Message-ID: <20170223171109.GZ26852@two.firstfloor.org> References: <20161121005343.GB1891@krava> <20161121092850.GF3102@twins.programming.kicks-ass.net> <20170223122434.GA20127@krava> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20170223122434.GA20127@krava> User-Agent: Mutt/1.5.21 (2010-09-15) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org > > diff --git a/arch/x86/kernel/process.c b/arch/x86/kernel/process.c > > index 0888a879120f..d6c6aa80675f 100644 > > --- a/arch/x86/kernel/process.c > > +++ b/arch/x86/kernel/process.c > > @@ -357,7 +357,7 @@ static void amd_e400_idle(void) > > if (!amd_e400_c1e_detected) { > > u32 lo, hi; > > > > - rdmsr(MSR_K8_INT_PENDING_MSG, lo, hi); > > + RCU_NONIDLE(rdmsr(MSR_K8_INT_PENDING_MSG, lo, hi)); > > > > if (lo & K8_INTP_C1E_ACTIVE_MASK) { > > amd_e400_c1e_detected = true; > > hum, I might have missed some other solution in discussion, > and can't see this one being pulled in.. should I resend this? I suppose you could also use the new notrace msr variant. BTW this check is quite annoying. -Andi