efi: x86: Set the NX-compatibility flag in the PE header
authorPeter Jones <pjones@redhat.com>
Tue, 29 Mar 2022 18:47:43 +0000 (14:47 -0400)
committerArd Biesheuvel <ardb@kernel.org>
Tue, 3 May 2022 13:31:28 +0000 (15:31 +0200)
commit24b72bb12e84c75e297a5a81f24b921d7a011575
tree449d19a8328f6cb851f61867fc3d3f9cf70ea4c3
parent82e0d6d76a2a74bd6a31141d555d53b4cc22c2a3
efi: x86: Set the NX-compatibility flag in the PE header

Following Baskov Evgeniy's "Handle UEFI NX-restricted page tables"
patches, it's safe to set this compatibility flag to let loaders know
they don't need to make special accommodations for kernel to load if
pre-boot NX is enabled.

Signed-off-by: Peter Jones <pjones@redhat.com>
Link: https://lore.kernel.org/all/20220329184743.798513-1-pjones@redhat.com/
Signed-off-by: Ard Biesheuvel <ardb@kernel.org>
arch/x86/boot/header.S