Merge tag 'x86_cpu_for_v5.19_rc1' of git://git.kernel.org/pub/scm/linux/kernel/git...
authorLinus Torvalds <torvalds@linux-foundation.org>
Tue, 24 May 2022 01:01:31 +0000 (18:01 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Tue, 24 May 2022 01:01:31 +0000 (18:01 -0700)
Pull x86 CPU feature updates from Borislav Petkov:

 - Remove a bunch of chicken bit options to turn off CPU features which
   are not really needed anymore

 - Misc fixes and cleanups

* tag 'x86_cpu_for_v5.19_rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip:
  x86/speculation: Add missing prototype for unpriv_ebpf_notify()
  x86/pm: Fix false positive kmemleak report in msr_build_context()
  x86/speculation/srbds: Do not try to turn mitigation off when not supported
  x86/cpu: Remove "noclflush"
  x86/cpu: Remove "noexec"
  x86/cpu: Remove "nosmep"
  x86/cpu: Remove CONFIG_X86_SMAP and "nosmap"
  x86/cpu: Remove "nosep"
  x86/cpu: Allow feature bit names from /proc/cpuinfo in clearcpuid=

1  2 
Documentation/admin-guide/kernel-parameters.txt
Documentation/x86/x86_64/boot-options.rst
arch/x86/Kconfig
arch/x86/include/asm/disabled-features.h
arch/x86/include/asm/proto.h
arch/x86/kernel/cpu/common.c
arch/x86/mm/init_64.c
scripts/Makefile.build
scripts/link-vmlinux.sh

Simple merge
@@@ -85,8 -73,8 +79,8 @@@
  #define DISABLED_MASK5        0
  #define DISABLED_MASK6        0
  #define DISABLED_MASK7        (DISABLE_PTI)
 -#define DISABLED_MASK8        0
 +#define DISABLED_MASK8        (DISABLE_TDX_GUEST)
- #define DISABLED_MASK9        (DISABLE_SMAP|DISABLE_SGX)
+ #define DISABLED_MASK9        (DISABLE_SGX)
  #define DISABLED_MASK10       0
  #define DISABLED_MASK11       0
  #define DISABLED_MASK12       0
Simple merge
@@@ -1856,18 -1868,8 +1869,10 @@@ void identify_secondary_cpu(struct cpui
        validate_apic_and_package_id(c);
        x86_spec_ctrl_setup_ap();
        update_srbds_msr();
 +
 +      tsx_ap_init();
  }
  
- static __init int setup_noclflush(char *arg)
- {
-       setup_clear_cpu_cap(X86_FEATURE_CLFLUSH);
-       setup_clear_cpu_cap(X86_FEATURE_CLFLUSHOPT);
-       return 1;
- }
- __setup("noclflush", setup_noclflush);
  void print_cpu_info(struct cpuinfo_x86 *c)
  {
        const char *vendor = NULL;
Simple merge
@@@ -231,9 -231,9 +231,9 @@@ objtool_args =                                                             
        $(if $(part-of-module), --module)                               \
        $(if $(CONFIG_X86_KERNEL_IBT), --lto --ibt)                     \
        $(if $(CONFIG_FRAME_POINTER),, --no-fp)                         \
 -      $(if $(CONFIG_GCOV_KERNEL)$(CONFIG_LTO_CLANG), --no-unreachable)\
 +      $(if $(CONFIG_GCOV_KERNEL), --no-unreachable)                   \
        $(if $(CONFIG_RETPOLINE), --retpoline)                          \
-       $(if $(CONFIG_X86_SMAP), --uaccess)                             \
+       --uaccess                                                       \
        $(if $(CONFIG_FTRACE_MCOUNT_USE_OBJTOOL), --mcount)             \
        $(if $(CONFIG_SLS), --sls)
  
Simple merge