[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#274372: kernel-image-2.6.8-1-686: Block elevator bug when unmounting usb storage device



Package: kernel-image-2.6.8-1-686
Version: 2.6.8-3
Severity: normal

This turned up in syslog when unmounting a usb stick. 

Oct  1 09:54:20 kuhaugen kernel: usb-storage: Error in device_reset: invalid state 0
Oct  1 09:55:22 kuhaugen kernel: ------------[ cut here ]------------
Oct  1 09:55:22 kuhaugen kernel: kernel BUG at drivers/block/as-iosched.c:312!
Oct  1 09:55:22 kuhaugen kernel: invalid operand: 0000 [#1]
Oct  1 09:55:22 kuhaugen kernel: PREEMPT 
Oct  1 09:55:22 kuhaugen kernel: Modules linked in: sd_mod usb_storage scsi_mod ipv6 lp binfmt_misc ds ipt_state ip_conntrack iptable_filter ip_tables af_packet e100 yenta_socket pcmcia_core snd_intel8x0 snd_ac97_codec snd_pcm_oss snd_mixer_oss snd_pcm snd_timer snd_page_alloc gameport snd_mpu401_uart snd_rawmidi snd_seq_device snd soundcore hw_random uhci_hcd usbcore shpchp pciehp pci_hotplug intel_agp agpgart parport_pc parport floppy irtty_sir sir_dev pcspkr rtc nls_iso8859_1 nls_cp437 capability commoncap tsdev ircomm_tty evdev ircomm irda crc_ccitt mousedev psmouse eepro100 mii apm vfat fat ext3 jbd mbcache ide_generic piix ide_disk ide_core unix font vesafb cfbcopyarea cfbimgblt cfbfillrect
Oct  1 09:55:22 kuhaugen kernel: CPU:    0
Oct  1 09:55:22 kuhaugen kernel: EIP:    0060:[as_find_arq_hash+153/176]    Not tainted
Oct  1 09:55:22 kuhaugen kernel: EFLAGS: 00010046   (2.6.8-1-686) 
Oct  1 09:55:22 kuhaugen kernel: EIP is at as_find_arq_hash+0x99/0xb0
Oct  1 09:55:22 kuhaugen kernel: eax: 00000000   ebx: 00000000   ecx: d7a49260   edx: 08085dfc
Oct  1 09:55:22 kuhaugen kernel: esi: 00000000   edi: 00000219   ebp: 00000000   esp: d691fb84
Oct  1 09:55:22 kuhaugen kernel: ds: 007b   es: 007b   ss: 0068
Oct  1 09:55:22 kuhaugen kernel: Process famd (pid: 3572, threadinfo=d691e000 task=d7990620)
Oct  1 09:55:22 kuhaugen kernel: Stack: c01180c2 d7a10030 bffff8b8 00000000 d7a49260 0000021a 00000000 c0201fcd 
Oct  1 09:55:22 kuhaugen kernel:        d7a49260 00000219 00000000 00000000 dc86267a d7a49260 00000000 d664c02c 
Oct  1 09:55:22 kuhaugen kernel:        00000000 00000000 c01f90e9 d664c02c d691fc04 cabdf0e0 c01fc2c7 d664c02c 
Oct  1 09:55:22 kuhaugen kernel: Call Trace:
Oct  1 09:55:22 kuhaugen kernel:  [activate_task+98/128] activate_task+0x62/0x80
Oct  1 09:55:22 kuhaugen kernel:  [as_merge+285/512] as_merge+0x11d/0x200
Oct  1 09:55:22 kuhaugen kernel:  [elv_merge+41/48] elv_merge+0x29/0x30
Oct  1 09:55:22 kuhaugen kernel:  [__make_request+183/1376] __make_request+0xb7/0x560
Oct  1 09:55:22 kuhaugen kernel:  [generic_make_request+362/496] generic_make_request+0x16a/0x1f0
Oct  1 09:55:22 kuhaugen kernel:  [autoremove_wake_function+0/96] autoremove_wake_function+0x0/0x60
Oct  1 09:55:22 kuhaugen kernel:  [autoremove_wake_function+0/96] autoremove_wake_function+0x0/0x60
Oct  1 09:55:22 kuhaugen kernel:  [submit_bio+93/256] submit_bio+0x5d/0x100
Oct  1 09:55:22 kuhaugen kernel:  [end_buffer_read_sync+0/48] end_buffer_read_sync+0x0/0x30
Oct  1 09:55:22 kuhaugen kernel:  [submit_bh+97/336] submit_bh+0x61/0x150
Oct  1 09:55:22 kuhaugen kernel:  [__bread_slow+74/128] __bread_slow+0x4a/0x80
Oct  1 09:55:22 kuhaugen kernel:  [__bread+61/80] __bread+0x3d/0x50
Oct  1 09:55:22 kuhaugen kernel:  [__crc_blk_queue_start_tag+2580343/4471782] fat__get_entry+0xb6/0x194 [fat]
Oct  1 09:55:22 kuhaugen kernel:  [__crc_blk_queue_start_tag+2565532/4471782] fat_readdirx+0xd3b/0xe30 [fat]
Oct  1 09:55:22 kuhaugen kernel:  [sock_sendmsg+157/192] sock_sendmsg+0x9d/0xc0
Oct  1 09:55:22 kuhaugen kernel:  [__crc_blk_queue_start_tag+2462204/4471782] vfat_cmpi+0x3b/0xb0 [vfat]
Oct  1 09:55:22 kuhaugen kernel:  [__d_lookup+358/368] __d_lookup+0x166/0x170
Oct  1 09:55:22 kuhaugen kernel:  [__crc_blk_queue_start_tag+2462204/4471782] vfat_cmpi+0x3b/0xb0 [vfat]
Oct  1 09:55:22 kuhaugen kernel:  [__d_lookup+358/368] __d_lookup+0x166/0x170
Oct  1 09:55:22 kuhaugen kernel:  [__crc_blk_queue_start_tag+2462204/4471782] vfat_cmpi+0x3b/0xb0 [vfat]
Oct  1 09:55:22 kuhaugen kernel:  [__d_lookup+358/368] __d_lookup+0x166/0x170
Oct  1 09:55:22 kuhaugen kernel:  [dput+49/544] dput+0x31/0x220
Oct  1 09:55:22 kuhaugen kernel:  [link_path_walk+2635/3488] link_path_walk+0xa4b/0xda0
Oct  1 09:55:22 kuhaugen kernel:  [__crc_blk_queue_start_tag+2565830/4471782] fat_readdir+0x35/0x40 [fat]
Oct  1 09:55:22 kuhaugen kernel:  [filldir64+0/256] filldir64+0x0/0x100
Oct  1 09:55:22 kuhaugen kernel:  [vfs_readdir+165/192] vfs_readdir+0xa5/0xc0
Oct  1 09:55:22 kuhaugen kernel:  [filldir64+0/256] filldir64+0x0/0x100
Oct  1 09:55:22 kuhaugen kernel:  [sys_getdents64+110/170] sys_getdents64+0x6e/0xaa
Oct  1 09:55:22 kuhaugen kernel:  [filldir64+0/256] filldir64+0x0/0x100
Oct  1 09:55:22 kuhaugen kernel:  [syscall_call+7/11] syscall_call+0x7/0xb
Oct  1 09:55:22 kuhaugen kernel: Code: 0f 0b 38 01 09 a0 29 c0 eb ac 8d b6 00 00 00 00 8d bc 27 00 
Oct  1 09:55:22 kuhaugen kernel:  <6>note: famd[3572] exited with preempt_count 2

The sequence of actions which led up to this was:

- Reboot
- Insert stick
  There's now an entry in fstab
- Remove stick
  fstab entry is gone
- Insert stick
  udev logs to syslog that it's creating sdb1, sda1 entry was added to fstab
- mount from command line 'mount -t vfat /dev/sdb1 <mountpoint>
  ls <mountpoint> looks OK
- umount
  The kernel bug message shown above is logged to syslog.

I've seen the kernel bug dump only once. What typically happens is
rather that it mounts the first time it is plugged in, but it is
impossible to mount it the second time.

I've written about this usb stick to linux hotplug
("http://sourceforge.net/mailarchive/forum.php?thread_id=5676932&forum_id=3157";)
and usb-devel
("http://sourceforge.net/mailarchive/forum.php?thread_id=5682930&forum_id=5398";) 
One reply on usb-devel suggested posting to
linux-kernel-mailing-list. I'm reporting a Debian bug instead - the
Debian kernel maintainer is more likely to attract attention on lkml
than I am.


-- System Information:
Debian Release: 3.1
  APT prefers unstable
  APT policy: (500, 'unstable'), (500, 'testing'), (499, 'experimental')
Architecture: i386 (i686)
Kernel: Linux 2.6.8-1-686
Locale: LANG=en_US.ISO-8859-1, LC_CTYPE=en_US.ISO-8859-1

Versions of packages kernel-image-2.6.8-1-686 depends on:
ii  coreutils [fileutils]         5.2.1-2    The GNU core utilities
ii  fileutils                     5.2.1-2    The GNU file management utilities 
ii  initrd-tools                  0.1.74     tools to create initrd image for p
ii  module-init-tools             3.1-pre5-7 tools for managing Linux kernel mo

-- no debconf information



Reply to: