The kernel panics early in boot on a x86_64 server if the eXecute
Disable (XD) bit is set to disabled in the uEFI firmware.
The following patches fix the panic and also fix an error in
kernel_map_pages_in_pgd() which would make the EFI runtime service
unavailable when the XD bit is set to disabled.
Kosuke Tatsukawa (2):
x86: Fix kernel panic when booting with XD disabled in uEFI firmware
x86: Fix error in kernel_map_pages_in_pgd() when booting with XD disabled
---
arch/x86/kernel/setup.c | 18 +++++++++---------
arch/x86/mm/ioremap.c | 3 +++
arch/x86/mm/pageattr.c | 6 +-----
3 files changed, 13 insertions(+), 14 deletions(-)