From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753882AbcKULAJ (ORCPT ); Mon, 21 Nov 2016 06:00:09 -0500 Received: from mx0b-001b2d01.pphosted.com ([148.163.158.5]:60576 "EHLO mx0a-001b2d01.pphosted.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1753290AbcKULAJ (ORCPT ); Mon, 21 Nov 2016 06:00:09 -0500 Date: Mon, 21 Nov 2016 03:00:05 -0800 From: "Paul E. McKenney" To: Peter Zijlstra Cc: Jiri Olsa , Steven Rostedt , 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! Reply-To: paulmck@linux.vnet.ibm.com References: <20161121005343.GB1891@krava> <20161121090225.GO3612@linux.vnet.ibm.com> <20161121094321.GH3102@twins.programming.kicks-ass.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20161121094321.GH3102@twins.programming.kicks-ass.net> User-Agent: Mutt/1.5.21 (2010-09-15) X-TM-AS-GCONF: 00 X-Content-Scanned: Fidelis XPS MAILER x-cbid: 16112111-0012-0000-0000-0000112FBE68 X-IBM-SpamModules-Scores: X-IBM-SpamModules-Versions: BY=3.00006116; HX=3.00000240; KW=3.00000007; PH=3.00000004; SC=3.00000189; SDB=6.00783373; UDB=6.00378298; IPR=6.00560993; BA=6.00004897; NDR=6.00000001; ZLA=6.00000005; ZF=6.00000009; ZB=6.00000000; ZP=6.00000000; ZH=6.00000000; ZU=6.00000002; MB=3.00013392; XFM=3.00000011; UTC=2016-11-21 11:00:05 X-IBM-AV-DETECTION: SAVI=unused REMOTE=unused XFE=unused x-cbparentid: 16112111-0013-0000-0000-000047582EFF Message-Id: <20161121110005.GP3612@linux.vnet.ibm.com> X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10432:,, definitions=2016-11-21_09:,, signatures=0 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 spamscore=0 suspectscore=0 malwarescore=0 phishscore=0 adultscore=0 bulkscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1609300000 definitions=main-1611210199 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Nov 21, 2016 at 10:43:21AM +0100, Peter Zijlstra wrote: > On Mon, Nov 21, 2016 at 01:02:25AM -0800, Paul E. McKenney wrote: > > On Mon, Nov 21, 2016 at 01:53:43AM +0100, Jiri Olsa wrote: > > > > > > it got away with attached change.. but this rcu logic > > > is far beyond me, so it's just wild guess.. ;-) > > > > If in idle, the _rcuidle() is needed, so: > > Well, the point is, only this one rdmsr users is in idle, all the others > are not, so we should not be annotating _all_ of them, should we? Fair enough! Thanx, Paul