]> www.infradead.org Git - users/jedix/linux-maple.git/commit
x86/bugs: Skip RSB fill at VMEXIT
authorJohannes Wikner <kwikner@ethz.ch>
Tue, 8 Oct 2024 10:36:30 +0000 (12:36 +0200)
committerBorislav Petkov (AMD) <bp@alien8.de>
Thu, 10 Oct 2024 08:35:53 +0000 (10:35 +0200)
commit0fad2878642ec46225af2054564932745ac5c765
treef119cc0ab3c2db4baaff1bfd68fa89bb34933287
parent50e4b3b94090babe8d4bb85c95f0d3e6b07ea86e
x86/bugs: Skip RSB fill at VMEXIT

entry_ibpb() is designed to follow Intel's IBPB specification regardless
of CPU. This includes invalidating RSB entries.

Hence, if IBPB on VMEXIT has been selected, entry_ibpb() as part of the
RET untraining in the VMEXIT path will take care of all BTB and RSB
clearing so there's no need to explicitly fill the RSB anymore.

  [ bp: Massage commit message. ]

Suggested-by: Borislav Petkov <bp@alien8.de>
Signed-off-by: Johannes Wikner <kwikner@ethz.ch>
Cc: <stable@kernel.org>
arch/x86/kernel/cpu/bugs.c