diff options
| author | Khalid Ali <khaliidcaliy@gmail.com> | 2026-04-23 18:50:42 +0000 |
|---|---|---|
| committer | mergify[bot] <37929162+mergify[bot]@users.noreply.github.com> | 2026-04-27 06:52:23 +0000 |
| commit | 962c1f2a060e8c0ce0e0849d8e5c163363e2cb45 (patch) | |
| tree | 412cc3e9d57d59bf4ef54a620cbe5e2e0a1f6d9b /StandaloneMmPkg | |
| parent | b6c1c1afdc51deaa40c755e50ca845685374ed21 (diff) | |
| download | edk2-962c1f2a060e8c0ce0e0849d8e5c163363e2cb45.tar.gz edk2-962c1f2a060e8c0ce0e0849d8e5c163363e2cb45.zip | |
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>
Diffstat (limited to 'StandaloneMmPkg')
| -rw-r--r-- | StandaloneMmPkg/Drivers/StandaloneMmIplPei/StandaloneMmIplPei.c | 2 |
1 files changed, 1 insertions, 1 deletions
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,
|
