From 962c1f2a060e8c0ce0e0849d8e5c163363e2cb45 Mon Sep 17 00:00:00 2001 From: Khalid Ali Date: Thu, 23 Apr 2026 18:50:42 +0000 Subject: [PATCH] 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 --- StandaloneMmPkg/Drivers/StandaloneMmIplPei/StandaloneMmIplPei.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/StandaloneMmPkg/Drivers/StandaloneMmIplPei/StandaloneMmIplPei.c b/StandaloneMmPkg/Drivers/StandaloneMmIplPei/StandaloneMmIplPei.c index d2e77e7220..25491d71d2 100644 --- a/StandaloneMmPkg/Drivers/StandaloneMmIplPei/StandaloneMmIplPei.c +++ b/StandaloneMmPkg/Drivers/StandaloneMmIplPei/StandaloneMmIplPei.c @@ -504,7 +504,7 @@ CreateMmHobList ( Status = CreateMmFoundationHobList ( (UINT8 *)HobList + PhitHobSize + PlatformHobSize, &FoundationHobSize, - HobList, + (UINT8 *)HobList + PhitHobSize, PlatformHobSize, MmFvBase, MmFvSize,