From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received-SPF: Pass (sender SPF authorized) identity=mailfrom; client-ip=66.187.233.73; helo=mx1.redhat.com; envelope-from=lersek@redhat.com; receiver=edk2-devel@lists.01.org Received: from mx1.redhat.com (mx3-rdu2.redhat.com [66.187.233.73]) (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 6E773210FC37F for ; Mon, 3 Sep 2018 07:52:05 -0700 (PDT) Received: from smtp.corp.redhat.com (int-mx04.intmail.prod.int.rdu2.redhat.com [10.11.54.4]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 040FC40241C5; Mon, 3 Sep 2018 14:52:05 +0000 (UTC) Received: from lacos-laptop-7.usersys.redhat.com (ovpn-120-191.rdu2.redhat.com [10.10.120.191]) by smtp.corp.redhat.com (Postfix) with ESMTP id 7A7B92026D6B; Mon, 3 Sep 2018 14:52:04 +0000 (UTC) To: Jian J Wang , edk2-devel@lists.01.org References: <20180903031550.4440-1-jian.j.wang@intel.com> From: Laszlo Ersek Message-ID: <7045f5b7-82d1-193c-160f-e5de709a29d6@redhat.com> Date: Mon, 3 Sep 2018 16:52:03 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.9.1 MIME-Version: 1.0 In-Reply-To: <20180903031550.4440-1-jian.j.wang@intel.com> X-Scanned-By: MIMEDefang 2.78 on 10.11.54.4 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.11.55.7]); Mon, 03 Sep 2018 14:52:05 +0000 (UTC) X-Greylist: inspected by milter-greylist-4.5.16 (mx1.redhat.com [10.11.55.7]); Mon, 03 Sep 2018 14:52:05 +0000 (UTC) for IP:'10.11.54.4' DOMAIN:'int-mx04.intmail.prod.int.rdu2.redhat.com' HELO:'smtp.corp.redhat.com' FROM:'lersek@redhat.com' RCPT:'' Subject: Re: [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 14:52:06 -0000 Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit On 09/03/18 05:15, Jian J Wang wrote: > 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 > Regression-tested-by: Laszlo Ersek