Re: [BUG] Linux 3.14 fails to boot with new EFI changes

From: Borislav Petkov
Date: Thu Jan 23 2014 - 17:49:09 EST


On Thu, Jan 23, 2014 at 04:11:08PM -0600, Alex Thorlton wrote:
> We've been hitting the following bug in the latest kernel, during boot:

Can you merge

git://git.kernel.org/pub/scm/linux/kernel/git/mfleming/efi.git#next

into your tree, enable CONFIG_EFI_PGT_DUMP, apply the debugging patch
below, catch the whole dmesg and send it to me (privately is fine too)?

Thanks.

---
diff --git a/arch/x86/mm/init_64.c b/arch/x86/mm/init_64.c
index f35c66c5959a..07712b9b4263 100644
--- a/arch/x86/mm/init_64.c
+++ b/arch/x86/mm/init_64.c
@@ -348,7 +348,12 @@ static void __init __init_extra_mapping(unsigned long phys, unsigned long size,
_PAGE_USER));
}
pmd = pmd_offset(pud, phys);
- BUG_ON(!pmd_none(*pmd));
+ if (!pmd_none(*pmd)) {
+ pr_err("phys: 0x%lx, PGD: 0x%lx, PUD: 0x%lx, PMD: 0x%lx\n",
+ phys, pgd_val(*pgd), pud_val(*pud), pmd_val(*pmd));
+ BUG();
+ }
+
set_pmd(pmd, __pmd(phys | pgprot_val(prot)));
}
}
--

--
Regards/Gruss,
Boris.

Sent from a fat crate under my desk. Formatting is fine.
--
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/