edk2/MdeModulePkg/Core/PiSmmCore
Kun Qin 003873db21 MdeModulePkg: PiSmmIpl: Fix physical address dereferencing
With current implemenation, all 3 SmmCommunication* functions go through
the same routine, which will dereference the incoming pointer to inspect
whether this is a V3 buffer or not.

However, the caller always pass in the physical addresses, which could
cause the system to page fault after OS take over the runtime control.

This change reverted the common routine to its previous form to handle MM
communicate v1 and v2. Additionally, a specific communicate function for
v3 was created to support MM communicate v3.

Co-authored-by: Michael D Kinney <michael.d.kinney@intel.com>
Signed-off-by: Kun Qin <kun.qin@microsoft.com>
2025-04-21 06:07:39 +00:00
..
Dependency.c MdeModulePkg: Apply uncrustify changes 2021-12-07 17:24:28 +00:00
Dispatcher.c MdeModulePkg/SmmCore: Add perf-logging for SmmDriverDispatchHandler 2023-06-21 04:37:17 +00:00
Handle.c MdeModulePkg: Apply uncrustify changes 2021-12-07 17:24:28 +00:00
HeapGuard.c MdeModulePkg: Remove other attribute protection in UnsetGuardPage 2023-06-30 11:07:40 +05:30
HeapGuard.h MdeModulePkg: Apply uncrustify changes 2021-12-07 17:24:28 +00:00
InstallConfigurationTable.c MdeModulePkg: Apply uncrustify changes 2021-12-07 17:24:28 +00:00
Locate.c MdeModulePkg: Apply uncrustify changes 2021-12-07 17:24:28 +00:00
MemoryAttributesTable.c MdeModulePkg: Update DumpImageRecord() in ImagePropertiesRecordLib 2023-11-27 18:55:18 +00:00
Notify.c MdeModulePkg: Apply uncrustify changes 2021-12-07 17:24:28 +00:00
Page.c MdeModulePkg: Apply uncrustify changes 2021-12-07 17:24:28 +00:00
PiSmmCore.c MdeModulePkg: PiSmmCore: Added parser of new MM communicate header 2025-04-07 07:42:13 +00:00
PiSmmCore.h MdeModulePkg/SMM: Support to unregister SMI handler in SMI handlers 2024-04-16 04:41:27 +00:00
PiSmmCore.inf MdeModulePkg: PiSmmCore: Added parser of new MM communicate header 2025-04-07 07:42:13 +00:00
PiSmmCore.uni MdeModulePkg: Replace BSD License with BSD+Patent License 2019-04-09 10:58:08 -07:00
PiSmmCoreExtra.uni MdeModulePkg: Replace BSD License with BSD+Patent License 2019-04-09 10:58:08 -07:00
PiSmmCorePrivateData.h MdeModulePkg: Apply uncrustify changes 2021-12-07 17:24:28 +00:00
PiSmmIpl.c MdeModulePkg: PiSmmIpl: Fix physical address dereferencing 2025-04-21 06:07:39 +00:00
PiSmmIpl.inf MdeModulePkg: PiSmmIpl: Update MessageLength calculation for MmCommunicate 2025-04-07 07:42:13 +00:00
PiSmmIpl.uni MdeModulePkg: Replace BSD License with BSD+Patent License 2019-04-09 10:58:08 -07:00
PiSmmIplExtra.uni MdeModulePkg: Replace BSD License with BSD+Patent License 2019-04-09 10:58:08 -07:00
Pool.c MdeModulePkg: PiSmmCore: Inspect memory guarded with pool headers 2022-05-13 00:51:41 +00:00
Smi.c MdeModulePkg/SMM: Initialize 'WillReturn' variable 2024-05-30 01:57:35 +00:00
SmiHandlerProfile.c MdeModulePkg/SmiHandlerProfileInfo: Include profile SMI in profile 2024-07-18 19:22:36 +00:00
SmramProfileRecord.c MdeModulePkg: Apply uncrustify changes 2021-12-07 17:24:28 +00:00