diff options
author | Sheng Wei <w.sheng@intel.com> | 2021-06-21 09:44:07 +0800 |
---|---|---|
committer | mergify[bot] <37929162+mergify[bot]@users.noreply.github.com> | 2021-07-06 08:18:21 +0000 |
commit | 0a6b303dcedb7af238ad485d545802befb797b3a (patch) | |
tree | be8743794a0014612a435e744ba6fe481676afa0 /MdeModulePkg/Universal/RegularExpressionDxe/OnigurumaUefiPort.c | |
parent | b3db0cb1f8d163f22b769c205c6347376a315dcd (diff) | |
download | edk2-0a6b303dcedb7af238ad485d545802befb797b3a.tar.gz edk2-0a6b303dcedb7af238ad485d545802befb797b3a.tar.bz2 edk2-0a6b303dcedb7af238ad485d545802befb797b3a.zip |
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>
Diffstat (limited to 'MdeModulePkg/Universal/RegularExpressionDxe/OnigurumaUefiPort.c')
0 files changed, 0 insertions, 0 deletions