Created attachment 309439 [details] emerge --info output I'm using qemu-kvm from git on hardened kernel. When i'm trying to start qemu-kvm it just stuck my kernel, if start qemu-kvm with "-d cpu,in_asm" option, which write some cpu state, disasm it produce no messages (size of /tmp/qemu.log file is zero). Here is error messages from dmesg: [258029.941876] INFO: rcu_sched detected stall on CPU 0 (t=42060 jiffies) [258029.941882] Pid: 1304951, comm: qemu-system-x86 Not tainted 3.2.12-hardened #1 [258029.941884] Call Trace: [258029.941887] <IRQ> [<ffffffff810caab9>] __rcu_pending+0x83/0x344 [258029.941905] [<ffffffff810793aa>] ? raise_softirq_irqoff+0x13/0x32 [258029.941907] [<ffffffff810cb122>] rcu_check_callbacks+0x90/0xd2 [258029.941911] [<ffffffff81081066>] update_process_times+0x3a/0x71 [258029.941915] [<ffffffff8109e487>] tick_sched_timer+0x6b/0x8f [258029.941918] [<ffffffff81093b33>] __run_hrtimer+0xbe/0x150 [258029.941921] [<ffffffff8109e41c>] ? tick_nohz_handler+0xcd/0xcd [258029.941923] [<ffffffff81094326>] hrtimer_interrupt+0xdf/0x19f [258029.941927] [<ffffffff8104fd32>] smp_apic_timer_interrupt+0x7b/0x92 [258029.941930] [<ffffffff8175d8f7>] apic_timer_interrupt+0x77/0x80 [258029.941932] <EOI> [<ffffffff8175c6f4>] ? retint_restore_args+0x6/0xb [258029.941936] [<ffffffff8175c729>] ? restore_args+0x30/0x30 [258029.941939] [<ffffffff810583f0>] ? do_page_fault+0xba/0x30e [258029.941941] [<ffffffff81058355>] ? do_page_fault+0x1f/0x30e [258029.941943] [<ffffffff8175c6f4>] ? retint_restore_args+0x6/0xb [258029.941946] [<ffffffff8175c6f4>] ? retint_restore_args+0x6/0xb [258029.941948] [<ffffffff8175c6f4>] ? retint_restore_args+0x6/0xb [258029.941950] [<ffffffff8175c90e>] page_fault+0x2e/0x40 [258029.941954] [<ffffffff813995ad>] ? copy_user_generic_string+0x2d/0x40 [258029.941957] [<ffffffff81003792>] ? kvm_read_guest_page+0x6e/0x8b [258029.941960] [<ffffffff810037eb>] kvm_read_guest+0x3c/0x82 [258029.941963] [<ffffffff8100ea4a>] kvm_read_guest_virt_helper+0x7b/0xb4 [258029.941968] [<ffffffff8100eae6>] kvm_fetch_guest_virt+0x63/0x73 [258029.941971] [<ffffffff810251bd>] do_insn_fetch+0xcb/0x133 [258029.941973] [<ffffffff81027b2c>] x86_decode_insn+0xd4/0x5cb [258029.941976] [<ffffffff8100e3bd>] ? kvm_rip_read+0x1a/0x20 [258029.941978] [<ffffffff81016781>] x86_emulate_instruction+0x78/0x2b8 [258029.941981] [<ffffffff8102e7df>] emulate_instruction+0x21/0x2c [258029.941984] [<ffffffff8102fbde>] handle_exception+0x195/0x2ce [258029.941986] [<ffffffff810344c0>] vmx_handle_exit+0x597/0x5c1 [258029.941989] [<ffffffff8101946f>] kvm_arch_vcpu_ioctl_run+0xa06/0xc7c [258029.941991] [<ffffffff81004c99>] kvm_vcpu_ioctl+0x11f/0x76f [258029.941995] [<ffffffff81328da4>] ? file_has_perm+0x9c/0xb0 [258029.941998] [<ffffffff8114963a>] vfs_ioctl+0x3a/0x52 [258029.942000] [<ffffffff8114a19a>] do_vfs_ioctl+0x523/0x566 [258029.942003] [<ffffffff8132aa46>] ? selinux_file_ioctl+0xc0/0xc9 [258029.942005] [<ffffffff8114a231>] sys_ioctl+0x54/0x7b [258029.942008] [<ffffffff8175ce10>] system_call_fastpath+0x18/0x1d
Created attachment 309443 [details] full kernel config Here is cat config | grep PAX: CONFIG_PAX_KERNEXEC_PLUGIN=y CONFIG_PAX_PER_CPU_PGD=y CONFIG_PAX=y # CONFIG_PAX_SOFTMODE is not set # CONFIG_PAX_EI_PAX is not set CONFIG_PAX_PT_PAX_FLAGS=y # CONFIG_PAX_XATTR_PAX_FLAGS is not set # CONFIG_PAX_NO_ACL_FLAGS is not set CONFIG_PAX_HAVE_ACL_FLAGS=y # CONFIG_PAX_HOOK_ACL_FLAGS is not set CONFIG_PAX_NOEXEC=y CONFIG_PAX_PAGEEXEC=y CONFIG_PAX_EMUTRAMP=y CONFIG_PAX_MPROTECT=y # CONFIG_PAX_MPROTECT_COMPAT is not set # CONFIG_PAX_ELFRELOCS is not set CONFIG_PAX_KERNEXEC=y CONFIG_PAX_KERNEXEC_PLUGIN_METHOD_OR=y # CONFIG_PAX_KERNEXEC_PLUGIN_METHOD_BTS is not set CONFIG_PAX_KERNEXEC_PLUGIN_METHOD="or" CONFIG_PAX_ASLR=y CONFIG_PAX_RANDKSTACK=y CONFIG_PAX_RANDUSTACK=y CONFIG_PAX_RANDMMAP=y CONFIG_PAX_MEMORY_STACKLEAK=y # CONFIG_PAX_MEMORY_UDEREF is not set # CONFIG_PAX_SIZE_OVERFLOW is not set
Created attachment 309447 [details] full dmesg with errors
Created attachment 309449 [details] lspci -nnk output
Using qemu-kvm-9999 live ebuild, just built from git (1.0.50 build date Wed 18 Apr 2012)
(In reply to comment #4) > Using qemu-kvm-9999 live ebuild, just built from git (1.0.50 build date Wed > 18 Apr 2012) Two things to try: 1) qemu-kvm-9999 is a moving target. See if qemu-kvm-1.0-r3 does the same. 2) Try either of these with the vanilla kernel, 3.2.12 and the same configuration minus grsec/pax. 3) CONFIG_PAX_KERNEXEC=y is known to cause problems. Make sure its off along with CONFIG_PAX_MEMORY_UDEREF.
please see bug 402625
Looks like this wasn't a hardened bug and was resolved in bug #402625 *** This bug has been marked as a duplicate of bug 402625 ***