[ 40.627460] [ 40.628014] ============================================= [ 40.628014] [ INFO: possible recursive locking detected ] [ 40.628014] 3.4.0-next-20120524-sasha-00005-g9d5c83d #286 Tainted: G W [ 40.628014] --------------------------------------------- [ 40.628014] trinity-child1/4949 is trying to acquire lock: [ 40.628014] (&tty->legacy_mutex){+.+.+.}, at: [] tty_lock_nested+0x7b/0x90 [ 40.628014] [ 40.628014] but task is already holding lock: [ 40.628014] (&tty->legacy_mutex){+.+.+.}, at: [] tty_lock_nested+0x7b/0x90 [ 40.628014] [ 40.628014] other info that might help us debug this: [ 40.628014] Possible unsafe locking scenario: [ 40.628014] [ 40.628014] CPU0 [ 40.628014] ---- [ 40.628014] lock(&tty->legacy_mutex); [ 40.628014] lock(&tty->legacy_mutex); [ 40.628014] [ 40.628014] *** DEADLOCK *** [ 40.628014] [ 40.628014] May be due to missing lock nesting notation [ 40.628014] [ 40.628014] 1 lock held by trinity-child1/4949: [ 40.628014] #0: (&tty->legacy_mutex){+.+.+.}, at: [] tty_lock_nested+0x7b/0x90 [ 40.628014] [ 40.628014] stack backtrace: [ 40.628014] Pid: 4949, comm: trinity-child1 Tainted: G W 3.4.0-next-20120524-sasha-00005-g9d5c83d #286 [ 40.628014] Call Trace: [ 40.628014] [] print_deadlock_bug+0x119/0x140 [ 40.628014] [] validate_chain+0x5ee/0x790 [ 40.628014] [] ? sched_clock_cpu+0x108/0x120 [ 40.628014] [] __lock_acquire+0x423/0x4c0 [ 40.628014] [] ? put_lock_stats+0xe/0x40 [ 40.628014] [] lock_acquire+0x18a/0x1e0 [ 40.628014] [] ? tty_lock_nested+0x7b/0x90 [ 40.628014] [] ? flush_scheduled_work+0x20/0x20 [ 40.628014] [] __mutex_lock_common+0x60/0x590 [ 40.628014] [] ? tty_lock_nested+0x7b/0x90 [ 40.628014] [] ? flush_work_sync+0x45/0x90 [ 40.628014] [] ? __lock_release+0x1c2/0x1e0 [ 40.628014] [] ? flush_scheduled_work+0x20/0x20 [ 40.628014] [] ? tty_lock_nested+0x7b/0x90 [ 40.628014] [] mutex_lock_nested+0x40/0x50 [ 40.628014] [] tty_lock_nested+0x7b/0x90 [ 40.628014] [] tty_lock_pair+0x62/0x70 [ 40.628014] [] tty_ldisc_release+0x4a/0xb0 [ 40.628014] [] tty_ldisc_release+0x9b/0xb0 [ 40.628014] [] tty_release+0x453/0x4d0 [ 40.628014] [] ? __mutex_unlock_slowpath+0x1a5/0x200 [ 40.628014] [] ? mutex_unlock+0x9/0x10 [ 40.628014] [] ? tty_unlock+0x54/0x60 [ 40.628014] [] __fput+0x11a/0x2c0 [ 40.628014] [] fput+0x15/0x20 [ 40.628014] [] filp_close+0x82/0xa0 [ 40.823224] [] close_files+0x1b4/0x200 [ 40.823224] [] ? wait_task_stopped+0x3d0/0x3d0 [ 40.823224] [] ? exit_files+0x45/0x60 [ 40.823224] [] put_files_struct+0x21/0x180 [ 40.823224] [] ? _raw_spin_unlock+0x30/0x60 [ 40.823224] [] exit_files+0x4d/0x60 [ 40.823224] [] do_exit+0x322/0x510 [ 40.823224] [] do_group_exit+0xa1/0xe0 [ 40.823224] [] sys_exit_group+0x12/0x20 [ 40.823224] [] system_call_fastpath+0x16/0x1b === [ 40.941023] ====================================================== [ 40.941691] [ INFO: possible circular locking dependency detected ] [ 40.941691] 3.4.0-next-20120524-sasha-00005-g9d5c83d #286 Tainted: G W [ 40.941691] ------------------------------------------------------- [ 40.941691] trinity-child1/4988 is trying to acquire lock: [ 40.941691] (&tty->legacy_mutex){+.+.+.}, at: [] tty_lock_nested+0x7b/0x90 [ 40.941691] [ 40.941691] but task is already holding lock: [ 40.941691] (&tty->legacy_mutex/1){+.+...}, at: [] tty_lock_nested+0x7b/0x90 [ 40.941691] [ 40.941691] which lock already depends on the new lock. [ 40.941691] [ 40.941691] [ 40.941691] the existing dependency chain (in reverse order) is: [ 40.941691] [ 40.941691] -> #1 (&tty->legacy_mutex/1){+.+...}: [ 40.941691] [] validate_chain+0x69e/0x790 [ 40.941691] [] __lock_acquire+0x423/0x4c0 [ 40.941691] [] lock_acquire+0x18a/0x1e0 [ 40.941691] [] __mutex_lock_common+0x60/0x590 [ 40.941691] [] mutex_lock_nested+0x40/0x50 [ 40.941691] [] tty_lock_nested+0x7b/0x90 [ 40.941691] [] tty_lock_pair+0x62/0x70 [ 40.941691] [] tty_release+0x182/0x4d0 [ 40.941691] [] __fput+0x11a/0x2c0 [ 40.941691] [] fput+0x15/0x20 [ 40.941691] [] filp_close+0x82/0xa0 [ 40.941691] [] close_files+0x1b4/0x200 [ 40.941691] [] put_files_struct+0x21/0x180 [ 40.941691] [] exit_files+0x4d/0x60 [ 40.941691] [] do_exit+0x322/0x510 [ 40.941691] [] do_group_exit+0xa1/0xe0 [ 40.941691] [] sys_exit_group+0x12/0x20 [ 40.941691] [] system_call_fastpath+0x16/0x1b [ 40.941691] [ 40.941691] -> #0 (&tty->legacy_mutex){+.+.+.}: [ 40.941691] [] check_prev_add+0x11f/0x4d0 [ 40.941691] [] validate_chain+0x69e/0x790 [ 40.941691] [] __lock_acquire+0x423/0x4c0 [ 40.941691] [] lock_acquire+0x18a/0x1e0 [ 40.941691] [] __mutex_lock_common+0x60/0x590 [ 40.941691] [] mutex_lock_nested+0x40/0x50 [ 40.941691] [] tty_lock_nested+0x7b/0x90 [ 40.941691] [] tty_lock_pair+0x62/0x70 [ 40.941691] [] tty_ldisc_release+0x4a/0xb0 [ 40.941691] [] tty_ldisc_release+0x9b/0xb0 [ 40.941691] [] tty_release+0x453/0x4d0 [ 40.941691] [] __fput+0x11a/0x2c0 [ 40.941691] [] fput+0x15/0x20 [ 40.941691] [] filp_close+0x82/0xa0 [ 40.941691] [] close_files+0x1b4/0x200 [ 40.941691] [] put_files_struct+0x21/0x180 [ 40.941691] [] exit_files+0x4d/0x60 [ 40.941691] [] do_exit+0x322/0x510 [ 40.941691] [] do_group_exit+0xa1/0xe0 [ 40.941691] [] sys_exit_group+0x12/0x20 [ 40.941691] [] system_call_fastpath+0x16/0x1b [ 40.941691] [ 40.941691] other info that might help us debug this: [ 40.941691] [ 40.941691] Possible unsafe locking scenario: [ 40.941691] [ 40.941691] CPU0 CPU1 [ 40.941691] ---- ---- [ 40.941691] lock(&tty->legacy_mutex/1); [ 40.941691] lock(&tty->legacy_mutex); [ 40.941691] lock(&tty->legacy_mutex/1); [ 40.941691] lock(&tty->legacy_mutex); [ 40.941691] [ 40.941691] *** DEADLOCK *** [ 40.941691] [ 40.941691] 1 lock held by trinity-child1/4988: [ 40.941691] #0: (&tty->legacy_mutex/1){+.+...}, at: [] tty_lock_nested+0x7b/0x90 [ 40.941691] [ 40.941691] stack backtrace: [ 40.941691] Pid: 4988, comm: trinity-child1 Tainted: G W 3.4.0-next-20120524-sasha-00005-g9d5c83d #286 [ 40.941691] Call Trace: [ 40.941691] [] print_circular_bug+0x105/0x120 [ 40.941691] [] check_prev_add+0x11f/0x4d0 [ 40.941691] [] ? _raw_spin_unlock_irq+0x2b/0x80 [ 40.941691] [] validate_chain+0x69e/0x790 [ 40.941691] [] ? sched_clock_cpu+0x108/0x120 [ 40.941691] [] __lock_acquire+0x423/0x4c0 [ 40.941691] [] ? put_lock_stats+0xe/0x40 [ 40.941691] [] lock_acquire+0x18a/0x1e0 [ 40.941691] [] ? tty_lock_nested+0x7b/0x90 [ 40.941691] [] ? flush_scheduled_work+0x20/0x20 [ 40.941691] [] __mutex_lock_common+0x60/0x590 [ 40.941691] [] ? tty_lock_nested+0x7b/0x90 [ 40.941691] [] ? flush_work_sync+0x45/0x90 [ 40.941691] [] ? __lock_release+0x1c2/0x1e0 [ 40.941691] [] ? flush_scheduled_work+0x20/0x20 [ 40.941691] [] ? tty_lock_nested+0x7b/0x90 [ 40.941691] [] mutex_lock_nested+0x40/0x50 [ 40.941691] [] tty_lock_nested+0x7b/0x90 [ 40.941691] [] tty_lock_pair+0x62/0x70 [ 40.941691] [] tty_ldisc_release+0x4a/0xb0 [ 40.941691] [] tty_ldisc_release+0x9b/0xb0 [ 40.941691] [] tty_release+0x453/0x4d0 [ 40.941691] [] __fput+0x11a/0x2c0 [ 40.941691] [] fput+0x15/0x20 [ 40.941691] [] filp_close+0x82/0xa0 [ 40.941691] [] close_files+0x1b4/0x200 [ 40.941691] [] ? wait_task_stopped+0x3d0/0x3d0 [ 40.941691] [] ? exit_files+0x45/0x60 [ 40.941691] [] put_files_struct+0x21/0x180 [ 40.941691] [] ? _raw_spin_unlock+0x30/0x60 [ 40.941691] [] exit_files+0x4d/0x60 [ 40.941691] [] do_exit+0x322/0x510 [ 40.941691] [] do_group_exit+0xa1/0xe0 [ 40.941691] [] sys_exit_group+0x12/0x20 [ 40.941691] [] system_call_fastpath+0x16/0x1b