Revert "x86: guard against straight-line speculation past RET"

This reverts commit 71b0b475d8,
which has no real effect - the most recent version of the patch
had lost the INT3 insn.
This commit is contained in:
Jan Beulich committed 2021-04-09 09:53:53 +02:00
1 parent ca68c70d30
commit 9cd905bae8
3 files changed
+1 -23

No files matched your search

+1 -4
View File
@@ -145,10 +145,7 @@ t2 = $(call as-insn,$(CC) -I$(BASEDIR)/include,".include \"asm-x86/asm-defns.h\"
# https://bugs.llvm.org/show_bug.cgi?id=36110
t3 = $(call as-insn,$(CC),".macro FOO;.endm"$(close); asm volatile $(open)".macro FOO;.endm",-no-integrated-as)
# Check whether macros can override insn mnemonics in inline assembly.
t4 = $(call as-insn,$(CC),".macro ret; .error; .endm; .macro retq; .error; .endm",-no-integrated-as)
CLANG_FLAGS += $(call or,$(t1),$(t2),$(t3),$(t4))
CLANG_FLAGS += $(call or,$(t1),$(t2),$(t3))
endif
CLANG_FLAGS += -Werror=unknown-warning-option
-3
View File
@@ -11,9 +11,6 @@
#include <asm/asm_defns.h>
/* Don't transform the "ret" further down. */
.purgem ret
.macro IND_THUNK_RETPOLINE reg:req
call 2f
1:
-16
View File
@@ -57,22 +57,6 @@
INDIRECT_BRANCH jmp \arg
.endm
/*
* To guard against speculation past RET, insert a breakpoint insn
* immediately after them.
*/
.macro ret operand:vararg
retq \operand
.endm
.macro retq operand:vararg
.ifb \operand
.byte 0xc3
.else
.byte 0xc2
.word \operand
.endif
.endm
.macro guest_access_mask_ptr ptr:req, scratch1:req, scratch2:req
#if defined(CONFIG_SPECULATIVE_HARDEN_GUEST_ACCESS)
/*
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.