From: Andreas Bombe Subject: Lockdep splat in sound core Date: Tue, 23 Aug 2011 01:22:04 +0200 Message-ID: <20110822232203.GA15492@amos.fritz.box> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Content-Disposition: inline Sender: linux-kernel-owner@vger.kernel.org To: alsa-devel@alsa-project.org Cc: linux-kernel@vger.kernel.org List-Id: alsa-devel@alsa-project.org The following lockdep splat occurs when the EMU10K1 driver is loaded. It actually did that for a long time already, it's about time I finally report it: ============================================= [ INFO: possible recursive locking detected ] 3.1.0-rc2-00171-gbed8cad #88 --------------------------------------------- pulseaudio/3074 is trying to acquire lock: (&(&substream->self_group.lock)->rlock/1){......}, at: [] snd_pcm_action_group+0x4f/0x1d6 [snd_pcm] but task is already holding lock: (&(&substream->self_group.lock)->rlock/1){......}, at: [] snd_pcm_action_group+0x4f/0x1d6 [snd_pcm] other info that might help us debug this: Possible unsafe locking scenario: CPU0 ---- lock(&(&substream->self_group.lock)->rlock); lock(&(&substream->self_group.lock)->rlock); *** DEADLOCK *** May be due to missing lock nesting notation 4 locks held by pulseaudio/3074: #0: (snd_pcm_link_rwlock){.-.-..}, at: [] snd_pcm_stream_lock_irq+0x15/0x25 [snd_pcm] #1: (&(&substream->self_group.lock)->rlock){-.-...}, at: [] snd_pcm_stream_lock_irq+0x21/0x25 [snd_pcm] #2: (&(&substream->group->lock)->rlock){......}, at: [] snd_pcm_action+0x2e/0x8b [snd_pcm] #3: (&(&substream->self_group.lock)->rlock/1){......}, at: [] snd_pcm_action_group+0x4f/0x1d6 [snd_pcm] stack backtrace: Pid: 3074, comm: pulseaudio Not tainted 3.1.0-rc2-00171-gbed8cad #88 Call Trace: [] print_deadlock_bug+0xca/0xd5 [] validate_chain.isra.34+0x31c/0x39d [] __lock_acquire+0x36f/0x3e8 [] ? snd_pcm_action_group+0x4f/0x1d6 [snd_pcm] [] lock_acquire+0xc4/0x112 [] ? snd_pcm_action_group+0x4f/0x1d6 [snd_pcm] [] _raw_spin_lock_nested+0x3a/0x49 [] ? snd_pcm_action_group+0x4f/0x1d6 [snd_pcm] [] snd_pcm_action_group+0x4f/0x1d6 [snd_pcm] [] snd_pcm_action+0x64/0x8b [snd_pcm] [] ? snd_pcm_stream_lock_irq+0x21/0x25 [snd_pcm] [] snd_pcm_stop+0x15/0x17 [snd_pcm] [] snd_pcm_drop+0x5e/0x6d [snd_pcm] [] snd_pcm_common_ioctl1+0x53e/0x580 [snd_pcm] [] ? trace_hardirqs_on_caller.part.36+0xbd/0xf4 [] snd_pcm_playback_ioctl1+0x21d/0x232 [snd_pcm] [] ? slab_free_hook.isra.64+0x50/0x59 [] snd_pcm_playback_ioctl+0x2a/0x2e [snd_pcm] [] do_vfs_ioctl+0x267/0x281 [] ? fget_light+0x3b/0x9a [] sys_ioctl+0x51/0x74 [] system_call_fastpath+0x16/0x1b -- Andreas Bombe