summaryrefslogtreecommitdiff
path: root/drivers/virt
diff options
context:
space:
mode:
authorPeter Zijlstra <peterz@infradead.org>2022-07-18 13:41:37 +0200
committerBorislav Petkov <bp@suse.de>2022-07-18 15:38:09 +0200
commit28a99e95f55c61855983d36a88c05c178d966bb7 (patch)
tree38be23a964f0ead645743a976f7c61e0b5846989 /drivers/virt
parentff6992735ade75aae3e35d16b17da1008d753d28 (diff)
x86/amd: Use IBPB for firmware calls
On AMD IBRS does not prevent Retbleed; as such use IBPB before a firmware call to flush the branch history state. And because in order to do an EFI call, the kernel maps a whole lot of the kernel page table into the EFI page table, do an IBPB just in case in order to prevent the scenario of poisoning the BTB and causing an EFI call using the unprotected RET there. [ bp: Massage. ] Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org> Signed-off-by: Borislav Petkov <bp@suse.de> Link: https://lore.kernel.org/r/20220715194550.793957-1-cascardo@canonical.com
Diffstat (limited to 'drivers/virt')
0 files changed, 0 insertions, 0 deletions