]> git.hungrycats.org Git - linux/commit
Revert "x86/alternative: Make custom return thunk unconditional"
authorBorislav Petkov (AMD) <bp@alien8.de>
Sat, 24 Feb 2024 11:01:34 +0000 (12:01 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 1 Mar 2024 12:26:33 +0000 (13:26 +0100)
commitb012dcf39d9e79f9a71aa72b485c740aba84b47f
tree554729706cee8d467d32f5b462e8a05c579df13b
parent1221b8ea25cc8db5096fa328b835b8b6fdb6180b
Revert "x86/alternative: Make custom return thunk unconditional"

This reverts commit 53ebbe1c8c02aa7b7f072dd2f96bca4faa1daa59.

Revert the backport of upstream commit:

  095b8303f383 ("x86/alternative: Make custom return thunk unconditional")

in order to backport the full version now that

  770ae1b70952 ("x86/returnthunk: Allow different return thunks")

has been backported.

Revert it here so that the build breakage is kept at minimum.

Signed-off-by: Borislav Petkov (AMD) <bp@alien8.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
arch/x86/include/asm/nospec-branch.h
arch/x86/kernel/cpu/bugs.c