OSDN Git Service

Merge branches 'x86-cpu-for-linus' and 'x86-fpu-for-linus' of git://git.kernel.org...
authorLinus Torvalds <torvalds@linux-foundation.org>
Tue, 26 Nov 2019 16:58:08 +0000 (08:58 -0800)
committerLinus Torvalds <torvalds@linux-foundation.org>
Tue, 26 Nov 2019 16:58:08 +0000 (08:58 -0800)
Pull x86 cpu and fpu updates from Ingo Molnar:

 - math-emu fixes

 - CPUID updates

 - sanity-check RDRAND output to see whether the CPU at least pretends
   to produce random data

 - various unaligned-access across cachelines fixes in preparation of
   hardware level split-lock detection

 - fix MAXSMP constraints to not allow !CPUMASK_OFFSTACK kernels with
   larger than 512 NR_CPUS

 - misc FPU related cleanups

* 'x86-cpu-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip:
  x86/cpu: Align the x86_capability array to size of unsigned long
  x86/cpu: Align cpu_caps_cleared and cpu_caps_set to unsigned long
  x86/umip: Make the comments vendor-agnostic
  x86/Kconfig: Rename UMIP config parameter
  x86/Kconfig: Enforce limit of 512 CPUs with MAXSMP and no CPUMASK_OFFSTACK
  x86/cpufeatures: Add feature bit RDPRU on AMD
  x86/math-emu: Limit MATH_EMULATION to 486SX compatibles
  x86/math-emu: Check __copy_from_user() result
  x86/rdrand: Sanity-check RDRAND output

* 'x86-fpu-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip:
  x86/fpu: Use XFEATURE_FP/SSE enum values instead of hardcoded numbers
  x86/fpu: Shrink space allocated for xstate_comp_offsets
  x86/fpu: Update stale variable name in comment

1  2  3 
arch/x86/Kconfig
arch/x86/include/asm/cpufeatures.h
arch/x86/include/asm/processor.h
arch/x86/kernel/Makefile
arch/x86/kernel/cpu/common.c
arch/x86/kernel/umip.c

@@@@ -1850,16 -1880,16 -1880,16 +1850,16 @@@@ config X86_SMA
   
          If unsure, say Y.
   
- -config X86_INTEL_UMIP
+ +config X86_UMIP
        def_bool y
- -     depends on CPU_SUP_INTEL
- -     prompt "Intel User Mode Instruction Prevention" if EXPERT
-       ---help---
-         The User Mode Instruction Prevention (UMIP) is a security
-         feature in newer Intel processors. If enabled, a general
-         protection fault is issued if the SGDT, SLDT, SIDT, SMSW
-         or STR instructions are executed in user mode. These instructions
-         unnecessarily expose information about the hardware state.
+ +     depends on CPU_SUP_INTEL || CPU_SUP_AMD
+ +     prompt "User Mode Instruction Prevention" if EXPERT
+       ---help---
  -       The User Mode Instruction Prevention (UMIP) is a security
  -       feature in newer Intel processors. If enabled, a general
  -       protection fault is issued if the SGDT, SLDT, SIDT, SMSW
  -       or STR instructions are executed in user mode. These instructions
  -       unnecessarily expose information about the hardware state.
+ +       User Mode Instruction Prevention (UMIP) is a security feature in
+ +       some x86 processors. If enabled, a general protection fault is
+ +       issued if the SGDT, SLDT, SIDT, SMSW or STR instructions are
+ +       executed in user mode. These instructions unnecessarily expose
+ +       information about the hardware state.
   
          The vast majority of applications do not use these instructions.
          For the very few that do, software emulation is provided in
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge