x86/cpu: Fix __x86_return_thunk symbol type
authorPeter Zijlstra <peterz@infradead.org>
Mon, 14 Aug 2023 11:44:27 +0000 (13:44 +0200)
committerBorislav Petkov (AMD) <bp@alien8.de>
Wed, 16 Aug 2023 07:39:16 +0000 (09:39 +0200)
commit77f67119004296a9b2503b377d610e08b08afc2a
treeff964523316e6498bb9d31499df3c45fba27d316
parent833fd800bf56b74d39d71d3f5936dffb3e0409c6
x86/cpu: Fix __x86_return_thunk symbol type

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
arch/x86/lib/retpoline.S