Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754162AbYFBToF (ORCPT ); Mon, 2 Jun 2008 15:44:05 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1751094AbYFBTnw (ORCPT ); Mon, 2 Jun 2008 15:43:52 -0400 Received: from perninha.conectiva.com.br ([200.140.247.100]:51337 "EHLO perninha.conectiva.com.br" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750882AbYFBTnu (ORCPT ); Mon, 2 Jun 2008 15:43:50 -0400 Date: Mon, 2 Jun 2008 16:43:36 -0300 From: "Luiz Fernando N. Capitulino" To: alan@redhat.com Cc: linux-kernel@vger.kernel.org Subject: 2.6.26-rc4-git4: tty: lockdep warning Message-ID: <20080602164336.3eb74814@mandriva.com.br> Organization: Mandriva X-Mailer: Claws Mail 3.4.0 (GTK+ 2.12.9; i586-mandriva-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 3753 Lines: 106 Hi Alan, I'm getting the following lockdep warning when I log on the system and setfont is called. Seems tty related. The kernel is a 2.6.26-rc4-git4 vanilla. """ ======================================================= [ INFO: possible circular locking dependency detected ] 2.6.26-0.rc4.git4.1mdv #1 ------------------------------------------------------- setfont/3775 is trying to acquire lock: (tasklist_lock){..--}, at: [] kill_pgrp+0x16/0x39 but task is already holding lock: (&tty->ctrl_lock){....}, at: [] vc_resize+0x356/0x3ee which lock already depends on the new lock. the existing dependency chain (in reverse order) is: -> #2 (&tty->ctrl_lock){....}: [] __lock_acquire+0xa27/0xb97 [] lock_acquire+0x5f/0x84 [] _spin_lock_irqsave+0x35/0x45 [] __proc_set_tty+0x1e/0xa4 [] tty_ioctl+0x5e3/0xe85 [] vfs_ioctl+0x19/0x49 [] do_vfs_ioctl+0x1f8/0x20f [] sys_ioctl+0x40/0x5c [] sysenter_past_esp+0x78/0xd9 [] 0xffffffff -> #1 (&sighand->siglock){.+..}: [] __lock_acquire+0xa27/0xb97 [] lock_acquire+0x5f/0x84 [] _spin_lock+0x19/0x28 [] copy_process+0xc13/0xf78 [] do_fork+0xad/0x1dc [] kernel_thread+0x79/0x81 [] kthreadd+0x95/0x11f [] kernel_thread_helper+0x7/0x10 [] 0xffffffff -> #0 (tasklist_lock){..--}: [] __lock_acquire+0x946/0xb97 [] lock_acquire+0x5f/0x84 [] _read_lock+0x19/0x28 [] kill_pgrp+0x16/0x39 [] vc_resize+0x393/0x3ee [] vgacon_font_set+0x1c5/0x1e4 [] con_font_op+0x15c/0x378 [] vt_ioctl+0x12f7/0x14c0 [] tty_ioctl+0xe18/0xe85 [] vfs_ioctl+0x19/0x49 [] do_vfs_ioctl+0x1f8/0x20f [] sys_ioctl+0x40/0x5c [] sysenter_past_esp+0x78/0xd9 [] 0xffffffff other info that might help us debug this: 2 locks held by setfont/3775: #0: (&tty->termios_mutex){--..}, at: [] vc_resize+0x346/0x3ee #1: (&tty->ctrl_lock){....}, at: [] vc_resize+0x356/0x3ee stack backtrace: Pid: 3775, comm: setfont Not tainted 2.6.26-0.rc4.git4.1mdv #1 [] print_circular_bug_tail+0x5a/0x65 [] ? print_circular_bug_entry+0x39/0x43 [] __lock_acquire+0x946/0xb97 [] ? __lock_acquire+0xa4a/0xb97 [] lock_acquire+0x5f/0x84 [] ? kill_pgrp+0x16/0x39 [] _read_lock+0x19/0x28 [] ? kill_pgrp+0x16/0x39 [] kill_pgrp+0x16/0x39 [] vc_resize+0x393/0x3ee [] vgacon_font_set+0x1c5/0x1e4 [] ? vgacon_font_set+0x0/0x1e4 [] con_font_op+0x15c/0x378 [] vt_ioctl+0x12f7/0x14c0 [] ? do_page_fault+0x3ab/0x73d [] ? vt_ioctl+0x0/0x14c0 [] tty_ioctl+0xe18/0xe85 [] ? pipe_read+0x2b4/0x306 [] ? do_sync_read+0xaa/0xe8 [] ? autoremove_wake_function+0x0/0x33 [] ? tty_ioctl+0x0/0xe85 [] vfs_ioctl+0x19/0x49 [] do_vfs_ioctl+0x1f8/0x20f [] sys_ioctl+0x40/0x5c [] sysenter_past_esp+0x78/0xd9 ======================= """ -- Luiz Fernando N. Capitulino -- 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/