FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > Gentoo > Gentoo Hardened

 
 
LinkBack Thread Tools
 
Old 12-29-2007, 12:21 PM
"Michel Arboi"
 
Default Deadlock detected at boot?!

Since sys-kernel/hardened-sources was updated to 2.6.23, my kernels
freezed on boot. The machine is headless, I needed some time to
investigate and fix this. I stayed in 2.6.20 meanwhile. I finally had
a look at it. I got a working 2.6.23 kernel by removing the "Build a
relocatable kernel" option. I don't know why I set it, and as I don't
need it, no problem.

Anyway, I enabled several debugging options, especially about the lock
detection, and now gets this (rather frightening) message.
Is it dangerous? And is there a way to fix that?
BTW, I am running GrSec at "Hardened [Gentoo]" level (I can provide
more details, please ask).
[<ffffffff>] 0xffffffff
[ 79.824698]
[ 79.824737] -> (uidhash_lock){.+..} ops: 0 {
[ 79.824900] initial-use at:
[ 79.824971] [<000392f8>] mark_lock+0x78/0x220
[ 79.826269] [<00039a45>] __lock_acquire+0xf5/0x790
[ 79.827569] [<0003a58c>] lock_acquire+0x6c/0x90
[ 79.828869] [<00104d85>] _atomic_dec_and_lock+0x15/0x50
[ 79.830163] [<00225219>] _spin_lock+0x29/0x40
[ 79.831455] [<00104d85>] _atomic_dec_and_lock+0x15/0x50
[ 79.832757] [<00104d85>] _atomic_dec_and_lock+0x15/0x50
[ 79.834058] [<00024b04>] free_uid+0x24/0xb0
[ 79.835358] [<00018f7c>] __put_task_struct+0x3c/0x100
[ 79.836658] [<0002c76c>] rcu_do_batch+0x1c/0x90
[ 79.837957] [<0002c9cf>] rcu_process_callbacks+0xf/0x20
[ 79.839259] [<00020d62>] tasklet_action+0x62/0x70
[ 79.840558] [<00020a22>] __do_softirq+0x52/0xb0
[ 79.841856] [<00020ac5>] do_softirq+0x45/0x50
[ 79.843155] [<0000fc5a>] smp_apic_timer_interrupt+0x2a/0x40
[ 79.844451] [<00004e33>] apic_timer_interrupt+0x43/0x50
[ 79.845744] [<00109424>] vsnprintf+0x34/0x550
[ 79.847043] [<00039afc>] __lock_acquire+0x1ac/0x790
[ 79.848342] [<0003abcf>] debug_check_no_locks_freed+0xcf/0xf0
[ 79.849645] [<0003abcf>] debug_check_no_locks_freed+0xcf/0xf0
[ 79.850946] [<0003abcf>] debug_check_no_locks_freed+0xcf/0xf0
[ 79.852248] [<00105ffb>] kobject_set_name+0x3b/0xc0
[ 79.853550] [<001590dd>] device_add+0x8d/0x320
[ 79.854849] [<00132749>] acpi_device_register+0x1b3/0x25f
[ 79.856149] [<00133300>] acpi_add_single_object+0x10f/0x151
[ 79.857451] [<0013345d>] acpi_bus_scan+0x11b/0x197
[ 79.858746] [<ffe28a8d>] acpi_scan_init+0x77/0x91
[ 79.860039] [<ffe1294f>] do_initcalls+0x3f/0x1e0
[ 79.861337] [<00225324>] _spin_unlock+0x14/0x20
[ 79.862638] [<000a77b4>] proc_register+0x54/0xb0
[ 79.863938] [<000a7a81>] proc_mkdir_mode+0x31/0x50
[ 79.865239] [<0004b377>] register_irq_proc+0x77/0x90
[ 79.866537] [<00003531>] setup_frame+0x161/0x270
[ 79.867835] [<000a7a81>] proc_mkdir_mode+0x31/0x50
[ 79.869135] [<ffe12b40>] kernel_init+0x0/0xb0
[ 79.870436] [<ffe12b8c>] kernel_init+0x4c/0xb0
[ 79.871735] [<00005017>] kernel_thread_helper+0x7/0x10
[ 79.873031] [<ffffffff>] 0xffffffff
[ 79.874315] in-softirq-W at:
[ 79.874387] [<00003000>] sys_sigreturn+0x10/0x180
[ 79.875686] [<00039152>] mark_irqflags+0x42/0x120
[ 79.876985] [<00039bff>] __lock_acquire+0x2af/0x790
[ 79.878285] [<0003a58c>] lock_acquire+0x6c/0x90
[ 79.879584] [<00104d85>] _atomic_dec_and_lock+0x15/0x50
[ 79.880885] [<00225219>] _spin_lock+0x29/0x40
[ 79.882184] [<00104d85>] _atomic_dec_and_lock+0x15/0x50
[ 79.883485] [<00104d85>] _atomic_dec_and_lock+0x15/0x50
[ 79.884786] [<00024b04>] free_uid+0x24/0xb0
[ 79.886086] [<00018f7c>] __put_task_struct+0x3c/0x100
[ 79.887381] [<0002c76c>] rcu_do_batch+0x1c/0x90
[ 79.888674] [<0002c9cf>] rcu_process_callbacks+0xf/0x20
[ 79.889973] [<00020d62>] tasklet_action+0x62/0x70
[ 79.891273] [<00020a22>] __do_softirq+0x52/0xb0
[ 79.892572] [<00020ac5>] do_softirq+0x45/0x50
[ 79.893869] [<0000fc5a>] smp_apic_timer_interrupt+0x2a/0x40
[ 79.895171] [<00004e33>] apic_timer_interrupt+0x43/0x50
[ 79.896471] [<00109424>] vsnprintf+0x34/0x550
[ 79.897767] [<00039afc>] __lock_acquire+0x1ac/0x790
[ 79.899067] [<0003abcf>] debug_check_no_locks_freed+0xcf/0xf0
[ 79.900368] [<0003abcf>] debug_check_no_locks_freed+0xcf/0xf0
[ 79.901664] [<0003abcf>] debug_check_no_locks_freed+0xcf/0xf0
[ 79.902958] [<00105ffb>] kobject_set_name+0x3b/0xc0
[ 79.904257] [<001590dd>] device_add+0x8d/0x320
[ 79.905555] [<00132749>] acpi_device_register+0x1b3/0x25f
[ 79.907475] [<00133300>] acpi_add_single_object+0x10f/0x151
[ 79.908777] [<0013345d>] acpi_bus_scan+0x11b/0x197
[ 79.910076] [<ffe28a8d>] acpi_scan_init+0x77/0x91
[ 79.911376] [<ffe1294f>] do_initcalls+0x3f/0x1e0
[ 79.912675] [<00225324>] _spin_unlock+0x14/0x20
[ 79.913973] [<000a77b4>] proc_register+0x54/0xb0
[ 79.915274] [<000a7a81>] proc_mkdir_mode+0x31/0x50
[ 79.916564] [<0004b377>] register_irq_proc+0x77/0x90
[ 79.917860] [<00003531>] setup_frame+0x161/0x270
[ 79.919160] [<000a7a81>] proc_mkdir_mode+0x31/0x50
[ 79.920461] [<ffe12b40>] kernel_init+0x0/0xb0
[ 79.921761] [<ffe12b8c>] kernel_init+0x4c/0xb0
[ 79.923060] [<00005017>] kernel_thread_helper+0x7/0x10
[ 79.924361] [<ffffffff>] 0xffffffff
[ 79.925649] }
[ 79.925689] ... key at: [<c1006450>] uidhash_lock+0x10/0x20
[ 79.925798] ... acquired at:
[ 79.925840] [<00037eb3>] check_prev_add+0xd3/0x220
[ 79.926004] [<00104d85>] _atomic_dec_and_lock+0x15/0x50
[ 79.926169] [<00038087>] check_prevs_add+0x87/0xf0
[ 79.926333] [<0001c05c>] _call_console_drivers+0x9c/0xa0
[ 79.926500] [<00038333>] validate_chain+0x243/0x390
[ 79.926666] [<000382c4>] validate_chain+0x1d4/0x390
[ 79.926830] [<0001c05c>] _call_console_drivers+0x9c/0xa0
[ 79.926996] [<00039afc>] __lock_acquire+0x1ac/0x790
[ 79.927160] [<0001c05c>] _call_console_drivers+0x9c/0xa0
[ 79.927327] [<0001c000>] _call_console_drivers+0x40/0xa0
[ 79.927494] [<00039afc>] __lock_acquire+0x1ac/0x790
[ 79.927659] [<0003a58c>] lock_acquire+0x6c/0x90
[ 79.927823] [<00104d85>] _atomic_dec_and_lock+0x15/0x50
[ 79.927988] [<00225219>] _spin_lock+0x29/0x40
[ 79.928153] [<00104d85>] _atomic_dec_and_lock+0x15/0x50
[ 79.928318] [<00104d85>] _atomic_dec_and_lock+0x15/0x50
[ 79.928484] [<00024b04>] free_uid+0x24/0xb0
[ 79.928648] [<00024fc4>] __sigqueue_free+0x24/0x40
[ 79.928813] [<0002500d>] flush_sigqueue+0x2d/0x40
[ 79.928978] [<0001d1b4>] __exit_signal+0x104/0x160
[ 79.929144] [<0001d280>] release_task+0x50/0xe0
[ 79.929308] [<0001ed03>] wait_task_zombie+0x303/0x3e0
[ 79.929472] [<0001f244>] do_wait+0x94/0x410
[ 79.929635] [<0001f507>] do_wait+0x357/0x410
[ 79.929796] [<00017cb0>] default_wake_function+0x0/0x10
[ 79.929960] [<00017cb0>] default_wake_function+0x0/0x10
[ 79.930124] [<00030002>] process_timer_rebalance+0x42/0x180
[ 79.930288] [<0001f681>] sys_wait4+0x31/0x40
[ 79.930450] [<0001f6b7>] sys_waitpid+0x27/0x30
[ 79.930612] [<00003de2>] syscall_call+0x7/0xb
[ 79.930774] [<ffffffff>] 0xffffffff
[ 79.930935]
[ 79.930973]
[ 79.930974] the soft-irq-unsafe lock's dependencies:
[ 79.931054] -> (old_style_rw_init#2){--..} ops: 0 {
[ 79.931247] initial-use at:
[ 79.931318] [<000392f8>] mark_lock+0x78/0x220
[ 79.932556] [<000382c4>] validate_chain+0x1d4/0x390
[ 79.933797] [<00039a45>] __lock_acquire+0xf5/0x790
[ 79.935035] [<0003a58c>] lock_acquire+0x6c/0x90
[ 79.936275] [<00101e33>] gr_acl_handle_exit+0x23/0xc0
[ 79.937517] [<00225259>] _write_lock+0x29/0x40
[ 79.938756] [<00101e33>] gr_acl_handle_exit+0x23/0xc0
[ 79.939997] [<00101e33>] gr_acl_handle_exit+0x23/0xc0
[ 79.941238] [<0001e42f>] do_exit+0x11f/0x450
[ 79.942479] [<000094dc>] kernel_execve+0x1c/0x30
[ 79.943720] [<0002af86>] ____call_usermodehelper+0xc6/0x150
[ 79.944954] [<0002aec0>] ____call_usermodehelper+0x0/0x150
[ 79.946192] [<00005017>] kernel_thread_helper+0x7/0x10
[ 79.947432] [<ffffffff>] 0xffffffff
[ 79.948663] softirq-on-W at:
[ 79.948735] [<000382c4>] validate_chain+0x1d4/0x390
[ 79.949975] [<000382c4>] validate_chain+0x1d4/0x390
[ 79.951214] [<000391ec>] mark_irqflags+0xdc/0x120
[ 79.952455] [<00039bff>] __lock_acquire+0x2af/0x790
[ 79.953694] [<0003a58c>] lock_acquire+0x6c/0x90
[ 79.954933] [<00101e33>] gr_acl_handle_exit+0x23/0xc0
[ 79.956174] [<00225259>] _write_lock+0x29/0x40
[ 79.957413] [<00101e33>] gr_acl_handle_exit+0x23/0xc0
[ 79.958650] [<00101e33>] gr_acl_handle_exit+0x23/0xc0
[ 79.959883] [<0001e42f>] do_exit+0x11f/0x450
[ 79.961121] [<000094dc>] kernel_execve+0x1c/0x30
[ 79.962360] [<0002af86>] ____call_usermodehelper+0xc6/0x150
[ 79.963599] [<0002aec0>] ____call_usermodehelper+0x0/0x150
[ 79.964840] [<00005017>] kernel_thread_helper+0x7/0x10
[ 79.966079] [<ffffffff>] 0xffffffff
[ 79.967310] hardirq-on-W at:
[ 79.967382] [<000392f8>] mark_lock+0x78/0x220
[ 79.968622] [<000382c4>] validate_chain+0x1d4/0x390
[ 79.969863] [<000382c4>] validate_chain+0x1d4/0x390
[ 79.971104] [<000391ce>] mark_irqflags+0xbe/0x120
[ 79.972342] [<00039bff>] __lock_acquire+0x2af/0x790
[ 79.973573] [<0003a58c>] lock_acquire+0x6c/0x90
[ 79.974809] [<00101e33>] gr_acl_handle_exit+0x23/0xc0
[ 79.976050] [<00225259>] _write_lock+0x29/0x40
[ 79.977289] [<00101e33>] gr_acl_handle_exit+0x23/0xc0
[ 79.978530] [<00101e33>] gr_acl_handle_exit+0x23/0xc0
[ 79.979771] [<0001e42f>] do_exit+0x11f/0x450
[ 79.981010] [<000094dc>] kernel_execve+0x1c/0x30
[ 79.982251] [<0002af86>] ____call_usermodehelper+0xc6/0x150
[ 79.983492] [<0002aec0>] ____call_usermodehelper+0x0/0x150
[ 79.984733] [<00005017>] kernel_thread_helper+0x7/0x10
[ 79.985975] [<ffffffff>] 0xffffffff
[ 79.987202] }
[ 79.987240] ... key at: [<c10118d0>] grsec_exec_file_lock+0xc/0x1c
[ 79.987347]
[ 79.987348] stack backtrace:
[ 79.987429] [<00037aa9>] print_bad_irq_dependency+0x239/0x250
[ 79.987507] [<00001f23>] exit_thread+0xb3/0xc0
[ 79.987589] [<00037c22>] check_prev_add_irq+0xc2/0xd0
[ 79.987669] [<00037e3b>] check_prev_add+0x5b/0x220
[ 79.987745] [<000382c4>] validate_chain+0x1d4/0x390
[ 79.987823] [<00038087>] check_prevs_add+0x87/0xf0
[ 79.987900] [<000382c4>] validate_chain+0x1d4/0x390
[ 79.987976] [<0001c048>] _call_console_drivers+0x88/0xa0
[ 79.988054] [<00038333>] validate_chain+0x243/0x390
[ 79.988131] [<000382c4>] validate_chain+0x1d4/0x390
[ 79.988209] [<0001c048>] _call_console_drivers+0x88/0xa0
[ 79.988287] [<00039afc>] __lock_acquire+0x1ac/0x790
[ 79.988365] [<0001c048>] _call_console_drivers+0x88/0xa0
[ 79.988443] [<00039afc>] __lock_acquire+0x1ac/0x790
[ 79.988519] [<0001c000>] _call_console_drivers+0x40/0xa0
[ 79.988607] [<0003a58c>] lock_acquire+0x6c/0x90
[ 79.988684] [<0001d477>] reparent_to_kthreadd+0x17/0x160
[ 79.988763] [<00225259>] _write_lock+0x29/0x40
[ 79.988840] [<0001d477>] reparent_to_kthreadd+0x17/0x160
[ 79.988917] [<0001d477>] reparent_to_kthreadd+0x17/0x160
[ 79.989608] [<0001d8d8>] daemonize+0x148/0x180
[ 79.989685] [<00464590>] rfcomm_run+0x0/0x70 [rfcomm]
[ 79.989775] [<004645b0>] rfcomm_run+0x20/0x70 [rfcomm]
[ 79.989856] [<c0865e76>] MODULES_VADDR+0x162e76/0x8fcfff
[ 79.989936] [<00005017>] kernel_thread_helper+0x7/0x10
[ 79.990018] =======================
[ 85.177817] eth1: no IPv6 routers present
[ 85.467736] eth2: no IPv6 routers present
[ 85.617682] eth0: no IPv6 routers present
[ 86.710227] tun: Universal TUN/TAP device driver, 1.6
[ 86.710287] tun: (C) 1999-2004 Max Krasnyansky <maxk@qualcomm.com>
[ 87.031984] tun0: Disabled Privacy Extensions
 

Thread Tools




All times are GMT. The time now is 09:14 PM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright 2007 - 2008, www.linux-archive.org