forked from rust-lang/rust
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Rollup merge of rust-lang#121683 - fortanix:raoul/lvi_fixes, r=cuviper
Fix LVI tests after frame pointers are enabled by default rust-lang#121203 enables frame pointers by default. This affects LVI mitigations for the `x86_64-fortanix-unknown-sgx` target. LVI remained mitigated correctly, but the tests were too strict. ``@nshyrei`` , ``@jethrogb``
- Loading branch information
Showing
4 changed files
with
18 additions
and
4 deletions.
There are no files selected for viewing
7 changes: 6 additions & 1 deletion
7
tests/run-make/x86_64-fortanix-unknown-sgx-lvi/cmake_plus_one_cxx_global_asm.checks
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,7 @@ | ||
CHECK: cmake_plus_one_cxx_global_asm | ||
CHECK: lfence | ||
CHECK-NEXT: movl | ||
CHECK-NEXT: lfence | ||
CHECK-NEXT: incl | ||
CHECK-NEXT: shlq $0x0, (%rsp) | ||
CHECK-NEXT: lfence | ||
CHECK-NEXT: retq |
7 changes: 7 additions & 0 deletions
7
tests/run-make/x86_64-fortanix-unknown-sgx-lvi/print.with_frame_pointers.checks
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
CHECK: print | ||
CHECK: lfence | ||
CHECK: popq | ||
CHECK: popq | ||
CHECK-NEXT: popq [[REGISTER:%[a-z]+]] | ||
CHECK-NEXT: lfence | ||
CHECK-NEXT: jmpq *[[REGISTER]] |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters