From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=170.10.133.124 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796407272; b=zdV/DHjzamd3O8psrQuuY0nVot9EKZv/QbvBFkzHo18FgeIosuKRQkvfLamvyjKabaKW 2Y9BJBRHKdO6sPQYxIwBPIufIyIXY5x5SaYlqRPJzya8EwCqNpdnLIg6n4bbvkSsxXGUh QX3+4zJRrRgyhT9KgXQsOmNZNO7RUkgcG7QNBNWNDzWggR8VQ313FhBOE2k3wM6S4mvRF C17SkHVR8i7xzBtTyZ3Hc0nPnu3Tzb8BD3qoVMpfdZwTulbwC6w2PxiO8hCqOS1GtQjbM 0EjnBiDBidDX8qLYHcyBho3T0BF9xST8V6RMnTl0stIk1nKRD3QMDPtugxnyhAqQ/XQ== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796407272; h=DMARC-Filter:DKIM-Signature:Received:X-MC-Unique: X-Mimecast-MFC-AGG-ID:Received:Received:From:To:Subject:Date: Message-ID:MIME-Version:Content-Transfer-Encoding:X-Scanned-By; bh=xyh/QchiTnbN4mI9fJ00y+G+HkCPot8nOlp9eMdmaXk=; b=lefM1jaCm7UwWNm+gexyfXDn67rK74WiVHe9sZVFOORULgVP1nGYxyighJWzT7TW5O/a dTGloOientLOWfwHl3eMQ5jg8kTTO4r1LFi2OM/kgsyQjgjxhsb8ggWKldC7z1CAwZO5/ NpxdpDAyBqDtKnM8lltopOi4EfmaMdKSzgIHeqH0eFxhwzji/m4WB7Ooy+Gz2zCKHvx3L 5yUpORUebBXOUI5KGLyT5HoAXfxmJphJNkAF4fPt8GaW6ELr5abooZcnNOUxgfmVVfh35 yLkag7e0gV+Si+AnIGIMfyqUJHeEapeAUsMTlliT4bKuUvKsH6obMhdX3JSh5iJBHdQ== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass header.from=redhat.com; spf=pass smtp.mailfrom=redhat.com; dkim=pass header.d=redhat.com header.i=@redhat.com header.a=rsa-sha256 header.s=mimecast20190719 header.b=eemv2eFw; arc=none smtp.remote-ip=170.10.133.124 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id AEC7B606A322 for ; Fri, 4 Dec 2026 18:01:11 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org AEC7B606A322 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=redhat.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=redhat.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.a=rsa-sha256 header.s=mimecast20190719 header.b=eemv2eFw DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1796407271; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=xyh/QchiTnbN4mI9fJ00y+G+HkCPot8nOlp9eMdmaXk=; b=eemv2eFwlHDFSQDMUeVUy3kWRV7ht/pHufH3u2iQS0tys8+ef9CZC+GXB9Y0/T5VMaFpH9 ydDqdB9d27QqcCrDxVYo2HeKw0L1l0hObi0N+ih86ibQIfV+ZrbY0jJ/2WHD2R/daBXe64 061bkUazrmpWV312EBOhsQNiCXLn+fY= Received: from mx-prod-mc-08.mail-002.prod.us-west-2.aws.redhat.com (ec2-35-165-154-97.us-west-2.compute.amazonaws.com [35.165.154.97]) by relay.mimecast.com with ESMTP with STARTTLS with 8BITMIME (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-348-Yf97l262Pre7P7IbS8f6CQ-1; Fri, 4 Dec 2026 18:01:07 +0000 X-MC-Unique: Yf97l262Pre7P7IbS8f6CQ-1 X-Mimecast-MFC-AGG-ID: Yf97l262Pre7P7IbS8f6CQ_1796407267 Received: from mx-prod-int-03.mail-002.prod.us-west-2.aws.redhat.com (mx-prod-int-03.mail-002.prod.us-west-2.aws.redhat.com [10.30.177.12]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by mx-prod-mc-08.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTPS id 0599D18C02E9; Fri, 4 Dec 2026 18:01:02 +0000 (UTC) Received: from pbonzini-thinkpadx1carbon6th.rmtit.csb (headnet04.pony-001.prod.iad2.dc.redhat.com [10.2.32.116]) by mx-prod-int-03.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTP id 21B111955E83; Fri, 4 Dec 2026 18:01:00 +0000 (UTC) From: Paolo Bonzini To: linux-kernel@vger.kernel.org, kvm@vger.kernel.org Subject: [PATCH 6.18.y 00/17] Fixes for various (mostly x86) KVM vulnerabilities Date: Fri, 4 Dec 2026 19:00:42 +0100 Message-ID: <20261204180059.2165490-1-pbonzini@redhat.com> X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Scanned-By: MIMEDefang 3.0 on 10.30.177.12 Loongarch: - Flush TLBs *before* dropping mmu_lock RISC-V: - Flush TLBs *before* dropping mmu_lock x86: - Flush TLB *before* dropping mmu_lock, and flush them entirely - Flush TLBs if child SPTE is zapped when splitting a huge SPTE - Pin kvm->mm prior to borrowing mm when setting event channel - Disable hypervisor (VMX Preemption) timer if TSC deadline wraps - Reset local APIC timer metadata on RESET, INIT, and KVM_SET_LAPIC - Ensure guest FPU is resident in hardware when updating actual XFD MSR - Ensure pCPU is valid before sending IPI to deliver posted IRQ Generic: - Invalidate all GFN=>PFN caches when VM and/or its process is dying Paolo Kyle Zeng (2): LoongArch: KVM: Flush TLBs *before* dropping mmu_lock KVM: x86/mmu: Flush all TLB entries, not a precise range, when yielding Sean Christopherson (15): KVM: x86: Grab lapic_timer in a local variable to cleanup periodic code KVM: x86/mmu: Flush TLBs if child SPTE is zapped when splitting a huge SPTE KVM: x86/mmu: Propagate the return from kvm_zap_all_rmap_sptes() out of __rmap_add() KVM: x86: Disable hypervisor (VMX Preemption) timer if TSC deadline wraps KVM: x86: Reset local APIC timer metadata on RESET, INIT, and KVM_SET_LAPIC KVM: x86/mmu: Flush TLBs in kvm_unmap_gfn_range() if the unmap may block/yield KVM: x86/xen: Pin kvm->mm prior to borrowing mm when setting event channel KVM: Fold kvm_flush_shadow_all() into kvm_mmu_notifier_release() KVM: WARN if there are in-flight memslot updates when a VM's process exits KVM: Set mn_active_invalidate_count when the VM's mm is released KVM: Invalidate all GFN=>PFN caches when VM and/or its process is dying x86/fpu: Bail early from guest XFD update if XFD isn't supported x86/fpu: Clear XSTATE_BV[i] in guest XSAVE state if guest FPU isn't in-use x86/fpu: Ensure guest FPU is resident in hardware when updating actual XFD MSR KVM: VMX: Ensure pCPU is valid before sending IPI to deliver posted IRQ arch/loongarch/kvm/mmu.c | 12 +++--- arch/x86/kernel/fpu/core.c | 37 ++++++++++++------ arch/x86/kvm/lapic.c | 79 +++++++++++++++++++++++++------------- arch/x86/kvm/mmu/mmu.c | 49 ++++++++++++++++++----- arch/x86/kvm/vmx/common.h | 5 ++- arch/x86/kvm/vmx/tdx.c | 4 +- arch/x86/kvm/x86.c | 2 +- arch/x86/kvm/xen.c | 7 +++- virt/kvm/kvm_main.c | 57 +++++++++++++++++++-------- virt/kvm/kvm_mm.h | 2 + virt/kvm/pfncache.c | 12 ++++++ 11 files changed, 189 insertions(+), 77 deletions(-) -- 2.56.1