Re: [2.6.27-git-a447c093244] BUG: spinlock bad magic on CPU#0,setserial/3527

From: Ingo Molnar
Date: Tue Oct 14 2008 - 02:56:33 EST



* Alan Cox <alan@xxxxxxxxxxxxxxxxxxx> wrote:

> On Tue, 14 Oct 2008 00:05:39 +0200
> "Rafael J. Wysocki" <rjw@xxxxxxx> wrote:
>
> > Hi,
> >
> > The Linus' tree from today on Asus L5D:
> >
> > BUG: spinlock bad magic on CPU#0, setserial/3527
> > lock: ffffffff80dae020, .magic: 00000000, .owner: <none>/-1, .owner_cpu: 0
> > Pid: 3527, comm: setserial Not tainted 2.6.27-git #57
>
> Yep looking at that at the moment. Its a fallout from dropping the
> NR_IRQ removal changes from the serial tree just before merging I
> think. Was done to make life simpler for Ingo's code push but appears
> to have slightly backfired.

i too have triggered it:

[ 31.099528] BUG: spinlock bad magic on CPU#1, agetty/2608
[ 31.101013] lock: ffffffff8182b020, .magic: 00000000, .owner: agetty/2608, .owner_cpu: 1
[ 31.101013] Pid: 2608, comm: agetty Not tainted 2.6.27-tip-03409-g064a754-dirty #42476
[ 31.101013] Call Trace:
[ 31.101013] [<ffffffff8041ee15>] spin_bug+0xa2/0xaa
[ 31.101013] [<ffffffff8041ee3e>] _raw_spin_unlock+0x21/0x8a
[ 31.101013] [<ffffffff8089aac5>] _spin_unlock_irq+0x2b/0x36
[ 31.101013] [<ffffffff804a9a7b>] serial8250_startup+0x3f2/0x5a3
[ 31.101013] [<ffffffff804a5b00>] uart_startup+0xa0/0x14b
[ 31.101013] [<ffffffff804a6a5a>] uart_open+0x1a8/0x3f7
[ 31.101013] [<ffffffff8089aafb>] ? _spin_unlock+0x2b/0x2f
[ 31.101013] [<ffffffff8047ec6a>] tty_open+0x2db/0x41c
[ 31.101013] [<ffffffff802ac383>] chrdev_open+0x130/0x151
[ 31.101013] [<ffffffff8089aafb>] ? _spin_unlock+0x2b/0x2f
[ 31.101013] [<ffffffff802ac253>] ? chrdev_open+0x0/0x151
[ 31.101013] [<ffffffff802a7e38>] __dentry_open+0x178/0x274
[ 31.101013] [<ffffffff802a7f67>] nameidata_to_filp+0x33/0x44
[ 31.101013] [<ffffffff802b43df>] do_filp_open+0x3be/0x753
[ 31.101013] [<ffffffff802beb11>] ? alloc_fd+0x101/0x110
[ 31.101013] [<ffffffff8027d9c9>] ? trace_hardirqs_off+0x1e/0x20
[ 31.101013] [<ffffffff8089aafb>] ? _spin_unlock+0x2b/0x2f
[ 31.101013] [<ffffffff802beb11>] ? alloc_fd+0x101/0x110
[ 31.101013] [<ffffffff802a7bce>] do_sys_open+0x58/0xdf
[ 31.101013] [<ffffffff802a7c88>] sys_open+0x20/0x22
[ 31.101013] [<ffffffff8020c1cb>] system_call_fastpath+0x16/0x1b
[ 31.405014] eth1: no IPv6 routers present
[ 32.947611] ACPI: PCI Interrupt Link [APC3] enabled at IRQ 18

can test any patch for you if it's not easy to reproduce there.

Ingo
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/