Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S275216AbTHAMta (ORCPT ); Fri, 1 Aug 2003 08:49:30 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S275217AbTHAMta (ORCPT ); Fri, 1 Aug 2003 08:49:30 -0400 Received: from caramon.arm.linux.org.uk ([212.18.232.186]:43529 "EHLO caramon.arm.linux.org.uk") by vger.kernel.org with ESMTP id S275216AbTHAMt1 (ORCPT ); Fri, 1 Aug 2003 08:49:27 -0400 Date: Fri, 1 Aug 2003 13:49:21 +0100 From: Russell King To: Matias Alejo Garcia Cc: Kernel , Bartlomiej Zolnierkiewicz Subject: Re: Crash when inserting a PCMCIA CF card Message-ID: <20030801134921.A23190@flint.arm.linux.org.uk> Mail-Followup-To: Matias Alejo Garcia , Kernel , Bartlomiej Zolnierkiewicz References: <1059130704.1379.7.camel@runner> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5.1i In-Reply-To: <1059130704.1379.7.camel@runner>; from linux@matiu.com.ar on Fri, Jul 25, 2003 at 06:58:25AM -0400 X-Message-Flag: Your copy of Microsoft Outlook is vulnerable to viruses. See www.mutt.org for more details. Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 7531 Lines: 109 On Fri, Jul 25, 2003 at 06:58:25AM -0400, Matias Alejo Garcia wrote: > Hi, > When I insert a SanDisk o Ridata CompactFlash card to the PCMCIA adapter > (this used to work OK in 2.4.20), the load of the module ide-cs dumps a > Call Trace, then, if I eject the CF card, the system crash. (see below) > > Is there a patch for this? I am sure the problem is in ide-cs, others > pcmcia cards are working OK. > > Thanks. Matias > Logs:(starting when I load cardctl and ds/yenta_socket/pcmcia_core, > the problem is at 6:33:13, when I insert the CF card) This looks like some problem with either the partition handling code or the IDE code - it looks like hdc1 was created or registered twice. > ... > Jul 25 06:33:16 runner kernel: hdc: 62720 sectors (32 MB) w/1KiB Cache, CHS=490/4/32 > Jul 25 06:33:16 runner kernel: hdc: hdc1 > Jul 25 06:33:17 runner kernel: hdc: hdc1 > Jul 25 06:33:17 runner kernel: kobject_register failed for hdc1 (-17) > Jul 25 06:33:17 runner kernel: Call Trace: > Jul 25 06:33:17 runner kernel: [] kobject_register+0x50/0x5a > Jul 25 06:33:17 runner kernel: [] register_disk+0x136/0x13e > Jul 25 06:33:17 runner kernel: [] add_disk+0x4e/0x5e > Jul 25 06:33:17 runner kernel: [] exact_match+0x0/0x8 > Jul 25 06:33:17 runner kernel: [] exact_lock+0x0/0x1e > Jul 25 06:33:17 runner kernel: [] idedisk_attach+0x12c/0x1ac > Jul 25 06:33:17 runner kernel: [] ata_attach+0x96/0x1b2 > Jul 25 06:33:17 runner kernel: [] ideprobe_init+0xdf/0xfb > Jul 25 06:33:17 runner kernel: [] ide_probe_module+0xd/0x10 > Jul 25 06:33:17 runner kernel: [] ide_register_hw+0x154/0x186 > Jul 25 06:33:17 runner kernel: [] idecs_register+0x5e/0x70 [ide_cs] > Jul 25 06:33:17 runner kernel: [] CardServices+0x208/0x351 [pcmcia_core] > Jul 25 06:33:17 runner kernel: [] set_cis_map+0x40/0x10c [pcmcia_core] > Jul 25 06:33:17 runner kernel: [] ide_config+0x50c/0x854 [ide_cs] > Jul 25 06:33:17 runner kernel: [] read_cis_mem+0x121/0x18c [pcmcia_core] > Jul 25 06:33:17 runner kernel: [] set_cis_map+0x40/0x10c [pcmcia_core] > Jul 25 06:33:17 runner kernel: [] read_cis_mem+0x121/0x18c [pcmcia_core] > Jul 25 06:33:17 runner kernel: [] read_cis_cache+0xdf/0x16a [pcmcia_core] > Jul 25 06:33:17 runner kernel: [] pcmcia_get_tuple_data+0x91/0x96 [pcmcia_core] > Jul 25 06:33:17 runner kernel: [] pcmcia_parse_tuple+0x109/0x16e [pcmcia_core] > Jul 25 06:33:17 runner kernel: [] read_tuple+0xa2/0xa4 [pcmcia_core] > Jul 25 06:33:17 runner kernel: [] yenta_set_mem_map+0x1e0/0x232 [yenta_socket] > Jul 25 06:33:17 runner kernel: [] yenta_set_mem_map+0x1e0/0x232 [yenta_socket] > Jul 25 06:33:17 runner kernel: [] pcmcia_get_next_tuple+0x231/0x282 [pcmcia_core] > Jul 25 06:33:17 runner kernel: [] pcmcia_get_first_tuple+0xa0/0x138 [pcmcia_core] > Jul 25 06:33:17 runner kernel: [] scrup+0x12f/0x13a > Jul 25 06:33:17 runner kernel: [] yenta_set_mem_map+0x1e0/0x232 [yenta_socket] > Jul 25 06:33:17 runner kernel: [] poke_blanked_console+0x5c/0x76 > Jul 25 06:33:17 runner kernel: [] vt_console_print+0x213/0x302 > Jul 25 06:33:17 runner kernel: [] yenta_set_mem_map+0x1e0/0x232 [yenta_socket] > Jul 25 06:33:17 runner kernel: [] set_cis_map+0x40/0x10c [pcmcia_core] > Jul 25 06:33:17 runner kernel: [] read_cis_mem+0x121/0x18c [pcmcia_core] > Jul 25 06:33:17 runner kernel: [] read_cis_mem+0x121/0x18c [pcmcia_core] > Jul 25 06:33:17 runner kernel: [] read_cis_cache+0xdf/0x16a [pcmcia_core] > Jul 25 06:33:17 runner kernel: [] pcmcia_get_tuple_data+0x91/0x96 [pcmcia_core] > Jul 25 06:33:17 runner kernel: [] pcmcia_parse_tuple+0x109/0x16e [pcmcia_core] > Jul 25 06:33:17 runner kernel: [] read_tuple+0xa2/0xa4 [pcmcia_core] > Jul 25 06:33:17 runner kernel: [] yenta_set_mem_map+0x1e0/0x232 [yenta_socket] > Jul 25 06:33:17 runner kernel: [] yenta_set_mem_map+0x1e0/0x232 [yenta_socket] > Jul 25 06:33:17 runner kernel: [] pcmcia_get_next_tuple+0x231/0x282 [pcmcia_core] > Jul 25 06:33:17 runner kernel: [] pcmcia_get_first_tuple+0xa0/0x138 [pcmcia_core] > Jul 25 06:33:17 runner kernel: [] read_cis_cache+0xdf/0x16a [pcmcia_core] > Jul 25 06:33:17 runner kernel: [] pcmcia_get_next_tuple+0x231/0x282 [pcmcia_core] > Jul 25 06:33:17 runner kernel: [] pcmcia_validate_cis+0x11e/0x1ea [pcmcia_core] > Jul 25 06:33:17 runner kernel: [] wake_up_buffer+0xf/0x26 > Jul 25 06:33:17 runner kernel: [] do_get_write_access+0x2cb/0x5e8 > Jul 25 06:33:17 runner kernel: [] ide_event+0x67/0xea [ide_cs] > Jul 25 06:33:17 runner kernel: [] pcmcia_register_client+0x1c8/0x1fe [pcmcia_core] > Jul 25 06:33:17 runner kernel: [] ext3_mark_iloc_dirty+0x28/0x36 > Jul 25 06:33:17 runner kernel: [] yenta_set_mem_map+0x1e0/0x232 [yenta_socket] > Jul 25 06:33:17 runner kernel: [] ext3_splice_branch+0x123/0x1da > Jul 25 06:33:17 runner kernel: [] CardServices+0x1a1/0x351 [pcmcia_core] > Jul 25 06:33:17 runner kernel: [] ide_attach+0x110/0x150 [ide_cs] > Jul 25 06:33:17 runner kernel: [] ide_event+0x0/0xea [ide_cs] > Jul 25 06:33:17 runner kernel: [] get_pcmcia_driver+0x3f/0x5a [ds] > Jul 25 06:33:17 runner kernel: [] bind_request+0x180/0x214 [ds] > Jul 25 06:33:17 runner kernel: [] ds_ioctl+0x5eb/0x6ec [ds] > Jul 25 06:33:17 runner kernel: [] sock_def_readable+0x82/0x84 > Jul 25 06:33:17 runner kernel: [] unix_dgram_sendmsg+0x36b/0x56c > Jul 25 06:33:17 runner kernel: [] sock_sendmsg+0x9e/0xca > Jul 25 06:33:17 runner kernel: [] alloc_inode+0x1c/0x148 > Jul 25 06:33:17 runner kernel: [] iget_locked+0x96/0xc0 > Jul 25 06:33:17 runner kernel: [] proc_read_inode+0x17/0x3c > Jul 25 06:33:17 runner kernel: [] find_get_page+0x29/0x64 > Jul 25 06:33:17 runner kernel: [] filemap_nopage+0x26c/0x384 > Jul 25 06:33:17 runner kernel: [] __rmqueue+0xcb/0x11c > Jul 25 06:33:17 runner kernel: [] buffered_rmqueue+0xd1/0x192 > Jul 25 06:33:17 runner kernel: [] buffered_rmqueue+0xd1/0x192 > Jul 25 06:33:17 runner kernel: [] zap_pmd_range+0x48/0x64 > Jul 25 06:33:17 runner kernel: [] unmap_page_range+0x49/0x88 > Jul 25 06:33:17 runner kernel: [] unmap_vmas+0xc2/0x22e > Jul 25 06:33:17 runner kernel: [] unmap_region+0x9b/0xde > Jul 25 06:33:17 runner kernel: [] unmap_vma+0x40/0x7e > Jul 25 06:33:17 runner kernel: [] unmap_vma_list+0x1c/0x28 > Jul 25 06:33:17 runner kernel: [] do_munmap+0x166/0x1ce > Jul 25 06:33:17 runner kernel: [] sys_ioctl+0xf3/0x27a > Jul 25 06:33:17 runner kernel: [] syscall_call+0x7/0xb -- Russell King (rmk@arm.linux.org.uk) The developer of ARM Linux http://www.arm.linux.org.uk/personal/aboutme.html - 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/