audk/MdeModulePkg
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
..
Application MdeModulePkg/DumpDynPcd: Remove unsupported format specifiers 2022-08-17 07:45:58 +00:00
Bus MdeModulePkg: Fix conditionally uninitialized variables 2023-04-03 15:29:08 +00:00
Core MdeModulePkg: Enable forward edge CFI in mem attributes table 2023-04-07 13:18:38 +00:00
Include MdeModulePkg/Include/Ppi: Add FirmwareVolumeShadowPpi 2023-03-27 16:25:51 +00:00
Library MdeModulePkg: Fix conditionally uninitialized variables 2023-04-03 15:29:08 +00:00
Logo MdeModulePkg/Logo: Add LoongArch64 architecture. 2022-10-14 02:16:33 +00:00
Test MdeModulePkg/UefiSortLib:Add UefiSortLib unit test 2021-08-12 08:34:04 +00:00
Universal MdeModulePkg: Fix conditionally uninitialized variables 2023-04-03 15:29:08 +00:00
MdeModulePkg.ci.yaml MdeModulePkg: Update YAML to ignore specific ECC files/errors 2021-11-30 14:19:07 +00:00
MdeModulePkg.dec MdeModulePkg/Include/Ppi: Add FirmwareVolumeShadowPpi 2023-03-27 16:25:51 +00:00
MdeModulePkg.dsc MdeModulePkg: Add IpmiCommandLib 2023-01-19 03:57:32 +00:00
MdeModulePkg.uni MdeModulePkg: Use configurable PCD for AHCI command retries 2022-09-13 02:51:27 +00:00
MdeModulePkgExtra.uni MdeModulePkg: Replace BSD License with BSD+Patent License 2019-04-09 10:58:08 -07:00