audk/UefiCpuPkg/Library/CpuExceptionHandlerLib
Sheng Wei 0a6b303dce UefiCpuPkg/ExceptionLib: Conditionally clear shadow stack token busy bit
When enter SMM exception, there will be a stack switch only if the IST
field of the interrupt gate is set. When CET shadow stack feature is
enabled, if there is a stack switch between SMM exception and SMM, the
shadow stack token busy bit needs to be cleared when return from SMM
exception to SMM. In UEFI BIOS, only page fault exception does the stack
swith when SMM shack guard feature is enabled. The condition of clear
shadow stack token busy bit should be SMM stack guard enabled, CET shadows
stack feature enabled and page fault exception.
The shadow stack token should be initialized by UINT64.

REF: https://bugzilla.tianocore.org/show_bug.cgi?id=3462

Signed-off-by: Sheng Wei <w.sheng@intel.com>
Cc: Eric Dong <eric.dong@intel.com>
Cc: Ray Ni <ray.ni@intel.com>
Cc: Laszlo Ersek <lersek@redhat.com>
Cc: Rahul Kumar <rahul1.kumar@intel.com>
Cc: Jiewen Yao <jiewen.yao@intel.com>
Cc: Qihua Zhuang <qihua.zhuang@intel.com>
Cc: Daquan Dong <daquan.dong@intel.com>
Cc: Justin Tong <justin.tong@intel.com>
Cc: Tom Xu <tom.xu@intel.com>
Reviewed-by: Eric Dong <eric.dong@intel.com>
2021-07-06 08:18:21 +00:00
..
Ia32 UefiCpuPkg: Correct some typos. 2020-07-28 01:43:16 +00:00
X64 UefiCpuPkg/ExceptionLib: Conditionally clear shadow stack token busy bit 2021-07-06 08:18:21 +00:00
CpuExceptionCommon.c UefiCpuPkg/CpuExceptionHandler: Add missing comma to exception name array 2021-05-14 11:26:17 +00:00
CpuExceptionCommon.h UefiCpuPkg: Correct some typos. 2020-07-28 01:43:16 +00:00
DxeCpuExceptionHandlerLib.inf UefiCpuPkg/CpuExceptionHandlerLib: Clear CET shadow stack token busy bit 2021-03-02 05:11:55 +00:00
DxeCpuExceptionHandlerLib.uni
DxeException.c
PeiCpuException.c
PeiCpuExceptionHandlerLib.inf UefiCpuPkg/CpuExceptionHandlerLib: Clear CET shadow stack token busy bit 2021-03-02 05:11:55 +00:00
PeiCpuExceptionHandlerLib.uni
PeiDxeSmmCpuException.c UefiCpuPkg/CpuExceptionHandler: Add base support for the #VC exception 2020-08-17 02:46:39 +00:00
SecPeiCpuException.c UefiCpuPkg/CpuExceptionHandler: Add base support for the #VC exception 2020-08-17 02:46:39 +00:00
SecPeiCpuExceptionHandlerLib.inf UefiCpuPkg/CpuExceptionHandlerLib: Clear CET shadow stack token busy bit 2021-03-02 05:11:55 +00:00
SecPeiCpuExceptionHandlerLib.uni
SmmCpuExceptionHandlerLib.inf UefiCpuPkg/CpuExceptionHandlerLib: Clear CET shadow stack token busy bit 2021-03-02 05:11:55 +00:00
SmmCpuExceptionHandlerLib.uni
SmmException.c UefiCpuPkg/Smm: Fix various typos 2020-02-10 22:30:07 +00:00
Xcode5SecPeiCpuExceptionHandlerLib.inf UefiCpuPkg/CpuExceptionHandlerLib: Clear CET shadow stack token busy bit 2021-03-02 05:11:55 +00:00
Xcode5SecPeiCpuExceptionHandlerLib.uni UefiCpuPkg/CpuExceptionHandler: Make XCODE5 changes toolchain specific 2020-05-11 19:25:33 +00:00