From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mga14.intel.com (mga14.intel.com [192.55.52.115]) by mx.groups.io with SMTP id smtpd.web10.7804.1640104397441452467 for ; Tue, 21 Dec 2021 08:33:18 -0800 Authentication-Results: mx.groups.io; dkim=fail reason="unable to parse pub key" header.i=@intel.com header.s=intel header.b=N+bI8mCw; spf=pass (domain: intel.com, ip: 192.55.52.115, mailfrom: chandana.c.kumar@intel.com) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1640104397; x=1671640397; h=from:to:cc:subject:date:message-id:references: in-reply-to:content-transfer-encoding:mime-version; bh=xyUC7Hrnp7U3dPnaJLGYb/CFVMPuk/gCMyr6BusDhok=; b=N+bI8mCwIQXm+/EOSgTowMM7w/3rWNzPwhvw4ffj2n8li+ITDRiI2y7l jUZpyVe116kFDGjjW9pzRwGKtq8WObw6Lm69NKRCKU1LxUy4jMKl58A46 w8dTlWPWqU/q/jjzT19usfg6F+hnZuLV+4THmtvhKPjS2YbpbP2+f49uS DpULntxfhd95ao1CbxNkukrNWxvModV+w3hT0ziB2e8A+aztCUZi7i/BZ g21TG3XvjLVjWsKN10wBXf3zbGmvdg/1q5OSN5XOx7PVzql1VwPRue9pj PBn1zMtDjo7gg6DsTqPGhJJObc7HVKiEDw+ttXddN4IWciiFDybW4czPi w==; X-IronPort-AV: E=McAfee;i="6200,9189,10205"; a="240649625" X-IronPort-AV: E=Sophos;i="5.88,224,1635231600"; d="scan'208";a="240649625" Received: from orsmga004.jf.intel.com ([10.7.209.38]) by fmsmga103.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 21 Dec 2021 08:33:16 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.88,224,1635231600"; d="scan'208";a="616818262" Received: from orsmsx605.amr.corp.intel.com ([10.22.229.18]) by orsmga004.jf.intel.com with ESMTP; 21 Dec 2021 08:33:16 -0800 Received: from orsmsx611.amr.corp.intel.com (10.22.229.24) by ORSMSX605.amr.corp.intel.com (10.22.229.18) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2308.20; Tue, 21 Dec 2021 08:33:15 -0800 Received: from orsmsx610.amr.corp.intel.com (10.22.229.23) by ORSMSX611.amr.corp.intel.com (10.22.229.24) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2308.20; Tue, 21 Dec 2021 08:33:15 -0800 Received: from orsedg603.ED.cps.intel.com (10.7.248.4) by orsmsx610.amr.corp.intel.com (10.22.229.23) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2308.20 via Frontend Transport; Tue, 21 Dec 2021 08:33:15 -0800 Received: from NAM10-BN7-obe.outbound.protection.outlook.com (104.47.70.107) by edgegateway.intel.com (134.134.137.100) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.1.2308.20; Tue, 21 Dec 2021 08:33:15 -0800 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=lEfJeVnOhCnBWkuRH+mEKP3UfXME+zSUmxshcHHH1Xgtflb8EUIgUJEOZ2N0yGXjfAPf8jvnYAFDoMb0MeKQ3JUP9lq4aqSFNHseuOUg+gZ49KzJJ/CGC2JMzQ4yOy8AsfHAWjKOplzrTiPfWl4IEDM+zOccgCfXO9ww4gMNSYWmjeH3NpV4AiBkaHf75fzjXG1Dp1bWHCoFRJxn+bheMTJKLOJZUCZI90sSoysZviVPuKz4FO5FPvNl8c7ytjo2PJ7TIJizzscD1GY1Z4OfPakXeujymmPp2kKg46wWJ4Y7OK0AS0WoGPkxjbEUPkJ1ZYzkZYBThlpJQWy8XIoQrA== 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=iwY5gxCGKUHfpZye+LPDutYO0BV5ZDJlWiRnBXO5wNA=; b=eNcU6owxdTarYu/47nXbysO9htcb/4dsynZ2HjhbMY7xTTNr1y8ajSFoJbuK6bidvzxdSdx5A76xf7/23GAkcE1olng2W2Gqed3UM5LOgqVXup9WjBTWlzDZj7oavm3/CJr/Ei7n1GAPJXkhkKP6+nYbFeT5jETmFVlAP/DEgkZ9FNyOWQpUczPDi1HkGTGISlNeq4CXePaIYuOijNiA18vNVmYnzzmmO2EXbPiXz/npmX/CwrbgnfHMKrPTjnFeA1GFDkinzsk2BiLXVWD/NXT7OKV3wCY7ypKmVG5mJ4ZVCpt772mca9Va30KbT3xjrRyHZGYudRsiBc0ZFxLSWg== 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 MW5PR11MB5883.namprd11.prod.outlook.com (2603:10b6:303:19f::15) by MWHPR11MB1485.namprd11.prod.outlook.com (2603:10b6:301:d::18) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4801.14; Tue, 21 Dec 2021 16:33:13 +0000 Received: from MW5PR11MB5883.namprd11.prod.outlook.com ([fe80::e11b:3f43:b8ee:b57d]) by MW5PR11MB5883.namprd11.prod.outlook.com ([fe80::e11b:3f43:b8ee:b57d%4]) with mapi id 15.20.4690.026; Tue, 21 Dec 2021 16:33:13 +0000 From: "Kumar, Chandana C" To: "Lin, JackX" , "devel@edk2.groups.io" CC: "Chiu, Chasel" , "Dong, Eric" , "Yao, Jiewen" , "Ni, Ray" , "Chaganty, Rangasai V" , "Kuo, Donald" Subject: Re: [edk2-platforms: PATCH] System will occur a CPU exception error when sorting CPU APIC map, because of a pointer point to an wrong space. Thread-Topic: [edk2-platforms: PATCH] System will occur a CPU exception error when sorting CPU APIC map, because of a pointer point to an wrong space. Thread-Index: AQHX9ja4Ns9lvJeSukukJow7xu9Pdaw9JC+w Date: Tue, 21 Dec 2021 16:33:13 +0000 Message-ID: References: <20211221064740.1613-1-jackx.lin@intel.com> In-Reply-To: <20211221064740.1613-1-jackx.lin@intel.com> Accept-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: dlp-version: 11.6.200.16 dlp-product: dlpe-windows dlp-reaction: no-action authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=intel.com; x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: 135ba857-84f8-4163-dec7-08d9c49f9577 x-ms-traffictypediagnostic: MWHPR11MB1485:EE_ x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:1751; x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: Gh7NBDeYcCI0QMrujSRvWHfaWniuhXmXv8QbTHxvI0ENAfxlSSggXgngkhTAcN6tGbCXHZ/+eEcD3HNLcPRzjQrZCqWOd3HmfQ+sjvIPuHq9G/yHNx7AxtLfUmLv+QA5Rtv6IeJ/GRnVj92tFDCB1hr74B9Iv6hqIOJB9PuP8l2mIxlEZmhPGvw/JZGcVwSYs39q6dqcly3x5yMAV103I8kc+pkzAmDbNle7Ih48avXriZrui0bjhdjJ3Myd8SWkvX/vzOKPqenjBEKpKjlNpIEf9/kawPWUCWoDAfBGv6fburTEX/vq5UFQPhLt6Caq/G3UBqiymsDUQubWWd+4lq4dmk3Fi8N8bVglzklyalhR7xNLhbQAxYqO2nFNsjTllUnFdFMaZuSTrBrvuixuMgbZ5QlBAUWuSM9phKBBvZeXOaaJ9PzQ4gXu885P3DF4cPqDSfaKtKgRteON7HG6rpWa7nRK91CXp0WIFf90EOE1EoZGia2UINbu0mMd5YC7nWeCfbVQP01heCqtDDEpMVZnbab9fpr6g4QpxEvR61zRJxsqf8HxBKeQ3LFOue2G9q7HqSwn2jrhw8skFpHssPodA7BvcF0p8DxeIL+ovgPEDz2VebPjXVTZqz0JvmxmBfEGfBbK24YnoC9XS2050JiV2UDGm2zOhuPoaKa6Tm8B8niWDNz7jQUiIYV+iI7j6xYui5IqBV0UsRzfYCd59w== x-forefront-antispam-report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:MW5PR11MB5883.namprd11.prod.outlook.com;PTR:;CAT:NONE;SFS:(366004)(66476007)(66446008)(64756008)(66556008)(66946007)(38100700002)(76116006)(7696005)(26005)(33656002)(4326008)(2906002)(5660300002)(186003)(9686003)(86362001)(53546011)(110136005)(122000001)(55236004)(6506007)(316002)(55016003)(107886003)(54906003)(8936002)(71200400001)(52536014)(508600001)(82960400001)(8676002)(83380400001)(38070700005);DIR:OUT;SFP:1102; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?us-ascii?Q?tN1PFXg46k2kJKpl52OZlLCy5QeSssuAc6Ea7VNDnBHAo85zqhALNMXMoJO/?= =?us-ascii?Q?dd0ouGqTHz9JxjDb+Y0sR6BFs8q9chOXB2n0O3NsUAc1rhoboi4IBsFxKdYn?= =?us-ascii?Q?iqY+1SIQdLnxDhMYHKqyOXl2uQvhECiJGE9vvT5H1FCTo99CivudiWa6jTw/?= =?us-ascii?Q?3alE5JE82VyGcOK+93HGp9+vFu8gtBJRTqkdXBJ7C91GnXbSGHm3yrecOXCe?= =?us-ascii?Q?wWQmqczbETHuyfknpxa+j4RGCRIynVUR3aAStf07EiDfVgyDzIldwbf1uzP0?= =?us-ascii?Q?tpjsJUruRuoJv3S7OUVNWIl4hx2HbKHYC5xyfARyuK3GmSo/HAz5uilNjeHr?= =?us-ascii?Q?RgJmsqpTsNd7f2FTlACH2H18ky2b+t1rc16lY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x9kPqcNpcf6U/xec//ZoksQGHycd0uCayWrNm4NzhcJsq?= =?us-ascii?Q?msUNxAo/a0dWN3XKznHP/5qheZkdy3L7chDwqBJ25rTE9Ri5CcB1C82KGHyZ?= =?us-ascii?Q?LS8KVGrL4qDzXcTNY93FGNdJBQf7kQfGg3dTQ7u9SHEEgKxJWL8aLXFvNgdx?= =?us-ascii?Q?LVAnFKfrG0MeBWBKb9qxmTs9ulGY+73GewrIX3bqIS5zLlRNFnLpCzGbFr9l?= =?us-ascii?Q?bpewQJF9TF5OyOT0389Yks1AhkN3u1xbTZWS1FU/gvS7ZVBAQhke0FIMtKXq?= =?us-ascii?Q?5T6x2+XKzmHzNOqham6aWvZ0Enx1OLGjIbgALBYzi2EmFgizwnAuZb6dSdyc?= =?us-ascii?Q?mpXcamJ8T2tzo9AVM/cOGhG9FFzxlJSuafUUZfcjapmpOWH+MGpcuiaCOs1f?= =?us-ascii?Q?a19F/A=3D=3D?= MIME-Version: 1.0 X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: MW5PR11MB5883.namprd11.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 135ba857-84f8-4163-dec7-08d9c49f9577 X-MS-Exchange-CrossTenant-originalarrivaltime: 21 Dec 2021 16:33:13.4767 (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: Bw6b6GQGB+QzYRPuMaS+pBXgaWcJQq+3kLeIWFYKyBB/ztrWrUhkxablXKPZ//kL0lKjc99O5cNAN3AdX+ArMpMofY9mcTTX5sXxIOMSwyY= X-MS-Exchange-Transport-CrossTenantHeadersStamped: MWHPR11MB1485 Return-Path: chandana.c.kumar@intel.com X-OriginatorOrg: intel.com Content-Language: en-US Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Reviewed-by: Chandana C Kumar > -----Original Message----- > From: Lin, JackX > Sent: Tuesday, December 21, 2021 12:18 PM > To: devel@edk2.groups.io > Cc: Lin, JackX ; Lin, JackX ; C= hiu, > Chasel ; Dong, Eric ; Yao, Ji= ewen > ; Ni, Ray ; Chaganty, Rangasai V > ; Kuo, Donald ; Kuma= r, > Chandana C > Subject: [edk2-platforms: PATCH] System will occur a CPU exception error = when > sorting CPU APIC map, because of a pointer point to an wrong space. >=20 > Signed-off-by: JackX Lin > Cc: Chasel Chiu > Cc: Dong Eric > Cc: Jiewen Yao > Cc: Ray Ni > Cc: Rangasai V Chaganty > Cc: Donald Kuo > Cc: Chandana C Kumar > Cc: JackX Lin > --- > Platform/Intel/MinPlatformPkg/Acpi/AcpiTables/AcpiPlatform.c | 3 +-- > 1 file changed, 1 insertion(+), 2 deletions(-) >=20 > diff --git a/Platform/Intel/MinPlatformPkg/Acpi/AcpiTables/AcpiPlatform.c > b/Platform/Intel/MinPlatformPkg/Acpi/AcpiTables/AcpiPlatform.c > index 785cf4c2f9..05fc7799fb 100644 > --- a/Platform/Intel/MinPlatformPkg/Acpi/AcpiTables/AcpiPlatform.c > +++ b/Platform/Intel/MinPlatformPkg/Acpi/AcpiTables/AcpiPlatform.c > @@ -169,7 +169,7 @@ SortCpuLocalApicInTable ( > UINT32 Index; > UINT32 CurrProcessor; > UINT32 BspApicId; > - EFI_CPU_ID_ORDER_MAP *TempVal; > + EFI_CPU_ID_ORDER_MAP TempVal; > EFI_CPU_ID_ORDER_MAP *CpuIdMapPtr; > UINT32 CoreThreadMask; > EFI_CPU_ID_ORDER_MAP *TempCpuApicIdOrderTable; > @@ -183,7 +183,6 @@ SortCpuLocalApicInTable ( > } >=20 > TempCpuApicIdOrderTable =3D AllocateZeroPool (mNumberOfCpus * sizeof > (EFI_CPU_ID_ORDER_MAP)); > - TempVal =3D AllocateZeroPool (sizeof (EFI_CPU_ID_ORDER_MAP)); > CoreThreadMask =3D (UINT32) ((1 << mNumOfBitShift) - 1); >=20 > for (CurrProcessor =3D 0, Index =3D 0; CurrProcessor < mNumberOfCpus; > CurrProcessor++, Index++) { > -- > 2.32.0.windows.2