Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756019AbYKKLHu (ORCPT ); Tue, 11 Nov 2008 06:07:50 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1755228AbYKKLHl (ORCPT ); Tue, 11 Nov 2008 06:07:41 -0500 Received: from mx2.mail.elte.hu ([157.181.151.9]:43773 "EHLO mx2.mail.elte.hu" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755156AbYKKLHk (ORCPT ); Tue, 11 Nov 2008 06:07:40 -0500 Date: Tue, 11 Nov 2008 12:07:08 +0100 From: Ingo Molnar To: Oleg Nesterov Cc: KOSAKI Motohiro , "Rafael J. Wysocki" , Dmitry Torokhov , Dmitry Adamushko , Max Krasnyansky , Linux Kernel Mailing List , Kernel Testers List Subject: Re: [Bug #11380] lockdep warning: cpu_add_remove_lock at:cpu_maps_update_begin+0x14/0x16 Message-ID: <20081111110708.GE15645@elte.hu> References: <20081110073047.GA28578@elte.hu> <20081110132208.GB10294@redhat.com> <20081111105706.6174.KOSAKI.MOTOHIRO@jp.fujitsu.com> <20081111120111.GA3503@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20081111120111.GA3503@redhat.com> User-Agent: Mutt/1.5.18 (2008-05-17) X-ELTE-VirusStatus: clean X-ELTE-SpamScore: -1.5 X-ELTE-SpamLevel: X-ELTE-SpamCheck: no X-ELTE-SpamVersion: ELTE 2.0 X-ELTE-SpamCheck-Details: score=-1.5 required=5.9 tests=BAYES_00,DNS_FROM_SECURITYSAGE autolearn=no SpamAssassin version=3.2.3 -1.5 BAYES_00 BODY: Bayesian spam probability is 0 to 1% [score: 0.0000] 0.0 DNS_FROM_SECURITYSAGE RBL: Envelope sender in blackholes.securitysage.com Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 2645 Lines: 64 * Oleg Nesterov wrote: > On 11/11, KOSAKI Motohiro wrote: > > > > it seem simple ABBA lock, right? > > > > -> #4 (&dev->mutex){--..}: > > [] validate_chain+0x831/0xaa2 > > [] __lock_acquire+0x67a/0x6e0 > > [] lock_acquire+0x5b/0x81 > > [] mutex_lock_interruptible_nested+0xde/0x2f8 > > [] input_register_handle+0x26/0x7a dev->mutex > ^^^^^^^^^^ > > [] kbd_connect+0x64/0x8d > > [] input_attach_handler+0x38/0x6b > > [] input_register_handler+0x74/0xc3 input_mutex > > [] kbd_init+0x66/0x91 > > [] vty_init+0xce/0xd7 > > [] tty_init+0x193/0x197 > > [] do_one_initcall+0x42/0x133 > > [] kernel_init+0x16e/0x1d5 > > [] kernel_thread_helper+0x7/0x10 > > [] 0xffffffff > > > > -> #3 (input_mutex){--..}: > > [] validate_chain+0x831/0xaa2 > > [] __lock_acquire+0x67a/0x6e0 > > [] lock_acquire+0x5b/0x81 > > [] mutex_lock_interruptible_nested+0xde/0x2f8 > > [] input_register_device+0xff/0x17f input_mutex > > [] acpi_button_add+0x31e/0x429 > > [] acpi_device_probe+0x43/0xde > > [] driver_probe_device+0xa5/0x120 > > [] __driver_attach+0x42/0x64 dev->sem > ^^^^^^^^ > input_dev->mutex != device->sem > > > ... > > [] do_async_initcalls+0x1a/0x2a > > [] run_workqueue+0xc3/0x193 > > [] worker_thread+0xbb/0xc7 > > [] kthread+0x40/0x66 > > What is the kernel version, btw? I can't find do_async_initcalls > in 2.6.27 or 2.6.28. i suspect it's an older version of tip/master that still had async initcalls. > Anyway, this really looks like lockdep bug to me. Even if we really > have the circular dependency (will try to grep more) I can't > understand why lockdep claims that polldev_mutex depends on > cpu_add_remove_lock. ok, will re-report if i can trigger it again with latest kernels. Rafael, please close this bug as cannot-reproduce for now. Ingo -- 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/