]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
x86/cpu: Fix AMD erratum #1485 on Zen4-based CPUs
authorBorislav Petkov (AMD) <bp@alien8.de>
Sat, 7 Oct 2023 10:57:02 +0000 (12:57 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 25 Oct 2023 09:13:31 +0000 (11:13 +0200)
commit24416e5f4da30f4578d7111688fe7e2050a785d2
treeed018edc812410b95d7760a2ee9819b6ac14c0ef
parent5bdf93a2f5459f944b416b188178ca4a92fd206f
x86/cpu: Fix AMD erratum #1485 on Zen4-based CPUs

commit f454b18e07f518bcd0c05af17a2239138bff52de upstream.

Fix erratum #1485 on Zen4 parts where running with STIBP disabled can
cause an #UD exception. The performance impact of the fix is negligible.

Reported-by: René Rebe <rene@exactcode.de>
Signed-off-by: Borislav Petkov (AMD) <bp@alien8.de>
Tested-by: René Rebe <rene@exactcode.de>
Cc: <stable@kernel.org>
Link: https://lore.kernel.org/r/D99589F4-BC5D-430B-87B2-72C20370CF57@exactcode.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
arch/x86/include/asm/msr-index.h
arch/x86/kernel/cpu/amd.c