]> git.ipfire.org Git - thirdparty/kernel/stable-queue.git/commitdiff
4.9 reordering
authorGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 15 Jan 2018 11:14:37 +0000 (12:14 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 15 Jan 2018 11:14:37 +0000 (12:14 +0100)
queue-4.9/series
queue-4.9/x86-cpu-implement-cpu-vulnerabilites-sysfs-functions.patch
queue-4.9/x86-cpu-merge-bugs.c-and-bugs_64.c.patch

index 698a5075dc2aa1dbfbe73db22e1f441b5c15eb8f..bf8b4c1ad2c2d6ee78d5e56a791116465e5f1852 100644 (file)
@@ -64,14 +64,14 @@ bluetooth-prevent-stack-info-leak-from-the-efs-element.patch
 uas-ignore-uas-for-norelsys-ns1068-x-chips.patch
 e1000e-fix-e1000_check_for_copper_link_ich8lan-return-value.patch
 x86-documentation-add-pti-description.patch
-sysfs-cpu-add-vulnerability-folder.patch
-x86-cpu-implement-cpu-vulnerabilites-sysfs-functions.patch
 x86-cpu-factor-out-application-of-forced-cpu-caps.patch
 x86-cpufeatures-make-cpu-bugs-sticky.patch
 x86-cpufeatures-add-x86_bug_cpu_insecure.patch
 x86-pti-rename-bug_cpu_insecure-to-bug_cpu_meltdown.patch
-x86-cpu-merge-bugs.c-and-bugs_64.c.patch
 x86-cpufeatures-add-x86_bug_spectre_v.patch
+x86-cpu-merge-bugs.c-and-bugs_64.c.patch
+sysfs-cpu-add-vulnerability-folder.patch
+x86-cpu-implement-cpu-vulnerabilites-sysfs-functions.patch
 x86-cpu-amd-make-lfence-a-serializing-instruction.patch
 x86-cpu-amd-use-lfence_rdtsc-in-preference-to-mfence_rdtsc.patch
 sysfs-cpu-fix-typos-in-vulnerability-documentation.patch
index eedeb417bc616db35a4e48f142fab04b2c0e63e7..3d300888618ce6af615eea776f31f8392e782154 100644 (file)
@@ -20,6 +20,7 @@ Cc: Linus Torvalds <torvalds@linuxfoundation.org>
 Cc: Borislav Petkov <bp@alien8.de>
 Cc: David Woodhouse <dwmw@amazon.co.uk>
 Link: https://lkml.kernel.org/r/20180107214913.177414879@linutronix.de
+Signed-off-by: Razvan Ghitulete <rga@amazon.de>
 Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
 
 ---
@@ -47,9 +48,9 @@ Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
  #include <asm/bugs.h>
  #include <asm/processor.h>
  #include <asm/processor-flags.h>
-@@ -49,3 +50,31 @@ void __init check_bugs(void)
-       fpu__init_check_bugs();
+@@ -67,3 +68,31 @@ void __init check_bugs(void)
+               set_memory_4k((unsigned long)__va(0), 1);
+ #endif
  }
 +
 +#ifdef CONFIG_SYSFS
@@ -58,7 +59,7 @@ Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
 +{
 +      if (!boot_cpu_has_bug(X86_BUG_CPU_MELTDOWN))
 +              return sprintf(buf, "Not affected\n");
-+      if (boot_cpu_has(X86_FEATURE_PTI))
++      if (boot_cpu_has(X86_FEATURE_KAISER))
 +              return sprintf(buf, "Mitigation: PTI\n");
 +      return sprintf(buf, "Vulnerable\n");
 +}
index e90bbceea97f047b94cb43d139998eaa206e104a..cceebca14674f5ac1cd265ee6049497d4e5d4942 100644 (file)
@@ -52,7 +52,7 @@ Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
  obj-$(CONFIG_CPU_SUP_CYRIX_32)                += cyrix.o
 --- a/arch/x86/kernel/cpu/bugs.c
 +++ b/arch/x86/kernel/cpu/bugs.c
-@@ -17,6 +17,8 @@
+@@ -16,6 +16,8 @@
  #include <asm/msr.h>
  #include <asm/paravirt.h>
  #include <asm/alternative.h>
@@ -61,7 +61,7 @@ Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
  
  void __init check_bugs(void)
  {
-@@ -29,11 +31,13 @@ void __init check_bugs(void)
+@@ -28,11 +30,13 @@ void __init check_bugs(void)
  #endif
  
        identify_boot_cpu();
@@ -79,7 +79,7 @@ Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
        /*
         * Check whether we are able to run this kernel safely on SMP.
         *
-@@ -49,6 +53,20 @@ void __init check_bugs(void)
+@@ -48,4 +52,18 @@ void __init check_bugs(void)
        alternative_instructions();
  
        fpu__init_check_bugs();
@@ -98,8 +98,6 @@ Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
 +              set_memory_4k((unsigned long)__va(0), 1);
 +#endif
  }
- #ifdef CONFIG_SYSFS
 --- a/arch/x86/kernel/cpu/bugs_64.c
 +++ /dev/null
 @@ -1,33 +0,0 @@