We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
ret
1 parent 62c8c7c commit b35f243Copy full SHA for b35f243
tests/run-make/x86_64-fortanix-unknown-sgx-lvi/script.sh
@@ -33,6 +33,15 @@ function check {
33
${objdump} --disassemble-symbols="${func}" --demangle \
34
${enclave} > ${asm}
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
45
}
46
47
build
0 commit comments