From nobody Sat Apr 20 11:48:15 2024 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+100818+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+100818+1787277+3901457@groups.io; dmarc=fail(p=none dis=none) header.from=intel.com ARC-Seal: i=1; a=rsa-sha256; t=1678230808; cv=none; d=zohomail.com; s=zohoarc; b=NfNv+2Gmjk4KjTeOckSxnI6GvtqmdVBsWmLxVOel19Kjnn7kanI7ruCIfJOWVvj/GgUHXDuEJ4x0KOPCZH6uelq6zEpIrHlFB6YuEVng+GB6E5mSHkFzOz8rhix6HykNGB4q6mdQlbfzMJPjO493uapxG8iUvgai14nsv43nGRY= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1678230808; h=Content-Transfer-Encoding:Cc:Date:From:List-Subscribe:List-Id:List-Help:List-Unsubscribe:MIME-Version:Message-ID:Reply-To:Sender:Subject:To; bh=jHAfZVjPBYSPMdIJLhhkP5b44kTsD/mpd+5cAdbmXPA=; b=ENl6KWSjJK1wGFXXxjfiWxDMKY2HtLh4Pj70wYsHNen8viTd7puesqtcx/WwBOH3+1FT/+E7OZAxwlMbNE/7EFVTpMnmx1fd4blgvkwe8nkQArSqJE5ZQcBeq63u5CO0uoHuviXaV040LB/pm8YLTUW/GucUNw/5h8hqRjNFNX4= 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+100818+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 167823080812062.784619447619775; Tue, 7 Mar 2023 15:13:28 -0800 (PST) Return-Path: X-Received: by 127.0.0.2 with SMTP id mt7xYY1788612xs9kqenvUQI; Tue, 07 Mar 2023 15:13:27 -0800 X-Received: from mga06.intel.com (mga06.intel.com [134.134.136.31]) by mx.groups.io with SMTP id smtpd.web11.9224.1678230247321217669 for ; Tue, 07 Mar 2023 15:04:07 -0800 X-IronPort-AV: E=McAfee;i="6500,9779,10642"; a="398575975" X-IronPort-AV: E=Sophos;i="5.98,242,1673942400"; d="scan'208";a="398575975" X-Received: from fmsmga006.fm.intel.com ([10.253.24.20]) by orsmga104.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 07 Mar 2023 15:04:06 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6500,9779,10642"; a="922553253" X-IronPort-AV: E=Sophos;i="5.98,242,1673942400"; d="scan'208";a="922553253" X-Received: from darbinre-desk.amr.corp.intel.com ([10.53.80.90]) by fmsmga006.fm.intel.com with ESMTP; 07 Mar 2023 15:04:06 -0800 From: "Darbin Reyes" To: devel@edk2.groups.io Cc: Darbin Reyes , Jacob Narey Subject: [edk2-devel] [PATCH] UefiCpuPkg/MicrocodeMeasurementDxe: Fix exception Date: Tue, 7 Mar 2023 15:04:03 -0800 Message-Id: <7649d8fa34ad6b7f893fdd49efd4c3a7f2125fb6.1678229331.git.darbin.reyes@intel.com> 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,darbin.reyes@intel.com X-Gm-Message-State: JvBgVOjYdOTVgXycZYYuvFXmx1787277AA= Content-Transfer-Encoding: quoted-printable DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=groups.io; q=dns/txt; s=20140610; t=1678230807; bh=sS1Ieh1fx1C18Mv/attsDWtTXk5n8tDs7fa9mqWhSQg=; h=Cc:Date:From:Reply-To:Subject:To; b=PJOQfAwHhL4ZpZMdmWk8UuebYnBx2BZNfAH0MPDWrKLknXGKOgc93UuF2Y8tD8pVsOC 7fCj2qlqpwNNlW3vwLJalQp4OqnZLtnEaUAg5f0NJy2dDUFT+UZftMojzqOC9FYoZmMR4 Eegs4ZTqYl+oev1hjzC/Ykhde3FZ7jSkvsM= X-ZohoMail-DKIM: pass (identity @groups.io) X-ZM-MESSAGEID: 1678230809396100002 Content-Type: text/plain; charset="utf-8" REF: https://bugzilla.tianocore.org/show_bug.cgi?id=3D4360 An incorrect format specifier is being used in a DEBUG print, specifically, a variable of type EFI_STATUS was being printed with the %a format specifier (pointer to an ASCII string), thus the value of the Status variable was being treated as the address of a string, leading to a CPU exception, when encountered this bug manifests itself as a hang near "Ready to Boot Event", with the last DEBUG print being "INFO: Got MicrocodePatchHob with microcode patches starting address" followed by a CPU Exception dump. Signed-off-by: Darbin Reyes Reviewed-by: Jacob Narey Reviewed-by: Eric Dong Reviewed-by: Michael D Kinney --- UefiCpuPkg/MicrocodeMeasurementDxe/MicrocodeMeasurementDxe.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/UefiCpuPkg/MicrocodeMeasurementDxe/MicrocodeMeasurementDxe.c b= /UefiCpuPkg/MicrocodeMeasurementDxe/MicrocodeMeasurementDxe.c index 762ca159ff..5fd3b3365c 100644 --- a/UefiCpuPkg/MicrocodeMeasurementDxe/MicrocodeMeasurementDxe.c +++ b/UefiCpuPkg/MicrocodeMeasurementDxe/MicrocodeMeasurementDxe.c @@ -238,7 +238,7 @@ MeasureMicrocodePatches ( TotalMicrocodeSize) ); } else { - DEBUG ((DEBUG_ERROR, "ERROR: TpmMeasureAndLogData failed with status %= a!\n", Status)); + DEBUG ((DEBUG_ERROR, "ERROR: TpmMeasureAndLogData failed with status %= r!\n", Status)); } =20 FreePool (Offsets); --=20 2.38.1.windows.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 (#100818): https://edk2.groups.io/g/devel/message/100818 Mute This Topic: https://groups.io/mt/97461560/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-