Oops in ide_init_drive on PCMCIA CF card insert.

From: C. Scott Ananian (cananian@lesser-magoo.lcs.mit.edu)
Date: Thu Apr 24 2003 - 15:51:22 EST


The 2.5.68 kernel oopses in ide_init_drive every time I insert a PCMCIA CF
card in my IBM Thinkpad X21. Also happens in 2.5.67 (and likely earlier
kernels as well). Works correctly in 2.4.<mumble>. This is using the
kernel PCMCIA code.

Abbreviated dmesg output: (full output attached)
Linux version 2.5.68 (root@skiffserv) (gcc version 3.2.3 20030415 (Debian prerelease)) #1 Thu Apr 24 15:34:23 EDT 2003
[...]
 psparse-0474 [12] ps_parse_loop : get_predicate Failed, AE_AML_NO_RETURN_VALUE
 psparse-1121: *** Error: Method execution failed [\_SB_.PCI0._INI] (Node d7f25e6c), AE_AML_NO_RETURN_VALUE
  nsinit-0397 [06] ns_init_one_device : \_SB_.PCI0._INI failed: AE_AML_NO_RETURN_VALUE
[...]
SBF: ACPI BOOT descriptor is wrong length (39)
[...]
hda: HITACHI_DK23BA-20B, ATA DISK drive
ide0 at 0x1f0-0x1f7,0x3f6 on irq 14
[...]
cs4281: version v1.13.32 time 15:47:17 Apr 24 2003
Disabled Privacy Extensions on device c040e540(lo)
cs: warning: no high memory space available!
cs: unable to map card memory!
cs: unable to map card memory!
cs: unable to map card memory!
cs: unable to map card memory!
cs: unable to map card memory!
cs: unable to map card memory!
cs: IO port probe 0x0c00-0x0cff: clean.
[...]
eth1: New link status: Connected (0001)
Module cs4281 cannot be unloaded due to unsafe usage in include/linux/module.h:428
hde: SanDisk SDCFB-128, CFA DISK drive
Unable to handle kernel NULL pointer dereference at virtual address 00000000
 printing eip:
00000000
*pde = 00000000
Oops: 0000 [#1]
CPU: 0
EIP: 0060:[<00000000>] Not tainted
EFLAGS: 00010296
EIP is at 0x0
eax: c048e790 ebx: c048e83c ecx: 00000000 edx: 00000000
esi: d68c65e0 edi: c048e83c ebp: c256557c esp: c256556c
ds: 007b es: 007b ss: 0068
Process cardmgr (pid: 355, threadinfo=c2564000 task=d77a92a0)
Stack: c028042b c048e83c 00000001 c048e790 c25655c0 c02806b8 c048e83c c027ed00
       04000000 c048e7a0 d68c65e0 d68c6b2c 00000000 c048e7a0 c2564000 c2564000
       00000000 00000000 c048e790 c048e790 c048e7a0 c25655e8 c0280cd8 c048e790
Call Trace:
 [<c028042b>] ide_init_drive+0x2b/0x40
 [<c02806b8>] init_irq+0x278/0x460
 [<c027ed00>] ide_intr+0x0/0x180
 [<c0280cd8>] hwif_init+0xb8/0x250
 [<c0281148>] ideprobe_init+0x108/0x11d
 [<c02a7ae3>] yenta_set_io_map+0x173/0x1b0
 [<c0286b93>] ide_probe_module+0x13/0x20
 [<c0287785>] ide_register_hw+0x155/0x180
 [<d88a82a3>] idecs_register+0x63/0x80 [ide_cs]
 [<d88a877e>] ide_config+0x4be/0x880 [ide_cs]
 [<d88a87de>] ide_config+0x51e/0x880 [ide_cs]
 [<c02a6f00>] pci_get_socket+0x20/0x40
 [<c029d300>] set_cis_map+0x0/0x110
 [<c029d61d>] read_cis_mem+0x20d/0x250
 [<c029e295>] pcmcia_get_tuple_data+0x95/0xa0
 [<c029f64c>] pcmcia_parse_tuple+0x10c/0x170
 [<c02a7205>] exca_writew+0x65/0x80
 [<c02a7d2c>] yenta_set_mem_map+0x20c/0x270
 [<c029e1ae>] pcmcia_get_next_tuple+0x26e/0x2c0
 [<c029dcf5>] pcmcia_get_first_tuple+0xb5/0x160
 [<c02a7205>] exca_writew+0x65/0x80
 [<c02a7d2c>] yenta_set_mem_map+0x20c/0x270
 [<c029d301>] set_cis_map+0x1/0x110
 [<c02a6f00>] pci_get_socket+0x20/0x40
 [<c029d300>] set_cis_map+0x0/0x110
 [<c029d61d>] read_cis_mem+0x20d/0x250
 [<c029e295>] pcmcia_get_tuple_data+0x95/0xa0
 [<c029f64c>] pcmcia_parse_tuple+0x10c/0x170
 [<c02a7205>] exca_writew+0x65/0x80
 [<c02a7d2c>] yenta_set_mem_map+0x20c/0x270
 [<c029e1ae>] pcmcia_get_next_tuple+0x26e/0x2c0
 [<c029dcf5>] pcmcia_get_first_tuple+0xb5/0x160
 [<c029d9fb>] read_cis_cache+0x16b/0x1c0
 [<c029e1ae>] pcmcia_get_next_tuple+0x26e/0x2c0
 [<c029f82f>] pcmcia_validate_cis+0xff/0x1e0
 [<c01560bb>] bh_lru_install+0xcb/0x110
 [<c013d99b>] check_poison_obj+0x3b/0x1b0
 [<c013d99b>] check_poison_obj+0x3b/0x1b0
 [<d88a8cd8>] ide_event+0x68/0x100 [ide_cs]
 [<c02a3ae6>] pcmcia_register_client+0x206/0x2a0
 [<d88a9560>] dev_info+0x0/0x20 [ide_cs]
 [<c018e49b>] ext2_new_block+0x12b/0x530
 [<c013d99b>] check_poison_obj+0x3b/0x1b0
 [<c029d341>] set_cis_map+0x41/0x110
 [<c02a4ffb>] CardServices+0x1ab/0x360
 [<d88a804d>] ide_attach+0x1d/0x150 [ide_cs]
 [<d88a8137>] ide_attach+0x107/0x150 [ide_cs]
 [<d88a9560>] dev_info+0x0/0x20 [ide_cs]
 [<d88a8c70>] ide_event+0x0/0x100 [ide_cs]
 [<c013f14c>] kmalloc+0x15c/0x190
 [<c02a5cc4>] bind_request+0x104/0x160
 [<c01ff922>] __copy_from_user_ll+0x72/0x78
 [<d88a9560>] dev_info+0x0/0x20 [ide_cs]
 [<c02a6840>] ds_ioctl+0x5e0/0x6f0
 [<c02c8fff>] sock_def_readable+0x7f/0x90
 [<c031db9f>] unix_dgram_sendmsg+0x35f/0x560
 [<c02c5bde>] sock_sendmsg+0x8e/0xb0
 [<c0119cb6>] do_page_fault+0x276/0x4b4
 [<c011bc19>] schedule+0x1a9/0x3c0
 [<c011bf82>] __wake_up_locked+0x22/0x30
 [<c014405e>] zap_pmd_range+0x4e/0x70
 [<c01440ce>] unmap_page_range+0x4e/0x90
 [<c01441f3>] unmap_vmas+0xe3/0x260
 [<c0147cef>] unmap_vma_list+0x1f/0x30
 [<c0147cef>] unmap_vma_list+0x1f/0x30
 [<c01480b4>] do_munmap+0x164/0x1c0
 [<c0164cd0>] sys_ioctl+0x100/0x280
 [<c01094eb>] syscall_call+0x7/0xb

Code: Bad EIP value.
 
--------
Hope this helps someone find/fix the problem!
 --scott

Saddam Hussein World Trade Center Delta Force jihad pending Minister
non-violent protest Cocaine TASS immediate cryptographic milita Waihopai
                         ( http://cscott.net/ )



-
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 : Wed Apr 30 2003 - 22:00:18 EST