Skip to content
Commit 6405cd03 authored by Ard Biesheuvel's avatar Ard Biesheuvel Committed by mergify[bot]
Browse files

MdeModulePkg: Enable forward edge CFI in mem attributes table

REF: https://bugzilla.tianocore.org/show_bug.cgi?id=4405



The memory attributes table has been extended with a flag that indicates
whether or not the OS is permitted to map the EFI runtime code regions
with strict enforcement for IBT/BTI landing pad instructions.

Given that the PE/COFF spec now defines a DllCharacteristicsEx flag that
indicates whether or not a loaded image is compatible with this, we can
wire this up to the flag in the memory attributes table, and set it if
all loaded runtime image are compatible with it.

Signed-off-by: default avatarArd Biesheuvel <ardb@kernel.org>
Reviewed-by: default avatarLeif Lindholm <quic_llindhol@quicinc.com>
Reviewed-by: default avatarOliver Smith-Denny <osde@linux.microsoft.com>
Reviewed-by: default avatarMichael Kubacki <michael.kubacki@microsoft.com>
Reviewed-by: default avatarLiming Gao <gaoliming@byosoft.com.cn>
parent d6457b30
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment