about summary refs log tree commit diff
path: root/src/libsyntax/parse/parser/expr.rs
diff options
context:
space:
mode:
authorYuki Okushi <huyuumi.dev@gmail.com>2019-10-26 02:46:02 +0900
committerGitHub <noreply@github.com>2019-10-26 02:46:02 +0900
commitd40c6afba04c906907cb57157c0aec7e12519c94 (patch)
tree6359f78c7c2bbf20c7e999fa95ddab93ba1a0ea7 /src/libsyntax/parse/parser/expr.rs
parentf0c58e9d852e70ce4bccfeb9a24449dab5f89866 (diff)
parent5aafa98562a3bd472ae7934f0d192b9cfcb36254 (diff)
downloadrust-d40c6afba04c906907cb57157c0aec7e12519c94.tar.gz
rust-d40c6afba04c906907cb57157c0aec7e12519c94.zip
Rollup merge of #65810 - raoulstrackx:ac_mitigation, r=nagisa
SGX: Clear additional flag on enclave entry

An attacker could set both the AC flag in CR0 as in rflags. This causes the enclave to perform an AEX upon a misaligned memory access, and an attacker learns some information about the internal enclave state.
The AC flag in rflags is copied from userspace upon an enclave entry. Upon AEX it is copied and later restored. This patch forces the rflag.AC bit to be reset right after an enter.
Diffstat (limited to 'src/libsyntax/parse/parser/expr.rs')
0 files changed, 0 insertions, 0 deletions