• Johannes Wikner's avatar
    x86/bugs: Skip RSB fill at VMEXIT · 0fad2878
    Johannes Wikner authored
    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: default avatarBorislav Petkov <bp@alien8.de>
    Signed-off-by: default avatarJohannes Wikner <kwikner@ethz.ch>
    Cc: <stable@kernel.org>
    0fad2878
bugs.c 86 KB