-
Notifications
You must be signed in to change notification settings - Fork 12.8k
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 #108986 - fortanix:raoul/sync_lvi_patches, r=cuviper
sync LVI tests The LVI tests for the `x86_64-fortanix-unknown-sgx` target have gotten out of sync. LVI is still mitigated correctly, but the LVI tests need minor modifications. Other (non LVI-related) tests fail when the target applies LVI mitigations as they assume the generated code contains forbidden instructions such as `retq`. These tests are ignored for the sgx environment. cc: `@jethrogb`
- Loading branch information
Showing
11 changed files
with
48 additions
and
39 deletions.
There are no files selected for viewing
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
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
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
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
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
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
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
5 changes: 2 additions & 3 deletions
5
tests/run-make/x86_64-fortanix-unknown-sgx-lvi/cc_plus_one_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,8 +1,7 @@ | ||
CHECK: cc_plus_one_asm | ||
CHECK-NEXT: movl | ||
CHECK-NEXT: lfence | ||
CHECK-NEXT: inc | ||
CHECK-NEXT: notq (%rsp) | ||
CHECK-NEXT: notq (%rsp) | ||
CHECK-NEXT: incl | ||
CHECK-NEXT: shlq $0, (%rsp) | ||
CHECK-NEXT: lfence | ||
CHECK-NEXT: retq |
22 changes: 19 additions & 3 deletions
22
tests/run-make/x86_64-fortanix-unknown-sgx-lvi/jumpto.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,8 +1,24 @@ | ||
CHECK: libunwind::Registers_x86_64::jumpto | ||
CHECK: __libunwind_Registers_x86_64_jumpto | ||
CHECK: lfence | ||
CHECK: lfence | ||
CHECK: lfence | ||
CHECK: lfence | ||
CHECK: shlq $0, (%rsp) | ||
CHECK: lfence | ||
CHECK: lfence | ||
CHECK: lfence | ||
CHECK: lfence | ||
CHECK: lfence | ||
CHECK: lfence | ||
CHECK: lfence | ||
CHECK: lfence | ||
CHECK: lfence | ||
CHECK: lfence | ||
CHECK: lfence | ||
CHECK: lfence | ||
CHECK: lfence | ||
CHECK: lfence | ||
CHECK-NEXT: popq [[REGISTER:%[a-z]+]] | ||
CHECK-NEXT: lfence | ||
CHECK-NEXT: popq [[REGISTER:%[a-z]+]] | ||
CHECK-NEXT: lfence | ||
CHECK-NEXT: retq | ||
CHECK-NEXT: jmpq *[[REGISTER]] |
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
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