]> git.proxmox.com Git - mirror_edk2.git/commit
MdeModulePkg: VariableSmmRuntimeDxe: Fix Variable Policy Message Length
authorKun Qin <kuqin12@gmail.com>
Tue, 25 Jan 2022 19:39:04 +0000 (03:39 +0800)
committermergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
Thu, 27 Jan 2022 02:16:17 +0000 (02:16 +0000)
commitee67067f174012abae98b1c9fce332d2ce90b952
tree1e601c990a35fb82dca35d89ca24d35df65ca5ea
parent7e5c603cba0823fd97456984f4cfc21c4c831b52
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>
MdeModulePkg/Universal/Variable/RuntimeDxe/VariablePolicySmmDxe.c