From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail02.groups.io (mail02.groups.io [66.175.222.108]) by spool.mail.gandi.net (Postfix) with ESMTPS id DEB89AC1445 for ; Tue, 8 Aug 2023 14:59:11 +0000 (UTC) DKIM-Signature: a=rsa-sha256; bh=7SP5BQfkG2xy2JGJl4tI5Tj5PHOuJZ+tTwBRFxEXJcg=; c=relaxed/simple; d=groups.io; h=From:To:Cc:Subject:Date:Message-Id:MIME-Version:Precedence:List-Subscribe:List-Help:Sender:List-Id:Mailing-List:Delivered-To:Reply-To:List-Unsubscribe-Post:List-Unsubscribe:Content-Transfer-Encoding:Content-Type; s=20140610; t=1691506750; v=1; b=C3qAFmPOmKo611fVcQCPbC4dfnyhqDcsnm0D7jEpdK94L2bws8u4/7SkFkcCiczmUH3wN8bh iIyuDljElcsB9BVXtWfTSr4aFxoNGVbdzmXtDJIeuyZJBWzeygIZmKWpGV9l6MVgO4PBSIkGoeR yLUk7+HDxStehxyVGe0yKS74= X-Received: by 127.0.0.2 with SMTP id FxEvYY7687511xbD896Dndi5; Tue, 08 Aug 2023 07:59:10 -0700 X-Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) by mx.groups.io with SMTP id smtpd.web10.53710.1691463522203478021 for ; Mon, 07 Aug 2023 19:58:42 -0700 X-Received: from mimecast-mx02.redhat.com (66.187.233.73 [66.187.233.73]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-12-_QzsR8O_On215dcGaPqO2Q-1; Mon, 07 Aug 2023 22:58:37 -0400 X-MC-Unique: _QzsR8O_On215dcGaPqO2Q-1 X-Received: from smtp.corp.redhat.com (int-mx08.intmail.prod.int.rdu2.redhat.com [10.11.54.8]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id 8FB283C0CD4A; Tue, 8 Aug 2023 02:58:36 +0000 (UTC) X-Received: from cav-thunderx1s-cn88xx-03.khw4.lab.eng.bos.redhat.com (cav-thunderx1s-cn88xx-03.khw4.lab.eng.bos.redhat.com [10.19.240.156]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 4E256C15BAD; Tue, 8 Aug 2023 02:58:34 +0000 (UTC) From: Zhenyu Zhang To: devel@edk2.groups.io Cc: michael.d.kinney@intel.com, gaoliming@byosoft.com.cn, zhiguang.liu@intel.com, osteffen@redhat.com, ghoffman@redhat.com, shahuang@redhat.com, shan.gavin@gmail.com, zhenyzha@redhat.com Subject: [edk2-devel] [PATCH 1/1] MdeModulePkg:Add variable store exceed maximum debug info Date: Mon, 7 Aug 2023 22:58:26 -0400 Message-Id: <20230808025826.2381948-1-zhenyzha@redhat.com> MIME-Version: 1.0\nContent-Type: text/plain; charset=UTF-8\nContent-Transfer-Encoding: 8bit X-Scanned-By: MIMEDefang 3.1 on 10.11.54.8 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Precedence: Bulk List-Subscribe: List-Help: Sender: devel@edk2.groups.io List-Id: Mailing-List: list devel@edk2.groups.io; contact devel+owner@edk2.groups.io Reply-To: devel@edk2.groups.io,zhenyzha@redhat.com List-Unsubscribe-Post: List-Unsubscribe=One-Click List-Unsubscribe: X-Gm-Message-State: 85pT2VhPW4PYZOv9zoDoHWfGx7686176AA= Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset="US-ASCII"; x-default=true X-GND-Status: LEGIT Authentication-Results: spool.mail.gandi.net; dkim=pass header.d=groups.io header.s=20140610 header.b=C3qAFmPO; dmarc=fail reason="SPF not aligned (relaxed), DKIM not aligned (relaxed)" header.from=redhat.com (policy=none); spf=pass (spool.mail.gandi.net: domain of bounce@groups.io designates 66.175.222.108 as permitted sender) smtp.mailfrom=bounce@groups.io 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 Cc: Gerd Hoffmann Cc: Gavin Shan Cc: Shaoqin Huang Signed-off-by: Zhenyu Zhang --- 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/7686176 Group Owner: devel+owner@edk2.groups.io Unsubscribe: https://edk2.groups.io/g/devel/unsub [rebecca@openfw.io] -=-=-=-=-=-=-=-=-=-=-=-