edk2/MdeModulePkg/Core/PiSmmCore
Jeff Fan 1663fcef26 MdeModulePkg/PiSmmCore: Cache CommunicationBuffer info before using it
gSmmCorePrivate->CommunicationBuffer and gSmmCorePrivate->BufferSize locate at
runtime memory region. That means they could be modified by non-SMM code during
runtime.

We should cache them into SMM local variables before we verify them. After
verification, we should use the cached ones directly instead of the ones in
gSmmCorePrivate.

Cc: Jiewen Yao <jiewen.yao@intel.com>
Cc: Feng Tian <feng.tian@intel.com>
Cc: Michael D Kinney <michael.d.kinney@intel.com>
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Jeff Fan <jeff.fan@intel.com>
(cherry picked from commit eaae7b33b1)
2016-11-23 14:18:17 +08:00
..
Dependency.c 1) Change location of DEBUG() macro that prints the name of the FFS file being evaluated by the DXE Dispatcher to eliminate a duplicate print. 2010-12-06 21:55:14 +00:00
Dispatcher.c Install LoadedImage protocol for PiSmmCore. 2015-11-25 08:54:57 +00:00
Handle.c Update the copyright notice format 2010-04-24 09:49:11 +00:00
InstallConfigurationTable.c Update the copyright notice format 2010-04-24 09:49:11 +00:00
Locate.c Update the copyright notice format 2010-04-24 09:49:11 +00:00
Notify.c MdeModulePkg/SmmCore: SMM register protocol notify function clarify 2015-05-07 02:29:52 +00:00
Page.c MdeModulePkg DxeCore/PiSmmCore: Add UEFI memory and SMRAM profile support. 2014-11-12 03:27:48 +00:00
PiSmmCore.c MdeModulePkg/PiSmmCore: Cache CommunicationBuffer info before using it 2016-11-23 14:18:17 +08:00
PiSmmCore.h Install LoadedImage protocol for PiSmmCore. 2015-11-25 08:54:57 +00:00
PiSmmCore.inf MdeModulePkg PiSmmCore: Introduce SMM Exit Boot Services and Legacy Boot. 2015-06-18 09:26:41 +00:00
PiSmmCore.uni MdeModulePkg: Convert non DOS format files to DOS format and remove unused module UNI files. 2014-09-03 08:39:12 +00:00
PiSmmCoreExtra.uni MdeModulePkg: INF/DEC file updates to EDK II packages 2014-08-28 06:53:43 +00:00
PiSmmCorePrivateData.h MdeModulePkg PiSmmCore: Remove a hidden assumption of SMRAM reservation 2015-07-26 07:38:12 +00:00
PiSmmIpl.c Move CommunicationBuffer from stack to global variable. 2015-12-07 02:21:29 +00:00
PiSmmIpl.inf MdeModulePkg PiSmmCore: Introduce SMM Exit Boot Services and Legacy Boot. 2015-06-18 09:26:41 +00:00
PiSmmIpl.uni MdeModulePkg: Convert non DOS format files to DOS format and remove unused module UNI files. 2014-09-03 08:39:12 +00:00
PiSmmIplExtra.uni MdeModulePkg: INF/DEC file updates to EDK II packages 2014-08-28 06:53:43 +00:00
Pool.c Check InternalAllocPoolByIndex status before refer buffer. 2015-11-25 06:42:46 +00:00
Smi.c Update SmiManager() comments and implementation to follow the new rule clarified by PI 1.2.1 errata A. 2013-02-20 03:38:10 +00:00
SmramProfileRecord.c MdeModulePkg MemoryProfile: ASSERT to ensure 'DriverInfoData' is not NULL 2016-07-12 09:22:51 +08:00