From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mga01.intel.com (mga01.intel.com [192.55.52.88]) by mx.groups.io with SMTP id smtpd.web10.12378.1678423623374728389 for ; Thu, 09 Mar 2023 20:47:03 -0800 Authentication-Results: mx.groups.io; dkim=fail reason="unable to parse pub key" header.i=@intel.com header.s=intel header.b=BFOoiPNB; spf=pass (domain: intel.com, ip: 192.55.52.88, mailfrom: eric.dong@intel.com) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1678423623; x=1709959623; h=from:to:cc:subject:date:message-id:references: in-reply-to:content-transfer-encoding:mime-version; bh=GMNd9toCC/i7gs60e57EsEUo7habu/jCtdlDVdTvYsk=; b=BFOoiPNB3cEw9rcQ6cV6nTrQ+gP1OlG7poZGNe9VMapgM50k1UXp1y6g Bb6wW+lGjbBXY9U0ZBWtTqehnV2Zg6/Cx+KJalbHSB8TgpsdEEdMeQrYs PJOogsTmdmXE7OIj8iSerbMaNWT2bFimPRvxAI28lXE5con6SGggBgUO4 ze+vVkwMZ9aut5B2rdxiemS5MOmQ9bpzpViP6qIAgSGmNa5CwmRTDoxvL Dyp55sAzL53i/exPgQ0PdfgQoIdULHvgsj7gxcwulWPBZ4JiudDvNbqkb VMt0XXtrUWjeVUGC2vGEdsy87THPSKA9qA5XhLS/yRb6219AbuHdUYMTP g==; X-IronPort-AV: E=McAfee;i="6500,9779,10644"; a="364298236" X-IronPort-AV: E=Sophos;i="5.98,248,1673942400"; d="scan'208";a="364298236" Received: from orsmga006.jf.intel.com ([10.7.209.51]) by fmsmga101.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 09 Mar 2023 20:47:02 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6500,9779,10644"; a="655047555" X-IronPort-AV: E=Sophos;i="5.98,248,1673942400"; d="scan'208";a="655047555" Received: from fmsmsx601.amr.corp.intel.com ([10.18.126.81]) by orsmga006.jf.intel.com with ESMTP; 09 Mar 2023 20:47:02 -0800 Received: from fmsmsx610.amr.corp.intel.com (10.18.126.90) by fmsmsx601.amr.corp.intel.com (10.18.126.81) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.21; Thu, 9 Mar 2023 20:47:01 -0800 Received: from fmsedg601.ED.cps.intel.com (10.1.192.135) by fmsmsx610.amr.corp.intel.com (10.18.126.90) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.21 via Frontend Transport; Thu, 9 Mar 2023 20:47:01 -0800 Received: from NAM10-DM6-obe.outbound.protection.outlook.com (104.47.58.106) by edgegateway.intel.com (192.55.55.70) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.1.2507.21; Thu, 9 Mar 2023 20:47:00 -0800 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=TYxmgWpfjFDZUA8cL8Xr3dqlrr2zdfbN8+rLxR8BSKRIX+5bM6TdHmeuyCja7VKKbcpPgTjJrWVaRFx3zAy9b67WQcBSywEyu7JV5GlSZvZgaR3y5mitXfGxCqp3ZEfb/PtonPzdf26V1UOzxkT3Kl/flemLo0t/D2gmLPhuvta/m5K8c98MNjXk0/V5q4xpkF5gC/3J1h7chgrDnmNqWIF3Y/xC7w30Kw0pWCk6myIql29HNcl+cJ/VqgNKQi7aTlBOQVf5soiUQQSsoGL/wUMI5cStxSLXgRPnPfRd4sWeuh9j6OiTMzpeYiJfFA4j7s1kog5hk0VqddP1mPwO3g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=Rj/gpjwRy0F3HlCoDqDNgUoKrm44i6ICdwnH+4E74l8=; b=N6zHGxCkhk7RhO7FCbEtbrw4m1qpbt372ZYPXxKlDrW/MzNsZlUWN5Pan41z8Z+w3kmSMaVeRkL4ClYMe2pKJmrK7/pbo11yaucGN/3TEb1ehwWbqZFFU+SbzXywphxOW/0sL18JXgx8/t/pRV7uZ43ZcTU1D+kZ1zurQwUa4JQq3LiDzovkSSmY4By53AJulFYM8YPOiIYq5vRP1nmT7DlvnpzWf/L7UptvUkhKTMstmdgUW8MTDcLCX3vudZul1BWmI3PpdaosaNc6E0oKyKZLwsQ5whdxCbg58X+SANya+wyj5vaKC3AObb2aGmCoiczVrSiSQWwKhZYSPKcyvQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=intel.com; dmarc=pass action=none header.from=intel.com; dkim=pass header.d=intel.com; arc=none Received: from DM4PR11MB6480.namprd11.prod.outlook.com (2603:10b6:8:8d::17) by PH7PR11MB8009.namprd11.prod.outlook.com (2603:10b6:510:248::18) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6156.28; Fri, 10 Mar 2023 04:46:58 +0000 Received: from DM4PR11MB6480.namprd11.prod.outlook.com ([fe80::7de4:5764:eb3c:6c0d]) by DM4PR11MB6480.namprd11.prod.outlook.com ([fe80::7de4:5764:eb3c:6c0d%4]) with mapi id 15.20.6178.017; Fri, 10 Mar 2023 04:46:58 +0000 From: "Dong, Eric" To: "devel@edk2.groups.io" , "Reyes, Darbin" CC: "Narey, Jacob" Subject: Re: [edk2-devel] [PATCH] UefiCpuPkg/MicrocodeMeasurementDxe: Fix exception Thread-Topic: [edk2-devel] [PATCH] UefiCpuPkg/MicrocodeMeasurementDxe: Fix exception Thread-Index: AQHZUUpywyEbf01KgUmbUtOvWjbRg67zdAKQ Date: Fri, 10 Mar 2023 04:46:58 +0000 Message-ID: References: <7649d8fa34ad6b7f893fdd49efd4c3a7f2125fb6.1678229331.git.darbin.reyes@intel.com> In-Reply-To: <7649d8fa34ad6b7f893fdd49efd4c3a7f2125fb6.1678229331.git.darbin.reyes@intel.com> Accept-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=intel.com; x-ms-publictraffictype: Email x-ms-traffictypediagnostic: DM4PR11MB6480:EE_|PH7PR11MB8009:EE_ x-ms-office365-filtering-correlation-id: cb928ab8-0c24-41d9-0ce3-08db21227b77 x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: XPuTabu4T5RCo8u3LEPewcFdiSv1phUcOz7f3cxyByJu8omc1/eVVSouVZWK/G6ffZB2cL2AmdA6pgdof4ndKpiMch2A32rsLzcQZamQ1UA5L3PQbRdyNIGOkZHnmGuzHChOAPPGMqGMBY7khFXhYUnQyRc7S9XxQp70y7ZDenNuOHFGVz0De8LadvQatAP+a2pKGqIw5134Rgq6AWsFYksoHR/wsdSvx8yilwRMOH1bsYdp8k+ssa6wS/oECKFAKw6U11NQQ/J5vPKH7673M/S+T3OizGEfUAeHXdIbzgQP9/Y80i4vzgnDyOEbnUoPxa0aU0tplsj1ojbWdwfJIQ9/6yTp9I54AKLOem5eUTCHbGTYKQ8x/kkrVTwrVE4YbrkcGnimRvFJ11dHKHS3xpdQhDRrQ20kFN4YvpKa0zQrP+gZZvJQU4u12oFI+DorZSA6hOioL+FmoINjR7qkgKEyqW6jOA/Sr8ylI936SRNRMBA+ggnmrp8QpnLlnL4Tn7A0k6GwX2CN2x/i6VZXNdOjlzRKubBSA5uDbfxFa1Sa6byPjpdaXItx0407AKMdaW+fnEvWPxY+WbTYoL/N0MOTdWF3TS2RECOn8nL8Wry+sU9aabQHIf2SVS3ilXjySQ+mBYondEkSMC7B5tPXNNHjwF504/xjZgkZzj8kX9CTKnVf/iM6TTAHkh1xrY5iLcl3HzZLYr9BbjAaHUcmRDdoSsd1cbC3GYsdl62fHos= x-forefront-antispam-report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:DM4PR11MB6480.namprd11.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230025)(346002)(376002)(366004)(39860400002)(136003)(396003)(451199018)(66446008)(8676002)(66556008)(66946007)(66899018)(66476007)(64756008)(41300700001)(316002)(4326008)(76116006)(6636002)(8936002)(52536014)(110136005)(71200400001)(83380400001)(9686003)(33656002)(2906002)(7696005)(55016003)(5660300002)(38100700002)(478600001)(966005)(53546011)(107886003)(6506007)(38070700005)(86362001)(122000001)(26005)(186003)(82960400001);DIR:OUT;SFP:1102; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?us-ascii?Q?hYW59X+IfDDmwZXoKlcq24+rLje0yIPmzS7/vA3S9rrWtejsbzQUD8nW2KDH?= =?us-ascii?Q?mxF7LgT4E/hOXnM8ciT1A0tEUP3wLmVB5Td19JG/H/MiePuMZrig25LzPU+7?= =?us-ascii?Q?nik8ziwjiAWqp41A9NBvE3JJCxVutdRv7kj16yoVPX3V74KBDd/Bl9I9B0Uh?= =?us-ascii?Q?P3z4hW9h/Nqd/XfbNSw2oaVjN21MR1cN8n0x0n2ZGO812wSknmVb9DUgKBoZ?= =?us-ascii?Q?xcrblRvMl3qG6xQ0w6PQLp5Ag/4RAQYLRI9xe8qlCme3t+LihwgPw5HJ8FBv?= =?us-ascii?Q?LVVVTJJFNn/0fah0rZya02KPIzGKSxZ3i9Y06PIUC5rvQ17shDIkL5yPor1n?= =?us-ascii?Q?k5oI4SzIBULHBnbUmspa9LykEKFMZ3ZxfsXw6nc0NtpopPzcjXr1HgekyRKs?= =?us-ascii?Q?n+Aatq81mOU9zty9EGQhO0G2tsIPYx93Zr8H4Wc/r+lCRXgSOl488jn/zvPF?= =?us-ascii?Q?yl0pKWOXXEg/xoRiZe5Oo6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?us-ascii?Q?J89U/xpWcz6uY3ImXCIhFgwPMP8duiTOf7JvUNWPLVSrELNDvSt9qdVCttrn?= =?us-ascii?Q?MZPA+Gw1m2CVDYzGEb8SdPFyeRdIdXNx1ewhde+olY5kA8RV4hZzxDw5QcMp?= =?us-ascii?Q?MatAOg/7GkqS9nufUFXDNFxgUuPhQ2DMOIoP/kPK5EbtUtkc/NB3sFOUNa9J?= =?us-ascii?Q?FZit4XKd5ofChqAuTgy/HUJQIrHwlRkkeBOU2qzM?= MIME-Version: 1.0 X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: DM4PR11MB6480.namprd11.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: cb928ab8-0c24-41d9-0ce3-08db21227b77 X-MS-Exchange-CrossTenant-originalarrivaltime: 10 Mar 2023 04:46:58.6592 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 46c98d88-e344-4ed4-8496-4ed7712e255d X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: x6D6J8zHj0sKaHvvKI5VXC1QW5OHoikpSdnGKfH8IoUFE9SHYrRyenwu9sJWCL3swTJ/cJMzQ8G+//Y7hIaz2g== X-MS-Exchange-Transport-CrossTenantHeadersStamped: PH7PR11MB8009 Return-Path: eric.dong@intel.com X-OriginatorOrg: intel.com Content-Language: en-US Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Reviewed-by: Eric Dong -----Original Message----- From: devel@edk2.groups.io On Behalf Of Darbin Reyes Sent: Wednesday, March 8, 2023 7:04 AM To: devel@edk2.groups.io Cc: Reyes, Darbin ; Narey, Jacob Subject: [edk2-devel] [PATCH] UefiCpuPkg/MicrocodeMeasurementDxe: Fix excep= tion 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 specifi= er (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 --- 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, "E= RROR: TpmMeasureAndLogData failed with status %a!\n", Status));+ DEBUG (= (DEBUG_ERROR, "ERROR: TpmMeasureAndLogData failed with status %r!\n", Statu= s)); } FreePool (Offsets);--=20 2.38.1.windows.1 -=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/1768733 Group Owner: devel+owner@edk2.groups.io Unsubscribe: https://edk2.groups.io/g/devel/unsub [eric.dong@intel.com] -= =3D-=3D-=3D-=3D-=3D-=3D