]> git.proxmox.com Git - mirror_edk2.git/commit
MdeModulePkg/PiSmmCore: Check valid memory range.
authorEric Dong <eric.dong@intel.com>
Tue, 21 Aug 2018 06:44:41 +0000 (14:44 +0800)
committerEric Dong <eric.dong@intel.com>
Tue, 28 Aug 2018 02:24:25 +0000 (10:24 +0800)
commitf965b772fcc4bdc5f207998126d93d80c085d5f5
tree0abf459180395efa30fe63a13135b3c2a4c0826a
parent17da1b91089d1da8a0b9fbbb8d29e4586fa13e46
MdeModulePkg/PiSmmCore: Check valid memory range.

Call BS.AllocatePages in DXE driver and call SMM FreePages with the address of the buffer allocated in the DXE driver. SMM FreePages success and add a non-SMRAM range into SMM heap list. This is not an expected behavior. SMM FreePages should return error for this case and not free the pages.

BZ: https://bugzilla.tianocore.org/show_bug.cgi?id=1098

Change-Id: Ie5ffa1ac62c558aa418a8a3d7d0e8158b846e13b
Cc: Star Zeng <star.zeng@intel.com>
Contributed-under: TianoCore Contribution Agreement 1.1
Signed-off-by: Eric Dong <eric.dong@intel.com>
Reviewed-by: Star Zeng <star.zeng@intel.com>
MdeModulePkg/Core/PiSmmCore/Page.c