From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mga09.intel.com (mga09.intel.com [134.134.136.24]) by mx.groups.io with SMTP id smtpd.web09.2982.1640069440224615512 for ; Mon, 20 Dec 2021 22:50:40 -0800 Authentication-Results: mx.groups.io; dkim=fail reason="unable to parse pub key" header.i=@intel.com header.s=intel header.b=aeb0OuuW; spf=pass (domain: intel.com, ip: 134.134.136.24, mailfrom: ray.ni@intel.com) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1640069440; x=1671605440; h=from:to:cc:subject:date:message-id:references: in-reply-to:content-transfer-encoding:mime-version; bh=S8lJMrfcCydkx/MIK7vYoFTHXwMCjOgmwxeL2XdTlxw=; b=aeb0OuuWJcpudNsTc2OchCff4lVcKTA+X+7rCTnwWl9C1M5u7pUXII+7 EJAwSk2R5sVKmZmeu7Qb8u/cV4HxW1CRj9E1FOB2j4ZYCZ3ztbOikWfbZ cIhWZaiWQ/uaUpVqfGXPg9Hync/MG0HGsSkqXjK08oLGm8pYFvcERHS8b uFmNUEechUQJJF1CEQYu2vyp+36Dceoi5hJFtEpZVHnJSB452fLDVjWB5 ogsWNzr7TtRf8xm52dXoLjYk0zpKgB2NWxMnjZgwTBxAb1U6iA/CovoVv vtyytT7Q5mYdETFfG2ekqAGlqnxyUIIBgmQa3IrjqLmnyu+JcFpxEnAuC Q==; X-IronPort-AV: E=McAfee;i="6200,9189,10204"; a="240145567" X-IronPort-AV: E=Sophos;i="5.88,222,1635231600"; d="scan'208";a="240145567" Received: from fmsmga004.fm.intel.com ([10.253.24.48]) by orsmga102.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 20 Dec 2021 22:50:39 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.88,222,1635231600"; d="scan'208";a="586591628" Received: from fmsmsx602.amr.corp.intel.com ([10.18.126.82]) by fmsmga004.fm.intel.com with ESMTP; 20 Dec 2021 22:50:39 -0800 Received: from fmsmsx608.amr.corp.intel.com (10.18.126.88) by fmsmsx602.amr.corp.intel.com (10.18.126.82) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2308.20; Mon, 20 Dec 2021 22:50:39 -0800 Received: from fmsmsx603.amr.corp.intel.com (10.18.126.83) by fmsmsx608.amr.corp.intel.com (10.18.126.88) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2308.20; Mon, 20 Dec 2021 22:50:38 -0800 Received: from fmsedg601.ED.cps.intel.com (10.1.192.135) by fmsmsx603.amr.corp.intel.com (10.18.126.83) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2308.20 via Frontend Transport; Mon, 20 Dec 2021 22:50:38 -0800 Received: from NAM12-MW2-obe.outbound.protection.outlook.com (104.47.66.46) 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.2308.20; Mon, 20 Dec 2021 22:50:38 -0800 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=bqrFst8Yhtep5MPrqk1aKh1LjD6qVT0pTMzGkj8ylnDT23cHD9gpI6z9S1DIqkGirFnIN9GdLs6o8NrwVm9uqUwzh9XISXtSccX61JRm1UPTNRc27DE00lpmCVLcL0n1Kd/09xX/vuhnN1XzZSlnuC0HwDfbkLpDiOeGFfYPkFCCsPyWf4b9RNdP6NI7P9UUdarS5tKma1n7I4xRwaD7ZZMiSIaobVGvdnu1qs7WnnXSYlxVF6YUmud3qJCWknUIhLEKcFbXGW7mV+iW9exVC1vM4L8Ao6Nb9eg1lsOglt1hkEsIjZTLujNWKOCHe76zlBp+2RAIdSJXZNbCf6hOkA== 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=lQKr5TwtZFAcOhfE55dL9Hu7oStbmGjMG7uRtxvJBSA=; b=hMe9PNHdSijrYq8q22fkFWek+8LYxa3Xb7vsXBVGbqcY+ngCIOITbN/WOsrGYoTKdupCtvQmNtAGFfT0PkGVot46teSVhdUkjubJyJmv8AGFz/naGhhL2bG6jqNvkLEQ/TmCM3IBbfqQUS9Ji6a+n7AOa49f6f41JKeZQAbguueDw6iiGIU5YBwvl9L8tks43ixZjT/zVgMHIromsvou0t7UZGCQptuziOXumnaO3UZwGNCnnh8QqHzQBZ4lZUyt+jGzZonxZG8c95fsBRkt1oDX5wnLJO4THlW35l1GG/KhmR/UATuZ0e5q41IJEu2mlpUkYJt61jUese696U6xOg== 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 MWHPR11MB1631.namprd11.prod.outlook.com (2603:10b6:301:10::10) by MWHPR1101MB2238.namprd11.prod.outlook.com (2603:10b6:301:55::8) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4801.17; Tue, 21 Dec 2021 06:50:37 +0000 Received: from MWHPR11MB1631.namprd11.prod.outlook.com ([fe80::80af:ddc3:7f31:46a5]) by MWHPR11MB1631.namprd11.prod.outlook.com ([fe80::80af:ddc3:7f31:46a5%8]) with mapi id 15.20.4801.020; Tue, 21 Dec 2021 06:50:37 +0000 From: "Ni, Ray" To: "Lin, JackX" , "devel@edk2.groups.io" CC: "Chiu, Chasel" , "Dong, Eric" , "Yao, Jiewen" , "Chaganty, Rangasai V" , "Kuo, Donald" , "Kumar, Chandana C" 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: AQHX9ja5CZbgk9MlXEqYygzp3EGyw6w8gaPw Date: Tue, 21 Dec 2021 06:50:37 +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: 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: 6125606e-d271-40f4-fafa-08d9c44e31eb x-ms-traffictypediagnostic: MWHPR1101MB2238: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: GCF7B4eOzOqBbdqea5IlRGhcsR/cB1+j4XL3XfKkk9Jcuyj2V4VgcAMKrYxGvKQVXUryHwFIhun+gtT02k1b1YUGeukEM1KE9ePgBR85GlZZbXcaNHSR+uZc7huVJ+xbZ5qc19TbVQMjFHTszls1P4fIhNEVGJqR1N5kOt6PTMDkWAlYqipV86I3IaK84OM1m6r1QaYOlBNdK8vqCxohlU8czM43TJE8clRKmAmxwnXY6Qiol/MOyYC0wLj/+YlY0KaA3+ZODwVuWllPKwyzLQpafAU0DbdUNK8mwt/pOECN0BdlyYxKH8s6DpRkg68w9zhf4KOf22lyman736W7FjON1JqRoy50KlrAEdX1tOZOzrLdF+OgjIVdzW1k8B/DxYNyrU2IoEEFSlrAmukaPI79iC9fR5Bq+fWykcz9qO1I1XkA7R9QRMB8FsHpWZzhT/Ip3N/r1I7NhMvsaLCRwN6Vb0NMNx52rE0ZbRcGC32UBQkOwNsm2KI+ekHG6EHZ8WPFINK76HvJ3T1ELPqtWsTMxgTBv3f+dEw0z53Eau4nIP60g55Q7M6+OjD2d0wONNZEgw1KVN4sLPZM1kw3fa2Axg4rpbecmIS6x7RuRONm8Lf2Lo2ySPQ4e6CWwQoXK2OyMW0o5OeodYZ6Dre2Dz98usN+wNGyEHef3pjdePt/N2CqWKe0JAVjuFla/CWxnnSjA8tjmtlLnEMEhr4Guw== x-forefront-antispam-report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:MWHPR11MB1631.namprd11.prod.outlook.com;PTR:;CAT:NONE;SFS:(366004)(122000001)(6506007)(7696005)(53546011)(76116006)(33656002)(66556008)(66476007)(4326008)(82960400001)(26005)(66446008)(5660300002)(38100700002)(508600001)(8936002)(2906002)(64756008)(186003)(54906003)(66946007)(55016003)(110136005)(38070700005)(9686003)(8676002)(52536014)(86362001)(71200400001)(316002)(107886003)(83380400001);DIR:OUT;SFP:1102; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?us-ascii?Q?zWjCRMKmgtA1/pjVn7efFzN/mfVA6rh84T2PtCUSYtZe5uhdFBL95eiD4GkI?= =?us-ascii?Q?gTO/Ea+L66qhSzq3tK0lG+s5FtIURh1L0jcMzxwH1wzlSrqJ6frAKKJjKvUv?= =?us-ascii?Q?Jc6JRzQg76OFfFtAZWIu1UvDhRFH1OCrBE1Cxzvs68AJDDh+LCKaKm3dp+1u?= =?us-ascii?Q?lfuA96DDp1e4m4xxp5rMbqu/AgoBQcY11czVzNUSr+/X/whocLeBD9XdvveR?= =?us-ascii?Q?AwWx3K0XtWHQE7l2kqES5yht2bgLfb4ns1AHeftVf5OG4+baTlboyGoFj78b?= =?us-ascii?Q?8F3Y0r3WR7ZyWb9CRchTgsAThlFikk8+o4MMDAKZoynKOoqdfyU60wh1oUTR?= =?us-ascii?Q?PYaCfVHoas82v6eL+ohCo8Wbxg2HBC0+QKazmcBj0U9cdTXLs6r18zI9z6Vw?= =?us-ascii?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29KtDvYemj6ZJphG9hbdfNPeIKx?= =?us-ascii?Q?gaY1tdJ4Wgxtt9fWPKdpjZntao3AME6GHk0FnCbklHWZLEMs6jYoiDafF4ht?= =?us-ascii?Q?5kQOnJ/qeLEFaH0QNDSzp8Mdwq+O5WqAnBuJv1kxb+kK2VAAWtGggJyAxRX7?= =?us-ascii?Q?JcBjlTKDpoISWia6VbYVxFm8Ze0jfWRXcufiIq4ROXNGxfje2XmxT2f7AzwT?= =?us-ascii?Q?7Df1mhZFBK3sD+bryZcckvJpAZU5UQsW4msqx++gfe7zdrCL5eX5Gh6gwgRV?= =?us-ascii?Q?711Oyo9VGWyaPi6Y5Lbd3gZidWS8Afh9/KAALpKErXH+5w/TeEtg3Fbvql83?= =?us-ascii?Q?KYoR3RZMU8PgtHdbpxzQAJM=3D?= MIME-Version: 1.0 X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: MWHPR11MB1631.namprd11.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 6125606e-d271-40f4-fafa-08d9c44e31eb X-MS-Exchange-CrossTenant-originalarrivaltime: 21 Dec 2021 06:50:37.1058 (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: 05W9YXonmIGysXZ7b5qBX3JP5d46iPP8bF2z0P/cAox2/4KAwNkTKhWtjX+1DDkkL9iPA8YNHTGL9iKO/HWPzw== X-MS-Exchange-Transport-CrossTenantHeadersStamped: MWHPR1101MB2238 Return-Path: ray.ni@intel.com X-OriginatorOrg: intel.com Content-Language: en-US Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Reviewed-by: Ray Ni > -----Original Message----- > From: Lin, JackX > Sent: Tuesday, December 21, 2021 2:48 PM > To: devel@edk2.groups.io > Cc: Lin, JackX ; Lin, JackX ; C= hiu, Chasel ; Dong, Eric > ; Yao, Jiewen ; 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