StandaloneMmPkg: Fix possible infinite loop due invalid hob

The second call to CreateMmFoundationHobList () expects the address of
the beginning of the platform hob list in the third parameter. However it
has being given the beginning of the HobList which is PHIT. This causes
later wrong address calculations which in turns puts MM core in infinite
loop, because the IPL passed hob without EFI_HOB_TYPE_END_OF_HOB_LIST.

Signed-off-by: Khalid Ali <khaliidcaliy@gmail.com>
This commit is contained in:
Khalid Ali 2026-04-23 18:50:42 +00:00 committed by mergify[bot]
parent b6c1c1afdc
commit 962c1f2a06

View file

@ -504,7 +504,7 @@ CreateMmHobList (
Status = CreateMmFoundationHobList (
(UINT8 *)HobList + PhitHobSize + PlatformHobSize,
&FoundationHobSize,
HobList,
(UINT8 *)HobList + PhitHobSize,
PlatformHobSize,
MmFvBase,
MmFvSize,