From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-pl1-f178.google.com (mail-pl1-f178.google.com [209.85.214.178]) (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 0BCCE3A5E84 for ; Wed, 26 Aug 2026 20:17:11 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.214.178 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1787775433; cv=none; b=ke2J/up1X6qIMb27Hmv3LE6xBOfGFF1AJIP+P0zD0Q+W8ViJJ08YRBKZ0SzeW4JFdubsxd1oq7P7bH7So4nIZMXsBzf/nhpwHU9Y5a7ZHkGUoBUhDV1gKT83+GHXnUQH5Ts3/kr51DZmiDB5Qqz7/A4cfTjsA+asZlUnsy8aqIg= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1787775433; c=relaxed/simple; bh=3Pduo1gHVDIUUt5sDBfU654xzH3NpDT0jtFbBzAYHKE=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=GzEh9kqi7wvfxW9wUQnQANXFilqR62yVSrW3Xgf5kxbxnUnG7Co2cM50uLNMiO5EdGmUORqP7/Z45KVGD+HTC0IiS9YG3y3hChpuDsy18raBFEqXZdAY42Rd73igmv34fa0iNXwcUKFigo/5MZs3n34t34r31r+VhIppwGEunlo= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=trailofbits.com; spf=pass smtp.mailfrom=trailofbits.com; dkim=pass (2048-bit key) header.d=trailofbits.com header.i=@trailofbits.com header.b=VPWOFY/N; arc=none smtp.client-ip=209.85.214.178 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=trailofbits.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=trailofbits.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=trailofbits.com header.i=@trailofbits.com header.b="VPWOFY/N" Received: by mail-pl1-f178.google.com with SMTP id d9443c01a7336-2d530328efbso14199775ad.0 for ; Wed, 26 Aug 2026 13:17:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=trailofbits.com; s=google; t=1787775431; x=1788380231; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to:content-type; bh=QhjGgYTatBrHOcQxWsDxDksd7v3LZqmlD+U/i4Av3LE=; b=VPWOFY/Nj1NZ4RktRY0Z3H6xTeuxBcS3n54MAU71fZUSZmwH56ciowhwLmjn9I55W3 pKQIwGww7siRGWLsc/y68bd442NQC/KYfF6sPTWKffHodsWjz+RQvuPAj1Pchp8HbxgS bDs7yzVJVO5Z/ncipvOwZB2EFZMTqqYi+jYeklcevgQzkt6QHCnNBUWxN/9XYrr0kyWj cVaDGVU1X/cmC5QP+FmR5zVrHHlPb3IcvgwPmNv1gd2dXCxjf6P+Wb/4I+37IzYhBzQP qFyVewDMDgq7h7pWn0TF/5H5OCXC0C/lMM57s1zsHSzOHZ09nBZ4lTNdXcgdV/egR94y XNuQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1787775431; x=1788380231; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-gg:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to:content-type; bh=QhjGgYTatBrHOcQxWsDxDksd7v3LZqmlD+U/i4Av3LE=; b=Vxhm8PqH13um/Jm6PhzSgSzOVLBrzp3yGqD+5ZD7mgg05TZ9NbuqJx/DQAerKhCubU xg5Jcx7V8Z7WemFzKMJRFII0kk+CY5O9xzxTubHvSLfao6Lm7ZdubvD25bDkjEk4asEz F8h2nLlvcouu3bXBMzzgjViX5qulwZXbU+QAZrjB2/4pQbHZXaCEDmiPqO425F8N90Y2 OmOkzn+dLv8AP5iLfcQzI9kvjVIQIxDcjKKTIi0Vr1KNdBjVQBXDTa7DJksbI+dZKUZ5 9mZBbM6Bz7iw87GxVZjO/KOFfti6n3KLWWrCWR12tgw1/UujdDDcG+TP7YDJ0ewCHDJI AyEA== X-Gm-Message-State: AFuF++l0jSLcIKAwYyC4uOa24TX/WhqvZo2uj6slud8F4fVaMMagpT+G pAd9hqELmQtVSQGPg+i7u2kY9ahSBurF7ZxdjDTEUqWk4E1HTZOX/hFS/S+KxU7/1JhgjcV0DY+ Z76Us X-Gm-Gg: AR+sD10h4x+sDoUjqJq/kt1v/vE6ssTSX1M4IUG91Z7dt3omqX6zwVbECuVG30e06XO uH30VtAekhV9R5jKkxtrPpgj97YoMM2BdnozXP4cNgVLK0865YTuZgNq8iAO7WY1VlxoU4WALrz 32Ymod2KCG1HpgxJf+DQtGanSToyOJmzmhq7ROrAnoXgVhEgv8VCfy8FmPYU5HE3ROAj7MO0N44 iTNYmD4KFmzIVoFZVm7bBaVvIZBmcRYfiTl09HEBEHPLBeGz1ptVQJLc7AjZBVpTo2lZm1zyA8O 35OkYu2GtDzP7gZCp4nKOia/+zkMEOeALoBCRN4MtlHKpbJbt9DFNooJ/jLusshU3xZP//Ras8h /qJWUmVTKhZvMGKgzBu5AN8EuTh3vXoueHO3ANZWyvwk5WKakljl/Bq+9da0BXv/u5W59HyZ/Tk rrwaoLazJ6tbkXlM1mjJudXb6p2ePavlbi964xjKPQ6bJ8+Br2XNME48zl0Dl6xY+g0SgHihXZ3 RCj9urRL77BMnbI5C7ZnuVI5J3OTwwI3pZP8vXVYyd46IyU4vs+dP0oAVg= X-Received: by 2002:a17:903:1104:b0:2d6:e401:9676 with SMTP id d9443c01a7336-2d707955aa3mr161833925ad.1.1787775431276; Wed, 26 Aug 2026 13:17:11 -0700 (PDT) Received: from localhost.localdomain ([2603:8001:5f01:8bab:957:eb3d:7323:2ed]) by smtp.gmail.com with ESMTPSA id 5a478bee46e88-3283d60b59dsm11179738eec.3.2026.08.26.13.17.10 (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Wed, 26 Aug 2026 13:17:10 -0700 (PDT) From: Artem Dinaburg To: stable@vger.kernel.org Cc: kvm@vger.kernel.org, linux-kernel@vger.kernel.org, seanjc@google.com, pbonzini@redhat.com, kimjw04271234@gmail.com, Artem Dinaburg Subject: [PATCH 6.6.y+6.1.y 0/2] KVM: x86/mmu: Check write tracking in all address spaces Date: Wed, 26 Aug 2026 16:16:53 -0400 Message-ID: <20260826201655.9198-1-artem@trailofbits.com> X-Mailer: git-send-email 2.55.0 Precedence: bulk X-Mailing-List: stable@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Please queue upstream commit 0f38453cdb2e17566ccb7c0f3dabd5bd21caca26 ("KVM: x86/mmu: Check write tracking in all address spaces") for the stable trees. It is in mainline as of v7.2-rc6. The fix is absent by code state from 7.1.10, 6.18.46, 6.12.105, 6.6.153 and 6.1.184. 7.1.y, 6.18.y, 6.12.y: please cherry-pick the upstream commit directly. No patch is included for these trees. Commit 0f38453cdb2e applies and compiles unmodified on all three, so there is nothing to adapt: git cherry-pick -x 0f38453cdb2e17566ccb7c0f3dabd5bd21caca26 6.6.y and 6.1.y need adapted backports; they are patches 1/2 and 2/2 of this series. On 6.6 the upstream commit applies but does not build, because KVM_MAX_NR_ADDRESS_SPACES and kvm_arch_nr_memslot_as_ids() do not exist there. On 6.1 the upstream commit conflicts: the function is still kvm_slot_page_track_is_active() and the tracking array is mode-indexed gfn_track[]. 5.15.y and 5.10.y are not covered by this submission. Those trees were not assessed. Jinu Kim (2): [6.6.y] KVM: x86/mmu: Check write tracking in all address spaces [6.1.y] KVM: x86/mmu: Check write tracking in all address spaces Each patch touches only arch/x86/kvm/mmu/page_track.c: 1/2 (6.6.y): 26 insertions(+), 6 deletions(-) 2/2 (6.1.y): 22 insertions(+), 6 deletions(-) -- 2.43.0