Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753067Ab0DTBZj (ORCPT ); Mon, 19 Apr 2010 21:25:39 -0400 Received: from mx1.redhat.com ([209.132.183.28]:1886 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752995Ab0DTBZi (ORCPT ); Mon, 19 Apr 2010 21:25:38 -0400 Subject: Re: INFO: suspicious rcu_dereference_check() usage - include/linux/cgroup.h:492 invoked rcu_dereference_check() without protection! From: Eric Paris To: paulmck@linux.vnet.ibm.com Cc: Peter Zijlstra , Eric Paris , Miles Lane , LKML In-Reply-To: <20100419230136.GA16856@linux.vnet.ibm.com> References: <20100311032843.GE6767@linux.vnet.ibm.com> <1271098032.4807.137.camel@twins> <1271242058.32749.19.camel@laptop> <1271701612.2972.5.camel@dhcp231-113.rdu.redhat.com> <20100419230136.GA16856@linux.vnet.ibm.com> Content-Type: text/plain; charset="UTF-8" Date: Mon, 19 Apr 2010 21:25:29 -0400 Message-ID: <1271726729.2972.13.camel@dhcp231-113.rdu.redhat.com> Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 2549 Lines: 59 On Mon, 2010-04-19 at 16:01 -0700, Paul E. McKenney wrote: > Yep, different code path to the same location. Does the following > patch help? > > Thanx, Paul > > ------------------------------------------------------------------------ > > commit 2836f18139267ea918ed2cf39023fb0eb38c4361 > Author: Paul E. McKenney > Date: Mon Apr 19 15:59:50 2010 -0700 > > rcu: fix RCU lockdep splat on freezer_fork path > > Add an RCU read-side critical section to suppress this false positive. > > Located-by: Eric Paris > Signed-off-by: Paul E. McKenney That one is also fixed so feel free to add a tested or something from me. But we've got another, weeeee! If there some way I could get all of these at once? [ 0.045164] =================================================== [ 0.047002] [ INFO: suspicious rcu_dereference_check() usage. ] [ 0.048002] --------------------------------------------------- [ 0.049012] include/linux/cgroup.h:533 invoked rcu_dereference_check() without protection! [ 0.051087] [ 0.051088] other info that might help us debug this: [ 0.051088] [ 0.057011] [ 0.057011] rcu_scheduler_active = 1, debug_locks = 0 [ 0.059046] no locks held by watchdog/0/5. [ 0.060002] [ 0.060003] stack backtrace: [ 0.061003] Pid: 5, comm: watchdog/0 Not tainted 2.6.34-rc4-next-20100415+ #104 [ 0.063011] Call Trace: [ 0.063654] [] lockdep_rcu_dereference+0xaf/0xc0 [ 0.065009] [] ? watchdog+0x0/0xa0 [ 0.066006] [] __sched_setscheduler+0x3ab/0x430 [ 0.067005] [] ? watchdog+0x0/0xa0 [ 0.068004] [] sched_setscheduler+0xe/0x10 [ 0.070009] [] watchdog+0x2a/0xa0 [ 0.071004] [] ? watchdog+0x0/0xa0 [ 0.072007] [] kthread+0xac/0xc0 [ 0.073005] [] ? trace_hardirqs_on_caller+0xc0/0x240 [ 0.074006] [] kernel_thread_helper+0x4/0x10 [ 0.075005] [] ? restore_args+0x0/0x30 [ 0.076004] [] ? kthread+0x0/0xc0 [ 0.077004] [] ? kernel_thread_helper+0x0/0x10 -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/