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 B0B5F941788 for ; Tue, 8 Aug 2023 14:59:13 +0000 (UTC) DKIM-Signature: a=rsa-sha256; bh=+so++Sq87gYeJg2njpWnYPAb2Ij1f0VWNSMC53F2QGM=; 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=1691506752; v=1; b=nyoxbppH9azydMP8kmvnwIECzGTtcgGg5fTRDnMrzrd/nmDlk7kipt0QeiIlrToJ27ensTuO 1vfXgzxHWAgqHdX32EeUVVGmv6bBM/r94nfksGljASFir5uLk3EG/Vt1DB/+13NYLp7i7u/a9jh cZI+AxaqxEOkql7N5/QJieTQ= X-Received: by 127.0.0.2 with SMTP id bcrOYY7687511xANeo9zgtXF; Tue, 08 Aug 2023 07:59:12 -0700 X-Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) by mx.groups.io with SMTP id smtpd.web11.57991.1691489992387840327 for ; Tue, 08 Aug 2023 03:19:52 -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-303-uZcuf-LTNIqtJsbV9rTM-g-1; Tue, 08 Aug 2023 06:19:48 -0400 X-MC-Unique: uZcuf-LTNIqtJsbV9rTM-g-1 X-Received: from smtp.corp.redhat.com (int-mx06.intmail.prod.int.rdu2.redhat.com [10.11.54.6]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id D33AA101A528; Tue, 8 Aug 2023 10:19:32 +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 ESMTP id A4FA72166B25; Tue, 8 Aug 2023 10:19:30 +0000 (UTC) From: "Zhenyu Zhang" To: devel@edk2.groups.io Cc: zhenyzha12@gmail.com, michael.d.kinney@intel.com, gaoliming@byosoft.com.cn, zhiguang.liu@intel.com, "Zhenyu Zhang" Subject: [edk2-devel] [PATCH 1/1] MdeModulePkg:Add variable store exceed maximum debug info Date: Tue, 8 Aug 2023 06:19:27 -0400 Message-Id: <20230808101927.2392291-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.6 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: kjiM8elb956BpF20AxX0mhnxx7686176AA= Content-Transfer-Encoding: quoted-printable 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=nyoxbppH; 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 From: "Zhenyu Zhang" 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)) 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 (#107641): https://edk2.groups.io/g/devel/message/107641 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-