Re: [PATCH] x86: Allow kernel_map_pages_in_pgd() to work when NX is disabled

2014-07-22 Thread Borislav Petkov
On Tue, Jul 08, 2014 at 05:31:12PM -0500, Stuart Hayes wrote: > The function kernel_map_pages_in_pgd() will not map pages if NX is > disabled, which causes a lot of problems booting in EFI mode > (efi_map_region() and other functions depend on this). This patch > just makes sure that the NX flag d

[PATCH] x86: Allow kernel_map_pages_in_pgd() to work when NX is disabled

2014-07-08 Thread Stuart Hayes
The function kernel_map_pages_in_pgd() will not map pages if NX is disabled, which causes a lot of problems booting in EFI mode (efi_map_region() and other functions depend on this). This patch just makes sure that the NX flag doesn't get set in the page tables if NX is disabled, rather than not m