Branch: refs/heads/master Home: https://github.com/tianocore/edk2 Commit: 8d74a37944f9c4b53d83372c4078dde40e01e6b3 https://github.com/tianocore/edk2/commit/8d74a37944f9c4b53d83372c4078dde40e01e6b3 Author: Wei6 Xu <wei6...@intel.com> Date: 2024-10-29 (Tue, 29 Oct 2024)
Changed paths: M StandaloneMmPkg/Core/StandaloneMmCore.c Log Message: ----------- 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+tianoc...@kernel.org> Cc: Sami Mujawar <sami.muja...@arm.com> Cc: Ray Ni <ray...@intel.com> Cc: Jiaxin Wu <jiaxin...@intel.com> Signed-off-by: Wei6 Xu <wei6...@intel.com> To unsubscribe from these emails, change your notification settings at https://github.com/tianocore/edk2/settings/notifications _______________________________________________ edk2-commits mailing list edk2-commits@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/edk2-commits