audk/MdeModulePkg/Universal
Abhi Singh 63923a5642 MdeModulePkg/Variable: TcgMorLockSmm Key Mismatch changes lock state
REF: https://bugzilla.tianocore.org/show_bug.cgi?id=4410

Inside TcgMorLockSmm.c, the SetVariableCheckHandlerMorLock() function
contains a scenario to prevent a possible dictionary attack on the MorLock
Key in accordance with the TCG Platform Reset Mitigation Spec v1.10.

The mechanism to prevent this attack must also change the MorLock Variable
Value to 0x01 to indicate Locked Without Key.

ASSERT_EFI_ERROR is added for error visibility since SetMorLockVariable
returns a status code

Cc: Jian J Wang <jian.j.wang@intel.com>
Cc: Liming Gao <gaoliming@byosoft.com.cn>
Signed-off-by: Abhi Singh <Abhi.Singh@arm.com>

Acked-by: Michael Kubacki <michael.kubacki@microsoft.com>
Reviewed-by: Liming Gao <gaoliming@byosoft.com.cn>
2023-07-10 12:24:59 +00:00
..
Acpi MdeModulePkg: Supporting S3 in 64bit PEI 2022-12-19 06:12:56 +00:00
BdsDxe MdeModulePkg: Fix conditionally uninitialized variables 2023-04-03 15:29:08 +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: Update code to be more C11 compliant by using __func__ 2023-04-10 14:19:57 +00:00
CapsuleRuntimeDxe MdeModulePkg/CapsuleRuntimeDxe: Add LoongArch64 architecture. 2022-10-14 02:16:33 +00:00
Console MdeModulePkg: remove garbage pixels in LaffStd glyphs 2023-01-20 17:39:25 +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: Replace Opcode with the corresponding instructions. 2022-03-01 01:45:47 +00:00
DevicePathDxe MdeModulePkg: Apply uncrustify changes 2021-12-07 17:24:28 +00:00
Disk MdeModulePkg: Update code to be more C11 compliant by using __func__ 2023-04-10 14:19:57 +00:00
DisplayEngineDxe MdeModulePkg: Fix conditionally uninitialized variables 2023-04-03 15:29:08 +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: Consume new alignment-related macros 2023-04-01 23:11:44 +00:00
EsrtDxe MdeModulePkg: Apply uncrustify changes 2021-12-07 17:24:28 +00:00
EsrtFmpDxe MdeModulePkg/EsrtFmpDxe: Support multiple devices with 0 HardwareInstance 2023-02-15 01:52:59 +00:00
FaultTolerantWriteDxe MdeModulePkg: Update code to be more C11 compliant by using __func__ 2023-04-10 14:19:57 +00:00
FaultTolerantWritePei MdeModulePkg/FaultTolerantWrite: Consume Variable Flash Info 2022-05-19 06:11:20 +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: Fix conditionally uninitialized variables 2023-04-03 15:29:08 +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: Update code to be more C11 compliant by using __func__ 2023-04-10 14:19:57 +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/RegularExpressionDxe: Fix Arm build error 2023-04-28 08:55:56 +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/SetupBrowserDxe:Follow spec'd way to reconnect driver 2022-07-22 06:19:53 +00:00
SmbiosDxe MdeModulePkg: Update code to be more C11 compliant by using __func__ 2023-04-10 14:19:57 +00:00
SmbiosMeasurementDxe MdeModulePkg SmbiosMeasurementDxe: Add Type4 CurrentSpeed to filter table 2022-09-14 10:11:53 +08: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/Variable: TcgMorLockSmm Key Mismatch changes lock state 2023-07-10 12:24:59 +00:00
WatchdogTimerDxe MdeModulePkg: Apply uncrustify changes 2021-12-07 17:24:28 +00:00