Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751942AbaANS0p (ORCPT ); Tue, 14 Jan 2014 13:26:45 -0500 Received: from mail-ob0-f175.google.com ([209.85.214.175]:59604 "EHLO mail-ob0-f175.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751761AbaANS0n (ORCPT ); Tue, 14 Jan 2014 13:26:43 -0500 MIME-Version: 1.0 In-Reply-To: <20140114133125.GB26942@localhost> References: <20140114133125.GB26942@localhost> Date: Tue, 14 Jan 2014 10:26:42 -0800 X-Google-Sender-Auth: qdeVewrUasGYLR4aIe4h3nwCa4Y Message-ID: Subject: Re: [x86, kaslr] BUG: kernel boot hang From: Kees Cook To: Fengguang Wu Cc: "H. Peter Anvin" , LKML Content-Type: text/plain; charset=UTF-8 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Jan 14, 2014 at 5:31 AM, Fengguang Wu wrote: > Greetings, > > I got the below dmesg and the first bad commit is > > commit 82fa9637a2ba285bcc7c5050c73010b2c1b3d803 > Author: Kees Cook > AuthorDate: Thu Oct 10 17:18:16 2013 -0700 > Commit: H. Peter Anvin > CommitDate: Sun Oct 13 03:12:19 2013 -0700 > > x86, kaslr: Select random position from e820 maps > > Counts available alignment positions across all e820 maps, and chooses > one randomly for the new kernel base address, making sure not to collide > with unsafe memory areas. > > Signed-off-by: Kees Cook > Link: http://lkml.kernel.org/r/1381450698-28710-5-git-send-email-keescook@chromium.org > Signed-off-by: H. Peter Anvin > > Note that there are many other warning/errors and it's not very > reproducible, so this report might be wrong. > > =================================================== > PARENT COMMIT NOT CLEAN. LOOK OUT FOR WRONG BISECT! > =================================================== > > +-----------------------------------------------------------+--------------+--------------+ > | | 5bfce5ef55cb | 1955a14a5ba6 | > +-----------------------------------------------------------+--------------+--------------+ > | boot_successes | 3948 | 0 | > | boot_failures | 52 | 89 | > | page_allocation_failure:order:,mode | 48 | 2 | > | Out_of_memory:Kill_process | 7 | | > | BUG:kernel_early_hang_without_any_printk_output | 1 | | > | BUG:soft_lockup-CPU_stuck_for_s | 1 | | > | WARNING:CPU:PID:at_kernel/locking/lockdep.c:check_flags() | 0 | 85 | Does this mean that "WARNING:CPU:PID:at_kernel/locking/lockdep.c:check_flags()" is the most common failure condition? > | general_protection_fault:SMP_SMP | 0 | 1 | > | RIP:__lock_acquire | 0 | 1 | > | Kernel_panic-not_syncing:Fatal_exception | 0 | 1 | > | BUG:kernel_boot_hang | 0 | 2 | > | BUG:kernel_boot_crashed | 0 | 1 | > +-----------------------------------------------------------+--------------+--------------+ > > The last dmesg is > > [ 0.803796] Initramfs unpacking failed: junk in compressed archive > [ 0.803796] Initramfs unpacking failed: junk in compressed archive > > or in some cases > > [ 0.000000] Base memory trampoline at [ffff880000099000] 99000 size 24576 > [ 0.000000] init_memory_mapping: [mem 0x00000000-0x000fffff] > [ 0.000000] [mem 0x00000000-0x000fffff] page 4k > [ 0.000000] BRK [0x07886000, 0x07886fff] PGTABLE > [ 0.000000] BRK [0x07887000, 0x07887fff] PGTABLE > [ 0.000000] BRK [0x07888000, 0x07888fff] PGTABLE > PANIC: early exception 0e rip 10:ffffffff86204c6e error 0 cr2 ffffffff81972b28 > [ 0.000000] CPU: 0 PID: 0 Comm: swapper Not tainted 3.12.0-rc4-00008-g6e6a493 #614 > PANIC: early exception 0e rip 10:ffffffff86204f22 error 0 cr2 ffffffff81972b28 I will try to reproduce this, but it's not clear to me what is causing the failure. The generated config doesn't look insane to me, so I'm not sure what's happening here. Is QEMU doing something unexpected with the ordering of where things go for its boot loader? -Kees -- Kees Cook Chrome OS Security -- 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/