When the variable store is full, edk2 will directly assert. Add debug information to help users understand what caused the assertion.
Actual results: RecordVarErrorFlag (0xEF) 9A144FE2A47E:937FE521-95AE-4D1A-8929- 48BCD90AD31A - 0x00000003 - 0x7E CommonVariableSpace = 0x3FF9C - CommonVariableTotalSize = 0x3FF98 RecordVarErrorFlag (0xEF) 9A144FE2A47E:937FE521-95AE-4D1A-8929- 48BCD90AD31A - 0x00000003 - 0x92 CommonVariableSpace = 0x3FF9C - CommonVariableTotalSize = 0x3FF98 Synchronous Exception at 0x000000023CA60374 ...... ASSERT [ArmCpuDxe] /builddir/build/BUILD/edk2-f80f052277c8/ArmPkg/ Library/DefaultExceptionHandlerLib/AArch64/ DefaultExceptionHandler.c(333): ((BOOLEAN) (0==1)) Cc: Oliver Steffen <ostef...@redhat.com> Cc: Gerd Hoffmann <ghoff...@redhat.com> Cc: Gavin Shan <gs...@redhat.com> Cc: Shaoqin Huang <shahu...@redhat.com> Signed-off-by: Zhenyu Zhang <zheny...@redhat.com> --- MdeModulePkg/Universal/Variable/RuntimeDxe/Variable.c | 1 + 1 file changed, 1 insertion(+) diff --git a/MdeModulePkg/Universal/Variable/RuntimeDxe/Variable.c b/MdeModulePkg/Universal/Variable/RuntimeDxe/Variable.c index 7a1331255b81..901112ac5961 100644 --- a/MdeModulePkg/Universal/Variable/RuntimeDxe/Variable.c +++ b/MdeModulePkg/Universal/Variable/RuntimeDxe/Variable.c @@ -1943,6 +1943,7 @@ UpdateVariable ( // Existing data size + new data size exceed maximum variable size limitation. // Status = EFI_INVALID_PARAMETER; + DEBUG ((DEBUG_ERROR, "ERROR: The variable store exceed maximum variable size limitation.\n")); goto Done; } -- 2.39.3 -=-=-=-=-=-=-=-=-=-=-=- Groups.io Links: You receive all messages sent to this group. View/Reply Online (#107639): https://edk2.groups.io/g/devel/message/107639 Mute This Topic: https://groups.io/mt/100623349/21656 Group Owner: devel+ow...@edk2.groups.io Unsubscribe: https://edk2.groups.io/g/devel/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-