From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-pl1-f202.google.com (mail-pl1-f202.google.com [209.85.214.202]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 3C3684156C6 for ; Tue, 14 Jul 2026 18:44:01 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.214.202 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1784054645; cv=none; b=CyUUwwmp1jO3ET/b2YeDx5OEKYkK/vs/isfQMvOFY7hss+4P233WzFErp8JQ+3a2B23xXsktNPkmqaky3G0VZlvKX7cg4hQhpDhRUL4vhc5kPzsLVeREC+SXSWNx8f9PAEGvdNXhafIYlTqnHbl9fe1c+uw/177yLi7q5E6MxVU= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1784054645; c=relaxed/simple; bh=f61YfrHgaU0Gbcv/vF9d46tj6vQwe1xvPLFY/OqKJfw=; h=Date:In-Reply-To:Mime-Version:References:Message-ID:Subject:From: To:Cc:Content-Type; b=cHkusDK82lsqjguEd+sGxM2jHdZT4j/lMoPK+ZbHN/ZsR6IopfaZCmOBjgparllwnAl/60tW2ltDIAmrq3fNvpvD0FzBU1VmJLssESfMA2jhk5kx0rzY43YuBtFf3EXeKIPFL7iHs8CTZeMvSUWDG3wpjdnDN1notr4dGCHMh4E= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=google.com; spf=pass smtp.mailfrom=flex--seanjc.bounces.google.com; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b=RjoRPaGR; arc=none smtp.client-ip=209.85.214.202 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=google.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=flex--seanjc.bounces.google.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b="RjoRPaGR" Received: by mail-pl1-f202.google.com with SMTP id d9443c01a7336-2cacd6d37edso65935415ad.0 for ; Tue, 14 Jul 2026 11:44:01 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20251104; t=1784054641; x=1784659441; darn=vger.kernel.org; h=content-type:cc:to:from:subject:message-id:references:mime-version :in-reply-to:date:from:to:cc:subject:date:message-id:reply-to :content-type; bh=ygbRz4moN46SryCnSw8cMhgO4ezp2ZeqDLdJ0obBds0=; b=RjoRPaGRX9vId/STSyPYELOAyPWCBc1MvfxyYZMH3d2RJLHdDM7q9gntMpR4kFEYKT mCpmj/IUK5MU0e8GmJMDy3W0qVTF+0ZSFLfWBbe4k+lWph6hnNzVNOOOB/hJBG74xKcH TtB7A39dAzb2SGzCOApdDf62H51vf/l/Lgp/wy6eBifd+I0HMWXl9/bW648Wr+hQ8PdE OEgN98rXoBhvnR7G15RNJd9yyKiWKwvSAH0lpeZYRCGGYs03yvU7aJFByNAgWqlhWtjb xkvPLBE0/o+sZx5EbHcYSKWb9HEhv/GYHvUvX9pixSGLoPsN4qs4gmn+vSRsqyR4/gIh tCQQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1784054641; x=1784659441; h=content-type:cc:to:from:subject:message-id:references:mime-version :in-reply-to:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to:content-type; bh=ygbRz4moN46SryCnSw8cMhgO4ezp2ZeqDLdJ0obBds0=; b=GvNRWm4medjdNzbs22R7iX4od6eYKAQvauW8Nqra4cue4AHgzKnIwSTQ9VK94ukYSr BkbZ8dttTkzVwZIX5MdUe3WuuFLFI+N+tp1xUvcG8BfIF527EoHYec4mj2UwceXnKh7G T2vz2e8ztpiOPYtT0Y9C4+oiN6CTSIa626oUFuo/2+M+wjWb3WhqAzQlft6fMk6GkwBM k4xfHC3ntikaGFcQ4rmb8tGgnW2/hpl2AU6KlfAFbqDODCy53Ac8Rq5F7phtiYj0l1eJ psShlvFkUUvjwpqvMGhp33VfcKa15f2to/J9cb79+0SnRWJlgWdsqutfiq5wUeviGWlp vVog== X-Forwarded-Encrypted: i=1; AHgh+Rp0m8jQkRUUAMO3FdsVTE5inN8fJR7eFRvw291uVw92il6BnQHJboejs03hHe/ethughvkdUcIAQu5RSPw=@vger.kernel.org X-Gm-Message-State: AOJu0Yxm4gueDjse8k2z2IlWvdX0B5Lmirmg9X2oa9q1QjYeTiokNKbw ziPD9CUpsrApns79WJyu+X87BlJoYjjUOYLC0Uhq0wFXsKlwSPRBUhh5WHKMGjT6BY2FHlM5pW5 KKDMhRw== X-Received: from plblk15.prod.google.com ([2002:a17:903:8cf:b0:2cc:b305:dd6f]) (user=seanjc job=prod-delivery.src-stubby-dispatcher) by 2002:a17:902:f706:b0:2ca:5671:b219 with SMTP id d9443c01a7336-2ce9f052e7cmr141030155ad.22.1784054640528; Tue, 14 Jul 2026 11:44:00 -0700 (PDT) Date: Tue, 14 Jul 2026 11:41:13 -0700 In-Reply-To: <20260612145642.452392-1-seanjc@google.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: Mime-Version: 1.0 References: <20260612145642.452392-1-seanjc@google.com> X-Mailer: git-send-email 2.55.0.141.g00534a21ce-goog Message-ID: <178405353768.3120713.14326474027099250936.b4-ty@google.com> Subject: Re: [PATCH v2 0/2] KVM: nVMX: Fix ept=n bugs where KVM runs L2 with guest CR3 From: Sean Christopherson To: Sean Christopherson , Paolo Bonzini Cc: kvm@vger.kernel.org, linux-kernel@vger.kernel.org, Jim Mattson Content-Type: text/plain; charset="utf-8" On Fri, 12 Jun 2026 07:56:40 -0700, Sean Christopherson wrote: > Fix two bugs where KVM can run L2 with a guest-controlled CR3. The underlying > flaw dates back to commit f087a02941fe ("KVM: nVMX: Stash L1's CR3 in > vmcs01.GUEST_CR3 on nested entry w/o EPT"). Past me claimed: > > Smashing vmcs01.GUEST_CR3 is safe because nested VM-Exits, and the unwind, > reset KVM's MMU, i.e. vmcs01.GUEST_CR3 is guaranteed to be overwritten with > a shadow CR3 prior to re-entering L1. > > [...] Applied to kvm-x86 fixes, thanks! [1/2] KVM: nVMX: Move vTPR vs. TPR Threshold consistency check into "normal" checks https://github.com/kvm-x86/linux/commit/ebdac7554abb [2/2] KVM: nVMX: Don't use vmcs01.GUEST_CR3 to snapshot L1's CR3 when EPT is disabled https://github.com/kvm-x86/linux/commit/3e6dd2b9b7b2 -- https://github.com/kvm-x86/linux/tree/next