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 BCB18D802AD for ; Tue, 22 Aug 2023 02:14:53 +0000 (UTC) DKIM-Signature: a=rsa-sha256; bh=Wwc4qNO0cXXcP7ZDMmh7DgSoI9uIudiXcOvAKvPNuSo=; 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=1692670492; v=1; b=npxyGJwDIWAkPdgOfMcpcrGi8KvSznbDdUQlrcuGaewAfhSNcGUkHu+7330AJ38l2lD8E4s8 N4ys4gzmyy7uXd5NdJTRrhpec+6cQyQz5ZZ34aMpfNhdbhqZ/UZdJZCJ4NVSq3KPK6if1K7J/w3 4GynFn9ep1iOJFksKMDCKPN8= X-Received: by 127.0.0.2 with SMTP id oQLOYY7687511xcE84FN4Pb2; Mon, 21 Aug 2023 19:14:52 -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.web11.8796.1692670491805278727 for ; Mon, 21 Aug 2023 19:14:52 -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-130-1YC_8R77OYSUgO57tbsIiw-1; Mon, 21 Aug 2023 22:14:47 -0400 X-MC-Unique: 1YC_8R77OYSUgO57tbsIiw-1 X-Received: from smtp.corp.redhat.com (int-mx07.intmail.prod.int.rdu2.redhat.com [10.11.54.7]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id C58E51C05AC3; Tue, 22 Aug 2023 02:14:46 +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 BD684140E96E; Tue, 22 Aug 2023 02:14:45 +0000 (UTC) From: "Zhenyu Zhang" To: devel@edk2.groups.io Cc: zhenyzha@redhat.com, Oliver Steffen , Gerd Hoffmann , Laszlo Ersek , Jian J Wang , Liming Gao , Hao A Wu Subject: [edk2-devel] [PATCH 1/1] MdeModulePkg:Add variable store exceed maximum debug info Date: Mon, 21 Aug 2023 22:14:17 -0400 Message-Id: <20230822021417.2751009-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.7 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: 0uyqXtwJmnTRB6tCUN0Fn3I3x7686176AA= 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=npxyGJwD; spf=pass (spool.mail.gandi.net: domain of bounce@groups.io designates 66.175.222.108 as permitted sender) smtp.mailfrom=bounce@groups.io; dmarc=fail reason="SPF not aligned (relaxed), DKIM not aligned (relaxed)" header.from=redhat.com (policy=none) 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)) Cc: Oliver Steffen Cc: Gerd Hoffmann Cc: Laszlo Ersek Cc: Jian J Wang Cc: Liming Gao Cc: Hao A Wu 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 (#107940): https://edk2.groups.io/g/devel/message/107940 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-