• Linus Torvalds's avatar
    Merge tag 'sev_fixes_for_v6.6' of //git.kernel.org/pub/scm/linux/kernel/git/tip/tip · 0df072ab
    Linus Torvalds authored
    Pull x86 fixes from Borislav Petkov:
     "Take care of a race between when the #VC exception is raised and when
      the guest kernel gets to emulate certain instructions in SEV-{ES,SNP}
      guests by:
    
       - disabling emulation of MMIO instructions when coming from user mode
    
       - checking the IO permission bitmap before emulating IO instructions
         and verifying the memory operands of INS/OUTS insns"
    
    * tag 'sev_fixes_for_v6.6' of //git.kernel.org/pub/scm/linux/kernel/git/tip/tip:
      x86/sev: Check for user-space IOIO pointing to kernel space
      x86/sev: Check IOBM for IOIO exceptions from user-space
      x86/sev: Disable MMIO emulation from user mode
    0df072ab
sev.c 55.1 KB