audk/MdeModulePkg
Gerd Hoffmann f78b937c95 MdeModulePkg/RuntimeDxe: clear mVirtualMapMaxIndex
When setting mVirtualMap to NULL also set mVirtualMapMaxIndex to 0.
Without that RuntimeDriverConvertPointer() will go search the ZeroPage
for EFI_MEMORY_DESCRIPTOR entries.

In case mVirtualMapMaxIndex happens to be small small enough that'll go
unnoticed, the search will not find anything and EFI_NOT_FOUND will be
returned.

In case mVirtualMapMaxIndex is big enough the search will reach the end
of the ZeroPage and trigger a page fault.

Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Reviewed-by: Liming Gao <gaoliming@byosoft.com.cn>
2022-02-07 05:31:17 +00:00
..
Application MdeModulePkg: Apply uncrustify changes 2021-12-07 17:24:28 +00:00
Bus MdeModulePkg/Bus/Pci/PciBusDxe: Support platform PCI ROM override 2022-02-04 18:10:25 +00:00
Core MdeModulePkg/RuntimeDxe: clear mVirtualMapMaxIndex 2022-02-07 05:31:17 +00:00
Include MdeModulePkg: Apply uncrustify changes 2021-12-07 17:24:28 +00:00
Library MdeModulePkg/UefiBootManagerLib: Convert BmLoadOption to Variable Policy 2022-01-28 06:08:45 +00:00
Logo MdeModulePkg: Apply uncrustify changes 2021-12-07 17:24:28 +00:00
Test MdeModulePkg/UefiSortLib:Add UefiSortLib unit test 2021-08-12 08:34:04 +00:00
Universal MdeModulePkg: VariableSmmRuntimeDxe: Fix Variable Policy Message Length 2022-01-27 02:16:17 +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/FPDT: Lock boot performance table address variable at EndOfDxe 2021-11-12 07:36:23 +00:00
MdeModulePkg.dsc MdeModulePkg: Add BootDiscoveryPolicyUiLib. 2021-08-03 04:59:12 +00:00
MdeModulePkg.uni MdeModulePkg: Fix various typos 2021-05-17 02:10:31 +00:00
MdeModulePkgExtra.uni