mirror_edk2/MdeModulePkg/Core/Dxe
Ard Biesheuvel 6405cd0304 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: Ard Biesheuvel <ardb@kernel.org>
Reviewed-by: Leif Lindholm <quic_llindhol@quicinc.com>
Reviewed-by: Oliver Smith-Denny <osde@linux.microsoft.com>
Reviewed-by: Michael Kubacki <michael.kubacki@microsoft.com>
Reviewed-by: Liming Gao <gaoliming@byosoft.com.cn>
2023-04-07 13:18:38 +00:00
..
Dispatcher MdeModulePkg: Apply uncrustify changes 2021-12-07 17:24:28 +00:00
DxeMain MdeModulePkg: Notify BeforeExitBootServices in CoreExitBootServices 2023-01-12 16:03:30 +00:00
Event MdeModulePkg: Apply uncrustify changes 2021-12-07 17:24:28 +00:00
FwVol MdeModulePkg: Apply uncrustify changes 2021-12-07 17:24:28 +00:00
FwVolBlock MdeModulePkg: Apply uncrustify changes 2021-12-07 17:24:28 +00:00
Gcd MdeModulePkg: Update Dxe to handle unaccepted memory type 2022-11-01 10:08:10 +00:00
Hand MdeModulePkg: Apply uncrustify changes 2021-12-07 17:24:28 +00:00
Image MdeModulePkg: Enable forward edge CFI in mem attributes table 2023-04-07 13:18:38 +00:00
Library MdeModulePkg: Apply uncrustify changes 2021-12-07 17:24:28 +00:00
Mem MdeModulePkg: Fix conditionally uninitialized variables 2023-04-03 15:29:08 +00:00
Misc MdeModulePkg: Enable forward edge CFI in mem attributes table 2023-04-07 13:18:38 +00:00
SectionExtraction MdeModulePkg: Apply uncrustify changes 2021-12-07 17:24:28 +00:00
DxeCore.uni MdeModulePkg: Replace BSD License with BSD+Patent License 2019-04-09 10:58:08 -07:00
DxeCoreExtra.uni MdeModulePkg: Replace BSD License with BSD+Patent License 2019-04-09 10:58:08 -07:00
DxeMain.h MdeModulePkg: Enable forward edge CFI in mem attributes table 2023-04-07 13:18:38 +00:00
DxeMain.inf MdeModulePkg: Notify BeforeExitBootServices in CoreExitBootServices 2023-01-12 16:03:30 +00:00