• L
    Merge branch 'speck-v20' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip · 3b78ce4a
    Linus Torvalds 提交于
    Merge speculative store buffer bypass fixes from Thomas Gleixner:
    
     - rework of the SPEC_CTRL MSR management to accomodate the new fancy
       SSBD (Speculative Store Bypass Disable) bit handling.
    
     - the CPU bug and sysfs infrastructure for the exciting new Speculative
       Store Bypass 'feature'.
    
     - support for disabling SSB via LS_CFG MSR on AMD CPUs including
       Hyperthread synchronization on ZEN.
    
     - PRCTL support for dynamic runtime control of SSB
    
     - SECCOMP integration to automatically disable SSB for sandboxed
       processes with a filter flag for opt-out.
    
     - KVM integration to allow guests fiddling with SSBD including the new
       software MSR VIRT_SPEC_CTRL to handle the LS_CFG based oddities on
       AMD.
    
     - BPF protection against SSB
    
    .. this is just the core and x86 side, other architecture support will
    come separately.
    
    * 'speck-v20' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip: (49 commits)
      bpf: Prevent memory disambiguation attack
      x86/bugs: Rename SSBD_NO to SSB_NO
      KVM: SVM: Implement VIRT_SPEC_CTRL support for SSBD
      x86/speculation, KVM: Implement support for VIRT_SPEC_CTRL/LS_CFG
      x86/bugs: Rework spec_ctrl base and mask logic
      x86/bugs: Remove x86_spec_ctrl_set()
      x86/bugs: Expose x86_spec_ctrl_base directly
      x86/bugs: Unify x86_spec_ctrl_{set_guest,restore_host}
      x86/speculation: Rework speculative_store_bypass_update()
      x86/speculation: Add virtualized speculative store bypass disable support
      x86/bugs, KVM: Extend speculation control for VIRT_SPEC_CTRL
      x86/speculation: Handle HT correctly on AMD
      x86/cpufeatures: Add FEATURE_ZEN
      x86/cpufeatures: Disentangle SSBD enumeration
      x86/cpufeatures: Disentangle MSR_SPEC_CTRL enumeration from IBRS
      x86/speculation: Use synthetic bits for IBRS/IBPB/STIBP
      KVM: SVM: Move spec control call after restore of GS
      x86/cpu: Make alternative_msr_write work for 32-bit code
      x86/bugs: Fix the parameters alignment and missing void
      x86/bugs: Make cpu_show_common() static
      ...
    3b78ce4a
x86.c 241.2 KB