]> git.ipfire.org Git - thirdparty/linux.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)
committerBorislav Petkov (AMD) <bp@alien8.de>
Thu, 10 Oct 2024 08:34:29 +0000 (10:34 +0200)
commit3ea87dfa31a7b0bb0ff1675e67b9e54883013074
tree5e2d4b48d1427405de974b93921ce54fa428eb56
parentff898623af2ed564300752bba83a680a1e4fec8d
x86/cpufeatures: Add a IBPB_NO_RET BUG flag

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>
arch/x86/include/asm/cpufeatures.h
arch/x86/kernel/cpu/common.c