From: Justin M. Forbes on
gitlab.com
Merge Request:
https://gitlab.com/cki-project/kernel-ark/-/merge_requests/1771
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.
This MR includes the "Handle UEFI NX-restricted page tables" patches as well
as the patch to actually set the flag in the header. They are queued for the
5.19 merge window [1], but will be needed in 5.18 for a shim build.
[1]
https://git.kernel.org/pub/scm/linux/kernel/git/efi/efi.git/log/
---
arch/x86/boot/header.S | 4 +
arch/x86/include/asm/efi.h | 5 +
drivers/firmware/efi/libstub/efistub.h | 74 +++++++++++++++++++
drivers/firmware/efi/libstub/x86-stub.c | 119 ++++++++++++++++++++++++++++++-
drivers/firmware/efi/Kconfig | 12 +++
include/linux/efi.h | 2 +
6 files changed, 211 insertions(+), 5 deletions(-)