2.6.26-rc4-git4: tty: lockdep warning

Previous thread: kernel does not boot in SMP mode if I press any button on a keyboard before kernel loads (i.e. grub menu) by Anton Sidorov on Monday, June 2, 2008 - 4:07 pm. (1 message)

Next thread: [PATCH] Documentation: mv DMA-* to separate DMA/ subdirectory by J. Bruce Fields on Monday, June 2, 2008 - 3:54 pm. (2 messages)
To: <alan@...>
Cc: <linux-kernel@...>
Date: Monday, June 2, 2008 - 3:43 pm

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: [<c0127315>] kill_pgrp+0x16/0x39

but task is already holding lock:
(&tty->ctrl_lock){....}, at: [<c0232d4b>] vc_resize+0x356/0x3ee

which lock already depends on the new lock.

the existing dependency chain (in reverse order) is:

-> #2 (&tty->ctrl_lock){....}:
[<c0139485>] __lock_acquire+0xa27/0xb97
[<c0139654>] lock_acquire+0x5f/0x84
[<c02c7580>] _spin_lock_irqsave+0x35/0x45
[<c0222a5e>] __proc_set_tty+0x1e/0xa4
[<c0225cde>] tty_ioctl+0x5e3/0xe85
[<c017b771>] vfs_ioctl+0x19/0x49
[<c017b999>] do_vfs_ioctl+0x1f8/0x20f
[<c017b9f0>] sys_ioctl+0x40/0x5c
[<c010392f>] sysenter_past_esp+0x78/0xd9
[<ffffffff>] 0xffffffff

-> #1 (&sighand->siglock){.+..}:
[<c0139485>] __lock_acquire+0xa27/0xb97
[<c0139654>] lock_acquire+0x5f/0x84
[<c02c74d8>] _spin_lock+0x19/0x28
[<c011cdfb>] copy_process+0xc13/0xf78
[<c011d20d>] do_fork+0xad/0x1dc
[<c01024ea>] kernel_thread+0x79/0x81
[<c012d7f7>] kthreadd+0x95/0x11f
[<c0104c47>] kernel_thread_helper+0x7/0x10
[<ffffffff>] 0xffffffff

-> #0 (tasklist_lock){..--}:
[<c01393a4>] __lock_acquire+0x946/0xb97
[<c0139654>] lock_acquire+0x5f/0x84
[<c02c7723>] _read_lock+0x19/0x28
[<c0127315>] kill_pgrp+0x16/0x39
[<c0232d88>] vc_resize+0x393/0x3ee
[<c01f1786>]...

Previous thread: kernel does not boot in SMP mode if I press any button on a keyboard before kernel loads (i.e. grub menu) by Anton Sidorov on Monday, June 2, 2008 - 4:07 pm. (1 message)

Next thread: [PATCH] Documentation: mv DMA-* to separate DMA/ subdirectory by J. Bruce Fields on Monday, June 2, 2008 - 3:54 pm. (2 messages)