summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter Jones <pjones@redhat.com>2022-01-19 16:15:05 -0500
committerPeter Jones <pjones@redhat.com>2022-02-03 13:52:15 -0500
commit8c52a84e0a4f39bbc937dcbcdad7cdf04b90b85b (patch)
tree30875b533fb68223ad3db8c296e6c5434af462a6
parent7ccc6c398de381b45300e36a84729e42e47c6447 (diff)
downloadefi-boot-shim-8c52a84e0a4f39bbc937dcbcdad7cdf04b90b85b.tar.gz
efi-boot-shim-8c52a84e0a4f39bbc937dcbcdad7cdf04b90b85b.zip
Make Mok config table be runtime services memory.
Currently, when you boot linux you get a bright red message in the log and the console like: Feb 03 13:18:45 localhost.localdomain kernel: mokvar: EFI MOKvar config table is not in EFI runtime memory We don't like bright red messages on the console, so this patch changes the memory allocation for the mokvar config table so that it's in runtime memory. Signed-off-by: Peter Jones <pjones@redhat.com>
-rw-r--r--mok.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/mok.c b/mok.c
index 930e52a2..28962853 100644
--- a/mok.c
+++ b/mok.c
@@ -953,7 +953,7 @@ EFI_STATUS import_mok_state(EFI_HANDLE image_handle)
npages = ALIGN_VALUE(config_sz, PAGE_SIZE) >> EFI_PAGE_SHIFT;
config_table = NULL;
efi_status = BS->AllocatePages(
- AllocateAnyPages, EfiBootServicesData, npages,
+ AllocateAnyPages, EfiRuntimeServicesData, npages,
(EFI_PHYSICAL_ADDRESS *)&config_table);
if (EFI_ERROR(efi_status) || !config_table) {
console_print(L"Allocating %lu pages for mok config table failed: %r\n",