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 C680274003E for ; Tue, 8 Aug 2023 14:59:11 +0000 (UTC) DKIM-Signature: a=rsa-sha256; bh=f+iOwdgf4dCvQcBFsE6fToQn4A/jWobei+DACP+6zjE=; 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=aRfB/uGFNDhq3/8S3qYGrFE3fbIGSrqBprTKH2UIbDNnRWp/TB4HN/JPCY97+St69HrlY2JI +Qiebb85hrkujCkubia1CsBD5gIRnCIAO3FgIEfBf24n94YU0EnyockQulgXsT6TBUyzwryn1kP S1pIFokci39xvXxjzUfaHg0Q= X-Received: by 127.0.0.2 with SMTP id HGo6YY7687511x6XvtoTh7HF; Tue, 08 Aug 2023 07:59:10 -0700 X-Received: from us-smtp-delivery-44.mimecast.com (us-smtp-delivery-44.mimecast.com [207.211.30.44]) by mx.groups.io with SMTP id smtpd.web10.55512.1691473359242069809 for ; Mon, 07 Aug 2023 22:42:39 -0700 X-Received: from mimecast-mx02.redhat.com (mimecast-mx02.redhat.com [66.187.233.88]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-663-o-q13KZFNNuoLBfuqsuKcw-1; Tue, 08 Aug 2023 01:42:33 -0400 X-MC-Unique: o-q13KZFNNuoLBfuqsuKcw-1 X-Received: from smtp.corp.redhat.com (int-mx05.intmail.prod.int.rdu2.redhat.com [10.11.54.5]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id 74EE2101A53C; Tue, 8 Aug 2023 05:42:33 +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 330614E3D1; Tue, 8 Aug 2023 05:42:33 +0000 (UTC) From: "Zhenyu Zhangzhenyzha12@gmail.com" To: devel@edk2.groups.io Cc: zhenyzha12@gmail.com Subject: [edk2-devel] [PATCH 1/1] MdeModulePkg:Add variable store exceed maximum debug info Date: Tue, 8 Aug 2023 01:42:30 -0400 Message-Id: <20230808054230.2385213-1-Zhangzhenyzha12@gmail.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.5 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: gmail.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,zhenyzha12@gmail.com List-Unsubscribe-Post: List-Unsubscribe=One-Click List-Unsubscribe: X-Gm-Message-State: tggyJPsrWpLdXprkqfe2Ctdxx7686176AA= Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=WINDOWS-1252; x-default=true X-GND-Status: LEGIT Authentication-Results: spool.mail.gandi.net; dkim=pass header.d=groups.io header.s=20140610 header.b="aRfB/uGF"; dmarc=fail reason="SPF not aligned (relaxed), DKIM not aligned (relaxed)" header.from=gmail.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 =3D 0x3FF9C - CommonVariableTotalSize =3D 0x3FF98 RecordVarErrorFlag (0xEF) 9A144FE2A47E:937FE521-95AE-4D1A-8929- 48BCD90AD31A - 0x00000003 - 0x92 CommonVariableSpace =3D 0x3FF9C - CommonVariableTotalSize =3D 0x3FF98 Synchronous Exception at 0x000000023CA60374 ...... ASSERT [ArmCpuDxe] /builddir/build/BUILD/edk2-f80f052277c8/ArmPkg/ Library/DefaultExceptionHandlerLib/AArch64/ DefaultExceptionHandler.c(333): ((BOOLEAN) (0=3D=3D1)) 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/MdeMod= ulePkg/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 si= ze limitation. // Status =3D EFI_INVALID_PARAMETER; + DEBUG ((DEBUG_ERROR, "ERROR: The variable store exceed maximum v= ariable size limitation.\n")); goto Done; } =20 --=20 2.39.3 -=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D- Groups.io Links: You receive all messages sent to this group. View/Reply Online (#107640): https://edk2.groups.io/g/devel/message/107640 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] -=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-