]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
x86/cpu: Fix __x86_return_thunk symbol type
authorPeter Zijlstra <peterz@infradead.org>
Mon, 14 Aug 2023 11:44:27 +0000 (13:44 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 26 Aug 2023 13:26:56 +0000 (15:26 +0200)
commitd5b3c88d153cf10404dc9efb6b17ec2ff5e1dc67
tree429986f69444b0eb7489dcd63395df2e01cdd7c8
parent5962f64ed2b674103f1b0ee64a36bb8f61e5e06c
x86/cpu: Fix __x86_return_thunk symbol type

commit 77f67119004296a9b2503b377d610e08b08afc2a upstream.

Commit

  fb3bd914b3ec ("x86/srso: Add a Speculative RAS Overflow mitigation")

reimplemented __x86_return_thunk with a mix of SYM_FUNC_START and
SYM_CODE_END, this is not a sane combination.

Since nothing should ever actually 'CALL' this, make it consistently
CODE.

Fixes: fb3bd914b3ec ("x86/srso: Add a Speculative RAS Overflow mitigation")
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Signed-off-by: Borislav Petkov (AMD) <bp@alien8.de>
Link: https://lore.kernel.org/r/20230814121148.571027074@infradead.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
arch/x86/lib/retpoline.S