Bug 958937

Summary: possible recursive locking detected pulseaudio/1121 is trying to acquire lock
Product: [Fedora] Fedora Reporter: Nicolas Mailhot <nicolas.mailhot>
Component: kernelAssignee: Kernel Maintainer List <kernel-maint>
Status: CLOSED DUPLICATE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: rawhideCC: gansalmon, itamar, jonathan, kernel-maint, madhu.chinakonda
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2013-05-16 13:59:10 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Nicolas Mailhot 2013-05-02 17:44:25 UTC
[ INFO: possible recursive locking detected ]
3.10.0-0.rc0.git10.1.fc20.x86_64 #1 Not tainted
---------------------------------------------
pulseaudio/1121 is trying to acquire lock:
 (&(&substream->self_group.lock)->rlock/1){......}, at: [<ffffffffa01195b3>] snd_pcm_action_group+0xa3/0x240 [snd_pcm]
but task is already holding lock:
 (&(&substream->self_group.lock)->rlock/1){......}, at: [<ffffffffa01195b3>] snd_pcm_action_group+0xa3/0x240 [snd_pcm]
other info that might help us debug this:
 Possible unsafe locking scenario:
       CPU0
       ----
  lock(&(&substream->self_group.lock)->rlock/1);
  lock(&(&substream->self_group.lock)->rlock/1);
 *** DEADLOCK ***
 May be due to missing lock nesting notation
4 locks held by pulseaudio/1121:
 #0:  (snd_pcm_link_rwlock){......}, at: [<ffffffffa011b307>] snd_pcm_drop+0x57/0xf0 [snd_pcm]
 #1:  (&(&substream->self_group.lock)->rlock){......}, at: [<ffffffffa011b30f>] snd_pcm_drop+0x5f/0xf0 [snd_pcm]
 #2:  (&(&substream->group->lock)->rlock){......}, at: [<ffffffffa011b131>] snd_pcm_action+0x31/0xa0 [snd_pcm]
 #3:  (&(&substream->self_group.lock)->rlock/1){......}, at: [<ffffffffa01195b3>] snd_pcm_action_group+0xa3/0x240 [snd_pcm]
stack backtrace:
CPU: 0 PID: 1121 Comm: pulseaudio Not tainted 3.10.0-0.rc0.git10.1.fc20.x86_64 #1
Hardware name: Gigabyte Technology Co., Ltd. EP45-DS5/EP45-DS5, BIOS F12 09/30/2008
 ffff8800a36626e0 ffff8800a7a1bbe0 ffffffff8171a781 ffff8800a7a1bca0
 ffffffff810da13f 0000000000005d30 000000010000000c 0000000100000000
 0002611300000000 4c2261933499c4ce ffffffff82214b00 ffff8800a36630b0
Call Trace:
 [<ffffffff8171a781>] dump_stack+0x19/0x1b
 [<ffffffff810da13f>] __lock_acquire+0x1a1f/0x1b30
 [<ffffffff810d8a15>] ? __lock_acquire+0x2f5/0x1b30
 [<ffffffff810daa42>] lock_acquire+0xa2/0x1f0
 [<ffffffffa01195b3>] ? snd_pcm_action_group+0xa3/0x240 [snd_pcm]
 [<ffffffff81722084>] _raw_spin_lock_nested+0x44/0x80
 [<ffffffffa01195b3>] ? snd_pcm_action_group+0xa3/0x240 [snd_pcm]
 [<ffffffffa01195b3>] snd_pcm_action_group+0xa3/0x240 [snd_pcm]
 [<ffffffffa011b164>] snd_pcm_action+0x64/0xa0 [snd_pcm]
 [<ffffffffa011b330>] snd_pcm_drop+0x80/0xf0 [snd_pcm]
 [<ffffffffa011cf28>] snd_pcm_common_ioctl1+0x8d8/0xc00 [snd_pcm]
 [<ffffffff812ebfdd>] ? avc_has_perm_flags+0x16d/0x350
 [<ffffffff812ebe99>] ? avc_has_perm_flags+0x29/0x350
 [<ffffffffa011d3e3>] snd_pcm_playback_ioctl1+0x193/0x2c0 [snd_pcm]
 [<ffffffffa011d540>] snd_pcm_playback_ioctl+0x30/0x40 [snd_pcm]
 [<ffffffff811ef485>] do_vfs_ioctl+0x305/0x530
 [<ffffffff812ee96b>] ? selinux_file_ioctl+0x5b/0x110
 [<ffffffff811ef731>] SyS_ioctl+0x81/0xa0
 [<ffffffff8172bf99>] system_call_fastpath+0x16/0x1b

Comment 1 Nikola Pajkovsky 2013-05-14 01:29:51 UTC
*** Bug 961777 has been marked as a duplicate of this bug. ***

Comment 2 Josh Boyer 2013-05-16 13:59:10 UTC

*** This bug has been marked as a duplicate of bug 951862 ***