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=1796416162; b=uiV4rFqwA/IIAI15gUoRayJzqfA+bM9Ly/wLEg5whGAQJEsoqRDPG7i5qDhTNPfNFBVS +5FMZSu+QYSuIPHBhBluEl152iomJxyzHdm0fb3Re0oNCjxNS78wY/kKmtZQX6wXru1A2 gILyu9HyjYzBOMED3Rs7Rh9bauwuxICnpKz37vm/MGr9P4bPuont6jDIEjH4WLHCDLkJS FHw6fAxNJHy1/qNJRDFmv6eaJToGpFxETADchq+KIFYdkd83sGJwnEJv5fqbeQbVNKLxz Bv02OLFqcW1kpIdo/+XGd1p0LNHJzKOC33tvRxOjBDcovE73BXPGCAv8XcygvPLHPyA== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796416162; h=DMARC-Filter:DKIM-Signature:Received:X-MC-Unique: X-Mimecast-MFC-AGG-ID:Received:Received:From:To:Cc:Subject:Date: Message-ID:In-Reply-To:References:MIME-Version: Content-Transfer-Encoding:X-Scanned-By; bh=IBGRTcXBR6IOOcUbmti6LjCz2aePe6Q8Ej9fmL0SlQo=; b=qfaSZtRQUTEgKbPH5MXiGPZ55AC1y2gQ6omaTBSVAAryoTXUi/gj7bByHYezbfI2p9JX J75sl6q5I/sSUvdHr8o1DYvoTiHSWzxjR7g2J9oIxFXTR4uoa4hQ5ZoMgFDj66gtUXG15 /adzbEMrozNhENsd2o2w3QYDJZbWHIBPVH7COn0tIWDhwW0e4jyeUWrrJ9UhmQRmQiSrQ EYXTSzIVfQuDCFrXdC9EA5WXkZu4WTnjmRICtyIRs72pTW7GofxmZRDVWP4pkulRx1KLp 47vM+7XAaIy9J46WwzbXaIMUXgv8HqIDUm3lcvBGNFquhoYm46WVKXZlr+qR/v1V4Bw== 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=cM25gXUG; 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 05D0B606A322 for ; Fri, 4 Dec 2026 20:29:21 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 05D0B606A322 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=cM25gXUG DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1796416162; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=IBGRTcXBR6IOOcUbmti6LjCz2aePe6Q8Ej9fmL0SlQo=; b=cM25gXUGaw5C19xeXJ26stNIaDQVjBk1Pzkk8hfIPYyQsVoLJYpsCOBdNky68oUTHX5JEu Elb+l413n/5ZHgzqGR/io2GaoeY1ZN0hr9UqU/Lyc3/KywY1bQWL96FEo4sV3kW/AUo5h6 sT2ZMLNwhGzDxdh/nKRyOSm/gEQm7ww= 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-640-eTEuaJa8NT-kTjDxfb-MIQ-1; Fri, 4 Dec 2026 20:29:18 +0000 X-MC-Unique: eTEuaJa8NT-kTjDxfb-MIQ-1 X-Mimecast-MFC-AGG-ID: eTEuaJa8NT-kTjDxfb-MIQ_1796416157 Received: from mx-prod-int-10.mail-002.prod.us-west-2.aws.redhat.com (mx-prod-int-10.mail-002.prod.us-west-2.aws.redhat.com [10.30.177.95]) (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 A920C18B5F88; Fri, 4 Dec 2026 20:29:17 +0000 (UTC) Received: from pbonzini-thinkpadx1carbon6th.rmtit.csb (headnet04.pony-001.prod.iad2.dc.redhat.com [10.2.32.116]) by mx-prod-int-10.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTP id 8F37FBBD; Fri, 4 Dec 2026 20:29:16 +0000 (UTC) From: Paolo Bonzini To: Paolo Bonzini Cc: linux-kernel@vger.kernel.org, kvm@vger.kernel.org Subject: Re: [PATCH 6.1.y 00/24] Fixes for various (mostly x86) KVM vulnerabilities Date: Fri, 4 Dec 2026 21:29:15 +0100 Message-ID: <20261204202915.2226192-1-pbonzini@redhat.com> In-Reply-To: <20261204180423.2168641-1-pbonzini@redhat.com> References: <20261204180423.2168641-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.6 on 10.30.177.95 I didn't mean to send this, as it was prepared but (clearly) not tested. Too many branches to send out... I do intend to test and re-post it, but it will take a few days as there is a public holiday early next week. On Fri, 04 Dec 2026 19:03:59 +0100, Paolo Bonzini wrote: > 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 > > Hou Wenlong (3): > KVM: x86/mmu: Move round_gfn_for_level() helper into mmu_internal.h > KVM: x86/mmu: Fix wrong gfn range of tlb flushing in > kvm_set_pte_rmapp() > KVM: x86/mmu: Fix wrong start gfn of tlb flushing with range > > Jun Miao (1): > KVM: Fix comments that refer to the non-existent > install_new_memslots() > > Kyle Zeng (1): > KVM: x86/mmu: Flush all TLB entries, not a precise range, when > yielding > > Peter Zijlstra (1): > ptrace: Convert ptrace_attach() to use lock guards > > Sean Christopherson (18): > 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: VMX: Retry APIC-access page reload if invalidation is in-progress > KVM: x86: Use standard mmu_notifier invalidate hooks for APIC access > page > 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 dangling MMU invalidations at VM destruction > 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 > > Documentation/virt/kvm/locking.rst | 2 +- > arch/x86/kernel/fpu/core.c | 37 ++++--- > arch/x86/kvm/lapic.c | 79 ++++++++++----- > arch/x86/kvm/mmu/mmu.c | 75 ++++++++++---- > arch/x86/kvm/mmu/mmu_internal.h | 14 +++ > arch/x86/kvm/mmu/paging_tmpl.h | 5 +- > arch/x86/kvm/mmu/tdp_iter.c | 11 +-- > arch/x86/kvm/vmx/vmx.c | 53 ++++++++-- > arch/x86/kvm/x86.c | 16 +-- > arch/x86/kvm/xen.c | 7 +- > include/linux/kvm_host.h | 7 +- > include/linux/sched/task.h | 2 + > include/linux/spinlock.h | 26 +++++ > kernel/ptrace.c | 154 ++++++++++++++--------------- > virt/kvm/kvm_main.c | 78 +++++++++------ > virt/kvm/kvm_mm.h | 2 + > virt/kvm/pfncache.c | 12 +++ > 17 files changed, 374 insertions(+), 206 deletions(-) > > -- > 2.56.1