Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751427Ab0FHEQU (ORCPT ); Tue, 8 Jun 2010 00:16:20 -0400 Received: from mail-wy0-f174.google.com ([74.125.82.174]:41074 "EHLO mail-wy0-f174.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751033Ab0FHEQS convert rfc822-to-8bit (ORCPT ); Tue, 8 Jun 2010 00:16:18 -0400 DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; b=XiP+ZLbxwWO0cbVybH7erISZNfH9up3JI9MO30+S1flIqXGfir5KRT94v4ta8SGtJX jlfxg/CtOOuvWPVwvIk6Nncp89WFZqL6jOeLVRleZEKBr2qOtn0qR5PtI1AENR7knhLZ VHXZYNsgHs9i1kTjkTfeip3BT7IzG+NUn05N4= MIME-Version: 1.0 In-Reply-To: <20100608001929.GF2387@linux.vnet.ibm.com> References: <20100608001929.GF2387@linux.vnet.ibm.com> Date: Tue, 8 Jun 2010 00:16:16 -0400 Message-ID: Subject: Re: 2.6.35-rc2-git1 - include/linux/cgroup.h:534 invoked rcu_dereference_check() without protection! From: Miles Lane To: paulmck@linux.vnet.ibm.com Cc: Vivek Goyal , Eric Paris , Lai Jiangshan , Ingo Molnar , Peter Zijlstra , LKML , nauman@google.com, eric.dumazet@gmail.com, netdev@vger.kernel.org, Jens Axboe , Gui Jianfeng , Li Zefan , Johannes Berg Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8BIT Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 4323 Lines: 88 On Mon, Jun 7, 2010 at 8:19 PM, Paul E. McKenney wrote: > On Mon, Jun 07, 2010 at 02:14:25PM -0400, Miles Lane wrote: >> Hi All, >> >> I just reproduced a warning I reported quite a while ago.? Is a patch >> for this in the pipeline? > > I proposed a patch, thinking that it was a false positive. ?Peter Zijlstra > pointed out that there was a real race, and proposed an alternative patch, > which may be found at http://lkml.org/lkml/2010/4/22/603. > > Could you please test Peter's patch and let us know if it cures the problem? > > ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?Thanx, Paul > >> [??? 0.167267] [ INFO: suspicious rcu_dereference_check() usage. ] >> [??? 0.167396] --------------------------------------------------- >> [??? 0.167526] include/linux/cgroup.h:534 invoked >> rcu_dereference_check() without protection! >> [??? 0.167728] >> [??? 0.167729] other info that might help us debug this: >> [??? 0.167731] >> [??? 0.168092] >> [??? 0.168093] rcu_scheduler_active = 1, debug_locks = 1 >> [??? 0.168337] no locks held by watchdog/0/5. >> [??? 0.168462] >> [??? 0.168463] stack backtrace: >> [??? 0.168704] Pid: 5, comm: watchdog/0 Not tainted 2.6.35-rc2-git1 #8 >> [??? 0.168834] Call Trace: >> [??? 0.168965]? [] lockdep_rcu_dereference+0x9d/0xa5 >> [??? 0.169100]? [] task_subsys_state+0x59/0x70 >> [??? 0.169232]? [] __sched_setscheduler+0x19d/0x2f8 >> [??? 0.169365]? [] ? need_resched+0x1e/0x28 >> [??? 0.169497]? [] ? schedule+0x586/0x619 >> [??? 0.169628]? [] ? watchdog+0x0/0x8c >> [??? 0.169758]? [] sched_setscheduler+0xe/0x10 >> [??? 0.169889]? [] watchdog+0x2a/0x8c >> [??? 0.170010]? [] ? watchdog+0x0/0x8c >> [??? 0.170141]? [] kthread+0x89/0x91 >> [??? 0.170274]? [] kernel_thread_helper+0x4/0x10 >> [??? 0.170405]? [] ? restore_args+0x0/0x30 >> [??? 0.170536]? [] ? kthread+0x0/0x91 >> [??? 0.170667]? [] ? kernel_thread_helper+0x0/0x10 >> [ ? ?0.176751] lockdep: fixing up alternatives. > With the patch, I get: [ 0.151274] [ INFO: suspicious rcu_dereference_check() usage. ] [ 0.151390] --------------------------------------------------- [ 0.151520] include/linux/cgroup.h:534 invoked rcu_dereference_check() without protection! [ 0.151723] [ 0.151724] other info that might help us debug this: [ 0.151726] [ 0.151999] [ 0.151999] rcu_scheduler_active = 1, debug_locks = 1 [ 0.151999] 2 locks held by kthreadd/10: [ 0.151999] #0: (key){......}, at: [] complete+0x1c/0x4e [ 0.151999] #1: (&rq->lock){-.-...}, at: [] select_task_rq_fair+0x21f/0x791 [ 0.151999] [ 0.151999] stack backtrace: [ 0.151999] Pid: 10, comm: kthreadd Not tainted 2.6.35-rc2-git1 #11 [ 0.151999] Call Trace: [ 0.151999] [] lockdep_rcu_dereference+0x9d/0xa5 [ 0.151999] [] task_subsys_state+0x59/0x70 [ 0.151999] [] select_task_rq_fair+0x344/0x791 [ 0.151999] [] ? task_rq_lock+0x68/0x9d [ 0.151999] [] ? do_raw_spin_lock+0x79/0x13e [ 0.151999] [] ? task_rq_lock+0x68/0x9d [ 0.151999] [] select_task_rq+0x13/0x44 [ 0.151999] [] try_to_wake_up+0xf2/0x37d [ 0.151999] [] default_wake_function+0xd/0xf [ 0.151999] [] __wake_up_common+0x49/0x7f [ 0.151999] [] complete+0x3a/0x4e [ 0.151999] [] ? worker_thread+0x0/0x3a7 [ 0.151999] [] kthread+0x73/0x91 [ 0.151999] [] kernel_thread_helper+0x4/0x10 [ 0.151999] [] ? restore_args+0x0/0x30 [ 0.151999] [] ? kthread+0x0/0x91 [ 0.151999] [] ? 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/