File tree Expand file tree Collapse file tree 1 file changed +9
-0
lines changed
tests/run-make/x86_64-fortanix-unknown-sgx-lvi Expand file tree Collapse file tree 1 file changed +9
-0
lines changed Original file line number Diff line number Diff line change @@ -33,6 +33,15 @@ function check {
33
33
${objdump} --disassemble-symbols=" ${func} " --demangle \
34
34
${enclave} > ${asm}
35
35
${filecheck} --input-file ${asm} ${checks}
36
+
37
+ if [ " ${func_re} " != " rust_plus_one_global_asm" &&
38
+ " ${func_re} " != " cmake_plus_one_c_global_asm" ]; then
39
+ # The assembler cannot avoid explicit `ret` instructions. Sequences
40
+ # of `shlq $0x0, (%rsp); lfence; retq` are used instead.
41
+ # https://www.intel.com/content/www/us/en/developer/articles/technical/
42
+ # software-security-guidance/technical-documentation/load-value-injection.html
43
+ ${filecheck} --implicit-check-not ret --input-file ${asm} ${checks}
44
+ fi
36
45
}
37
46
38
47
build
You can’t perform that action at this time.
0 commit comments