Bug 6418
Summary: | oops when removing usb-audio device while in use | ||
---|---|---|---|
Product: | Drivers | Reporter: | Vladimir Kondratiev (vladimir.kondratiev) |
Component: | Sound(ALSA) | Assignee: | Jaroslav Kysela (perex) |
Status: | CLOSED PATCH_ALREADY_AVAILABLE | ||
Severity: | high | CC: | bunk, protasnb, tiwai |
Priority: | P2 | ||
Hardware: | i386 | ||
OS: | Linux | ||
Kernel Version: | 2.6.16 | Subsystem: | |
Regression: | --- | Bisected commit-id: | |
Bug Depends on: | |||
Bug Blocks: | 5089 |
Description
Vladimir Kondratiev
2006-04-20 10:53:07 UTC
I don't see any USB or sound specific function in this callback at all. Does this happen on 2.6.17-rc2 also? will try 2.6.17-rc2 tomorrow. there is rc2-git4 as well. which one it better to start with? Either is fine, the -git one is newer, so would be nicer to have you test, if you can. I checked with 2.6.17-rc2-git4; oops is reproducible. Scenario: - boot fresh compiled 2.6.17-rc2-git4 [vkondra-l@vkondra-mobl ~]$ cat /proc/version Linux version 2.6.17-rc2-git4 (root@vkondra-mobl) (gcc version 4.1.0 20060304 (Red Hat 4.1.0-3)) #1 PREEMPT Sun Apr 23 09:52:24 IDT 2006 - plug usb headset. - run 'alsamixer -c 2' (it is for headset) - unplug headset. the following oops printed to /var/log/messages Apr 23 21:05:55 vkondra-mobl kernel: usb 4-1.3: new full speed USB device using ehci_hcd and address 4 Apr 23 21:05:55 vkondra-mobl kernel: usb 4-1.3: configuration #1 chosen from 1 choice Apr 23 21:05:55 vkondra-mobl kernel: input: Plantronics Plantronics Headset as /class/input/input4 Apr 23 21:05:55 vkondra-mobl kernel: input: USB HID v1.00 Device [Plantronics Plantronics Headset] on usb-0000:00:1d.7-1.3 Apr 23 21:05:55 vkondra-mobl kernel: usbcore: registered new driver snd-usb-audio Apr 23 21:06:47 vkondra-mobl kernel: usb 4-1.3: USB disconnect, address 4 Apr 23 21:06:47 vkondra-mobl kernel: BUG: unable to handle kernel paging request at virtual address 6b6b6c6b Apr 23 21:06:47 vkondra-mobl kernel: printing eip: Apr 23 21:06:47 vkondra-mobl kernel: c0151c60 Apr 23 21:06:47 vkondra-mobl kernel: *pde = 00000000 Apr 23 21:06:47 vkondra-mobl kernel: Oops: 0002 [#1] Apr 23 21:06:47 vkondra-mobl kernel: PREEMPT Apr 23 21:06:47 vkondra-mobl kernel: Modules linked in: snd_usb_audio snd_usb_lib snd_rawmidi snd_hwdep cpufreq_stats cpufreq_conservative cpufreq_performance cpufreq_powersave cpufreq_ondemand speedstep_centrino freq_table microcode ipv6 autofs4 hidp l2cap bluetooth sunrpc d m_mirror dm_mod video thermal processor ibm_acpi fan container button battery ac lp parport_pc parport floppy nvram snd_intel8x0 snd_intel 8x0m pcmcia snd_ac97_codec snd_ac97_bus snd_seq_dummy crc32 snd_seq_oss snd_seq_midi_event snd_seq snd_seq_device joydev usbhid ipw2200 sn d_pcm_oss snd_mixer_oss snd_pcm yenta_socket e1000 ieee80211 ieee80211_crypt rsrc_nonstatic firmware_class pcmcia_core serio_raw evdev i2c _i801 snd_timer intel_agp snd ehci_hcd uhci_hcd soundcore agpgart snd_page_alloc i2c_core usbcore ext3 jbd Apr 23 21:06:47 vkondra-mobl kernel: CPU: 0 Apr 23 21:06:47 vkondra-mobl kernel: EIP: 0060:[<c0151c60>] Not tainted VLI Apr 23 21:06:47 vkondra-mobl kernel: EFLAGS: 00010246 (2.6.17-rc2-git4 #1) Apr 23 21:06:47 vkondra-mobl kernel: EIP is at __fput+0xf1/0x1a4 Apr 23 21:06:47 vkondra-mobl kernel: eax: 6b6b6c6b ebx: 6b6b6b6b ecx: 00000000 edx: eca10000 Apr 23 21:06:47 vkondra-mobl kernel: esi: ecbc8560 edi: ece10280 ebp: eca11f2c esp: eca11f14 Apr 23 21:06:47 vkondra-mobl kernel: ds: 007b es: 007b ss: 0068 Apr 23 21:06:47 vkondra-mobl kernel: Process alsamixer (pid: 3009, threadinfo=eca10000 task=ed022030) Apr 23 21:06:47 vkondra-mobl kernel: Stack: <0>ecba9258 f7ff3cd0 ecbc8560 ece10280 00000000 ec833c00 eca11f34 c0151d29 Apr 23 21:06:47 vkondra-mobl kernel: eca11f48 c014f509 ec833c00 0000000c 00000003 eca11f68 c01189ab eca3b134 Apr 23 21:06:47 vkondra-mobl kernel: 00000000 00000000 ed0224c4 ed022030 ec833c00 eca11f94 c01199ad 00000200 Apr 23 21:06:47 vkondra-mobl kernel: Call Trace: Apr 23 21:06:47 vkondra-mobl kernel: <c0103d4b> show_stack_log_lvl+0x8c/0x96 <c0103ed8> show_registers+0x14b/0x1bf Apr 23 21:06:47 vkondra-mobl kernel: <c01040b1> die+0x165/0x263 <c02928e3> do_page_fault+0x416/0x574 Apr 23 21:06:47 vkondra-mobl kernel: <c01037f3> error_code+0x4f/0x54 <c0151d29> fput+0x16/0x18 Apr 23 21:06:47 vkondra-mobl kernel: <c014f509> filp_close+0x51/0x5b <c01189ab> put_files_struct+0x6b/0xa7 Apr 23 21:06:47 vkondra-mobl kernel: <c01199ad> do_exit+0x1d8/0x750 <c0119f9b> sys_exit_group+0x0/0x11 Apr 23 21:06:47 vkondra-mobl kernel: <c0119faa> sys_exit_group+0xf/0x11 <c0102cc3> syscall_call+0x7/0xb Apr 23 21:06:47 vkondra-mobl kernel: Code: e8 7e 6b 00 00 8b 47 10 85 c0 74 4e 8b 18 85 db 74 48 b8 01 00 00 00 e8 2e 18 fc ff e8 3a 5f 06 00 c1 e0 07 8d 84 18 00 01 00 00 <ff> 08 83 3b 02 75 0b 8b 83 88 01 00 00 e8 80 1c fc ff b8 01 00 Apr 23 21:06:47 vkondra-mobl kernel: EIP: [<c0151c60>] __fput+0xf1/0x1a4 SS:ESP 0068:eca11f14 Apr 23 21:06:47 vkondra-mobl kernel: <3>BUG: sleeping function called from invalid context at include/linux/rwsem.h:43 Apr 23 21:06:48 vkondra-mobl kernel: in_atomic():1, irqs_disabled():0 Apr 23 21:06:48 vkondra-mobl kernel: <c0103d8b> show_trace+0xd/0xf <c010424e> dump_stack+0x17/0x19 Apr 23 21:06:48 vkondra-mobl kernel: <c011379f> __might_sleep+0x86/0x90 <c0121afd> blocking_notifier_call_chain+0x1b/0x48 Apr 23 21:06:48 vkondra-mobl kernel: <c01182d1> profile_task_exit+0x11/0x13 <c01197f1> do_exit+0x1c/0x750 Apr 23 21:06:48 vkondra-mobl kernel: <c0104189> die+0x23d/0x263 <c02928e3> do_page_fault+0x416/0x574 Apr 23 21:06:48 vkondra-mobl kernel: <c01037f3> error_code+0x4f/0x54 <c0151d29> fput+0x16/0x18 Apr 23 21:06:48 vkondra-mobl kernel: <c014f509> filp_close+0x51/0x5b <c01189ab> put_files_struct+0x6b/0xa7 Apr 23 21:06:48 vkondra-mobl kernel: <c01199ad> do_exit+0x1d8/0x750 <c0119f9b> sys_exit_group+0x0/0x11 Apr 23 21:06:48 vkondra-mobl kernel: <c0119faa> sys_exit_group+0xf/0x11 <c0102cc3> syscall_call+0x7/0xb Apr 23 21:06:48 vkondra-mobl kernel: Fixing recursive fault but reboot is needed! Apr 23 21:06:48 vkondra-mobl kernel: BUG: scheduling while atomic: alsamixer/0x00000001/3009 Apr 23 21:06:48 vkondra-mobl kernel: <c0103d8b> show_trace+0xd/0xf <c010424e> dump_stack+0x17/0x19 Apr 23 21:06:48 vkondra-mobl kernel: <c028f4dd> schedule+0x43/0x52e <c01198a0> do_exit+0xcb/0x750 Apr 23 21:06:48 vkondra-mobl kernel: <c0104189> die+0x23d/0x263 <c02928e3> do_page_fault+0x416/0x574 Apr 23 21:06:48 vkondra-mobl kernel: <c01037f3> error_code+0x4f/0x54 <c0151d29> fput+0x16/0x18 Apr 23 21:06:48 vkondra-mobl kernel: <c014f509> filp_close+0x51/0x5b <c01189ab> put_files_struct+0x6b/0xa7 Apr 23 21:06:48 vkondra-mobl kernel: <c01199ad> do_exit+0x1d8/0x750 <c0119f9b> sys_exit_group+0x0/0x11 Apr 23 21:06:48 vkondra-mobl kernel: <c0119faa> sys_exit_group+0xf/0x11 <c0102cc3> syscall_call+0x7/0xb I re-checked with 2.6.17-rc4. Same scenario: plug headset; run "alsamixer -c 2"; unplug headset. oops below: May 13 20:18:53 vkondra-mobl kernel: usb 1-1.3: USB disconnect, address 5 May 13 20:18:53 vkondra-mobl kernel: BUG: unable to handle kernel paging request at virtual address 6b6b6c6b May 13 20:18:53 vkondra-mobl kernel: printing eip: May 13 20:18:53 vkondra-mobl kernel: c015263c May 13 20:18:53 vkondra-mobl kernel: *pde = 00000000 May 13 20:18:53 vkondra-mobl kernel: Oops: 0002 [#1] May 13 20:18:53 vkondra-mobl kernel: PREEMPT May 13 20:18:53 vkondra-mobl kernel: Modules linked in: snd_usb_audio snd_usb_lib snd_rawmidi snd_hwdep cpufreq_stats cpufreq_conservative cpufreq_performance c pufreq_powersave cpufreq_ondemand speedstep_centrino freq_table microcode ipv6 autofs4 hidp l2cap bluetooth sunrpc dm_mirror dm_mod video thermal processor ibm_ acpi fan container button battery ac lp parport_pc parport floppy nvram snd_intel8x0m snd_intel8x0 snd_ac97_codec snd_ac97_bus snd_seq_dummy snd_seq_oss snd_seq _midi_event snd_seq snd_seq_device ipw2200 usbhid snd_pcm_oss ieee80211 snd_mixer_oss pcmcia e1000 ieee80211_crypt crc32 snd_pcm joydev uhci_hcd ehci_hcd firmwa re_class snd_timer snd evdev yenta_socket rsrc_nonstatic pcmcia_core serio_raw intel_agp agpgart soundcore i2c_i801 i2c_core snd_page_alloc usbcore ext3 jbd May 13 20:18:53 vkondra-mobl kernel: CPU: 0 May 13 20:18:53 vkondra-mobl kernel: EIP: 0060:[<c015263c>] Not tainted VLI May 13 20:18:53 vkondra-mobl kernel: EFLAGS: 00010246 (2.6.17-rc4 #2) May 13 20:18:53 vkondra-mobl kernel: EIP is at __fput+0xf1/0x1a4 May 13 20:18:53 vkondra-mobl kernel: eax: 6b6b6c6b ebx: 6b6b6b6b ecx: 00000000 edx: ce33e000 May 13 20:18:53 vkondra-mobl kernel: esi: e66135d0 edi: f07341d4 ebp: ce33ff2c esp: ce33ff14 May 13 20:18:53 vkondra-mobl kernel: ds: 007b es: 007b ss: 0068 May 13 20:18:53 vkondra-mobl kernel: Process alsamixer (pid: 18981, threadinfo=ce33e000 task=ef2cb550) May 13 20:18:53 vkondra-mobl kernel: Stack: <0>ef1f7564 f7ff3cd0 e66135d0 f07341d4 00000000 f7a1d81c ce33ff34 c0152705 May 13 20:18:53 vkondra-mobl kernel: ce33ff48 c014fee5 f7a1d81c 0000000c 00000003 ce33ff68 c01189af edf70d14 May 13 20:18:53 vkondra-mobl kernel: 00000000 00000000 ef2cb9e4 ef2cb550 f7a1d81c ce33ff94 c01199c1 00000200 May 13 20:18:53 vkondra-mobl kernel: Call Trace: May 13 20:18:53 vkondra-mobl kernel: <c0103d4b> show_stack_log_lvl+0x8c/0x96 <c0103ed8> show_registers+0x14b/0x1bf May 13 20:18:53 vkondra-mobl kernel: <c01040b1> die+0x165/0x263 <c0293d05> do_page_fault+0x416/0x574 May 13 20:18:53 vkondra-mobl kernel: <c01037f3> error_code+0x4f/0x54 <c0152705> fput+0x16/0x18 May 13 20:18:53 vkondra-mobl kernel: <c014fee5> filp_close+0x51/0x5b <c01189af> put_files_struct+0x6b/0xa7 May 13 20:18:53 vkondra-mobl kernel: <c01199c1> do_exit+0x1e8/0x760 <c0119faf> sys_exit_group+0x0/0x11 May 13 20:18:54 vkondra-mobl kernel: <c0119fbe> sys_exit_group+0xf/0x11 <c0102cc3> syscall_call+0x7/0xb May 13 20:18:54 vkondra-mobl kernel: Code: e8 7e 6b 00 00 8b 47 10 85 c0 74 4e 8b 18 85 db 74 48 b8 01 00 00 00 e8 62 0e fc ff e8 1a 6c 06 00 c1 e0 07 8d 84 18 00 01 00 00 <ff> 08 83 3b 02 75 0b 8b 83 88 01 00 00 e8 b4 12 fc ff b8 01 00 May 13 20:18:54 vkondra-mobl kernel: EIP: [<c015263c>] __fput+0xf1/0x1a4 SS:ESP 0068:ce33ff14 May 13 20:18:54 vkondra-mobl kernel: <3>BUG: sleeping function called from invalid context at include/linux/rwsem.h:43 May 13 20:18:54 vkondra-mobl kernel: in_atomic():1, irqs_disabled():0 May 13 20:18:54 vkondra-mobl kernel: <c0103d8b> show_trace+0xd/0xf <c010424e> dump_stack+0x17/0x19 May 13 20:18:54 vkondra-mobl kernel: <c01137af> __might_sleep+0x86/0x90 <c0121b49> blocking_notifier_call_chain+0x1b/0x48 May 13 20:18:54 vkondra-mobl kernel: <c01182d5> profile_task_exit+0x11/0x13 <c01197f5> do_exit+0x1c/0x760 May 13 20:18:54 vkondra-mobl kernel: <c0104189> die+0x23d/0x263 <c0293d05> do_page_fault+0x416/0x574 May 13 20:18:54 vkondra-mobl kernel: <c01037f3> error_code+0x4f/0x54 <c0152705> fput+0x16/0x18 May 13 20:18:54 vkondra-mobl kernel: <c014fee5> filp_close+0x51/0x5b <c01189af> put_files_struct+0x6b/0xa7 May 13 20:18:54 vkondra-mobl kernel: <c01199c1> do_exit+0x1e8/0x760 <c0119faf> sys_exit_group+0x0/0x11 May 13 20:18:54 vkondra-mobl kernel: <c0119fbe> sys_exit_group+0xf/0x11 <c0102cc3> syscall_call+0x7/0xb May 13 20:18:54 vkondra-mobl kernel: Fixing recursive fault but reboot is needed! May 13 20:18:54 vkondra-mobl kernel: BUG: scheduling while atomic: alsamixer/0x00000001/18981 May 13 20:18:54 vkondra-mobl kernel: <c0103d8b> show_trace+0xd/0xf <c010424e> dump_stack+0x17/0x19 May 13 20:18:54 vkondra-mobl kernel: <c0290905> schedule+0x43/0x52e <c01198a4> do_exit+0xcb/0x760 May 13 20:18:54 vkondra-mobl kernel: <c0104189> die+0x23d/0x263 <c0293d05> do_page_fault+0x416/0x574 May 13 20:18:54 vkondra-mobl kernel: <c01037f3> error_code+0x4f/0x54 <c0152705> fput+0x16/0x18 May 13 20:18:54 vkondra-mobl kernel: <c014fee5> filp_close+0x51/0x5b <c01189af> put_files_struct+0x6b/0xa7 May 13 20:18:54 vkondra-mobl kernel: <c01199c1> do_exit+0x1e8/0x760 <c0119faf> sys_exit_group+0x0/0x11 May 13 20:18:54 vkondra-mobl kernel: <c0119fbe> sys_exit_group+0xf/0x11 <c0102cc3> syscall_call+0x7/0xb Ok, this is an alsa issue, reassigning... Vladimir, any updates on the problem? have you tried newer kernels since then? I am going to cc to asla-devel... --Natalie Checked 2.6.21.5. No problem with USB audio removal while in use. I run mplayer with audio directed to USB, then removed USB plug. mplayer hangs of course, but nothing bad happens with the system. Close? Great, thanks. Can be closed now. (On the other hand, maybe try 2.6.22+? There were updates for USB device removal/shutdown, maybe you can give it a shot?) |