]> 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)
commitdca82cbeaaa635ba5ea43a959ad8e92c1b51d998
tree449d19a8328f6cb851f61867fc3d3f9cf70ea4c3
parentb2a11635e5cfa8bfffa9e3ddb86fdd6adc26f449
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