diff options
author | Paul Gortmaker <paul.gortmaker@windriver.com> | 2020-08-18 11:20:33 -0400 |
---|---|---|
committer | Paul Gortmaker <paul.gortmaker@windriver.com> | 2020-08-18 11:20:33 -0400 |
commit | 37d21a3048159843fe00078f9e93499c4a672079 (patch) | |
tree | da04d5f0ab6dc1de1be2c267d523f486c47bb809 | |
parent | e337c5fc6a96a1c71a5fcd144525d1a2636d9ddd (diff) | |
download | longterm-queue-5.2-37d21a3048159843fe00078f9e93499c4a672079.tar.gz |
x86: drop KVM VMX reporting commit ; relies on v5.6-rc1~160^2~17
Signed-off-by: Paul Gortmaker <paul.gortmaker@windriver.com>
-rw-r--r-- | queue/series | 1 | ||||
-rw-r--r-- | queue/x86-bugs-multihit-Fix-mitigation-reporting-when-VMX-.patch | 72 |
2 files changed, 0 insertions, 73 deletions
diff --git a/queue/series b/queue/series index 3772600c..a46e68d2 100644 --- a/queue/series +++ b/queue/series @@ -103,7 +103,6 @@ ALSA-usb-audio-fix-overeager-device-match-for-MacroS.patch ceph-handle-zero-length-feature-mask-in-session-mess.patch i2c-rcar-avoid-race-when-unregistering-slave.patch watchdog-initialize-device-before-misc_register.patch -x86-bugs-multihit-Fix-mitigation-reporting-when-VMX-.patch block-check-queue-s-limits.discard_granularity-in-__.patch Linux-5.2.54.patch diff --git a/queue/x86-bugs-multihit-Fix-mitigation-reporting-when-VMX-.patch b/queue/x86-bugs-multihit-Fix-mitigation-reporting-when-VMX-.patch deleted file mode 100644 index e9a0b3c3..00000000 --- a/queue/x86-bugs-multihit-Fix-mitigation-reporting-when-VMX-.patch +++ /dev/null @@ -1,72 +0,0 @@ -From f29dfa53cc8ae6ad93bae619bcc0bf45cab344f7 Mon Sep 17 00:00:00 2001 -From: Pawan Gupta <pawan.kumar.gupta@linux.intel.com> -Date: Thu, 16 Jul 2020 12:23:59 -0700 -Subject: [PATCH] x86/bugs/multihit: Fix mitigation reporting when VMX is not - in use - -commit f29dfa53cc8ae6ad93bae619bcc0bf45cab344f7 upstream. - -On systems that have virtualization disabled or unsupported, sysfs -mitigation for X86_BUG_ITLB_MULTIHIT is reported incorrectly as: - - $ cat /sys/devices/system/cpu/vulnerabilities/itlb_multihit - KVM: Vulnerable - -System is not vulnerable to DoS attack from a rogue guest when -virtualization is disabled or unsupported in the hardware. Change the -mitigation reporting for these cases. - -Fixes: b8e8c8303ff2 ("kvm: mmu: ITLB_MULTIHIT mitigation") -Reported-by: Nelson Dsouza <nelson.dsouza@linux.intel.com> -Co-developed-by: Sean Christopherson <sean.j.christopherson@intel.com> -Signed-off-by: Sean Christopherson <sean.j.christopherson@intel.com> -Signed-off-by: Pawan Gupta <pawan.kumar.gupta@linux.intel.com> -Signed-off-by: Ingo Molnar <mingo@kernel.org> -Reviewed-by: Tony Luck <tony.luck@intel.com> -Acked-by: Thomas Gleixner <tglx@linutronix.de> -Link: https://lore.kernel.org/r/0ba029932a816179b9d14a30db38f0f11ef1f166.1594925782.git.pawan.kumar.gupta@linux.intel.com - -diff --git a/Documentation/admin-guide/hw-vuln/multihit.rst b/Documentation/admin-guide/hw-vuln/multihit.rst -index ba9988d8bce5..140e4cec38c3 100644 ---- a/Documentation/admin-guide/hw-vuln/multihit.rst -+++ b/Documentation/admin-guide/hw-vuln/multihit.rst -@@ -80,6 +80,10 @@ The possible values in this file are: - - The processor is not vulnerable. - * - KVM: Mitigation: Split huge pages - - Software changes mitigate this issue. -+ * - KVM: Mitigation: VMX unsupported -+ - KVM is not vulnerable because Virtual Machine Extensions (VMX) is not supported. -+ * - KVM: Mitigation: VMX disabled -+ - KVM is not vulnerable because Virtual Machine Extensions (VMX) is disabled. - * - KVM: Vulnerable - - The processor is vulnerable, but no mitigation enabled - -diff --git a/arch/x86/kernel/cpu/bugs.c b/arch/x86/kernel/cpu/bugs.c -index f0b743a2fe9c..d3f0db463f96 100644 ---- a/arch/x86/kernel/cpu/bugs.c -+++ b/arch/x86/kernel/cpu/bugs.c -@@ -31,6 +31,7 @@ - #include <asm/intel-family.h> - #include <asm/e820/api.h> - #include <asm/hypervisor.h> -+#include <asm/tlbflush.h> - - #include "cpu.h" - -@@ -1549,7 +1550,12 @@ static ssize_t l1tf_show_state(char *buf) - - static ssize_t itlb_multihit_show_state(char *buf) - { -- if (itlb_multihit_kvm_mitigation) -+ if (!boot_cpu_has(X86_FEATURE_MSR_IA32_FEAT_CTL) || -+ !boot_cpu_has(X86_FEATURE_VMX)) -+ return sprintf(buf, "KVM: Mitigation: VMX unsupported\n"); -+ else if (!(cr4_read_shadow() & X86_CR4_VMXE)) -+ return sprintf(buf, "KVM: Mitigation: VMX disabled\n"); -+ else if (itlb_multihit_kvm_mitigation) - return sprintf(buf, "KVM: Mitigation: Split huge pages\n"); - else - return sprintf(buf, "KVM: Vulnerable\n"); --- -2.27.0 - |