]> git.baikalelectronics.ru Git - kernel.git/commitdiff
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
index b37de8268c9aa6e4f9e86f9fa3d154a5ca3d8b53,1ae0fab7d902b0a722563cccf89aa770e4eb7f35..36369e76cc631ecbb488c175d3c330cebee88737
@@@ -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
index f0baf1b7522eea9865be08c770cb122ba7866571,7dd7604cf46a3afe9217708b5da63f49b098c520..2e9142797c99786054a3182f281a53094f4d999c
@@@ -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
index 33c1ed58152294b3cdc82a980cdffeff97110687,7e7aa1d030a65ca57d08aaffaf92e962f256732c..3911bfc217026491eafe6d62b3161f58b270e189
@@@ -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