2.5.75-bk1: oops on removing yenta_socket

Pavel Roskin proski at gnu.org
Fri Jul 11 22:30:08 BST 2003


Hello!

I'm getting a kernel oops when I remove yenta_socket.  It's important to
load the "ds" module first.  The exact sequence to reproduce the problem:

modprobe ds
modprobe yenta_socket
rmmod yenta_socket

Initial debugging shows that the argument to pcmcia_deregister_client() is
invalid.  "handle" is not NULL, but handle->client_magic cannot be
accessed.

There is one TI socket but no card in it.  Linux 2.5.75-bk1 with modular
PCMCIA.  No other modules are loaded.

-------------------------------------------------------------
Unable to handle kernel paging request at virtual address cb3d3004
 printing eip:
d0843b52
*pde = 0002b067
*pte = 0b3d3000
Oops: 0000 [#1]
CPU:    0
EIP:    0060:[<d0843b52>]    Not tainted
EFLAGS: 00010282
EIP is at pcmcia_deregister_client+0x32/0x170 [pcmcia_core]
eax: 00000012   ebx: cb3d3004   ecx: 00000000   edx: c02ca2f8
esi: cb3cd1c4   edi: d084b720   ebp: cb3c1e40   esp: cb3c1e2c
ds: 007b   es: 007b   ss: 0068
Process rmmod (pid: 663, threadinfo=cb3c0000 task=cca7a000)
Stack: d0847089 cb3d3004 cb3cd030 cb3cd1c4 d084b720 cb3c1e50 d0832399
cb3d3004
       d08338b8 cb3c1e74 c01fb616 cb3cd1c4 00000042 d084b77c d084b768
cb3cd1c4
       cb3cd168 cb3cd030 cb3c1e84 c01fb634 cb3cd1c4 d084b704 cb3c1eb0
d0842aea
Call Trace:
 [<d0832399>] pcmcia_bus_remove_socket+0x39/0x60 [ds]
 [<c01fb616>] class_device_del+0xd6/0xe0
 [<c01fb634>] class_device_unregister+0x14/0x30
 [<d0842aea>] pcmcia_unregister_socket+0x4a/0xc0 [pcmcia_core]
 [<c01765e2>] sysfs_get_dentry+0x62/0x70
 [<d08366ef>] yenta_close+0x1f/0xb0 [yenta_socket]
 [<c01a583b>] pci_device_remove+0x3b/0x40
 [<c01fa7ee>] device_release_driver+0x5e/0x60
 [<c01fa81b>] driver_detach+0x2b/0x40
 [<c01faae7>] bus_remove_driver+0x57/0x90
 [<c01faf1a>] driver_unregister+0x1a/0x44
 [<c01a5ac7>] pci_unregister_driver+0x17/0x30
 [<d0837102>] yenta_socket_exit+0x12/0x16 [yenta_socket]
 [<c012c861>] sys_delete_module+0x151/0x1b0
 [<c013fa77>] sys_munmap+0x57/0x80
 [<c010930f>] syscall_call+0x7/0xb

-- 
Regards,
Pavel Roskin



More information about the linux-pcmcia mailing list