* [bug 2.6.37-git] lockdep: invalid subclass in mousedev_create()
@ 2010-10-25 23:40 Dave Chinner
2010-10-25 23:46 ` Randy Dunlap
0 siblings, 1 reply; 2+ messages in thread
From: Dave Chinner @ 2010-10-25 23:40 UTC (permalink / raw)
To: linux-kernel
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] [<ffffffff810b88b0>] register_lock_class+0x540/0x550
[ 1.550880] [<ffffffff810baded>] ? trace_hardirqs_on+0xd/0x10
[ 1.552001] [<ffffffff810b8925>] ? lockdep_init_map+0x65/0x150
[ 1.553564] [<ffffffff810b8990>] lockdep_init_map+0xd0/0x150
[ 1.554980] [<ffffffff8197c7a7>] mousedev_create+0x247/0x2e0
[ 1.556461] [<ffffffff821af4ee>] ? mousedev_init+0x0/0x61
[ 1.557857] [<ffffffff821af50a>] mousedev_init+0x1c/0x61
[ 1.559343] [<ffffffff810001e3>] do_one_initcall+0x43/0x190
[ 1.560724] [<ffffffff8217a75d>] kernel_init+0x15d/0x1e7
[ 1.562117] [<ffffffff81037e64>] kernel_thread_helper+0x4/0x10
[ 1.563693] [<ffffffff81afe690>] ? restore_args+0x0/0x30
[ 1.565150] [<ffffffff8217a600>] ? kernel_init+0x0/0x1e7
[ 1.566647] [<ffffffff81037e60>] ? kernel_thread_helper+0x0/0x10
Looks like it does:
#define MOUSEDEV_MIX 31
....
lockdep_set_subclass(&mousedev->mutex,
minor == MOUSEDEV_MIX ? MOUSEDEV_MIX : 0);
Cheers,
Dave.
--
Dave Chinner
david@fromorbit.com
^ permalink raw reply [flat|nested] 2+ messages in thread* Re: [bug 2.6.37-git] lockdep: invalid subclass in mousedev_create()
2010-10-25 23:40 [bug 2.6.37-git] lockdep: invalid subclass in mousedev_create() Dave Chinner
@ 2010-10-25 23:46 ` Randy Dunlap
0 siblings, 0 replies; 2+ messages in thread
From: Randy Dunlap @ 2010-10-25 23:46 UTC (permalink / raw)
To: Dave Chinner; +Cc: linux-kernel
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] [<ffffffff810b88b0>] register_lock_class+0x540/0x550
> [ 1.550880] [<ffffffff810baded>] ? trace_hardirqs_on+0xd/0x10
> [ 1.552001] [<ffffffff810b8925>] ? lockdep_init_map+0x65/0x150
> [ 1.553564] [<ffffffff810b8990>] lockdep_init_map+0xd0/0x150
> [ 1.554980] [<ffffffff8197c7a7>] mousedev_create+0x247/0x2e0
> [ 1.556461] [<ffffffff821af4ee>] ? mousedev_init+0x0/0x61
> [ 1.557857] [<ffffffff821af50a>] mousedev_init+0x1c/0x61
> [ 1.559343] [<ffffffff810001e3>] do_one_initcall+0x43/0x190
> [ 1.560724] [<ffffffff8217a75d>] kernel_init+0x15d/0x1e7
> [ 1.562117] [<ffffffff81037e64>] kernel_thread_helper+0x4/0x10
> [ 1.563693] [<ffffffff81afe690>] ? restore_args+0x0/0x30
> [ 1.565150] [<ffffffff8217a600>] ? kernel_init+0x0/0x1e7
> [ 1.566647] [<ffffffff81037e60>] ? 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 ***
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2010-10-25 23:47 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-10-25 23:40 [bug 2.6.37-git] lockdep: invalid subclass in mousedev_create() Dave Chinner
2010-10-25 23:46 ` Randy Dunlap
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®