Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755129Ab2EAKvX (ORCPT ); Tue, 1 May 2012 06:51:23 -0400 Received: from out4-smtp.messagingengine.com ([66.111.4.28]:57135 "EHLO out4-smtp.messagingengine.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754723Ab2EAKvV (ORCPT ); Tue, 1 May 2012 06:51:21 -0400 X-Greylist: delayed 585 seconds by postgrey-1.27 at vger.kernel.org; Tue, 01 May 2012 06:51:21 EDT X-Sasl-enc: B/YPkd4iG/lpBYRdEN3vyyCEO4Sou1id5D62Vu/z/jPr 1335868895 Message-ID: <4F9FBDD0.7050504@ladisch.de> Date: Tue, 01 May 2012 12:41:20 +0200 From: Clemens Ladisch User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.15) Gecko/20110323 Thunderbird/3.1.9 MIME-Version: 1.0 To: Alan Cox , Greg Kroah-Hartman , linux-kernel@vger.kernel.org Subject: deadlock in vt_kbd_con_stop Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 3051 Lines: 73 Pressing the Scroll Lock key in the console stops scrolling rather permanently. (Ctrl+S/Q works fine.) ============================================= [ INFO: possible recursive locking detected ] 3.4.0-rc5+ #354 Not tainted --------------------------------------------- swapper/5/0 is trying to acquire lock: (kbd_event_lock){-.....}, at: [] vt_kbd_con_stop+0x1a/0x57 but task is already holding lock: (kbd_event_lock){-.....}, at: [] kbd_event+0x29/0x5b7 other info that might help us debug this: Possible unsafe locking scenario: CPU0 ---- lock(kbd_event_lock); lock(kbd_event_lock); *** DEADLOCK *** May be due to missing lock nesting notation 4 locks held by swapper/5/0: #0: (&serio->lock){-.....}, at: [] serio_interrupt+0x24/0x7c #1: (&(&dev->event_lock)->rlock#2){-.....}, at: [] input_event+0x3a/0x7c #2: (rcu_read_lock){.+.+..}, at: [] input_pass_event+0x0/0x128 #3: (kbd_event_lock){-.....}, at: [] kbd_event+0x29/0x5b7 stack backtrace: Pid: 0, comm: swapper/5 Not tainted 3.4.0-rc5+ #354 Call Trace: [] ? vprintk+0x3ac/0x404 [] validate_chain+0x6ca/0xe6b [] ? validate_chain+0xcb2/0xe6b [] __lock_acquire+0x889/0x8fa [] ? __lock_acquire+0x889/0x8fa [] lock_acquire+0x57/0x6d [] ? vt_kbd_con_stop+0x1a/0x57 [] _raw_spin_lock_irqsave+0x46/0x58 [] ? vt_kbd_con_stop+0x1a/0x57 [] vt_kbd_con_stop+0x1a/0x57 [] con_stop+0x26/0x28 [] stop_tty+0xa4/0xac [] fn_hold+0x2a/0x2c [] k_spec+0x38/0x3a [] kbd_event+0x520/0x5b7 [] input_pass_event+0xbe/0x128 [] ? input_handler_for_each_handle+0xcd/0xcd [] input_handle_event+0x42a/0x439 [] input_event+0x5b/0x7c [] atkbd_interrupt+0x50f/0x5de [] serio_interrupt+0x40/0x7c [] i8042_interrupt+0x289/0x2a3 [] handle_irq_event_percpu+0x34/0x133 [] handle_irq_event+0x3c/0x5c [] handle_edge_irq+0xc7/0xec [] handle_irq+0x122/0x130 [] ? atomic_notifier_call_chain+0xf/0x11 [] do_IRQ+0x48/0xaf [] common_interrupt+0x6c/0x6c [] ? default_idle+0x29/0x43 [] ? default_idle+0x27/0x43 [] amd_e400_idle+0xcd/0xf4 [] cpu_idle+0x73/0xb8 [] start_secondary+0x225/0x227 -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/