Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MdeModulePkg/Variable: TcgMorLockSmm Key Mismatch changes lock state #4546

Conversation

aabhi64
Copy link
Contributor

@aabhi64 aabhi64 commented Jun 12, 2023

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

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>
@aabhi64
Copy link
Contributor Author

aabhi64 commented Jun 16, 2023

@lgao4 Hello there, I was wondering if I could get a review on this patch?

Patch: https://edk2.groups.io/g/devel/topic/99493783#106089

@aabhi64 aabhi64 marked this pull request as draft July 9, 2023 23:09
@aabhi64 aabhi64 marked this pull request as ready for review July 9, 2023 23:14
@lgao4 lgao4 added the push Auto push patch series in PR if all checks pass label Jul 10, 2023
@lersek lersek closed this Oct 4, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
push Auto push patch series in PR if all checks pass
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants