From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932122AbYJMXL1 (ORCPT ); Mon, 13 Oct 2008 19:11:27 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1756978AbYJMXLT (ORCPT ); Mon, 13 Oct 2008 19:11:19 -0400 Received: from smtp1.linux-foundation.org ([140.211.169.13]:45872 "EHLO smtp1.linux-foundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755229AbYJMXLS (ORCPT ); Mon, 13 Oct 2008 19:11:18 -0400 Date: Mon, 13 Oct 2008 16:10:14 -0700 (PDT) From: Linus Torvalds To: "Rafael J. Wysocki" , Alan Cox cc: Dmitry Torokhov , Andrew Morton , LKML Subject: Re: [Resend][2.6.27-git-a447c093244] BUG: spinlock bad magic on CPU#0, setserial/3527 In-Reply-To: <200810140010.31141.rjw@sisk.pl> Message-ID: References: <200810140010.31141.rjw@sisk.pl> User-Agent: Alpine 2.00 (LFD 1167 2008-08-23) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org If this started today, then the most likely culprit is Alan's series of 80 serial patches. Alan? I can only assume it's one of the spin_lock_irq(&up->port.lock); in serial8250_startup() (or quite likely in one of the functions it calls that get inlined by the compiler, like enable_rsa()). And it sounds like it didn't get initialized. Linus On Tue, 14 Oct 2008, Rafael J. Wysocki wrote: > > [Sorry, I had a wrong address of Dmitry, resending.] > > Hi, > > The Linus' tree from today on Asus L5D: > > BUG: spinlock bad magic on CPU#0, setserial/3527 > lock: ffffffff80dae020, .magic: 00000000, .owner: /-1, .owner_cpu: 0 > Pid: 3527, comm: setserial Not tainted 2.6.27-git #57 > Call Trace: > [] spin_bug+0xde/0xf0 > [] _raw_spin_lock+0x86/0x140 > [] _spin_lock_irq+0x3a/0x50 > [] ? serial8250_startup+0x13d/0x610 > [] serial8250_startup+0x13d/0x610 > [] uart_startup+0x6a/0x1a0 > [] uart_open+0x115/0x4a0 > [] ? _spin_unlock+0x26/0x30 > [] ? check_tty_count+0x21/0xc0 > [] tty_open+0x1ea/0x440 > [] chrdev_open+0xa0/0x1c0 > [] __dentry_open+0xcc/0x2c0 > [] ? chrdev_open+0x0/0x1c0 > [] nameidata_to_filp+0x44/0x60 > [] do_filp_open+0x1fd/0x8f0 > [] ? getname+0x36/0x210 > [] ? alloc_fd+0x106/0x130 > [] do_sys_open+0x5e/0xf0 > [] sys_open+0x1b/0x20 > [] system_call_fastpath+0x16/0x1b > > Do I have to bisect? :-) > > Rafael >