audk/MdeModulePkg/Universal
Kun Qin ee67067f17 MdeModulePkg: VariableSmmRuntimeDxe: Fix Variable Policy Message Length
REF: https://bugzilla.tianocore.org/show_bug.cgi?id=3709

In EDKII implementation of variable policy, the DXE runtime agent would
communicate to MM to disable, register or query policies. However, these
operations populate the value of MessageLength that includes communicate
header to include MM communicate header, which mismatches with the
description of PI specification.

This fix will correct the MessageLength field calculation to exclude
the size of MM_COMMUNICATE_HEADER.

Cc: Jian J Wang <jian.j.wang@intel.com>
Cc: Liming Gao <gaoliming@byosoft.com.cn>
Cc: Hao A Wu <hao.a.wu@intel.com>
Cc: Bret Barkelew <Bret.Barkelew@microsoft.com>
Cc: Michael Kubacki <michael.kubacki@microsoft.com>

Signed-off-by: Kun Qin <kuqin12@gmail.com>
Reviewed-by: Liming Gao <gaoliming@byosoft.com.cn>
2022-01-27 02:16:17 +00:00
..
Acpi MdeModulePkg: Apply uncrustify changes 2021-12-07 17:24:28 +00:00
BdsDxe MdeModulePkg: Apply uncrustify changes 2021-12-07 17:24:28 +00:00
BootManagerPolicyDxe MdeModulePkg: Apply uncrustify changes 2021-12-07 17:24:28 +00:00
CapsuleOnDiskLoadPei MdeModulePkg: Apply uncrustify changes 2021-12-07 17:24:28 +00:00
CapsulePei MdeModulePkg: Apply uncrustify changes 2021-12-07 17:24:28 +00:00
CapsuleRuntimeDxe MdeModulePkg: Apply uncrustify changes 2021-12-07 17:24:28 +00:00
Console MdeModulePkg: Apply uncrustify changes 2021-12-07 17:24:28 +00:00
DebugPortDxe MdeModulePkg: Apply uncrustify changes 2021-12-07 17:24:28 +00:00
DebugServicePei MdeModulePkg: Apply uncrustify changes 2021-12-07 17:24:28 +00:00
DebugSupportDxe MdeModulePkg: Apply uncrustify changes 2021-12-07 17:24:28 +00:00
DevicePathDxe MdeModulePkg: Apply uncrustify changes 2021-12-07 17:24:28 +00:00
Disk MdeModulePkg/PartitionDxe: Add break to handle invalid LBA0 in MBR 2022-01-10 07:16:05 +00:00
DisplayEngineDxe MdeModulePkg: Apply uncrustify changes 2021-12-07 17:24:28 +00:00
DriverHealthManagerDxe MdeModulePkg: Apply uncrustify changes 2021-12-07 17:24:28 +00:00
DriverSampleDxe MdeModulePkg: Apply uncrustify changes 2021-12-07 17:24:28 +00:00
EbcDxe MdeModulePkg: Apply uncrustify changes 2021-12-07 17:24:28 +00:00
EsrtDxe MdeModulePkg: Apply uncrustify changes 2021-12-07 17:24:28 +00:00
EsrtFmpDxe MdeModulePkg: Apply uncrustify changes 2021-12-07 17:24:28 +00:00
FaultTolerantWriteDxe MdeModulePkg: Apply uncrustify changes 2021-12-07 17:24:28 +00:00
FaultTolerantWritePei MdeModulePkg: Apply uncrustify changes 2021-12-07 17:24:28 +00:00
FileExplorerDxe MdeModulePkg: Apply uncrustify changes 2021-12-07 17:24:28 +00:00
FvSimpleFileSystemDxe MdeModulePkg: Apply uncrustify changes 2021-12-07 17:24:28 +00:00
HiiDatabaseDxe MdeModulePkg: Apply uncrustify changes 2021-12-07 17:24:28 +00:00
HiiResourcesSampleDxe MdeModulePkg: Apply uncrustify changes 2021-12-07 17:24:28 +00:00
LegacyRegion2Dxe MdeModulePkg: Apply uncrustify changes 2021-12-07 17:24:28 +00:00
LoadFileOnFv2 MdeModulePkg: Apply uncrustify changes 2021-12-07 17:24:28 +00:00
LockBox/SmmLockBox MdeModulePkg: Apply uncrustify changes 2021-12-07 17:24:28 +00:00
MemoryTest MdeModulePkg: Apply uncrustify changes 2021-12-07 17:24:28 +00:00
Metronome MdeModulePkg: Apply uncrustify changes 2021-12-07 17:24:28 +00:00
MonotonicCounterRuntimeDxe MdeModulePkg: Apply uncrustify changes 2021-12-07 17:24:28 +00:00
PCD MdeModulePkg: Apply uncrustify changes 2021-12-07 17:24:28 +00:00
PcatSingleSegmentPciCfg2Pei MdeModulePkg: Apply uncrustify changes 2021-12-07 17:24:28 +00:00
PlatformDriOverrideDxe MdeModulePkg: Apply uncrustify changes 2021-12-07 17:24:28 +00:00
PrintDxe MdeModulePkg: Apply uncrustify changes 2021-12-07 17:24:28 +00:00
RegularExpressionDxe MdeModulePkg: Apply uncrustify changes 2021-12-07 17:24:28 +00:00
ReportStatusCodeRouter MdeModulePkg: Apply uncrustify changes 2021-12-07 17:24:28 +00:00
ResetSystemPei MdeModulePkg: Apply uncrustify changes 2021-12-07 17:24:28 +00:00
ResetSystemRuntimeDxe MdeModulePkg: Apply uncrustify changes 2021-12-07 17:24:28 +00:00
SectionExtractionDxe MdeModulePkg: Apply uncrustify changes 2021-12-07 17:24:28 +00:00
SectionExtractionPei MdeModulePkg: Apply uncrustify changes 2021-12-07 17:24:28 +00:00
SecurityStubDxe MdeModulePkg: Apply uncrustify changes 2021-12-07 17:24:28 +00:00
SerialDxe MdeModulePkg: Apply uncrustify changes 2021-12-07 17:24:28 +00:00
SetupBrowserDxe MdeModulePkg: Apply uncrustify changes 2021-12-07 17:24:28 +00:00
SmbiosDxe MdeModulePkg: Apply uncrustify changes 2021-12-07 17:24:28 +00:00
SmbiosMeasurementDxe MdeModulePkg: Apply uncrustify changes 2021-12-07 17:24:28 +00:00
SmmCommunicationBufferDxe MdeModulePkg: Apply uncrustify changes 2021-12-07 17:24:28 +00:00
StatusCodeHandler MdeModulePkg: Apply uncrustify changes 2021-12-07 17:24:28 +00:00
TimestampDxe MdeModulePkg: Apply uncrustify changes 2021-12-07 17:24:28 +00:00
Variable MdeModulePkg: VariableSmmRuntimeDxe: Fix Variable Policy Message Length 2022-01-27 02:16:17 +00:00
WatchdogTimerDxe MdeModulePkg: Apply uncrustify changes 2021-12-07 17:24:28 +00:00