]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
x86/cpufeatures: Add a IBPB_NO_RET BUG flag
authorJohannes Wikner <kwikner@ethz.ch>
Mon, 23 Sep 2024 18:49:34 +0000 (20:49 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 22 Oct 2024 13:40:42 +0000 (15:40 +0200)
commit1e0398acb650933b21b97fe768ca13e372ff77d7
tree45e3e04a9b45f9d710305c5c6cd43cc79c1d7e8d
parent43bdd2ea738eb467a2b55ac65336fc4a59502463
x86/cpufeatures: Add a IBPB_NO_RET BUG flag

commit 3ea87dfa31a7b0bb0ff1675e67b9e54883013074 upstream.

Set this flag if the CPU has an IBPB implementation that does not
invalidate return target predictions. Zen generations < 4 do not flush
the RSB when executing an IBPB and this bug flag denotes that.

  [ bp: Massage. ]

Signed-off-by: Johannes Wikner <kwikner@ethz.ch>
Signed-off-by: Borislav Petkov (AMD) <bp@alien8.de>
Cc: <stable@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
arch/x86/include/asm/cpufeatures.h
arch/x86/kernel/cpu/common.c