]> git.itanic.dy.fi Git - linux-stable/commit
x86/srso: Add IBPB
authorBorislav Petkov (AMD) <bp@alien8.de>
Thu, 6 Jul 2023 13:04:35 +0000 (15:04 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 8 Aug 2023 17:58:34 +0000 (19:58 +0200)
commit5398faac76a6188bbacc142984ec143fef7f640c
treec7f9583436f828bd4eca14c1aeb21189248e695c
parentc24aaa7dde5ff82acb4415c15225e4a42982240d
x86/srso: Add IBPB

Upstream commit: 233d6f68b98d480a7c42ebe78c38f79d44741ca9

Add the option to mitigate using IBPB on a kernel entry. Pull in the
Retbleed alternative so that the IBPB call from there can be used. Also,
if Retbleed mitigation is done using IBPB, the same mitigation can and
must be used here.

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