]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
x86/its: Move ITS indirect branch thunks to .text..__x86.indirect_thunk
authorJosh Poimboeuf <jpoimboe@kernel.org>
Fri, 6 Jun 2025 16:55:02 +0000 (09:55 -0700)
committerBorislav Petkov (AMD) <bp@alien8.de>
Fri, 12 Sep 2025 10:14:54 +0000 (12:14 +0200)
commit41bab90bbfdc55228b8697d960839a4abb5016d4
tree5aa75b8859ae15a9437a58edcac4c1a7ecf7ec46
parent223ba8ee0a3986718c874b66ed24e7f87f6b8124
x86/its: Move ITS indirect branch thunks to .text..__x86.indirect_thunk

The ITS mitigation includes both indirect branch thunks and return
thunks.  Both are currently placed in .text..__x86.return_thunk, which is
appropriate for the latter but not the former.

For consistency with other mitigations, move the indirect branch thunks to
.text..__x86.indirect_thunk.

Signed-off-by: Josh Poimboeuf <jpoimboe@kernel.org>
Signed-off-by: Borislav Petkov (AMD) <bp@alien8.de>
Reviewed-by: Pawan Gupta <pawan.kumar.gupta@linux.intel.com>
arch/x86/lib/retpoline.S