Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=79.135.106.113 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796344887; b=HuAaljK0szXeVKECd7gYubEZLgpKrDyNdQKMbbIRiwoDLfHUpgDtE25A5+P6njwpm+J8 +WlNWvQiIQvnHW4X9SRAakwBjWWCWpgEctJ4FIyBWaUvdmKHQCL0qvV3G/ftwbstVgScs Zo7qqGJDxovunYggxris4e+f69etDcCdoVHY3zgbZbn+hdN5pnIS/zhZ/DPEflswbfryk CIkDBV4C81CvQLHe7+kCb3CF0fYLoVfwTITPJjbjfLiZ87jKqB0cb0cPq01xJDl2jMn7c 8eWrit+tVDGCQd8h542KZyd+Ii0ZAcsv2fK/IzsJSk58uBtX3G8044bOTX7Rjqn/LVw== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796344887; h=DMARC-Filter:DKIM-Signature:X-Pm-Submission-Id:From:To:Cc:Subject: Date:Message-ID:X-Mailer:In-Reply-To:References:MIME-Version: Content-Type:Content-Transfer-Encoding; bh=ciK+d85HY3E0xObBeVtW/7D1VP92o2c2I1DTfc7Cuyo=; b=aTE+AmAnBIbXRwfmQM6zVr8a9drKgtV+/Ax9cg2SV7KOm6POMGI+wglXe4yWGgR/qB+u C8Qcq31OUJUnXxkGyoZNl40+xkVV4ISKjnqcXDTzfb5wW5WJKbwIj25zXHK5Ga7sixBvQ e9YW4jnfsPaC3tFFK30yq6wALUQAdQpMxS2qfU8TEK33JK1pnDGZXySM8idfqNPdFg9hF y+xoMdPCg3V+jJHHZPkLo2OUUb3K/Mv5il4IihQHTBaC0jPbBy/+RWtm7zXsVHr/l142l cV5BSv+SGWaPzqYdkpp7Yu4BCXsNSnzAhfwrUzbXPVbD+hTwpBDIV49rUnKvwK8zE0w== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass header.from=reusswig.codes; spf=pass smtp.mailfrom=reusswig.codes; dkim=pass header.d=reusswig.codes header.i=@reusswig.codes header.a=rsa-sha256 header.s=protonmail3 header.b=tqZYuhoG; arc=none smtp.remote-ip=79.135.106.113 Received: from mail-106113.protonmail.ch (mail-106113.protonmail.ch [79.135.106.113]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 434AB606A322 for ; Fri, 4 Dec 2026 00:41:27 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 434AB606A322 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=reusswig.codes Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=reusswig.codes Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key, unprotected) header.d=reusswig.codes header.i=@reusswig.codes header.a=rsa-sha256 header.s=protonmail3 header.b=tqZYuhoG DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=reusswig.codes; s=protonmail3; t=1796344885; x=1796604085; bh=ciK+d85HY3E0xObBeVtW/7D1VP92o2c2I1DTfc7Cuyo=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References:From:To: Cc:Date:Subject:Reply-To:Feedback-ID:Message-ID:BIMI-Selector; b=tqZYuhoGojKAhtav8HDQElg3MwBudkD3zQ0/LqTQ+Ra6H4Wyq8UqH3JTm/brb/xAr 8uWyPVjJUYT1HXzm6K4zJVaV3FcmbA/TknJBh0aKGyhfBYmVPojzmybTExhxBsSl2D x63shDcIKKZdvDSqV6uBxMSseyuUZkkyfUbRu4gSqiAKp59U8mW+p+a0TRJ15oBeLv Htjs5nbzCWcehKrbx+I/TsesYNmy1bq8bPyMlKGjzL98mvxKlgiP5mnPWr/7Jt+Tcy ByGSZFdT9qSJz5Du8M2mjgDthBJSAQX/lbs7Nmw2QmR9nrKymvHxmPPRteN8phyPbb Mv5AQOCWYd5eQ== X-Pm-Submission-Id: 4jgXjw05dxz1DDLV From: =?UTF-8?q?Dennis=20Reu=C3=9Fwig?= To: sashiko-bot@kernel.org Cc: kvm@vger.kernel.org, =?UTF-8?q?Dennis=20Reu=C3=9Fwig?= Subject: Re: [PATCH 05/10] KVM: nVMX: Shadow supervisor shadow-stack control of nested EPT Date: Fri, 4 Dec 2026 01:41:21 +0100 Message-ID: <20261204004122.27876-1-dennis@reusswig.codes> X-Mailer: git-send-email 2.53.0 In-Reply-To: References: <20261204-nested-sss-v1-0-57de06f58b2b@reusswig.codes> <20261204-nested-sss-v1-5-57de06f58b2b@reusswig.codes> X-Mailing-List: kvm@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit > [Severity: High] > Can supervisor shadow-stack reads livelock L2 because fault->write stays > false after FNAME(walk_addr_generic)() returns? Good catch, real bug, fixed in v2. > [Severity: High] > Can omitting gw->sss_access from direct_access and role.access allow direct > shadow pages of huge EPT leaves to alias across bit 60 settings? Good catch, real bug, fixed in v2. > [Severity: High] > Can installing an ACC_EPT_SSS_MASK-only SPTE without shadow_mmu_writable_mask > miss a required remote TLB flush during write-protection? Good catch, real bug, fixed in v2. Setting shadow_mmu_writable_mask on these SPTEs would not work, though: fast_page_fault() makes an MMU-writable SPTE writable on a write fault without taking mmu_lock, while bit 60 must not allow ordinary writes. v2 adds a separate software bit (MMU-SSS, bit 59) that is set with bit 60 and that write-protection for shadow paging checks and clears, with a flush.