Re: [4.4] broken conversion from efi to kernel page table

From: Jiri Kosina
Date: Fri Jan 12 2018 - 05:05:08 EST


On Thu, 11 Jan 2018, Pavel Tatashin wrote:

> This fixes boot panics, hangs which I reported in this thread:

Are you using EFI old_memmap?

If so, then

https://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git/commit/?h=x86/pti&id=de53c3786a3ce162a1c815d0c04c766c23ec9c0a

("x86/pti: Unbreak EFI old_memmap") should be the cure.

If not, you might be missing this in in arch/x86/platform/efi/efi_64.c

- efi_pgd = (pgd_t *)__get_free_page(gfp_mask);
+ efi_pgd = (pgd_t *)__get_free_pages(gfp_mask, PGD_ALLOCATION_ORDER);

Could you please let me know if either of this fixes your problem?

Thanks,

--
Jiri Kosina
SUSE Labs