From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mx0a-002e3701.pphosted.com (mx0a-002e3701.pphosted.com [148.163.147.86]) by mx.groups.io with SMTP id smtpd.web10.78.1582390850189747380 for ; Sat, 22 Feb 2020 09:00:50 -0800 Authentication-Results: mx.groups.io; dkim=missing; spf=pass (domain: hpe.com, ip: 148.163.147.86, mailfrom: prvs=0321aece44=daniel.schaefer@hpe.com) Received: from pps.filterd (m0134420.ppops.net [127.0.0.1]) by mx0b-002e3701.pphosted.com (8.16.0.42/8.16.0.42) with SMTP id 01MGw2hk005153; Sat, 22 Feb 2020 17:00:50 GMT Received: from g4t3426.houston.hpe.com (g4t3426.houston.hpe.com [15.241.140.75]) by mx0b-002e3701.pphosted.com with ESMTP id 2yasp6be48-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Sat, 22 Feb 2020 17:00:49 +0000 Received: from G1W8106.americas.hpqcorp.net (g1w8106.austin.hp.com [16.193.72.61]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-SHA384 (256/256 bits)) (No client certificate requested) by g4t3426.houston.hpe.com (Postfix) with ESMTPS id E86F16B; Sat, 22 Feb 2020 17:00:48 +0000 (UTC) Received: from G4W9335.americas.hpqcorp.net (16.208.33.85) by G1W8106.americas.hpqcorp.net (16.193.72.61) with Microsoft SMTP Server (TLS) id 15.0.1367.3; Sat, 22 Feb 2020 16:59:57 +0000 Received: from G9W9210.americas.hpqcorp.net (2002:10dc:429b::10dc:429b) by G4W9335.americas.hpqcorp.net (2002:10d0:2155::10d0:2155) with Microsoft SMTP Server (TLS) id 15.0.1367.3; Sat, 22 Feb 2020 16:59:57 +0000 Received: from NAM11-BN8-obe.outbound.protection.outlook.com (15.241.52.13) by G9W9210.americas.hpqcorp.net (16.220.66.155) with Microsoft SMTP Server (TLS) id 15.0.1367.3 via Frontend Transport; Sat, 22 Feb 2020 16:59:57 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=CnYDgY7t0vYpFmfkOBiP6zT+Wyv057lUW8cEWxhX8/arZJ4icyUzDxBb+FBonFf0dATgsentH3a8wEZmp2I7hIbbv+OcGxdHIPQljT4HWLceSZ/BHJNWmrDrxO92xEQPWIcXN4JNXIYRpkCyC0Pn+z9QF8ds+UfEwhErMsJ3L0g1Zz/cLURmaTEcs963TYo0AUM/gi4bksk/m/eu3kHkYue/4URMx06HmapXuR0QHE9BVbFKcjGCmkhALGj0xfHiQjKp+ywcoCDTjVupWSnve1tjIltqe9JrYMRFnB/hd6OEaJoMmsHqxqMv8idKQMMvA6y3ySvU2eyMiqQN5/sZFA== 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-SenderADCheck; bh=FCUKmB8EHwI4G2IsbzsA6sw52eVTFyUlxO8WCXDn4mI=; b=hC2mAmtpi8G9H5rmY+rQ3ZPfJrKzdKyGiN4bUE0lbZ/yA12a9o92sGrFKDGkou9uEaY4mo/z2lNNfu5Ka8ht8xfDEtC+6Zvpi7Ym9qWyu9Q1ZfzUC9MiSmpVuphioMfGZYZsGQXe5w++xPbeKYjnRbkr+5Wh20Dr4ZynxXCLlw6SgnFaB8+gGo7BrMKLjVzZwqyyk3NjYuRWVe/4h0p2ZB7K14UCLYw404S+6ZzWZ4Ua0Tz11ETWmLOyN2Qx6qsPQRg/rYz1a8MlkxYgr+m+45LDoxZqAdPXxwPdCkYJHKFETbmBd/9aSXPjunidwUD+eTGnVn91t/WqWjgWV7Wqdw== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=hpe.com; dmarc=pass action=none header.from=hpe.com; dkim=pass header.d=hpe.com; arc=none Received: from DF4PR8401MB0777.NAMPRD84.PROD.OUTLOOK.COM (2a01:111:e400:7609::13) by DF4PR8401MB0764.NAMPRD84.PROD.OUTLOOK.COM (2a01:111:e400:760b::16) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2750.21; Sat, 22 Feb 2020 16:59:53 +0000 Received: from DF4PR8401MB0777.NAMPRD84.PROD.OUTLOOK.COM ([fe80::b801:ced5:4070:1d8a]) by DF4PR8401MB0777.NAMPRD84.PROD.OUTLOOK.COM ([fe80::b801:ced5:4070:1d8a%2]) with mapi id 15.20.2750.021; Sat, 22 Feb 2020 16:59:53 +0000 From: "Schaefer, Daniel Helmut (DualStudy)" To: CC: Abner Chang , Gilbert Chen , Leif Lindholm , Eric Dong , Ray Ni , Hao A Wu , Dandan Bi , Liming Gao Subject: [PATCH 1/3] MdeModulePkg: Restrict libraries using SMM to x86 Date: Sat, 22 Feb 2020 17:59:16 +0100 Message-ID: <20200222165918.20834-2-daniel.schaefer@hpe.com> X-Mailer: git-send-email 2.25.0 In-Reply-To: <20200222165918.20834-1-daniel.schaefer@hpe.com> References: <20200222165918.20834-1-daniel.schaefer@hpe.com> X-ClientProxiedBy: ZR0P278CA0032.CHEP278.PROD.OUTLOOK.COM (2603:10a6:910:1c::19) To DF4PR8401MB0777.NAMPRD84.PROD.OUTLOOK.COM (2a01:111:e400:7609::13) X-MS-Exchange-MessageSentRepresentingType: 1 Received: from x360-nix.fritz.box (84.58.209.92) by ZR0P278CA0032.CHEP278.PROD.OUTLOOK.COM (2603:10a6:910:1c::19) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2750.18 via Frontend Transport; Sat, 22 Feb 2020 16:59:51 +0000 X-Mailer: git-send-email 2.25.0 X-Originating-IP: [84.58.209.92] X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-HT: Tenant X-MS-Office365-Filtering-Correlation-Id: bc43550f-d1ba-4456-0f56-08d7b7b8a30a X-MS-TrafficTypeDiagnostic: DF4PR8401MB0764: X-MS-Exchange-Transport-Forked: True X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:1051; X-Forefront-PRVS: 03218BFD9F X-Forefront-Antispam-Report: SFV:NSPM;SFS:(10019020)(39860400002)(136003)(376002)(396003)(366004)(346002)(199004)(189003)(66556008)(66476007)(6506007)(6916009)(54906003)(19627235002)(66946007)(1076003)(2906002)(36756003)(26005)(16526019)(186003)(2616005)(956004)(44832011)(52116002)(4326008)(316002)(6512007)(6486002)(86362001)(5660300002)(8936002)(478600001)(6666004)(81156014)(81166006)(8676002);DIR:OUT;SFP:1102;SCL:1;SRVR:DF4PR8401MB0764;H:DF4PR8401MB0777.NAMPRD84.PROD.OUTLOOK.COM;FPR:;SPF:None;LANG:en;PTR:InfoNoRecords;A:1;MX:1; Received-SPF: None (protection.outlook.com: hpe.com does not designate permitted sender hosts) X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: wTW2TX3HGyD17SWNaRNhcQ5tw8S/1sfFteEUmp2LUoLEPY96AAjMTN16wEkelKAuzwjdbLk/2OWT0d4TcsNL8MCFq56STI+vMON53Ks2DLfLR/NFQNIf1wAkDK439eMbCD1kSjzdmRZjXx1F5yo0VFUJXEskeqoIZIn6WbBsZaKM9v/86Iw5iWHSDeORLM58Nw2vaIrZ8aa184Nsr8PRFGWimkWuFWvkqT203fgUufS5DAKyQzTNJEg2H/7+f/Reu68w8T0lOytzBJqoQKtxEn780wkCrNjb9lK7K6QhZdZnu1bomzsPlhOpvmaKikq5FV0j+ikmZ6YNJtiaZh1Sz95+rDYauUiaCW+Ot2Es2BvAiu3QTztoVpmd8STj95AZSJMWH18jsgtvkmE+67fsUs/Tweu5VeYGGPQNvRk4yAwdwA2CC6DMEdeXt4OYxgwizrzZTi5UvbW/UPQUhXWlxCG0RPuw/0nkhQkHej+gsQJ7bJU3tXPxsNAyHK83WykckcyHHJ6oznKZgrew1cjQVQ== X-MS-Exchange-AntiSpam-MessageData: 6d1SnIsZ03Ah7Qw5Gz97eRqPOoIVLZkAcAGq8hc4Z6OZrEoPVglFFHfSlscy7P6CkXl6BfNlUfjERwiNXCHH2NOqjuZ1ZQWQlSZMhk1/tFGa+aYircT2tcx9AINe1b2jYib4NMXImRgFLKrAuE+Fcg== X-MS-Exchange-CrossTenant-Network-Message-Id: bc43550f-d1ba-4456-0f56-08d7b7b8a30a X-MS-Exchange-CrossTenant-OriginalArrivalTime: 22 Feb 2020 16:59:53.5044 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 105b2061-b669-4b31-92ac-24d304d195dc X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: NsDopv4L11yWbpaFy6Q5yvuedNq2dUy6kESnFE2o89/fdUKo4rIiRHq4DdvxYijASl6gliwu1E8Rm+PIzuXW3Q== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DF4PR8401MB0764 X-OriginatorOrg: hpe.com X-Proofpoint-UnRewURL: 0 URL was un-rewritten MIME-Version: 1.0 X-HPE-SCL: -1 X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:6.0.138,18.0.572 definitions=2020-02-22_05:2020-02-21,2020-02-22 signatures=0 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 phishscore=0 spamscore=0 priorityscore=1501 impostorscore=0 clxscore=1015 bulkscore=0 malwarescore=0 adultscore=0 mlxscore=0 mlxlogscore=999 suspectscore=0 lowpriorityscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2001150001 definitions=main-2002220144 Content-Type: text/plain Content-Transfer-Encoding: quoted-printable The modules: MdeModulePkg/Bus/Ata/AhciPei/AhciPei.inf MdeModulePkg/Bus/Pci/NvmExpressPei/NvmExpressPei.inf MdeModulePkg/Universal/Acpi/FirmwarePerformanceDataTableDxe/FirmwarePerfo= rmanceDxe.inf seem like they are independent of SMM but they actually do requires SMM's LockBoxLib. Ideally they would be rewritten to not require SMM on non x86. REF:https://bugzilla.tianocore.org/show_bug.cgi?id=3D2549 Signed-off-by: Daniel Schaefer Cc: Abner Chang Cc: Gilbert Chen Cc: Leif Lindholm Cc: Eric Dong Cc: Ray Ni Cc: Hao A Wu Cc: Dandan Bi Cc: Liming Gao --- MdeModulePkg/MdeModulePkg.dsc | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/MdeModulePkg/MdeModulePkg.dsc b/MdeModulePkg/MdeModulePkg.dsc index f7dbb27ce25d..fc8c3976cca5 100644 --- a/MdeModulePkg/MdeModulePkg.dsc +++ b/MdeModulePkg/MdeModulePkg.dsc @@ -109,6 +109,8 @@ [LibraryClasses.common.PEIM] HobLib|MdePkg/Library/PeiHobLib/PeiHobLib.inf=0D MemoryAllocationLib|MdePkg/Library/PeiMemoryAllocationLib/PeiMemoryAlloc= ationLib.inf=0D ExtractGuidedSectionLib|MdePkg/Library/PeiExtractGuidedSectionLib/PeiExt= ractGuidedSectionLib.inf=0D +=0D +[LibraryClasses.IA86.PEIM, LibraryClasses.X64.PEIM]=0D LockBoxLib|MdeModulePkg/Library/SmmLockBoxLib/SmmLockBoxPeiLib.inf=0D =0D [LibraryClasses.common.DXE_CORE]=0D @@ -228,7 +230,6 @@ [Components] MdeModulePkg/Bus/Pci/PciBusDxe/PciBusDxe.inf=0D MdeModulePkg/Bus/Pci/IncompatiblePciDeviceSupportDxe/IncompatiblePciDevi= ceSupportDxe.inf=0D MdeModulePkg/Bus/Pci/NvmExpressDxe/NvmExpressDxe.inf=0D - MdeModulePkg/Bus/Pci/NvmExpressPei/NvmExpressPei.inf=0D MdeModulePkg/Bus/Pci/SdMmcPciHcDxe/SdMmcPciHcDxe.inf=0D MdeModulePkg/Bus/Pci/SdMmcPciHcPei/SdMmcPciHcPei.inf=0D MdeModulePkg/Bus/Sd/EmmcBlockIoPei/EmmcBlockIoPei.inf=0D @@ -251,7 +252,6 @@ [Components] MdeModulePkg/Bus/Pci/SataControllerDxe/SataControllerDxe.inf=0D MdeModulePkg/Bus/Ata/AtaBusDxe/AtaBusDxe.inf=0D MdeModulePkg/Bus/Ata/AtaAtapiPassThru/AtaAtapiPassThru.inf=0D - MdeModulePkg/Bus/Ata/AhciPei/AhciPei.inf=0D MdeModulePkg/Bus/Scsi/ScsiBusDxe/ScsiBusDxe.inf=0D MdeModulePkg/Bus/Scsi/ScsiDiskDxe/ScsiDiskDxe.inf=0D MdeModulePkg/Bus/Usb/UsbBusDxe/UsbBusDxe.inf=0D @@ -395,7 +395,6 @@ [Components] =0D LockBoxLib|MdeModulePkg/Library/LockBoxNullLib/LockBoxNullLib.inf=0D }=0D - MdeModulePkg/Universal/Acpi/FirmwarePerformanceDataTableDxe/FirmwarePerf= ormanceDxe.inf=0D MdeModulePkg/Universal/Acpi/BootGraphicsResourceTableDxe/BootGraphicsRes= ourceTableDxe.inf=0D MdeModulePkg/Universal/SectionExtractionDxe/SectionExtractionDxe.inf {=0D =0D @@ -447,6 +446,8 @@ [Components.IA32, Components.X64, Components.ARM, Compo= nents.AARCH64] [Components.IA32, Components.X64]=0D MdeModulePkg/Universal/DebugSupportDxe/DebugSupportDxe.inf=0D MdeModulePkg/Application/SmiHandlerProfileInfo/SmiHandlerProfileInfo.inf= =0D + MdeModulePkg/Bus/Ata/AhciPei/AhciPei.inf=0D + MdeModulePkg/Bus/Pci/NvmExpressPei/NvmExpressPei.inf=0D MdeModulePkg/Core/PiSmmCore/PiSmmIpl.inf=0D MdeModulePkg/Core/PiSmmCore/PiSmmCore.inf=0D MdeModulePkg/Universal/Variable/RuntimeDxe/VariableSmm.inf {=0D @@ -478,6 +479,7 @@ [Components.IA32, Components.X64] MdeModulePkg/Library/SmmSmiHandlerProfileLib/SmmSmiHandlerProfileLib.inf= =0D MdeModulePkg/Library/LzmaCustomDecompressLib/LzmaArchCustomDecompressLib= .inf=0D MdeModulePkg/Universal/Acpi/BootScriptExecutorDxe/BootScriptExecutorDxe.= inf=0D + MdeModulePkg/Universal/Acpi/FirmwarePerformanceDataTableDxe/FirmwarePerf= ormanceDxe.inf=0D MdeModulePkg/Universal/Acpi/S3SaveStateDxe/S3SaveStateDxe.inf=0D MdeModulePkg/Universal/Acpi/SmmS3SaveState/SmmS3SaveState.inf=0D MdeModulePkg/Universal/Acpi/FirmwarePerformanceDataTableSmm/FirmwarePerf= ormanceSmm.inf=0D @@ -487,6 +489,7 @@ [Components.IA32, Components.X64] MdeModulePkg/Universal/SmmCommunicationBufferDxe/SmmCommunicationBufferD= xe.inf=0D MdeModulePkg/Universal/Disk/RamDiskDxe/RamDiskDxe.inf=0D =0D +=0D [Components.X64]=0D MdeModulePkg/Universal/CapsulePei/CapsuleX64.inf=0D =0D --=20 2.25.0