audk/MdeModulePkg/Universal/Variable/RuntimeDxe
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
..
RuntimeDxeUnitTest MdeModulePkg: Apply uncrustify changes 2021-12-07 17:24:28 +00:00
Measurement.c MdeModulePkg: Apply uncrustify changes 2021-12-07 17:24:28 +00:00
PrivilegePolymorphic.h MdeModulePkg: Apply uncrustify changes 2021-12-07 17:24:28 +00:00
Reclaim.c MdeModulePkg: Apply uncrustify changes 2021-12-07 17:24:28 +00:00
SpeculationBarrierDxe.c MdeModulePkg: Replace BSD License with BSD+Patent License 2019-04-09 10:58:08 -07:00
SpeculationBarrierSmm.c MdeModulePkg: Replace BSD License with BSD+Patent License 2019-04-09 10:58:08 -07:00
TcgMorLockDxe.c MdeModulePkg: Apply uncrustify changes 2021-12-07 17:24:28 +00:00
TcgMorLockSmm.c MdeModulePkg: Apply uncrustify changes 2021-12-07 17:24:28 +00:00
VarCheck.c MdeModulePkg: Apply uncrustify changes 2021-12-07 17:24:28 +00:00
Variable.c MdeModulePkg/Variable: Make only EFI_VARIABLE_NON_VOLATILE invalid 2022-01-21 02:13:31 +00:00
Variable.h MdeModulePkg: Apply uncrustify changes 2021-12-07 17:24:28 +00:00
VariableDxe.c MdeModulePkg: Apply uncrustify changes 2021-12-07 17:24:28 +00:00
VariableExLib.c MdeModulePkg: Apply uncrustify changes 2021-12-07 17:24:28 +00:00
VariableLockRequestToLock.c MdeModulePkg: Apply uncrustify changes 2021-12-07 17:24:28 +00:00
VariableNonVolatile.c MdeModulePkg: Apply uncrustify changes 2021-12-07 17:24:28 +00:00
VariableNonVolatile.h MdeModulePkg: Apply uncrustify changes 2021-12-07 17:24:28 +00:00
VariableParsing.c MdeModulePkg: Apply uncrustify changes 2021-12-07 17:24:28 +00:00
VariableParsing.h MdeModulePkg: Apply uncrustify changes 2021-12-07 17:24:28 +00:00
VariablePolicySmmDxe.c MdeModulePkg: VariableSmmRuntimeDxe: Fix Variable Policy Message Length 2022-01-27 02:16:17 +00:00
VariableRuntimeCache.c MdeModulePkg: Apply uncrustify changes 2021-12-07 17:24:28 +00:00
VariableRuntimeCache.h MdeModulePkg: Apply uncrustify changes 2021-12-07 17:24:28 +00:00
VariableRuntimeDxe.inf MdeModulePkg: Drop VarLock from RuntimeDxe variable driver 2020-11-17 01:03:43 +00:00
VariableRuntimeDxe.uni MdeModulePkg: Replace BSD License with BSD+Patent License 2019-04-09 10:58:08 -07:00
VariableRuntimeDxeExtra.uni MdeModulePkg: Replace BSD License with BSD+Patent License 2019-04-09 10:58:08 -07:00
VariableSmm.c MdeModulePkg: Apply uncrustify changes 2021-12-07 17:24:28 +00:00
VariableSmm.inf MdeModulePkg: Drop VarLock from RuntimeDxe variable driver 2020-11-17 01:03:43 +00:00
VariableSmm.uni MdeModulePkg: Replace BSD License with BSD+Patent License 2019-04-09 10:58:08 -07:00
VariableSmmExtra.uni MdeModulePkg: Replace BSD License with BSD+Patent License 2019-04-09 10:58:08 -07:00
VariableSmmRuntimeDxe.c MdeModulePkg: Apply uncrustify changes 2021-12-07 17:24:28 +00:00
VariableSmmRuntimeDxe.inf MdeModulePkg: VariableSmmRuntimeDxe: Added request unblock memory interface 2021-03-05 15:25:07 +00:00
VariableSmmRuntimeDxe.uni MdeModulePkg: Replace BSD License with BSD+Patent License 2019-04-09 10:58:08 -07:00
VariableSmmRuntimeDxeExtra.uni MdeModulePkg: Replace BSD License with BSD+Patent License 2019-04-09 10:58:08 -07:00
VariableStandaloneMm.c MdeModulePkg: Apply uncrustify changes 2021-12-07 17:24:28 +00:00
VariableStandaloneMm.inf MdeModulePkg/VariableStandaloneMm: Set PcdFlashNvStorageVariableBase to Pcd 2021-02-23 15:40:37 +00:00
VariableTraditionalMm.c MdeModulePkg: Apply uncrustify changes 2021-12-07 17:24:28 +00:00