From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-pg1-f197.google.com (mail-pg1-f197.google.com [209.85.215.197]) (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 DD60E4E2F01 for ; Thu, 24 Sep 2026 21:54:53 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.215.197 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1790286895; cv=none; b=s4nxJYBaVNxh6PyTIbCHSmaUdamDAfs2lCRnaR18+h4vaUBGtJDPcMiKsXnxivVqA0SDXdxhr/JP8QcjA4IjOAiVB38pQ06zyKlPYbZL+cvJjFKJQoeyf2TuRg7R4C65DHObP+w2Z3umzA9xwDcIl5Ukl/uORpItG0m6ieoT/Ew= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1790286895; c=relaxed/simple; bh=OQX9CvPDhGR2shu/TIA+wjRgAwE7A9IPpcBu1ixJB7I=; h=Date:In-Reply-To:Mime-Version:References:Message-ID:Subject:From: To:Cc:Content-Type; b=M2p8SZxxRcud0HyStZbOwtZWSywhIZOFaFS6E9DJjaw+OqZtTvj3GiL2I1411BtR2jAccgU9zQjuqoqzxrehNI76XSjR1Aq5gfjr34/nA3QmvlqqPW5liK2jnPN+CuF9VUUER5agvzliCfJb3pfUGRsdHGAEwQrG3O+DDURZQmw= 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=WLvbMIDu; arc=none smtp.client-ip=209.85.215.197 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="WLvbMIDu" Received: by mail-pg1-f197.google.com with SMTP id 41be03b00d2f7-cc1b6f65dacso131627a12.1 for ; Thu, 24 Sep 2026 14:54:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20251104; t=1790286893; x=1790891693; 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=sUjYBLPEX7UvUbeFt5DBnQoHHGDwCpPBBsqlU3yK4EA=; b=WLvbMIDuNrO05fvEyJvr+A6st/+3F0Iv0fJUDc57B6aNPGGiWjgnbeUTpYOe0NjGyl 9nNFqUEnDEdyo4cH2F7zFjSU8q7lgfKCu8RE5QLA3HzTDPqXvRvb6IAcUrf2fme9GzMz iLSuujICPOKJZoTCfWK6k5WASXZlg+kxVRERegZ+Vva/zV2t/0Lug48HW4xdG/Fwv0+u AYiV60//xkBE+DiqaGyH4Q/8JulGM2ee7snSQ3l9+swk//VOuOgRKmD4rXVBiag1x6e4 tFczUPIsSCXFXUB5nYZbmGH7GosZRjEaSo01qNDXmATtidKGptGvXjbZgw1Yexp+nVJR KqgQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1790286893; x=1790891693; 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=sUjYBLPEX7UvUbeFt5DBnQoHHGDwCpPBBsqlU3yK4EA=; b=gDin+Ri77DyNsmXe8VFfPmgP3DQYOTh/rAIXJ3M6yHvtrqtUBDTUGjt/sIDhIs7Z1w /VYP9wwVJJde1nIC8APujvL4mGM2dKqSiBFq24VN59+Y9V2yq3FlVnNsxFNC01JGnHCc wgX9zZGe9bKSGrdZy1/Ncr0dmdAnbHkbV18VwiCm7TU7/jA1ApwAnv6db4yxE+5BOKWH lAMKXocomBCrQXJbMxFFlLN1MaV4tWjVQ+zIwaiIUYD54pNvnaBhiTBTFEyAi6FjwZ55 P7Jt+uZPxsPxs5A04whPQCAROl8KbxLynVyFmIeGrpV8GokYYh+QVqywIaeQkSII6CnQ 1ytA== X-Forwarded-Encrypted: i=1; AKwUvByxJ9IXgrOgmFMCqZSSbC2PzvtnDSKL1i7/eB8tm+gvZ65S9YtagN8/BiNcvC39Exj385cAvLrvItTiY/k=@vger.kernel.org X-Gm-Message-State: AFuF++kI7cfqY38+yrxMoq7IpJr53xZDsjF4s3L4CC2bD2ZcKdJmTTyo UsAEb0ocoFObJHbxdz7oIh9WmSpLEqOTIGPNszxDM/eUa2n4PvCcVNlb/sr8WQGpJ5PmmmiE0Gw ibM1C0w== X-Received: from pgbcq2.prod.google.com ([2002:a05:6a02:4082:b0:cc1:5705:ff3b]) (user=seanjc job=prod-delivery.src-stubby-dispatcher) by 2002:a05:6a20:6a28:b0:3cc:f280:ebc6 with SMTP id adf61e73a8af0-3de0e70bac6mr3731054637.5.1790286892996; Thu, 24 Sep 2026 14:54:52 -0700 (PDT) Date: Thu, 24 Sep 2026 14:52:01 -0700 In-Reply-To: <20260921211608.1030158-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: <20260921211608.1030158-1-seanjc@google.com> X-Mailer: git-send-email 2.56.0.rc1.315.gc6ed9934b7-goog Message-ID: <179028361655.2004564.18333703645554243194.b4-ty@b4> Subject: Re: [PATCH v2 0/2] KVM: x86: Ensure userspace can't run L2 with stale PFNs From: Sean Christopherson To: Sean Christopherson , Paolo Bonzini Cc: kvm@vger.kernel.org, linux-kernel@vger.kernel.org, Jinwoo Lee , Stefan Teodorescu Content-Type: text/plain; charset="utf-8" On Mon, 21 Sep 2026 14:16:06 -0700, Sean Christopherson wrote: > Fix a class of bugs where KVM (a) lets userspace run L2 with potentially stale > PFNs and (b) fails to set kvm_run appropriately and so could unintentionally > cause a well-behaved VMM to run afoul of (a). > > v2: > - Re-pend KVM_REQ_GET_NESTED_STATE_PAGES in the common vcpu_enter_guest() > path. > - Fix the kvm_run bug(s). > > [...] Applied to kvm-x86 fixes, thanks! [1/2] KVM: x86: Re-pend GET_NESTED_STATE_PAGES if getting said pages fails https://github.com/kvm-x86/linux/commit/10180a277549 [2/2] KVM: x86: Fill kvm_run exit fields in common get_nested_state_pages() error paths https://github.com/kvm-x86/linux/commit/c1214f293d77 -- https://github.com/kvm-x86/linux/tree/next