Bug 2021116

Summary: [RFE] update variable locking
Product: Red Hat Enterprise Linux 9 Reporter: Gerd Hoffmann <kraxel>
Component: edk2Assignee: Oliver Steffen <osteffen>
Status: CLOSED ERRATA QA Contact: Xueqiang Wei <xuwei>
Severity: medium Docs Contact:
Priority: medium    
Version: CentOS StreamCC: berrange, bstinson, coli, jinzhao, juzhang, jwboyer, kkiwi, kraxel, mrezanin, osteffen, pbonzini, virt-maint
Target Milestone: rcKeywords: FutureFeature, TestOnly, Triaged
Target Release: ---Flags: pm-rhel: mirror+
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: edk2-20220221gitb24306f15d-1.el9 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2022-11-15 09:56:33 UTC Type: Feature Request
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On: 2056910    
Bug Blocks:    

Description Gerd Hoffmann 2021-11-08 11:56:19 UTC
Description of problem:

from edk2 boot log:

!!! DEPRECATED INTERFACE !!! VariableLockRequestToLock() will go away soon!
!!! DEPRECATED INTERFACE !!! Please move to use Variable Policy!
!!! DEPRECATED INTERFACE !!! Variable: 8BE4DF61-93CA-11D2-AA0D-00E098032B8C PlatformRecovery0000

Comment 4 Oliver Steffen 2022-02-21 13:35:28 UTC
This was already fixed upstream:
https://github.com/tianocore/edk2/commit/f4b7b473b4afd0093768905529bfae09a2061d41

Comment 5 Klaus Heinrich Kiwi 2022-03-23 18:58:46 UTC
After a discussion with Yash, moving back to assigned, as it reflects better that this is waiting for the rebase.

Comment 6 Xueqiang Wei 2022-04-28 16:29:44 UTC
Tested with edk2-20220126gitbb1bba3d77-1.el9, reproduced this bug.

Found the following string from edk2 boot log:

!!! DEPRECATED INTERFACE !!! VariableLockRequestToLock() will go away soon!
!!! DEPRECATED INTERFACE !!! Please move to use Variable Policy!
!!! DEPRECATED INTERFACE !!! Variable: 8BE4DF61-93CA-11D2-AA0D-00E098032B8C PlatformRecovery0000



Tested with edk2-ovmf-20220221gitb24306f15d-1.el9.noarch, not hit it. So set status to MODIFIED.

Versoins:
kernel-5.14.0-78.el9.x86_64
qemu-kvm-7.0.0-1.el9
edk2-ovmf-20220221gitb24306f15d-1.el9.noarch


Found the following string from edk2 boot log:

[BdsDxe] Locate Variable Policy protocol - Success
VarCheckPolicyLibMmiHandler - Command 3 returning Success.
ProtocolRegisterVariablePolicy - MmCommunication returned Success.
VarCheckPolicyLibMmiHandler - Command 3 returning Success.
ProtocolRegisterVariablePolicy - MmCommunication returned Success.
VarCheckPolicyLibMmiHandler - Command 3 returning Success.
ProtocolRegisterVariablePolicy - MmCommunication returned Success.
VarCheckPolicyLibMmiHandler - Command 3 returning Success.
ProtocolRegisterVariablePolicy - MmCommunication returned Success.
VarCheckPolicyLibMmiHandler - Command 3 returning Success.
ProtocolRegisterVariablePolicy - MmCommunication returned Success.
Variable Driver Auto Update PlatformLang, PlatformLang:en, Lang:eng Status: Success
VarCheckPolicyLibMmiHandler - Command 3 returning Success.
ProtocolRegisterVariablePolicy - MmCommunication returned Success.

Comment 8 Xueqiang Wei 2022-05-06 08:20:15 UTC
According to Comment 6, set status to VERIFIED. Thanks.

Comment 10 errata-xmlrpc 2022-11-15 09:56:33 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory (edk2 bug fix and enhancement update), and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHEA-2022:7971