Branch: refs/heads/master
  Home:   https://github.com/tianocore/edk2
  Commit: 28653a1c8a0c42bd598ba2677fc1b84fbb4e9c37
      
https://github.com/tianocore/edk2/commit/28653a1c8a0c42bd598ba2677fc1b84fbb4e9c37
  Author: Zhou Jianfeng <jianfeng.z...@intel.com>
  Date:   2025-05-06 (Tue, 06 May 2025)

  Changed paths:
    M UefiCpuPkg/PiSmmCpuDxeSmm/MpService.c

  Log Message:
  -----------
  UefiCpuPkg/PiSmmCpuDxeSmm: Fix SMRAM memory leak during S3 resume

SyncContext of SMM_DISPATCHER_MP_SYNC_DATA was dynamically allocated from
SMRAM. The memory was not freed before reallocation in S3 resume path.
This could lead to:
1. Memory leak in SMRAM.
2. Potential S3 resume failure after repeated S3 tests due to SMRAM
exhaustion.

This change releases the SyncContext memory before reallocating it

Signed-off-by: Zhou Jianfeng <jianfeng.z...@intel.com>



To unsubscribe from these emails, change your notification settings at 
https://github.com/tianocore/edk2/settings/notifications


_______________________________________________
edk2-commits mailing list
edk2-commits@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/edk2-commits

Reply via email to