-
Notifications
You must be signed in to change notification settings - Fork 12.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cleanup SGX entry code #69040
Cleanup SGX entry code #69040
Conversation
… clear rflags during enclave (re-)entry
r? @kennytm (rust_highfive has picked a reviewer for you, use r? to override) |
All of these commits could definitely use some more text on them describing the why. |
|
||
/* x87 FPU control word initialization value for ABI */ | ||
.Lfpucw_init: | ||
.int 0x037f |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is setting one of the reserved bits (6th) to 1?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is the default from the Intel SDM, Vol. 1, §8.1.5
Sorry I'm not on the libs team any more and I'd rather not be on the hook for these sorts of PRs. @nagisa mind taking over review? |
r? @nagisa |
See §4 of https://people.cs.kuleuven.be/~jo.vanbulck/ccs19-tale.pdf for the “why”. |
This includes fixes for INTEL-SA-00336/CVE-2020-0561, could this be merged soon? |
@bors r+ |
📌 Commit 71b9ed4 has been approved by |
Why does bors show this as not mergeable? |
…gisa Cleanup SGX entry code cc @aandyl
Rollup of 7 pull requests Successful merges: - #67954 (Support new LLVM pass manager) - #68981 ( Account for type params on method without parentheses) - #69002 (miri: improve and simplify overflow detection) - #69038 (Add initial debug fmt for Backtrace) - #69040 (Cleanup SGX entry code) - #69086 (Update compiler-builtins to 0.1.25) - #69095 (Minified theme check) Failed merges: r? @ghost
…lan-DPC Add comment to SGX entry code Meant to force push this to be included in rust-lang#69040, but forgot r? @nagisa
cc @aandyl