Received: by 2002:a4a:311b:0:0:0:0:0 with SMTP id k27-v6csp4781269ooa; Tue, 14 Aug 2018 10:27:30 -0700 (PDT) X-Google-Smtp-Source: AA+uWPwN81rqljlEypZapBuwdHL+IaXT5GdqBrBAbezZTAKj5s7psXs0e9AoQCLPFgaBv443aiYZ X-Received: by 2002:a17:902:4201:: with SMTP id g1-v6mr21381145pld.203.1534267649943; Tue, 14 Aug 2018 10:27:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1534267649; cv=none; d=google.com; s=arc-20160816; b=rNHt+MALZzGeW/93Q6kZvyzGmWf6zlQkW4rjiXVT88qQWBe1UkwmtjtpXpGNR12H+6 zxMdPZBIMZIeH7ECAS+ENBryg3ZMSPwNnT79ihEtONtXILHGWbF9rtPwDrTLft8bJzq9 /ZggQ15Uf+u1Bgxmo9fhvClUo6o7Q0S0zWpDcCJdwPplkaSi5w05fzpqu4wCNfHs4vaz qf7ooi1vJqAlj/FFzYVgF6MvfPo/UqKcGu2UKhsZZpxzetNjxbf7GQ/GkVZo1xRJlxU2 wN7UZwaqV+SN912VCGBgHS/8e+E3i9ihnMFu9OKzZGq1XD7zNDD4Vym3F2KoXBPwfBoG twDQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:message-id:date:subject:cc:to :from:arc-authentication-results; bh=hn/jbpRo6kcowP+o3nMwtG8HQPp5Z1IDPyI/Izfk9mQ=; b=KhtfKHVXNKe6Rzr+4ERvZqZWNBAALEIdi+p29tmLul2WMTwesWzCNP+FIhhrDhNwvO f4NyOsmzdxrkfz0y62B2Z7x6UH6ulBtt83CcR4Su/fQGY8wYOr2V59glSLq7bRAZffwd psdA8RtUoPOk+2VjaP0YXFrnvIYUajkjc1ZjsClZtaAzGRKKPH+PTSinBP5ZWW14u2Ou cjDXm9i7SNtOC43SuX1ravn4gyXzczHOtEviWiDdT5YORVt+YcpFWqX8uxpcEMuLYpEo Yy2N2JG+bXuLlzJRvjXwRVa0OFcLpcaqPzxpqEsuja/82q2ZdQuwt2FfR/GqUNt2Beo9 VhNQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id e6-v6si23721590pfe.31.2018.08.14.10.27.14; Tue, 14 Aug 2018 10:27:29 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2388275AbeHNUNs (ORCPT + 99 others); Tue, 14 Aug 2018 16:13:48 -0400 Received: from mail.linuxfoundation.org ([140.211.169.12]:51784 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2388233AbeHNUNr (ORCPT ); Tue, 14 Aug 2018 16:13:47 -0400 Received: from localhost (unknown [194.244.16.108]) by mail.linuxfoundation.org (Postfix) with ESMTPSA id AB9A0D1D; Tue, 14 Aug 2018 17:25:40 +0000 (UTC) From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , torvalds@linux-foundation.org, akpm@linux-foundation.org, linux@roeck-us.net, shuah@kernel.org, patches@kernelci.org, ben.hutchings@codethink.co.uk, lkft-triage@lists.linaro.org, stable@vger.kernel.org Subject: [PATCH 4.18 00/79] 4.18.1-stable review Date: Tue, 14 Aug 2018 19:16:19 +0200 Message-Id: <20180814171336.799314117@linuxfoundation.org> X-Mailer: git-send-email 2.18.0 User-Agent: quilt/0.65 X-stable: review X-KernelTest-Patch: http://kernel.org/pub/linux/kernel/v4.x/stable-review/patch-4.18.1-rc1.gz X-KernelTest-Tree: git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable-rc.git X-KernelTest-Branch: linux-4.18.y X-KernelTest-Patches: git://git.kernel.org/pub/scm/linux/kernel/git/stable/stable-queue.git X-KernelTest-Version: 4.18.1-rc1 X-KernelTest-Deadline: 2018-08-16T17:13+00:00 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This is the start of the stable review cycle for the 4.18.1 release. There are 79 patches in this series, all will be posted as a response to this one. If anyone has any issues with these being applied, please let me know. Responses should be made by Thu Aug 16 17:13:16 UTC 2018. Anything received after that time might be too late. The whole patch series can be found in one patch at: https://www.kernel.org/pub/linux/kernel/v4.x/stable-review/patch-4.18.1-rc1.gz or in the git tree and branch at: git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable-rc.git linux-4.18.y and the diffstat can be found below. thanks, greg k-h ------------- Pseudo-Shortlog of commits: Greg Kroah-Hartman Linux 4.18.1-rc1 Josh Poimboeuf x86/microcode: Allow late microcode loading with SMT disabled David Woodhouse tools headers: Synchronise x86 cpufeatures.h for L1TF additions Andi Kleen x86/mm/kmmio: Make the tracer robust against L1TF Andi Kleen x86/mm/pat: Make set_memory_np() L1TF safe Andi Kleen x86/speculation/l1tf: Make pmd/pud_mknotpresent() invert Andi Kleen x86/speculation/l1tf: Invert all not present mappings Thomas Gleixner cpu/hotplug: Fix SMT supported evaluation Paolo Bonzini KVM: VMX: Tell the nested hypervisor to skip L1D flush on vmentry Paolo Bonzini x86/speculation: Use ARCH_CAPABILITIES to skip L1D flush on vmentry Paolo Bonzini x86/speculation: Simplify sysfs report of VMX L1TF vulnerability Thomas Gleixner Documentation/l1tf: Remove Yonah processors from not vulnerable list Nicolai Stange x86/KVM/VMX: Don't set l1tf_flush_l1d from vmx_handle_external_intr() Nicolai Stange x86/irq: Let interrupt handlers set kvm_cpu_l1tf_flush_l1d Nicolai Stange x86: Don't include linux/irq.h from asm/hardirq.h Nicolai Stange x86/KVM/VMX: Introduce per-host-cpu analogue of l1tf_flush_l1d Nicolai Stange x86/irq: Demote irq_cpustat_t::__softirq_pending to u16 Nicolai Stange x86/KVM/VMX: Move the l1tf_flush_l1d test to vmx_l1d_flush() Nicolai Stange x86/KVM/VMX: Replace 'vmx_l1d_flush_always' with 'vmx_l1d_flush_cond' Nicolai Stange x86/KVM/VMX: Don't set l1tf_flush_l1d to true from vmx_l1d_flush() Josh Poimboeuf cpu/hotplug: detect SMT disabled by BIOS Tony Luck Documentation/l1tf: Fix typos Nicolai Stange x86/KVM/VMX: Initialize the vmx_l1d_flush_pages' content Jiri Kosina x86/speculation/l1tf: Unbreak !__HAVE_ARCH_PFN_MODIFY_ALLOWED architectures Thomas Gleixner Documentation: Add section about CPU vulnerabilities Jiri Kosina x86/bugs, kvm: Introduce boot-time control of L1TF mitigations Thomas Gleixner cpu/hotplug: Set CPU_SMT_NOT_SUPPORTED early Jiri Kosina cpu/hotplug: Expose SMT control init function Thomas Gleixner x86/kvm: Allow runtime control of L1D flush Thomas Gleixner x86/kvm: Serialize L1D flush parameter setter Thomas Gleixner x86/kvm: Add static key for flush always Thomas Gleixner x86/kvm: Move l1tf setup function Thomas Gleixner x86/l1tf: Handle EPT disabled state proper Thomas Gleixner x86/kvm: Drop L1TF MSR list approach Thomas Gleixner x86/litf: Introduce vmx status variable Thomas Gleixner cpu/hotplug: Online siblings when SMT control is turned on Konrad Rzeszutek Wilk x86/KVM/VMX: Use MSR save list for IA32_FLUSH_CMD if required Konrad Rzeszutek Wilk x86/KVM/VMX: Extend add_atomic_switch_msr() to allow VMENTER only MSRs Konrad Rzeszutek Wilk x86/KVM/VMX: Separate the VMX AUTOLOAD guest/host number accounting Konrad Rzeszutek Wilk x86/KVM/VMX: Add find_msr() helper function Konrad Rzeszutek Wilk x86/KVM/VMX: Split the VMX MSR LOAD structures to have an host/guest numbers Paolo Bonzini x86/KVM/VMX: Add L1D flush logic Paolo Bonzini x86/KVM/VMX: Add L1D MSR based flush Paolo Bonzini x86/KVM/VMX: Add L1D flush algorithm Konrad Rzeszutek Wilk x86/KVM/VMX: Add module argument for L1TF mitigation Konrad Rzeszutek Wilk x86/KVM: Warn user if KVM is loaded SMT and L1TF CPU bug being present Thomas Gleixner cpu/hotplug: Boot HT siblings at least once Thomas Gleixner Revert "x86/apic: Ignore secondary threads if nosmt=force" Michal Hocko x86/speculation/l1tf: Fix up pte->pfn conversion for PAE Vlastimil Babka x86/speculation/l1tf: Protect PAE swap entries against L1TF Borislav Petkov x86/CPU/AMD: Move TOPOEXT reenablement before reading smp_num_siblings Konrad Rzeszutek Wilk x86/cpufeatures: Add detection of L1D cache flush support. Vlastimil Babka x86/speculation/l1tf: Extend 64bit swap file size limit Thomas Gleixner x86/apic: Ignore secondary threads if nosmt=force Thomas Gleixner x86/cpu/AMD: Evaluate smp_num_siblings early Borislav Petkov x86/CPU/AMD: Do not check CPUID max ext level before parsing SMP info Thomas Gleixner x86/cpu/intel: Evaluate smp_num_siblings early Thomas Gleixner x86/cpu/topology: Provide detect_extended_topology_early() Thomas Gleixner x86/cpu/common: Provide detect_ht_early() Thomas Gleixner x86/cpu/AMD: Remove the pointless detect_ht() call Thomas Gleixner x86/cpu: Remove the pointless CPU printout Thomas Gleixner cpu/hotplug: Provide knobs to control SMT Thomas Gleixner cpu/hotplug: Split do_cpu_down() Thomas Gleixner cpu/hotplug: Make bringup/teardown of smp threads symmetric Thomas Gleixner x86/topology: Provide topology_smt_supported() Thomas Gleixner x86/smp: Provide topology_is_primary_thread() Peter Zijlstra sched/smt: Update sched_smt_present at runtime Konrad Rzeszutek Wilk x86/bugs: Move the l1tf function and define pr_fmt properly Andi Kleen x86/speculation/l1tf: Limit swap file size to MAX_PA/2 Andi Kleen x86/speculation/l1tf: Disallow non privileged high MMIO PROT_NONE mappings Andi Kleen x86/speculation/l1tf: Add sysfs reporting for l1tf Andi Kleen x86/speculation/l1tf: Make sure the first page is always reserved Andi Kleen x86/speculation/l1tf: Protect PROT_NONE PTEs against speculation Linus Torvalds x86/speculation/l1tf: Protect swap entries against L1TF Linus Torvalds x86/speculation/l1tf: Change order of offset/type in swap entry Andi Kleen x86/speculation/l1tf: Increase 32bit PAE __PHYSICAL_PAGE_SHIFT Nick Desaulniers x86/irqflags: Provide a declaration for native_save_fl Masami Hiramatsu kprobes/x86: Fix %p uses in error messages Jiri Kosina x86/speculation: Protect against userspace-userspace spectreRSB Peter Zijlstra x86/paravirt: Fix spectre-v2 mitigations for paravirt guests ------------- Diffstat: Documentation/ABI/testing/sysfs-devices-system-cpu | 24 + Documentation/admin-guide/index.rst | 9 + Documentation/admin-guide/kernel-parameters.txt | 78 +++ Documentation/admin-guide/l1tf.rst | 610 +++++++++++++++++++++ Makefile | 4 +- arch/Kconfig | 3 + arch/x86/Kconfig | 1 + arch/x86/include/asm/apic.h | 9 + arch/x86/include/asm/cpufeatures.h | 3 + arch/x86/include/asm/dmi.h | 2 +- arch/x86/include/asm/hardirq.h | 26 +- arch/x86/include/asm/irqflags.h | 2 + arch/x86/include/asm/kvm_host.h | 6 + arch/x86/include/asm/msr-index.h | 7 + arch/x86/include/asm/page_32_types.h | 9 +- arch/x86/include/asm/pgtable-2level.h | 17 + arch/x86/include/asm/pgtable-3level.h | 37 +- arch/x86/include/asm/pgtable-invert.h | 32 ++ arch/x86/include/asm/pgtable.h | 74 ++- arch/x86/include/asm/pgtable_64.h | 38 +- arch/x86/include/asm/processor.h | 17 + arch/x86/include/asm/topology.h | 6 +- arch/x86/include/asm/vmx.h | 11 + arch/x86/kernel/apic/apic.c | 16 + arch/x86/kernel/apic/io_apic.c | 1 + arch/x86/kernel/apic/msi.c | 1 + arch/x86/kernel/apic/vector.c | 1 + arch/x86/kernel/cpu/amd.c | 51 +- arch/x86/kernel/cpu/bugs.c | 171 ++++-- arch/x86/kernel/cpu/common.c | 56 +- arch/x86/kernel/cpu/cpu.h | 2 + arch/x86/kernel/cpu/intel.c | 7 + arch/x86/kernel/cpu/microcode/core.c | 16 +- arch/x86/kernel/cpu/topology.c | 41 +- arch/x86/kernel/fpu/core.c | 1 + arch/x86/kernel/hpet.c | 1 + arch/x86/kernel/i8259.c | 1 + arch/x86/kernel/idt.c | 1 + arch/x86/kernel/irq.c | 1 + arch/x86/kernel/irq_32.c | 1 + arch/x86/kernel/irq_64.c | 1 + arch/x86/kernel/irqinit.c | 1 + arch/x86/kernel/kprobes/core.c | 5 +- arch/x86/kernel/paravirt.c | 14 +- arch/x86/kernel/setup.c | 6 + arch/x86/kernel/smp.c | 1 + arch/x86/kernel/smpboot.c | 18 + arch/x86/kernel/time.c | 1 + arch/x86/kvm/mmu.c | 1 + arch/x86/kvm/vmx.c | 455 ++++++++++++--- arch/x86/kvm/x86.c | 34 +- arch/x86/mm/init.c | 23 + arch/x86/mm/kmmio.c | 25 +- arch/x86/mm/mmap.c | 21 + arch/x86/mm/pageattr.c | 8 +- arch/x86/mm/pti.c | 1 + .../intel-mid/device_libs/platform_mrfld_wdt.c | 1 + arch/x86/platform/uv/tlb_uv.c | 1 + arch/x86/xen/enlighten.c | 1 + drivers/base/cpu.c | 8 + drivers/gpu/drm/i915/i915_pmu.c | 1 + drivers/gpu/drm/i915/intel_lpe_audio.c | 1 + drivers/pci/controller/pci-hyperv.c | 1 + include/asm-generic/pgtable.h | 12 + include/linux/cpu.h | 21 + include/linux/swapfile.h | 2 + kernel/cpu.c | 280 +++++++++- kernel/sched/core.c | 30 +- kernel/sched/fair.c | 1 + kernel/smp.c | 2 + mm/memory.c | 37 +- mm/mprotect.c | 49 ++ mm/swapfile.c | 46 +- tools/arch/x86/include/asm/cpufeatures.h | 3 + 74 files changed, 2206 insertions(+), 300 deletions(-)