mirror_edk2/MdeModulePkg/Universal/Variable/RuntimeDxe
Star Zeng 313491310c MdeModulePkg Variable: Handle variable Attributes mismatch case
between variable HOB and NV storage.

Variable HOB may be built by a system that supports and loads variable
default, the variables in the HOB will be flush to NV storage after
variable write search ready.
After that, if the variable's Attributes is changed by someone and
system reboots and tries to load default again, the variable Attributes
mismatch case between variable HOB and NV storage will appear.

Original code did not handle the case correctly, that may eventually
cause NV storage contains two valid same variables that will lead to
system hang if GetNextVariableName() called.

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Star Zeng <star.zeng@intel.com>
Reviewed-by: Ruiyu Ni <ruiyu.ni@intel.com>

git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@18225 6f19259b-4bc3-4df7-8a09-765794883524
2015-08-17 02:30:43 +00:00
..
Measurement.c MdeModulePkg Variable: Merge from Auth Variable driver in SecurityPkg 2015-07-01 03:08:29 +00:00
Reclaim.c MdeModulePkg Variable: Merge from Auth Variable driver in SecurityPkg 2015-07-01 03:08:29 +00:00
VarCheck.c MdeModulePkg Variable: Minor enhancement to VarCheck 2015-07-02 00:50:42 +00:00
Variable.c MdeModulePkg Variable: Handle variable Attributes mismatch case 2015-08-17 02:30:43 +00:00
Variable.h MdeModulePkg Variable: Merge from Auth Variable driver in SecurityPkg 2015-07-01 03:08:29 +00:00
VariableDxe.c MdeModulePkg VariableDxe: Correct address pointers from AuthVariableLib 2015-07-26 08:03:50 +00:00
VariableExLib.c MdeModulePkg Variable: Read MonotonicCount by ReadUnaligned64() 2015-07-27 00:49:00 +00:00
VariableRuntimeDxe.inf MdeModulePkg Variable: Merge from Auth Variable driver in SecurityPkg 2015-07-01 03:08:29 +00:00
VariableRuntimeDxe.uni MdeModulePkg Variable: Merge from Auth Variable driver in SecurityPkg 2015-07-01 03:08:29 +00:00
VariableRuntimeDxeExtra.uni MdeModulePkg: INF/DEC file updates to EDK II packages 2014-08-28 06:53:43 +00:00
VariableSmm.c MdeModulePkg: Remove mZeroGuid definition in Universal/Variable/RuntimeDxe 2015-07-07 02:56:01 +00:00
VariableSmm.inf MdeModulePkg: Remove mZeroGuid definition in Universal/Variable/RuntimeDxe 2015-07-07 02:56:01 +00:00
VariableSmm.uni MdeModulePkg Variable: Merge from Auth Variable driver in SecurityPkg 2015-07-01 03:08:29 +00:00
VariableSmmExtra.uni MdeModulePkg Variable: Merge from Auth Variable driver in SecurityPkg 2015-07-01 03:08:29 +00:00
VariableSmmRuntimeDxe.c MdeModulePkg Variable: Merge from Auth Variable driver in SecurityPkg 2015-07-01 03:08:29 +00:00
VariableSmmRuntimeDxe.inf MdeModulePkg Variable: Merge from Auth Variable driver in SecurityPkg 2015-07-01 03:08:29 +00:00
VariableSmmRuntimeDxe.uni MdeModulePkg Variable: Add missing warning annotation. 2014-11-19 01:08:23 +00:00
VariableSmmRuntimeDxeExtra.uni MdeModulePkg: INF/DEC file updates to EDK II packages 2014-08-28 06:53:43 +00:00