From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received-SPF: Pass (sender SPF authorized) identity=mailfrom; client-ip=192.55.52.120; helo=mga04.intel.com; envelope-from=jian.j.wang@intel.com; receiver=edk2-devel@lists.01.org Received: from mga04.intel.com (mga04.intel.com [192.55.52.120]) (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 3618021EA15AD for ; Tue, 10 Oct 2017 17:49:28 -0700 (PDT) Received: from fmsmga003.fm.intel.com ([10.253.24.29]) by fmsmga104.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 10 Oct 2017 17:52:56 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.43,359,1503385200"; d="scan'208";a="908717364" Received: from fmsmsx105.amr.corp.intel.com ([10.18.124.203]) by FMSMGA003.fm.intel.com with ESMTP; 10 Oct 2017 17:52:56 -0700 Received: from shsmsx101.ccr.corp.intel.com (10.239.4.153) by FMSMSX105.amr.corp.intel.com (10.18.124.203) with Microsoft SMTP Server (TLS) id 14.3.319.2; Tue, 10 Oct 2017 17:52:56 -0700 Received: from shsmsx103.ccr.corp.intel.com ([169.254.4.213]) by SHSMSX101.ccr.corp.intel.com ([169.254.1.159]) with mapi id 14.03.0319.002; Wed, 11 Oct 2017 08:52:46 +0800 From: "Wang, Jian J" To: "Wang, Jian J" , "edk2-devel@lists.01.org" CC: "Yao, Jiewen" , "Dong, Eric" , "Kinney, Michael D" , "Zeng, Star" Thread-Topic: [edk2] [PATCH v4 0/6] Add NULL pointer detection feature Thread-Index: AQHTQQlkEJ3lCP2Cu02+xEGZReVw3KLd07BA Date: Wed, 11 Oct 2017 00:52:46 +0000 Message-ID: References: <20171009141722.992-1-jian.j.wang@intel.com> In-Reply-To: <20171009141722.992-1-jian.j.wang@intel.com> Accept-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: dlp-product: dlpe-windows dlp-version: 11.0.0.116 dlp-reaction: no-action x-originating-ip: [10.239.127.40] MIME-Version: 1.0 Subject: Re: [PATCH v4 0/6] Add NULL pointer detection feature X-BeenThere: edk2-devel@lists.01.org X-Mailman-Version: 2.1.22 Precedence: list List-Id: EDK II Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 11 Oct 2017 00:49:28 -0000 Content-Language: en-US Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Hi, Any more comments for this version of patch? If no, I'll check in it today.= Thanks. Jian > -----Original Message----- > From: edk2-devel [mailto:edk2-devel-bounces@lists.01.org] On Behalf Of Ji= an J > Wang > Sent: Monday, October 09, 2017 10:17 PM > To: edk2-devel@lists.01.org > Subject: [edk2] [PATCH v4 0/6] Add NULL pointer detection feature >=20 > The mechanism behind is to trigger a page fault exception at address 0. > This can be made by disabling page 0 (0-4095) during page table setup. > So this feature can only be available on platform with paging enabled. >=20 > Once this feature is enabled, any code, like CSM, which has to access > memory in page 0 needs to enable this page temporarily in advance and > disable it afterwards. >=20 > PcdNullPointerDetectionPropertyMask is used to control and elaborate > the use cases. For example, BIT7 of this PCD must be set for Windows 7 > boot on Qemu if BIT0 set; or boot will fail. >=20 > Suggested-by: Ayellet Wolman > Contributed-under: TianoCore Contribution Agreement 1.1 > Signed-off-by: Jian J Wang >=20 > Jian J Wang (5): > MdeModulePkg/DxeIpl: Implement NULL pointer detection > MdeModulePkg/Core/Dxe: Add EndOfDxe workaround for NULL pointer > detection > UefiCpuPkg/PiSmmCpuDxeSmm: Implement NULL pointer detection for SMM > code > IntelFrameworkModulePkg/Csm: Add code to bypass NULL pointer detection > OvmfPkg/QemuVideoDxe: Bypass NULL pointer detection during VBE SHIM > installing >=20 > Wang, Jian J (1): > MdeModulePkg/MdeModulePkg.dec,.uni: Add NULL pointer detection PCD >=20 > .../Csm/BiosThunk/KeyboardDxe/BiosKeyboard.c | 101 ++++++++++++++ > .../Csm/BiosThunk/KeyboardDxe/BiosKeyboard.h | 2 + > .../Csm/BiosThunk/KeyboardDxe/KeyboardDxe.inf | 2 + > .../Csm/LegacyBiosDxe/LegacyBda.c | 4 + > .../Csm/LegacyBiosDxe/LegacyBios.c | 152 +++++++++++++++= ++++++ > .../Csm/LegacyBiosDxe/LegacyBiosDxe.inf | 2 + > .../Csm/LegacyBiosDxe/LegacyBiosInterface.h | 18 +++ > .../Csm/LegacyBiosDxe/LegacyBootSupport.c | 23 +++- > .../Csm/LegacyBiosDxe/LegacyPci.c | 17 ++- > IntelFrameworkModulePkg/Csm/LegacyBiosDxe/Thunk.c | 27 +++- > MdeModulePkg/Core/Dxe/DxeMain.inf | 1 + > MdeModulePkg/Core/Dxe/Mem/Page.c | 4 +- > MdeModulePkg/Core/Dxe/Misc/MemoryProtection.c | 65 +++++++++ > MdeModulePkg/Core/DxeIplPeim/DxeIpl.h | 25 ++++ > MdeModulePkg/Core/DxeIplPeim/DxeIpl.inf | 1 + > MdeModulePkg/Core/DxeIplPeim/DxeLoad.c | 1 + > MdeModulePkg/Core/DxeIplPeim/Ia32/DxeLoadFunc.c | 17 ++- > MdeModulePkg/Core/DxeIplPeim/X64/DxeLoadFunc.c | 4 + > MdeModulePkg/Core/DxeIplPeim/X64/VirtualMemory.c | 93 ++++++++++++- > MdeModulePkg/MdeModulePkg.dec | 13 ++ > MdeModulePkg/MdeModulePkg.uni | 13 ++ > OvmfPkg/QemuVideoDxe/QemuVideoDxe.inf | 1 + > OvmfPkg/QemuVideoDxe/VbeShim.c | 14 ++ > UefiCpuPkg/PiSmmCpuDxeSmm/Ia32/PageTbl.c | 12 ++ > UefiCpuPkg/PiSmmCpuDxeSmm/MpService.c | 25 +++- > UefiCpuPkg/PiSmmCpuDxeSmm/PiSmmCpuDxeSmm.inf | 1 + > UefiCpuPkg/PiSmmCpuDxeSmm/X64/PageTbl.c | 12 ++ > 27 files changed, 628 insertions(+), 22 deletions(-) >=20 > -- > 2.14.1.windows.1 >=20 > _______________________________________________ > edk2-devel mailing list > edk2-devel@lists.01.org > https://lists.01.org/mailman/listinfo/edk2-devel