From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received-SPF: Pass (sender SPF authorized) identity=mailfrom; client-ip=134.134.136.24; helo=mga09.intel.com; envelope-from=star.zeng@intel.com; receiver=edk2-devel@lists.01.org Received: from mga09.intel.com (mga09.intel.com [134.134.136.24]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ml01.01.org (Postfix) with ESMTPS id BD91921B02845 for ; Sun, 22 Jul 2018 17:47:27 -0700 (PDT) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga006.fm.intel.com ([10.253.24.20]) by orsmga102.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 22 Jul 2018 17:47:27 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.51,391,1526367600"; d="scan'208";a="247951188" Received: from fmsmsx107.amr.corp.intel.com ([10.18.124.205]) by fmsmga006.fm.intel.com with ESMTP; 22 Jul 2018 17:47:14 -0700 Received: from fmsmsx120.amr.corp.intel.com (10.18.124.208) by fmsmsx107.amr.corp.intel.com (10.18.124.205) with Microsoft SMTP Server (TLS) id 14.3.319.2; Sun, 22 Jul 2018 17:47:14 -0700 Received: from shsmsx104.ccr.corp.intel.com (10.239.4.70) by fmsmsx120.amr.corp.intel.com (10.18.124.208) with Microsoft SMTP Server (TLS) id 14.3.319.2; Sun, 22 Jul 2018 17:47:14 -0700 Received: from shsmsx102.ccr.corp.intel.com ([169.254.2.124]) by SHSMSX104.ccr.corp.intel.com ([169.254.5.81]) with mapi id 14.03.0319.002; Mon, 23 Jul 2018 08:47:11 +0800 From: "Zeng, Star" To: "Wu, Hao A" , "edk2-devel@lists.01.org" CC: "Yao, Jiewen" , "Zeng, Star" Thread-Topic: [edk2] [PATCH 0/6] Check untested memory and EFI_MEMORY_RO Thread-Index: AQHUH+pFrBrDH1XNh0iRJOrlkJQVQqSb/Wgg Date: Mon, 23 Jul 2018 00:47:10 +0000 Message-ID: <0C09AFA07DD0434D9E2A0C6AEB0483103BB86DA8@shsmsx102.ccr.corp.intel.com> References: <20180720052626.24932-1-hao.a.wu@intel.com> In-Reply-To: <20180720052626.24932-1-hao.a.wu@intel.com> Accept-Language: zh-CN, en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [10.239.127.40] MIME-Version: 1.0 Subject: Re: [PATCH 0/6] Check untested memory and EFI_MEMORY_RO X-BeenThere: edk2-devel@lists.01.org X-Mailman-Version: 2.1.27 Precedence: list List-Id: EDK II Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 23 Jul 2018 00:47:27 -0000 Content-Language: en-US Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Reviewed-by: Star Zeng to this patch series. Thanks, Star -----Original Message----- From: edk2-devel [mailto:edk2-devel-bounces@lists.01.org] On Behalf Of Hao = Wu Sent: Friday, July 20, 2018 1:26 PM To: edk2-devel@lists.01.org Cc: Yao, Jiewen Subject: [edk2] [PATCH 0/6] Check untested memory and EFI_MEMORY_RO From: Jiewen Yao This patch series adds check for untested memory in GCD and check EFI_RUNTI= ME_RO in UEFI mem attrib table. The final result is: 1) untested memory is not present in SMM page table. 2) the PE code section of runtime service is not present in SMM page table. Jiewen Yao (6): MdePkg/SmmMemLib: Check for untested memory in GCD UefiCpuPkg/PiSmmCpu: Check for untested memory in GCD MdeModulePkg/DxeCore: Install UEFI mem attrib table at EndOfDxe. MdePkg/SmmMemLib: Check EFI_MEMORY_RO in UEFI mem attrib table. UefiCpuPkg/PiSmmCpu: Check EFI_RUNTIME_RO in UEFI mem attrib table. MdeModulePkg/DxeCore: Not update RtCode in MemAttrTable after EndOfDxe MdeModulePkg/Core/Dxe/Misc/MemoryAttributesTable.c | 36 +++- MdeModulePkg/Core/Dxe/Misc/PropertiesTable.c | 13 ++ MdePkg/Library/SmmMemLib/SmmMemLib.c | 152 +++++++++++++- MdePkg/Library/SmmMemLib/SmmMemLib.inf | 5 + UefiCpuPkg/PiSmmCpuDxeSmm/PiSmmCpuDxeSmm.h | 2 + UefiCpuPkg/PiSmmCpuDxeSmm/PiSmmCpuDxeSmm.inf | 1 + UefiCpuPkg/PiSmmCpuDxeSmm/SmmCpuMemoryManagement.c | 217 +++++++++++++++++= --- 7 files changed, 392 insertions(+), 34 deletions(-) -- 2.16.2.windows.1 _______________________________________________ edk2-devel mailing list edk2-devel@lists.01.org https://lists.01.org/mailman/listinfo/edk2-devel