Skip to content
Commit 82e0d6d7 authored by Baskov Evgeniy's avatar Baskov Evgeniy Committed by Ard Biesheuvel
Browse files

efi: libstub: ensure allocated memory to be executable



There are UEFI versions that restrict execution of memory regions,
preventing the kernel from booting. Parts that needs to be executable
are:

* Area used for trampoline placement.
* All memory regions that the kernel may be relocated before
  and during extraction.

Use DXE services to ensure aforementioned address ranges
to be executable. Only modify attributes that does not
have appropriate attributes.

Signed-off-by: default avatarBaskov Evgeniy <baskov@ispras.ru>
Link: https://lore.kernel.org/r/20220303142120.1975-3-baskov@ispras.ru


Signed-off-by: default avatarArd Biesheuvel <ardb@kernel.org>
parent 3ba75c13
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment