summaryrefslogtreecommitdiff
path: root/UefiCpuPkg
diff options
context:
space:
mode:
authorWei6 Xu <wei6.xu@intel.com>2024-10-20 19:07:22 +0300
committermergify[bot] <37929162+mergify[bot]@users.noreply.github.com>2024-10-29 19:12:36 +0300
commit8d74a37944f9c4b53d83372c4078dde40e01e6b3 (patch)
tree77f702131081f83184fbc4ddf1298bace7719744 /UefiCpuPkg
parent334f5748869996eee994f9dee41f3e6a3d9bd087 (diff)
downloadedk2-8d74a37944f9c4b53d83372c4078dde40e01e6b3.tar.xz
StandaloneMmPkg/Core: Reset IsCommBufferValid to FALSE before MMI exits
In current implementation of MmCommunication, caller (StandaloneMmIplPei or MmCommunicationDxe) sets the IsCommBufferValid to TRUE and triggers synchronous MMI, then caller resets IsCommBufferValid to FLASE after MMI exits. If asynchronous MMI happens before caller resets the IsCommBufferValid to FALSE, StandaloneMmCore will mistakenly thought there is still a synchronous MMI and then update incorrect values into ReturnStatus and ReturnBufferSize. To fix the above issue, StandaloneMmCore should reset IsCommBufferValid to FALSE before MMI exits. Cc: Ard Biesheuvel <ardb+tianocore@kernel.org> Cc: Sami Mujawar <sami.mujawar@arm.com> Cc: Ray Ni <ray.ni@intel.com> Cc: Jiaxin Wu <jiaxin.wu@intel.com> Signed-off-by: Wei6 Xu <wei6.xu@intel.com>
Diffstat (limited to 'UefiCpuPkg')
0 files changed, 0 insertions, 0 deletions