Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754823Ab2EZDSa (ORCPT ); Fri, 25 May 2012 23:18:30 -0400 Received: from mail-ob0-f174.google.com ([209.85.214.174]:40734 "EHLO mail-ob0-f174.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753343Ab2EZDS2 (ORCPT ); Fri, 25 May 2012 23:18:28 -0400 Message-ID: <4FC04B80.3000007@lwfinger.net> Date: Fri, 25 May 2012 22:18:24 -0500 From: Larry Finger User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:12.0) Gecko/20120421 Thunderbird/12.0 MIME-Version: 1.0 To: LKML Subject: Lockdep warning from 3.4-gitX Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 2704 Lines: 61 A newly built mainline kernel that git-describe shows as v3.4-7895-g1937f4f has the following lockdep log splat: [ 69.013395] ============================================= [ 69.013397] [ INFO: possible recursive locking detected ] [ 69.013401] 3.4.0-Linus-07895-g1937f4f #148 Not tainted [ 69.013403] --------------------------------------------- [ 69.013405] bash/3631 is trying to acquire lock: [ 69.013415] (&tty->legacy_mutex){+.+.+.}, at: [] tty_lock+0x32/0x70 [ 69.013417] [ 69.013417] but task is already holding lock: [ 69.013423] (&tty->legacy_mutex){+.+.+.}, at: [] tty_lock+0x32/0x70 [ 69.013425] [ 69.013425] other info that might help us debug this: [ 69.013427] Possible unsafe locking scenario: [ 69.013427] [ 69.013429] CPU0 [ 69.013430] ---- [ 69.013433] lock(&tty->legacy_mutex); [ 69.013435] lock(&tty->legacy_mutex); [ 69.013437] [ 69.013437] *** DEADLOCK *** [ 69.013437] [ 69.013439] May be due to missing lock nesting notation [ 69.013439] [ 69.013442] 2 locks held by bash/3631: [ 69.013449] #0: (tty_mutex){+.+.+.}, at: [] tty_release+0x191/0x580 [ 69.013456] #1: (&tty->legacy_mutex){+.+.+.}, at: [] tty_lock+0x32/0x70 [ 69.013457] [ 69.013457] stack backtrace: [ 69.013461] Pid: 3631, comm: bash Not tainted 3.4.0-Linus-07895-g1937f4f #148 [ 69.013463] Call Trace: [ 69.013468] [] __lock_acquire+0xee8/0x1c80 [ 69.013472] [] ? tty_lock+0x32/0x70 [ 69.013476] [] lock_acquire+0x95/0x150 [ 69.013479] [] ? tty_lock+0x32/0x70 [ 69.013483] [] ? mutex_lock_nested+0x273/0x350 [ 69.013486] [] mutex_lock_nested+0x6b/0x350 [ 69.013490] [] ? tty_lock+0x32/0x70 [ 69.013493] [] ? trace_hardirqs_on_caller+0x105/0x190 [ 69.013497] [] tty_lock+0x32/0x70 [ 69.013500] [] tty_lock_pair+0x55/0x5c [ 69.013504] [] tty_release+0x19c/0x580 [ 69.013509] [] fput+0xf5/0x260 [ 69.013513] [] ? retint_swapgs+0xe/0x13 [ 69.013517] [] filp_close+0x56/0x80 [ 69.013520] [] sys_close+0x9b/0x100 [ 69.013525] [] system_call_fastpath+0x16/0x1b Thanks, Larry -- 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/