kernel_samsung_a53x/arch/x86/lib
Borislav Petkov (AMD) 481ee264e8 x86/bugs: Fix the SRSO mitigation on Zen3/4
Commit 4535e1a4174c4111d92c5a9a21e542d232e0fcaa upstream.

The original version of the mitigation would patch in the calls to the
untraining routines directly.  That is, the alternative() in UNTRAIN_RET
will patch in the CALL to srso_alias_untrain_ret() directly.

However, even if commit e7c25c441e9e ("x86/cpu: Cleanup the untrain
mess") meant well in trying to clean up the situation, due to micro-
architectural reasons, the untraining routine srso_alias_untrain_ret()
must be the target of a CALL instruction and not of a JMP instruction as
it is done now.

Reshuffle the alternative macros to accomplish that.

Fixes: e7c25c441e9e ("x86/cpu: Cleanup the untrain mess")
Signed-off-by: Borislav Petkov (AMD) <bp@alien8.de>
Reviewed-by: Ingo Molnar <mingo@kernel.org>
Cc: stable@kernel.org
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2024-11-19 09:23:11 +01:00
..
atomic64_32.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
atomic64_386_32.S Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
atomic64_cx8_32.S Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
cache-smp.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
checksum_32.S Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
clear_page_64.S Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
cmdline.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
cmpxchg8b_emu.S Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
cmpxchg16b_emu.S Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
copy_mc.c iov_iter, x86: Be consistent about the __user tag on copy_mc_to_user() 2024-11-18 11:42:39 +01:00
copy_mc_64.S Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
copy_page_64.S Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
copy_user_64.S Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
cpu.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
csum-copy_64.S Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
csum-partial_64.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
csum-wrappers_64.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
delay.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
error-inject.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
getuser.S Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
hweight.S Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
inat.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
insn-eval.c x86/stackprotector/32: Make the canary into a regular percpu variable 2024-11-19 09:22:37 +01:00
insn.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
iomap_copy_64.S Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
iomem.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
kaslr.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
Makefile Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
memcpy_32.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
memcpy_64.S Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
memmove_64.S Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
memset_64.S Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
misc.c x86/lib: Fix overflow when counting digits 2024-11-18 12:12:19 +01:00
mmx_32.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
msr-reg-export.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
msr-reg.S Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
msr-smp.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
msr.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
putuser.S Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
retpoline.S x86/bugs: Fix the SRSO mitigation on Zen3/4 2024-11-19 09:23:11 +01:00
string_32.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
strstr_32.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
usercopy.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
usercopy_32.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
usercopy_64.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
x86-opcode-map.txt Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00