2.5.64 - sysfs/pcmcia oops?

From: CaT (cat@zip.com.au)
Date: Sun Mar 09 2003 - 10:09:21 EST


> From: Russell King <rmk@arm.linux.org.uk>
>
> On Sun, Mar 09, 2003 at 01:06:27AM +1100, CaT wrote:
> > I ejected the card and didn't get any errors about freeing memory. On
> > reinsert I got both devices activated. Then I ejected and reinserted
> > quickly and got an oops that resulted in the keyboard being locked up. I
> > can still ssh into the box and type this email though. Here's the dmesg:
>
> I suspect this isn't to do with my changes - it looks like something in
> the networking / sysfs layer went pop. Could you send this oops to lkml
> please?

No problem. Below is an extract of my message to Russel. It contains the
oops and what I did to get it. I'll also attach the patches I applied to
the kernel in order to a. get it to compile, b. get it to boot and c.
get it to play with my xircom pcmcia card (there's a few and I left them
gzipped to save space).

Any questions/request for testing, please yell.

---8<---
Huzzah! That it does. Apart from not being able to dail out atm (no
phone line avail) both the serial modem side and ethernet side work
groovily (I get responces to AT commands from the modem side, and the
ethernet side is still passing packets adequately :)

I ejected the card and didn't get any errors about freeing memory. On
reinsert I got both devices activated. Then I ejected and reinserted
quickly and got an oops that resulted in the keyboard being locked up. I
can still ssh into the box and type this email though. Here's the dmesg:

cs: cb_free(bus 2)
cs: cb_alloc(bus 2): vendor 0x115d, device 0x0003
PCI: Enabling device 02:00.0 (0000 -> 0003)
PCI: Setting latency timer of device 02:00.0 to 64
eth1: Xircom cardbus revision 3 at irq 10
PCI: Enabling device 02:00.1 (0000 -> 0003)
ttyS15 at I/O 0x1880 (irq = 10) is a 16550A
------------[ cut here ]------------
kernel BUG at include/linux/dcache.h:266!
invalid operand: 0000
CPU: 0
EIP: 0060:[<c01a14fd>] Not tainted
EFLAGS: 00010246
EIP is at sysfs_remove_dir+0x19/0x15c
eax: 00000000 ebx: cfd5c9cc ecx: cfd5c800 edx: 00000000
esi: cfdc2744 edi: cfd5c800 ebp: c12fbdf4 esp: c12fbdd8
ds: 007b es: 007b ss: 0068
Process events/0 (pid: 3, threadinfo=c12fa000 task=c12fecc0)
Stack: cfd5c9cc cfd5c800 cfd5c800 c0131dce c05b46d4 00000006 cfd5c800 c12fbe04
       c023b365 cfd5c9cc cfd5c9cc c12fbe14 c023b381 cfd5c9cc c12fa000 c12fbe34
       c03a2f28 cfd5c9cc cfd5c800 cfd5c800 cfd5cc4c cfd5c9cc 00000077 c12fbe44
Call Trace:
 [<c0131dce>] notifier_call_chain+0x1e/0x3c
 [<c023b365>] kobject_del+0xd/0x1c
 [<c023b381>] kobject_unregister+0xd/0x1c
 [<c03a2f28>] unregister_netdevice+0x23c/0x260
 [<c02d39fa>] unregister_netdev+0x12/0x28
 [<c02e35a2>] xircom_remove+0x96/0xa8
 [<c02434bb>] pci_device_remove+0x1b/0x2c
 [<c029899b>] device_release_driver+0x4b/0x64
 [<c0298b04>] bus_remove_device+0x60/0xb8
 [<c0297f30>] device_del+0x70/0x90
 [<c0297f5d>] device_unregister+0xd/0x1a
 [<c0243be1>] pci_remove_bus_device+0x41/0x74
 [<c0243c39>] pci_remove_behind_bridge+0x25/0x4c
 [<c0326407>] cb_free+0x1f/0x44
 [<c032328d>] shutdown_socket+0x7d/0xf4
 [<c03235a5>] do_shutdown+0x5d/0x64
 [<c03235e5>] parse_events+0x39/0xd0
 [<c0328ad0>] yenta_bh+0x11c/0x128
 [<c03289b4>] yenta_bh+0x0/0x128
 [<c01349e6>] worker_thread+0x28a/0x430
 [<c013475c>] worker_thread+0x0/0x430
 [<c03289b4>] yenta_bh+0x0/0x128
 [<c011dacc>] default_wake_function+0x0/0x1c
 [<c011dacc>] default_wake_function+0x0/0x1c
 [<c0108211>] kernel_thread_helper+0x5/0xc

Code: 0f 0b 0a 01 90 07 47 c0 ff 06 80 4e 04 08 85 f6 0f 84 23 01
 <3>Debug: sleeping function called from illegal context at include/linux/rwsem.h:43
Call Trace:
 [<c011f8e8>] __might_sleep+0x54/0x5c
 [<c0220a91>] crypto_alg_lookup+0x21/0xd0
 [<c02218e9>] crypto_alg_mod_lookup+0xd/0x34
 [<c0220c5d>] crypto_alloc_tfm+0x11/0xc0
 [<c0406e00>] __ipv6_regen_rndid+0xa0/0x1f4
 [<c011cd1d>] wake_up_process+0xd/0x14
 [<c0406f82>] ipv6_regen_rndid+0x2e/0xc4
 [<c012ba5b>] run_timer_softirq+0x1c3/0x2d8
 [<c0406f54>] ipv6_regen_rndid+0x0/0xc4
 [<c0127441>] do_softirq+0x51/0xb0
 [<c010c3b1>] do_IRQ+0x2d1/0x2ec
 [<c0108034>] default_idle+0x0/0x34
 [<c0108034>] default_idle+0x0/0x34
 [<c010ab94>] common_interrupt+0x18/0x20
 [<c0108034>] default_idle+0x0/0x34
 [<c0108034>] default_idle+0x0/0x34
 [<c010805a>] default_idle+0x26/0x34
 [<c01080e9>] cpu_idle+0x35/0x44
 [<c0105000>] _stext+0x0/0xcc
 [<c01050c5>] _stext+0xc5/0xcc

__ipv6_regen_rndid(): too short regeneration interval; timer diabled for eth0.
---8<---

Thanks.

-- 
"Other countries of course, bear the same risk. But there's no doubt his
hatred is mainly directed at us. After all this is the guy who tried to
kill my dad."
        - George W. Bush Jr, 'President' of the United States
          September 26, 2002 (from a political fundraiser in Huston, Texas)







- 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/



This archive was generated by hypermail 2b29 : Sat Mar 15 2003 - 22:00:18 EST