From nobody Sun Feb 8 19:30:21 2026 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of groups.io designates 66.175.222.108 as permitted sender) client-ip=66.175.222.108; envelope-from=bounce+27952+78948+1787277+3901457@groups.io; helo=mail02.groups.io; Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of groups.io designates 66.175.222.108 as permitted sender) smtp.mailfrom=bounce+27952+78948+1787277+3901457@groups.io; dmarc=fail(p=none dis=none) header.from=posteo.de ARC-Seal: i=1; a=rsa-sha256; t=1628502723; cv=none; d=zohomail.com; s=zohoarc; b=aFpmgmWbuJNx7cjvDrLG+V9mBEGf8rbJEyuVRyTujYgRSpXnCiYYGVoo0IX4CUZ0g8HjWY1h1Mz+7ZFw1IYCC+vWcX8vGP4ICXl1lXyJuC8/BjDGxsy/fl8XPtiBYkQQyXCYJTe0jPnKAaOHHRT/ZcHkyHCd8Q5pNOVSZ1QCTuA= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1628502723; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:List-Subscribe:List-Id:List-Help:List-Unsubscribe:MIME-Version:Message-ID:Reply-To:References:Sender:Subject:To; bh=qzNyP4hYShIqpzyhd4iCKUvUwJ/QmUDNyOIE79Mm+ig=; b=e9SH8fRZjW5HAOEdoIg5tcL/7k0zXrAsH6IIP2GbXlOlPkPGilUG42KxDUbi/6g8tfo+1PU7U56lMiWfeAQc0TK+Nw8MIsivQZZXztUYgy9P+6x4Z1uoszrli6mMyWqspJYu+ZYHHc1SYxj8L49SPghyvL1xVUnG/R3A5V5bn8o= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of groups.io designates 66.175.222.108 as permitted sender) smtp.mailfrom=bounce+27952+78948+1787277+3901457@groups.io; dmarc=fail header.from= (p=none dis=none) Received: from mail02.groups.io (mail02.groups.io [66.175.222.108]) by mx.zohomail.com with SMTPS id 1628502723891471.941546959824; Mon, 9 Aug 2021 02:52:03 -0700 (PDT) Return-Path: X-Received: by 127.0.0.2 with SMTP id lOgSYY1788612xiomuBW1yDW; Mon, 09 Aug 2021 02:52:03 -0700 X-Received: from mout02.posteo.de (mout02.posteo.de [185.67.36.66]) by mx.groups.io with SMTP id smtpd.web12.20844.1628502716522816136 for ; Mon, 09 Aug 2021 02:51:56 -0700 X-Received: from submission (posteo.de [89.146.220.130]) by mout02.posteo.de (Postfix) with ESMTPS id 8BD66240101 for ; Mon, 9 Aug 2021 11:51:54 +0200 (CEST) X-Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4Gjrvt0xNYz6tmN; Mon, 9 Aug 2021 11:51:54 +0200 (CEST) From: =?UTF-8?B?TWFydmluIEjDpHVzZXI=?= To: devel@edk2.groups.io Cc: Leif Lindholm , Ard Biesheuvel , Vitaly Cheptsov Subject: [edk2-devel] [PATCH v2 7/7] ArmPkg/DefaultExceptionHandlerLib: Mandatory LoadedImage for DebugImageInfoTable Date: Mon, 9 Aug 2021 09:51:32 +0000 Message-Id: <87b3d2de23505feb627506a008f9713fda7fd65a.1628502345.git.mhaeuser@posteo.de> In-Reply-To: References: MIME-Version: 1.0 Precedence: Bulk List-Unsubscribe: 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,mhaeuser@posteo.de X-Gm-Message-State: EOS4rRP0d9V0AYKfkCJYN39yx1787277AA= Content-Transfer-Encoding: quoted-printable DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=groups.io; q=dns/txt; s=20140610; t=1628502723; bh=aj2dRGrUeGqi3WB77dt0U6ZA9w5C8y/UZkRGj4oOqfA=; h=Cc:Content-Type:Date:From:Reply-To:Subject:To; b=N5Qrb6R61XjM90YPnuEO/fpCi7usBPQyvbnJ7ucGcc7D6lISpgEHyHDF5H+m0deX8Fb V9ZYLnp1s3kzSCb4q+sBWU/lcVTwwYeaanciU7Cb+npD92AQSzKWaLSmY38soeBz1BQHA VWl08fkIp+rGI8RBZaqxeAvq6s/LOO4nBqM= X-ZohoMail-DKIM: pass (identity @groups.io) X-ZM-MESSAGEID: 1628502724950100050 Content-Type: text/plain; charset="utf-8" To make parsing DebugImageInfoTable easier and safer, require the LoadedImage protocol instance to be valid for every NormalImage entry. Cc: Leif Lindholm Cc: Ard Biesheuvel Cc: Vitaly Cheptsov Signed-off-by: Marvin H=C3=A4user --- ArmPkg/Library/DefaultExceptionHandlerLib/DefaultExceptionHandlerUefi.c | = 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/ArmPkg/Library/DefaultExceptionHandlerLib/DefaultExceptionHand= lerUefi.c b/ArmPkg/Library/DefaultExceptionHandlerLib/DefaultExceptionHandl= erUefi.c index 9befb6d4db9b..d442b5d358b2 100644 --- a/ArmPkg/Library/DefaultExceptionHandlerLib/DefaultExceptionHandlerUefi= .c +++ b/ArmPkg/Library/DefaultExceptionHandlerLib/DefaultExceptionHandlerUefi= .c @@ -52,8 +52,9 @@ GetImageName ( Address =3D (CHAR8 *)(UINTN)FaultAddress; for (Entry =3D 0; Entry < DebugTableHeader->TableSize; Entry++, DebugTab= le++) { if (DebugTable->ImageInfoType !=3D NULL) { - if ((*DebugTable->ImageInfoType =3D=3D EFI_DEBUG_IMAGE_INFO_TYPE_NOR= MAL) && - (DebugTable->NormalImage->LoadedImageProtocolInstance !=3D NULL)= ) { + if (*DebugTable->ImageInfoType =3D=3D EFI_DEBUG_IMAGE_INFO_TYPE_NORM= AL) { + ASSERT (gDebugTable->NormalImage->LoadedImageProtocolInstance !=3D= NULL); + if ((Address >=3D (CHAR8 *)DebugTable->NormalImage->LoadedImagePro= tocolInstance->ImageBase) && (Address <=3D ((CHAR8 *)DebugTable->NormalImage->LoadedImagePr= otocolInstance->ImageBase + DebugTable->NormalImage->LoadedImageProtocolIns= tance->ImageSize))) { *ImageBase =3D (UINTN)DebugTable->NormalImage->LoadedImageProtoc= olInstance->ImageBase; --=20 2.31.1 -=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 (#78948): https://edk2.groups.io/g/devel/message/78948 Mute This Topic: https://groups.io/mt/84764911/1787277 Group Owner: devel+owner@edk2.groups.io Unsubscribe: https://edk2.groups.io/g/devel/unsub [importer@patchew.org] -=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-