From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1758441Ab0JYXr3 (ORCPT ); Mon, 25 Oct 2010 19:47:29 -0400 Received: from rcsinet10.oracle.com ([148.87.113.121]:59900 "EHLO rcsinet10.oracle.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1758368Ab0JYXr1 (ORCPT ); Mon, 25 Oct 2010 19:47:27 -0400 Date: Mon, 25 Oct 2010 16:46:55 -0700 From: Randy Dunlap To: Dave Chinner Cc: linux-kernel@vger.kernel.org Subject: Re: [bug 2.6.37-git] lockdep: invalid subclass in mousedev_create() Message-Id: <20101025164655.390c76a3.randy.dunlap@oracle.com> In-Reply-To: <20101025234026.GX32255@dastard> References: <20101025234026.GX32255@dastard> Organization: Oracle Linux Eng. X-Mailer: Sylpheed 2.7.1 (GTK+ 2.16.6; x86_64-unknown-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, 26 Oct 2010 10:40:26 +1100 Dave Chinner wrote: > Folks, > > Just got this booting a VM on a 2.6.37-git tree from a couple of days ago: > > [ 1.547497] BUG: looking up invalid subclass: 31 > [ 1.548238] turning off the locking correctness validator. > [ 1.548923] Pid: 1, comm: swapper Not tainted 2.6.36-dgc+ #580 > [ 1.549637] Call Trace: > [ 1.550024] [] register_lock_class+0x540/0x550 > [ 1.550880] [] ? trace_hardirqs_on+0xd/0x10 > [ 1.552001] [] ? lockdep_init_map+0x65/0x150 > [ 1.553564] [] lockdep_init_map+0xd0/0x150 > [ 1.554980] [] mousedev_create+0x247/0x2e0 > [ 1.556461] [] ? mousedev_init+0x0/0x61 > [ 1.557857] [] mousedev_init+0x1c/0x61 > [ 1.559343] [] do_one_initcall+0x43/0x190 > [ 1.560724] [] kernel_init+0x15d/0x1e7 > [ 1.562117] [] kernel_thread_helper+0x4/0x10 > [ 1.563693] [] ? restore_args+0x0/0x30 > [ 1.565150] [] ? kernel_init+0x0/0x1e7 > [ 1.566647] [] ? kernel_thread_helper+0x0/0x10 > > Looks like it does: > > #define MOUSEDEV_MIX 31 > .... > lockdep_set_subclass(&mousedev->mutex, > minor == MOUSEDEV_MIX ? MOUSEDEV_MIX : 0); Hi Dave, Please see this reply: http://lkml.org/lkml/2010/10/25/48 --- ~Randy *** Remember to use Documentation/SubmitChecklist when testing your code ***