x86,nospec: Simplify {JMP,CALL}_NOSPEC
authorPeter Zijlstra <peterz@infradead.org>
Wed, 20 Jul 2022 10:04:21 +0000 (12:04 +0200)
committerPeter Zijlstra <peterz@infradead.org>
Thu, 21 Jul 2022 08:39:42 +0000 (10:39 +0200)
commit09d09531a51a24635bc3331f56d92ee7092f5516
treeb64301e2e0940d2e8a5ef98a7574fc637a7f7748
parentff6992735ade75aae3e35d16b17da1008d753d28
x86,nospec: Simplify {JMP,CALL}_NOSPEC

Have {JMP,CALL}_NOSPEC generate the same code GCC does for indirect
calls and rely on the objtool retpoline patching infrastructure.

There's no reason these should be alternatives while the vast bulk of
compiler generated retpolines are not.

Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
arch/x86/include/asm/nospec-branch.h