Received: from mail-ej1-f74.google.com (mail-ej1-f74.google.com [209.85.218.74]) (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 1906B36164E for ; Fri, 13 Feb 2026 14:38:17 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.218.74 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1770993499; cv=none; b=nn53WU1eNafBGPMivjqJhp+wW0WfY84rodh2ihDfFwibjky0tSy7MvJCOap4zILaiHb8Lwx7AcXiwkmDy2q1SZTdiZUNOIyUrGKzSBuoj8H17WOfcUA5Uh5FavqJjmm9ns6pQLhuwmJ+iRUZy6PaavBnJAxGL/37xiRHzudK9b4= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1770993499; c=relaxed/simple; bh=tgCJ0yXfYRIrO5tRfb5O7+h3Cr2Uakv1/lFQiNz9wC0=; h=Date:Mime-Version:Message-ID:Subject:From:To:Cc:Content-Type; b=SOOSQwZl+yZ3vEtlYvLfork7tvYBv8hwKwqpQ8iQJtR1OimQicIEWVacR33yKYmvm/AXdkMtrVxhYQDuk1gyzO4U1t5D2dZ2lQ1nLKY1l4yvYAa5FrUNun2BpLK6i5MqoEN0MW5kLP2HQvgbczG8VVQ2RQQdwOhiSkVsKS9V0l8= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=google.com; spf=pass smtp.mailfrom=flex--tabba.bounces.google.com; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b=1DOWlcXn; arc=none smtp.client-ip=209.85.218.74 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--tabba.bounces.google.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b="1DOWlcXn" Received: by mail-ej1-f74.google.com with SMTP id a640c23a62f3a-b8f10615953so117170166b.2 for ; Fri, 13 Feb 2026 06:38:17 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20230601; t=1770993496; x=1771598296; darn=vger.kernel.org; h=cc:to:from:subject:message-id:mime-version:date:from:to:cc:subject :date:message-id:reply-to; bh=UUp+ZPHGqL5Ruf8kk7PuU1fhAJIx8L0ts8JU7bSIkH8=; b=1DOWlcXnR1bbpSxDUubDPjNbRNj+OWab4naSJGS8jxONOruAKChyRYeqScEOOfptB5 FxYRoqc6AKVlxCIsui6RO4TqMrUewqR5io2Xqjbs5UdFQUmCDQL0+uwMuq/lUlsXpgjA gLmInrnLw0hZgnDBu033CL7V0ft8rw6zzX1xaaBu/CBu9R/0QV+9MGkZllM6psN46G8S wtYchgeOG5lBryFYMZ538t5R54qy91csOc7Wlq0l4i+Y7apZghbck+nGZu+FUTsLm1RL vL4eApyCW2sHpFSnN19yxd8/Wjxw27o0wa4Oxl6CFG8gP/LosVuAU+VcHqUo5v5gbUQ0 Xk3A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1770993496; x=1771598296; h=cc:to:from:subject:message-id:mime-version:date:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=UUp+ZPHGqL5Ruf8kk7PuU1fhAJIx8L0ts8JU7bSIkH8=; b=PGz385xXwXO3XL2k3yH+/MPNEmu7b/BS9lp7ZC6ycydOo6lzYg1PiHUO2y3XiMmH3x ai/QYQ4ikXRKl78XTEiZyKm9O8ZnsXxbm9uo+rPlGlnCdCtrhwkfV9mkr1Pl0pP+51HC JTUu41tB+YZsHh+r0lEUSDlK2wVKHRPRqI+RS/fZhc11UpBl2hq0ZprL0nCsUUMaaPAV C3Yj76joCXRX5TFsPbRQnWwpCAXhL4Zc3ZcQDCi8jTodoy0NmK3J0hReSDxb4PLKQOg/ ry/PDPGmc+hcwNAyJ5/RqovdpkKNncpq7zS5rXgJHP46646KTskpOM0BmqTcLp/Irkz6 RudQ== X-Gm-Message-State: AOJu0Yz9LbrXBHkDg4x6+bmodkP3Rx+A5Z6rHfphmc9LEQkf47P1IXtX x5lp9S2BlVU0PzlMMVUY526hIm+3fBOPHPpuopQa4V1WlHbGB7Udcd8mAXLR5huurn7a9LD24sH rzS86EknWZZJ8yIjZJqtVd/1vYC5lepth4GdpxkmHSfYchKY0X+8J3ISgwnRtRzLiDJ1uv8Ed8d Ktfxe5TlP/FM7aQ50q5QuYL16/CCA= X-Received: from ejbme9.prod.google.com ([2002:a17:906:aec9:b0:b87:1864:34ed]) (user=tabba job=prod-delivery.src-stubby-dispatcher) by 2002:a17:907:728c:b0:b8f:848b:4456 with SMTP id a640c23a62f3a-b8fb41937f6mr98615266b.13.1770993496347; Fri, 13 Feb 2026 06:38:16 -0800 (PST) Date: Fri, 13 Feb 2026 14:38:11 +0000 Precedence: bulk X-Mailing-List: kvm@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: Mime-Version: 1.0 X-Mailer: git-send-email 2.53.0.273.g2a3d683680-goog Message-ID: <20260213143815.1732675-1-tabba@google.com> Subject: [PATCH v2 0/4] KVM: arm64: Fix guest feature sanitization and pKVM state synchronization From: Fuad Tabba To: kvm@vger.kernel.org, kvmarm@lists.linux.dev, linux-arm-kernel@lists.infradead.org Cc: maz@kernel.org, oliver.upton@linux.dev, joey.gouly@arm.com, suzuki.poulose@arm.com, yuzenghui@huawei.com, catalin.marinas@arm.com, will@kernel.org, tabba@google.com, stable@vger.kernel.org Content-Type: text/plain; charset="UTF-8" This series addresses state management and feature synchronization vulnerabilities in both standard KVM and pKVM implementations on arm64. The primary focus is ensuring that the hypervisor correctly handles architectural extensions during context switches to prevent state corruption. Changes since v1 [1]: - Moved optimising away S1POE handling when not supported by host to a separate patch. - Fixed clearing, checking and setting KVM_ARCH_FLAG_ID_REGS_INITIALIZED [1] https://lore.kernel.org/all/20260212090252.158689-1-tabba@google.com/ Based on Linux 6.19. Cheers, /fuad Cc: stable@vger.kernel.org Fuad Tabba (4): KVM: arm64: Hide S1POE from guests when not supported by the host KVM: arm64: Optimise away S1POE handling when not supported by host KVM: arm64: Fix ID register initialization for non-protected pKVM guests KVM: arm64: Remove redundant kern_hyp_va() in unpin_host_sve_state() arch/arm64/include/asm/kvm_host.h | 3 ++- arch/arm64/kvm/hyp/nvhe/pkvm.c | 37 ++++++++++++++++++++++++++++--- arch/arm64/kvm/sys_regs.c | 3 +++ 3 files changed, 39 insertions(+), 4 deletions(-) base-commit: 05f7e89ab9731565d8a62e3b5d1ec206485eeb0b -- 2.53.0.273.g2a3d683680-goog