]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit48f7bc65d329242c93f5badde441df83d785eab9
treeb64301e2e0940d2e8a5ef98a7574fc637a7f7748
parent4d12eb50455169445883967409f9de42c3d6d556
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