]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
x86,nospec: Simplify {JMP,CALL}_NOSPEC
authorPeter Zijlstra <peterz@infradead.org>
Fri, 16 May 2025 23:59:44 +0000 (16:59 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 22 May 2025 12:08:22 +0000 (14:08 +0200)
commit8595a7453a5f69a0db7077b13f2975b855aeb049
tree7ab6ddfabd70cc456c77d022c4f1548367608bc3
parent65346f970490e792fe5ae8d931aece60824c4f7e
x86,nospec: Simplify {JMP,CALL}_NOSPEC

commit 09d09531a51a24635bc3331f56d92ee7092f5516 upstream.

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>
Signed-off-by: Pawan Gupta <pawan.kumar.gupta@linux.intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
arch/x86/include/asm/nospec-branch.h