Re: Kernel trace when remove usb storage without umount

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

 



On Mon, 24 Mar 2014, Chris Cheng wrote:

> system kernel is 3.13.6, the origin issue is mount usb storage(3.0) on
> usb3.0 port not smooth, i found the solve method is revert xhci.c
> patch, here is the link :
> https://lkml.org/lkml/2014/3/7/295
> 
> 
> After i revert the patch, mount usb storage is fine.
> But it takes some issue, here is test case :
> 
> Here is test case :
> usb storage 2.0 remove from usb 3.0 port => kernel trace
> usb storage 2.0 remove from usb 2.0 port => kernel trace
> usb storage 3.0 remove from usb 3.0 port => kernel trace
> 
> Kernel trace message:
> 
> [224189.786719] usb 2-1: USB disconnect, device number 4
> [224189.820934] ------------[ cut here ]------------
> [224189.820949] WARNING: CPU: 3 PID: 14554 at fs/sysfs/group.c:214
> sysfs_remove_group+0x37/0x69()
> [224189.820953] sysfs group c1851c34 not found for kobject 'target7:0:0'
> [224189.820956] Modules linked in: snd_hda_intel(F)
> snd_hda_codec_via(F) snd_hda_codec(F) snd_hwdep(F) snd_pcm_oss(F)
> snd_mixer_oss(F) snd_pcm(F) snd_seq_dummy(F) snd_page_alloc(F)
> snd_seq_oss(F) snd_seq_midi_event(F) snd_seq(F) snd_timer(F)
> snd_seq_device(F) snd(F) parport_pc(F) fan(F) ppdev(F) lp(F)
> parport(F)
> [224189.820985] CPU: 3 PID: 14554 Comm: umount Tainted: GF       W    3.13.6 #1
> [224189.820988] Hardware name: LG CNS t180/t180, BIOS 1.11 03/21/2014
> [224189.820991]  00000000 00000000 da877d98 c154fb31 c175e60a da877db0
> c102e9f5 c112446b
> [224189.821001]  00000000 c1851c34 ea14f21c da877dc8 c102ea70 00000009
> da877dc0 c175e60a
> [224189.821010]  da877ddc da877df0 c112446b c175e5bf 000000d6 c175e60a
> c1851c34 ea28e0e0
> [224189.821019] Call Trace:
> [224189.821028]  [<c154fb31>] dump_stack+0x41/0x52
> [224189.821036]  [<c102e9f5>] warn_slowpath_common+0x61/0x78
> [224189.821042]  [<c112446b>] ? sysfs_remove_group+0x37/0x69
> [224189.821047]  [<c102ea70>] warn_slowpath_fmt+0x26/0x2a
> [224189.821053]  [<c112446b>] sysfs_remove_group+0x37/0x69
> [224189.821060]  [<c133a8bd>] dpm_sysfs_remove+0x2d/0x30
> [224189.821065]  [<c1334b1c>] device_del+0x2c/0x130
> [224189.821072]  [<c134ae09>] scsi_target_reap_usercontext+0x1f/0x2a
> [224189.821078]  [<c103f04a>] execute_in_process_context+0x16/0x45
> [224189.821083]  [<c134b714>] scsi_target_reap+0x81/0x87
> [224189.821090]  [<c134cd52>] scsi_device_dev_release_usercontext+0x116/0x13b
> [224189.821095]  [<c103f04a>] execute_in_process_context+0x16/0x45
> [224189.821101]  [<c134c9ea>] scsi_device_dev_release+0x13/0x15
> [224189.821107]  [<c13342d5>] device_release+0x46/0x78
> [224189.821114]  [<c1232827>] kobject_cleanup+0x3e/0x4e
> [224189.821120]  [<c123275c>] kobject_put+0x3c/0x3e
> [224189.821125]  [<c1232832>] ? kobject_cleanup+0x49/0x4e
> [224189.821131]  [<c1334173>] put_device+0xf/0x11
> [224189.821137]  [<c13443cc>] scsi_device_put+0x2f/0x33
> [224189.821143]  [<c135102e>] scsi_disk_put+0x23/0x31
> [224189.821148]  [<c13524f5>] sd_release+0x40/0x44
> [224189.821154]  [<c11042ba>] __blkdev_put+0x83/0xfa
> [224189.821159]  [<c1104329>] __blkdev_put+0xf2/0xfa
> [224189.821164]  [<c1104409>] blkdev_put+0xd8/0xde
> [224189.821170]  [<c10e0d1f>] kill_block_super+0x54/0x58
> [224189.821177]  [<c10e0422>] deactivate_locked_super+0x24/0x41
> [224189.821182]  [<c10e0d7d>] deactivate_super+0x28/0x2b
> [224189.821188]  [<c10f3016>] mntput_no_expire+0xc7/0xe3
> [224189.821194]  [<c10f3d0d>] SYSC_umount+0x293/0x2b0
> [224189.821200]  [<c10f3d38>] SyS_umount+0xe/0x10
> [224189.821206]  [<c155a1fa>] sysenter_do_call+0x12/0x22
> [224189.821210] ---[ end trace 096ea20d8206361e ]--

This problem has been fixed in linux-next:

https://git.kernel.org/cgit/linux/kernel/git/next/linux-next.git/commit?id=e63ed0d7a98014fdfc2cfeb3f6dada313dcabb59

Alan Stern

--
To unsubscribe from this list: send the line "unsubscribe linux-usb" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [Linux Media]     [Linux Input]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [Old Linux USB Devel Archive]

  Powered by Linux