edk2/MdeModulePkg/Universal
Richard Lyu 070c9026f7 MdeModulePkg/PartitionDxe: Abort on primary GPT recovery failure
When the primary GPT is invalid, PartitionInstallGptChildHandles()
restores it from the backup and re-validates it. Both the restore write
and the re-validation can fail (e.g. write-protected media, or a backup
AlternateLBA pointing beyond the device), yet the existing code only logs
the failure and parses partitions from a known-invalid PrimaryHeader.

Abort GPT processing when either the restore or the validation fails, so
partitions are only ever parsed from a validated primary GPT. The backup
recovery branch is left unchanged, as the primary is already validated.

A device with an unrecoverable primary GPT now installs no child handles
instead of using an invalid header. This keeps the table PartitionDxe uses
in sync with the one DxeTpm2MeasureBootLib measures into PCR[5].

Ref: https://seclists.org/oss-sec/2026/q2/727
Signed-off-by: Richard Lyu <richard.lyu@suse.com>
2026-07-20 21:50:57 +00:00
..
Acpi MdeModulePkg: Add support for generation of HEST table 2026-05-26 23:45:14 +00:00
BdsDxe MdeModulePkg: Replace include guards with #pragma once 2026-02-23 21:01:28 +00:00
BootManagerPolicyDxe MdeModulePkg: Fix missing NULL tests. 2025-11-23 00:23:22 +00:00
CapsuleOnDiskLoadPei MdeModulePkg/CapsuleOnDiskLoadPei: fix gcc 16 warning 2026-02-01 20:30:31 +00:00
CapsulePei MdeModulePkg: Replace include guards with #pragma once 2026-02-23 21:01:28 +00:00
CapsuleRuntimeDxe MdeModulePkg: Replace include guards with #pragma once 2026-02-23 21:01:28 +00:00
Console MdeModulePkg/TerminalDxe: Change print level to eliminate interference 2026-06-22 20:06:47 +00:00
DebugPortDxe MdeModulePkg: Replace include guards with #pragma once 2026-02-23 21:01:28 +00:00
DebugServicePei MdeModulePkg: Replace include guards with #pragma once 2026-02-23 21:01:28 +00:00
DebugSupportDxe MdeModulePkg: Replace include guards with #pragma once 2026-02-23 21:01:28 +00:00
DevicePathDxe MdeModulePkg: Apply uncrustify changes 2021-12-07 17:24:28 +00:00
Disk MdeModulePkg/PartitionDxe: Abort on primary GPT recovery failure 2026-07-20 21:50:57 +00:00
DisplayEngineDxe MdeModulePkg: Enhance the handling of registering hot key 2026-05-27 03:45:48 +00:00
DriverHealthManagerDxe MdeModulePkg: Replace include guards with #pragma once 2026-02-23 21:01:28 +00:00
DriverSampleDxe MdeModulePkg: Add missing FreePool to fix memory leak issue 2026-05-27 03:45:48 +00:00
EbcDxe MdeModulePkg: Remove Depex section in UEFI_DRIVER and UEFI_APPLICATION 2026-06-09 05:51:07 +00:00
EsrtDxe MdeModulePkg: Replace include guards with #pragma once 2026-02-23 21:01:28 +00:00
EsrtFmpDxe MdeModulePkg/EsrtFmpDxe: Support multiple devices with 0 HardwareInstance 2023-02-15 01:52:59 +00:00
FaultTolerantWriteDxe MdeModulePkg: Replace include guards with #pragma once 2026-02-23 21:01:28 +00:00
FaultTolerantWritePei MdeModulePkg: Fix missing NULL tests. 2025-11-23 00:23:22 +00:00
FileExplorerDxe MdeModulePkg: Apply uncrustify changes 2021-12-07 17:24:28 +00:00
FvSimpleFileSystemDxe MdeModulePkg: Replace include guards with #pragma once 2026-02-23 21:01:28 +00:00
HiiDatabaseDxe MdeModulePkg: Cleanup debug print readability 2026-05-06 10:43:05 +00:00
HiiResourcesSampleDxe MdeModulePkg: Fix EFI_SUCCESS typos 2025-06-12 17:50:45 +00:00
LegacyRegion2Dxe MdeModulePkg: Replace include guards with #pragma once 2026-02-23 21:01:28 +00:00
LoadFileOnFv2 MdeModulePkg/LoadFileOnFv2: Fix typo in Buffer parameter description 2026-01-23 10:46:37 +00:00
LockBox/SmmLockBox MdeModulePkg: Apply uncrustify changes 2021-12-07 17:24:28 +00:00
MemoryTest MdeModulePkg: Replace include guards with #pragma once 2026-02-23 21:01:28 +00:00
Metronome MdeModulePkg: Replace include guards with #pragma once 2026-02-23 21:01:28 +00:00
MonotonicCounterRuntimeDxe MdeModulePkg: Align RuntimeDxe function headers with UEFI return values 2024-02-09 22:16:32 +00:00
PcatSingleSegmentPciCfg2Pei MdeModulePkg: Apply uncrustify changes 2021-12-07 17:24:28 +00:00
PCD MdeModulePkg: Replace include guards with #pragma once 2026-02-23 21:01:28 +00:00
PlatformDriOverrideDxe MdeModulePkg: Replace manual alignment checks with helper macros 2026-06-09 07:20:10 +00:00
PrintDxe MdeModulePkg: Apply uncrustify changes 2021-12-07 17:24:28 +00:00
RegularExpressionDxe MdeModulePkg: Replace include guards with #pragma once 2026-02-23 21:01:28 +00:00
ReportStatusCodeRouter MdeModulePkg/ReportStatusCodeRouter: Prevent recursive entry in PEI phase 2026-06-17 04:11:15 +00:00
ResetSystemPei MdeModulePkg: Replace include guards with #pragma once 2026-02-23 21:01:28 +00:00
ResetSystemRuntimeDxe MdeModulePkg: Replace include guards with #pragma once 2026-02-23 21:01:28 +00:00
SectionExtractionDxe MdeModulePkg: Apply uncrustify changes 2021-12-07 17:24:28 +00:00
SectionExtractionPei MdeModulePkg: SectionExtractionPei cumulative codeql issues. 2025-07-01 09:53:09 +08:00
SecurityStubDxe MdeModulePkg: Replace include guards with #pragma once 2026-02-23 21:01:28 +00:00
SerialDxe MdeModulePkg: Apply uncrustify changes 2021-12-07 17:24:28 +00:00
SetupBrowserDxe MdeModulePkg: Replace include guards with #pragma once 2026-02-23 21:01:28 +00:00
SmbiosDxe MdeModulePkg: Replace include guards with #pragma once 2026-02-23 21:01:28 +00:00
SmbiosMeasurementDxe MdeModulePkg/SmbiosMeasurementDxe: fix gcc 16 warning 2026-02-01 20:30:31 +00:00
SmmCommunicationBufferDxe MdeModulePkg: SmmCommunicationBuffer cumulative codeql issues. 2025-07-01 09:52:41 +08:00
StatusCodeHandler MdeModulePkg: Replace include guards with #pragma once 2026-02-23 21:01:28 +00:00
TimestampDxe MdeModulePkg: Apply uncrustify changes 2021-12-07 17:24:28 +00:00
Variable MdeModulePkg/Variable: Avoid double VA conversion of FVB protocol 2026-06-01 06:05:19 +00:00
WatchdogTimerDxe MdeModulePkg: Replace include guards with #pragma once 2026-02-23 21:01:28 +00:00