]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit6b385c8a00f232d28736777853dfae206522419b
tree449d19a8328f6cb851f61867fc3d3f9cf70ea4c3
parentfec3fde2cf05c2f773604a50fcbd600896cddf8d
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