From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received-SPF: Permerror (SPF Permanent Error: Two or more type TXT spf records found.) identity=mailfrom; client-ip=134.134.136.100; helo=mga07.intel.com; envelope-from=jian.j.wang@intel.com; receiver=edk2-devel@lists.01.org Received: from mga07.intel.com (mga07.intel.com [134.134.136.100]) (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 CDF42210FCF56 for ; Sun, 2 Sep 2018 20:15:53 -0700 (PDT) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga005.fm.intel.com ([10.253.24.32]) by orsmga105.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 02 Sep 2018 20:15:52 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.53,323,1531810800"; d="scan'208";a="259323741" Received: from shwdeopenpsi777.ccr.corp.intel.com ([10.239.158.27]) by fmsmga005.fm.intel.com with ESMTP; 02 Sep 2018 20:15:52 -0700 From: Jian J Wang To: edk2-devel@lists.01.org Date: Mon, 3 Sep 2018 11:15:46 +0800 Message-Id: <20180903031550.4440-1-jian.j.wang@intel.com> X-Mailer: git-send-email 2.16.2.windows.1 Subject: [PATCH 0/4] Add PEI Stack Guard feature X-BeenThere: edk2-devel@lists.01.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: EDK II Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 03 Sep 2018 03:15:54 -0000 This patch series try to add PEI Stack Guard feature. Please refer to following trackers for details. The machanism behind this feature is the same as Stack Guard for UEFI drivers, and similiar implementation is also employed. REF: https://bugzilla.tianocore.org/show_bug.cgi?id=1126 https://bugzilla.tianocore.org/show_bug.cgi?id=1137 Jian J Wang (4): MdeModulePkg/DxeIpl: disable paging before creating new page table UefiCpuPkg/CpuExceptionHandlerLib: support stack switch for PEI exceptions UefiCpuPkg/MpInitLib: fix register restore issue in AP wakeup UefiCpuPkg/CpuMpPei: support stack guard feature MdeModulePkg/Core/DxeIplPeim/Ia32/DxeLoadFunc.c | 10 + UefiCpuPkg/CpuMpPei/CpuMpPei.c | 269 ++++++++- UefiCpuPkg/CpuMpPei/CpuMpPei.h | 14 + UefiCpuPkg/CpuMpPei/CpuMpPei.inf | 11 +- UefiCpuPkg/CpuMpPei/CpuPaging.c | 637 +++++++++++++++++++++ .../CpuExceptionHandlerLib/PeiCpuException.c | 27 +- .../PeiCpuExceptionHandlerLib.inf | 4 + UefiCpuPkg/Library/MpInitLib/MpLib.c | 8 +- 8 files changed, 962 insertions(+), 18 deletions(-) create mode 100644 UefiCpuPkg/CpuMpPei/CpuPaging.c -- 2.16.2.windows.1