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
Most recent kernel where this bug did not occur:
Distribution: Fedora Core 5
Hardware Environment: IBM T42p, Plantronics 400 USB headset
Software Environment:
vanilla 2.6.16 kernel
ALSA sound
ask for other details that may be relevant, I don't want to list here whole .config

Problem Description:
When I remove USB headset while audio device is in use; kernel oops occurs when
last process that uses this audio device, terminated. System continue to
function, but process mentioned usually can't be killed. This means, suspend
will not work.

OOPS messages:
Apr 20 08:49:39 vkondra-mobl kernel: drivers/usb/input/hid-core.c: input irq
status -71 received
Apr 20 08:49:39 vkondra-mobl last message repeated 14 times
Apr 20 08:49:39 vkondra-mobl kernel: usb 1-1.3: USB disconnect, address 23
Apr 20 08:51:25 vkondra-mobl kernel: Unable to handle kernel paging request at
virtual address 6b6b6c6b
Apr 20 08:51:25 vkondra-mobl kernel:  printing eip:
Apr 20 08:51:25 vkondra-mobl kernel: c0151930
Apr 20 08:51:25 vkondra-mobl kernel: *pde = 00000000
Apr 20 08:51:25 vkondra-mobl kernel: Oops: 0002 [#1]
Apr 20 08:51:25 vkondra-mobl kernel: PREEMPT
Apr 20 08:51:25 vkondra-mobl kernel: Modules linked in: nls_utf8 cifs isofs
zlib_inflate udf rfcomm hci_usb nls_ascii nls_cp437 vfat fat nls_base sd_mod sg
 usb_storage scsi_mod snd_usb_audio snd_usb_lib snd_rawmidi snd_hwdep
cpufreq_stats cpufreq_conservative cpufreq_performance cpufreq_powersave
cpufreq_onde
mand speedstep_centrino freq_table microcode ipv6 autofs4 hidp l2cap bluetooth
sunrpc dm_mirror dm_mod video thermal processor ibm_acpi fan container butto
n battery ac lp parport_pc parport floppy nvram snd_intel8x0m snd_intel8x0
snd_ac97_codec snd_ac97_bus snd_seq_dummy usbhid snd_seq_oss joydev ipw2200 ieee
80211 snd_seq_midi_event ieee80211_crypt pcmcia snd_seq crc32 snd_seq_device
uhci_hcd ehci_hcd firmware_class serio_raw snd_pcm_oss e1000 evdev snd_mixer_o
ss yenta_socket rsrc_nonstatic pcmcia_core intel_agp agpgart snd_pcm snd_timer
snd soundcore snd_page_alloc i2c_i801 i2c_core usbcore ext3 jbd
Apr 20 08:51:25 vkondra-mobl kernel: CPU:    0
Apr 20 08:51:25 vkondra-mobl kernel: EIP:    0060:[<c0151930>]    Not tainted VLI
Apr 20 08:51:25 vkondra-mobl kernel: EFLAGS: 00210246   (2.6.16 #1)
Apr 20 08:51:25 vkondra-mobl kernel: EIP is at __fput+0xf1/0x1a4
Apr 20 08:51:25 vkondra-mobl kernel: eax: 6b6b6c6b   ebx: 6b6b6b6b   ecx:
00000000   edx: ce378000
Apr 20 08:51:25 vkondra-mobl kernel: esi: e346875c   edi: dda733d8   ebp:
ce379f80   esp: ce379f68
Apr 20 08:51:25 vkondra-mobl kernel: ds: 007b   es: 007b   ss: 0068
Apr 20 08:51:25 vkondra-mobl kernel: Process kmix (pid: 10635,
threadinfo=ce378000 task=e17b0ab0)
Apr 20 08:51:25 vkondra-mobl kernel: Stack: <0>f67c069c f7ff4cd0 e346875c
dda733d8 00000000 f771d664 ce379f88 c01519f9
Apr 20 08:51:25 vkondra-mobl kernel:        ce379f9c c014f1fc 0000000d f771d664
f771d814 ce379fb4 c015036e dda733d8
Apr 20 08:51:25 vkondra-mobl kernel:        0000000d 00000000 0816b850 ce378000
c0102cb9 0000000d 0816db2d 4409df98
Apr 20 08:51:26 vkondra-mobl kernel: Call Trace:
Apr 20 08:51:26 vkondra-mobl kernel:  [<c0103ce8>] show_stack_log_lvl+0xaa/0xb5
Apr 20 08:51:27 vkondra-mobl kernel:  [<c0103e37>] show_registers+0x144/0x1b8
Apr 20 08:51:27 vkondra-mobl kernel:  [<c0103ff2>] die+0x147/0x1bd
Apr 20 08:51:27 vkondra-mobl kernel:  [<c0291d5e>] do_page_fault+0x373/0x521
Apr 20 08:51:27 vkondra-mobl kernel:  [<c01037eb>] error_code+0x4f/0x54
Apr 20 08:51:27 vkondra-mobl kernel:  [<c01519f9>] fput+0x16/0x18
Apr 20 08:51:27 vkondra-mobl kernel:  [<c014f1fc>] filp_close+0x51/0x5b
Apr 20 08:51:27 vkondra-mobl kernel:  [<c015036e>] sys_close+0x75/0x89
Apr 20 08:51:27 vkondra-mobl kernel:  [<c0102cb9>] syscall_call+0x7/0xb
Apr 20 08:51:27 vkondra-mobl kernel: Code: e8 18 6b 00 00 8b 47 10 85 c0 74 4e
8b 18 85 db 74 48 b8 01 00 00 00 e8 7a 2a fc ff e8 5a 48 06 00 c1 e0 07 8d 8
4 18 00 01 00 00 <ff> 08 83 3b 02 75 0b 8b 83 88 01 00 00 e8 9d 2e fc ff b8 01 00
Apr 20 08:51:27 vkondra-mobl kernel:  <3>Debug: sleeping function called from
invalid context at include/linux/rwsem.h:43
Apr 20 08:51:28 vkondra-mobl kernel: in_atomic():1, irqs_disabled():0
Apr 20 08:51:28 vkondra-mobl kernel:  [<c0104084>] show_trace+0xd/0xf
Apr 20 08:51:28 vkondra-mobl kernel:  [<c01040d0>] dump_stack+0x17/0x19
Apr 20 08:51:28 vkondra-mobl kernel:  [<c0114685>] __might_sleep+0x86/0x90
Apr 20 08:51:28 vkondra-mobl kernel:  [<c01191f0>] profile_task_exit+0x1b/0x3d
Apr 20 08:51:28 vkondra-mobl kernel:  [<c011aaa7>] do_exit+0x1c/0x72a
Apr 20 08:51:28 vkondra-mobl kernel:  [<c0104068>] show_stack+0x0/0xf
Apr 20 08:51:28 vkondra-mobl kernel:  [<c0291d5e>] do_page_fault+0x373/0x521
Apr 20 08:51:28 vkondra-mobl kernel:  [<c01037eb>] error_code+0x4f/0x54
Apr 20 08:51:28 vkondra-mobl kernel:  [<c01519f9>] fput+0x16/0x18
Apr 20 08:51:28 vkondra-mobl kernel:  [<c014f1fc>] filp_close+0x51/0x5b
Apr 20 08:51:28 vkondra-mobl kernel:  [<c015036e>] sys_close+0x75/0x89
Apr 20 08:51:28 vkondra-mobl kernel:  [<c0102cb9>] syscall_call+0x7/0xb
Apr 20 08:51:28 vkondra-mobl kernel: note: kmix[10635] exited with preempt_count 1
Apr 20 08:51:28 vkondra-mobl kernel: scheduling while atomic: kmix/0x00000001/10635
Apr 20 08:51:28 vkondra-mobl kernel:  [<c0104084>] show_trace+0xd/0xf
Apr 20 08:51:28 vkondra-mobl kernel:  [<c01040d0>] dump_stack+0x17/0x19
Apr 20 08:51:28 vkondra-mobl kernel:  [<c028ea9d>] schedule+0x43/0x52d
Apr 20 08:51:28 vkondra-mobl kernel:  [<c028f077>] io_schedule+0xe/0x16
Apr 20 08:51:28 vkondra-mobl kernel:  [<c0152f91>] sync_buffer+0x2e/0x32
Apr 20 08:51:28 vkondra-mobl kernel:  [<c028f914>] __wait_on_bit+0x36/0x5d
Apr 20 08:51:28 vkondra-mobl kernel:  [<c028f9a4>] out_of_line_wait_on_bit+0x69/0x71
Apr 20 08:51:28 vkondra-mobl kernel:  [<c0152f00>] __wait_on_buffer+0x1f/0x25
Apr 20 08:51:28 vkondra-mobl kernel:  [<c0153b0a>] __bread+0x7a/0x8e
Apr 20 08:51:28 vkondra-mobl kernel:  [<f88604f7>] ext3_free_branches+0x76/0x18b
[ext3]
Apr 20 08:51:28 vkondra-mobl kernel:  [<f8860cc6>] ext3_truncate+0x6ba/0x80a [ext3]
Apr 20 08:51:28 vkondra-mobl kernel:  [<f8861316>] ext3_delete_inode+0x74/0xbd
[ext3]
Apr 20 08:51:28 vkondra-mobl kernel:  [<c0166a0a>] generic_delete_inode+0xaa/0x118
Apr 20 08:51:28 vkondra-mobl kernel:  [<c0166a8a>] generic_drop_inode+0x12/0x13e
Apr 20 08:51:28 vkondra-mobl kernel:  [<c0166457>] iput+0x67/0x6a
Apr 20 08:51:28 vkondra-mobl kernel:  [<c0164a61>] dentry_iput+0x79/0x94
Apr 20 08:51:28 vkondra-mobl kernel:  [<c0165464>] dput+0x11b/0x134
Apr 20 08:51:28 vkondra-mobl kernel:  [<c01519c4>] __fput+0x185/0x1a4
Apr 20 08:51:28 vkondra-mobl kernel:  [<c01519f9>] fput+0x16/0x18
Apr 20 08:51:28 vkondra-mobl kernel:  [<c0142f77>] remove_vma+0x37/0x49
Apr 20 08:51:28 vkondra-mobl kernel:  [<c014304a>] exit_mmap+0xc1/0xe0
Apr 20 08:51:28 vkondra-mobl kernel:  [<c011604a>] mmput+0x22/0x78
Apr 20 08:51:28 vkondra-mobl kernel:  [<c0119533>] exit_mm+0x109/0x10f
Apr 20 08:51:28 vkondra-mobl kernel:  [<c011ac12>] do_exit+0x187/0x72a
Apr 20 08:51:28 vkondra-mobl kernel:  [<c0104068>] show_stack+0x0/0xf
Apr 20 08:51:28 vkondra-mobl kernel:  [<c0291d5e>] do_page_fault+0x373/0x521
Apr 20 08:51:28 vkondra-mobl kernel:  [<c01037eb>] error_code+0x4f/0x54
Apr 20 08:51:28 vkondra-mobl kernel:  [<c01519f9>] fput+0x16/0x18
Apr 20 08:51:28 vkondra-mobl kernel:  [<c014f1fc>] filp_close+0x51/0x5b
Apr 20 08:51:29 vkondra-mobl kernel:  [<c015036e>] sys_close+0x75/0x89
Apr 20 08:51:29 vkondra-mobl kernel:  [<c0102cb9>] syscall_call+0x7/0xb


Steps to reproduce:

- plug USB headset.
- run some program that use it. 'alsamixer -c 2' is just fine.
- unplug USB headset
- quit alsamixer
- observe oops in /var/log/messages.
Comment 1 Greg Kroah-Hartman 2006-04-20 13:43:20 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?
Comment 2 Vladimir Kondratiev 2006-04-22 13:48:52 UTC
will try 2.6.17-rc2 tomorrow. there is rc2-git4 as well. which one it better to
start with?
Comment 3 Greg Kroah-Hartman 2006-04-22 15:12:13 UTC
Either is fine, the -git one is newer, so would be nicer to have you test,
if you can.
Comment 4 Vladimir Kondratiev 2006-04-23 11:18:27 UTC
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
Comment 5 Vladimir Kondratiev 2006-05-13 10:25:16 UTC
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
Comment 6 Greg Kroah-Hartman 2006-08-30 00:44:32 UTC
Ok, this is an alsa issue, reassigning...
Comment 7 Natalie Protasevich 2007-06-13 11:53:37 UTC
Vladimir, any updates on the problem? have you tried newer kernels since then?
I am going to cc to asla-devel...

--Natalie
Comment 8 Vladimir Kondratiev 2007-07-08 00:10:29 UTC
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?
Comment 9 Natalie Protasevich 2007-07-08 00:43:37 UTC
Great, thanks. Can be closed now.
Comment 10 Natalie Protasevich 2007-07-08 00:47:01 UTC
(On the other hand, maybe try 2.6.22+? There were updates for USB device removal/shutdown, maybe you can give it a shot?)