From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752927Ab0KHPkF (ORCPT ); Mon, 8 Nov 2010 10:40:05 -0500 Received: from mail-pz0-f46.google.com ([209.85.210.46]:39022 "EHLO mail-pz0-f46.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751792Ab0KHPkE (ORCPT ); Mon, 8 Nov 2010 10:40:04 -0500 Date: Mon, 8 Nov 2010 23:39:57 +0800 From: Arun Bhanu To: "Paul E. McKenney" Cc: linux-kernel@vger.kernel.org Subject: Re: suspicious rcu_dereference_check() usage splat Message-ID: <20101108153957.GA3418@deepthought.bhanu.net> Reply-To: Arun Bhanu Mail-Followup-To: "Paul E. McKenney" , linux-kernel@vger.kernel.org References: <20101107071414.GA3600@deepthought.bhanu.net> <20101107185013.GC15561@linux.vnet.ibm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20101107185013.GC15561@linux.vnet.ibm.com> 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 * Paul E. McKenney (paulmck@linux.vnet.ibm.com) wrote: > On Sun, Nov 07, 2010 at 03:14:14PM +0800, Arun Bhanu wrote: > > I got the following splat while booting 2.6.37-rc1+ > > (ff8b16d7e15a8ba2a6086645614a483e048e3fbf). > > > > [ 9.381536] =================================================== > > [ 9.382380] [ INFO: suspicious rcu_dereference_check() usage. ] > > [ 9.382867] --------------------------------------------------- > > [ 9.383412] kernel/pid.c:419 invoked rcu_dereference_check() without protection! > > [ 9.383959] > > [ 9.383959] other info that might help us debug this: > > [ 9.383960] > > [ 9.385599] > > [ 9.385599] rcu_scheduler_active = 1, debug_locks = 0 > > [ 9.386686] 1 lock held by readahead/365: > > [ 9.387227] #0: (tasklist_lock){.+.+..}, at: [] sys_ioprio_set+0x84/0x261 > > [ 9.387765] > > [ 9.387765] stack backtrace: > > [ 9.388840] Pid: 365, comm: readahead Not tainted 2.6.37-rc1-ab1.fc14.i686.PAE+ #1 > > [ 9.389374] Call Trace: > > [ 9.389909] [] ? printk+0x25/0x2b > > [ 9.390453] [] lockdep_rcu_dereference+0x7d/0x86 > > [ 9.390986] [] find_task_by_pid_ns+0x3f/0x53 > > [ 9.391521] [] find_task_by_vpid+0x1d/0x1f > > [ 9.392050] [] sys_ioprio_set+0xac/0x261 > > [ 9.392574] [] ? trace_hardirqs_on_caller+0xfe/0x11f > > [ 9.393110] [] sysenter_do_call+0x12/0x38 > > > > Complete dmesg and config attached. Let me know if you want me to test > > any patches. > > Could you please try the patch at http://lkml.org/lkml/2010/10/29/168? Thanks for the pointer. With the above patch applied I am no longer seeing the splat. Tested-by: Arun Bhanu > > Thanx, Paul > > > -Arun [snip] -Arun