Received: from smtp.kernel.org (aws-us-west-2-korg-mail-alma10-1.taild15c8.ts.net [100.103.45.18]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id D81FF4A1E07 for ; Mon, 5 Oct 2026 14:36:03 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=100.103.45.18 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1791210966; cv=none; b=MBqOctdSXdoOBAsHYgGUn0dd1JF0y1U7gIUU+fc8H0Oy9QSuQ3iOsrdtc9T+kAUl85JPEH9tOIl6dS+ORdVovc6c0iVVIiaB3xQIBJ7QEsOvmpSzvomxgEbTQaBlkVkVZ/miI3g9q6z4oOQ3+viXFnsZEFoYHHqUUOHYotJPzig= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1791210966; c=relaxed/simple; bh=dFmJsPz37WEfllH3tNPAR4VBvnHHo24qQURJcJ6X1Ok=; h=Subject:To:Cc:From:Date:Message-ID:MIME-Version:Content-Type; b=JadrNPXQeOeD0EIKVTx2SI3mTpJVeMR0rzezCFcoiLeT/bik7kgvb0VEbUh8nGXX3CUnDYYdDpxSyJ0QCKxMVU3HybuiH5m6Sg8wV9xuvCR888fATj+CWO4olhXfVXSHyFa1plsKc7p8kQeh9DTl8HwLvbjfLVlHAtyKf+5rcEo= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=yClxoOus; arc=none smtp.client-ip=100.103.45.18 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="yClxoOus" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 693A61F00893; Mon, 5 Oct 2026 14:35:59 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1791210959; bh=bAi0YFzk6IHRG6Hzsr6bYcnGLEF6MMtYu+eDIyZUdVA=; h=Subject:To:Cc:From:Date; b=yClxoOusalInC8kbckjMKwV7AfQR80XzeZdcNRNA44L273jOfPowY16R7Lyth5wxD j3L9MrqT7uJJ6Yau/XXyupzXw1+oimbiHQQ9oAjIhkwX811q23KCkyNTRwgqz0XiAM HYGEHSodyJ7GFs7pJYFPAYgbYqW/Xz3mbB8ybPgA= Subject: FAILED: patch "[PATCH] KVM: arm64: Apply the fine-grained UNDEFs without FEAT_FGT" failed to apply to 6.12-stable tree To: fuad.tabba@linux.dev,oupton@kernel.org,weilin.chang@arm.com Cc: From: Date: Mon, 05 Oct 2026 16:35:49 +0200 Message-ID: <2026100549-irritant-stammer-cf99@gregkh> Precedence: bulk X-Mailing-List: stable@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=ANSI_X3.4-1968 Content-Transfer-Encoding: 8bit The patch below does not apply to the 6.12-stable tree. If someone wants it applied there, or to any other stable or longterm tree, then please email the backport, including the original git commit id to . To reproduce the conflict and resubmit, you may use the following commands: git fetch https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/ linux-6.12.y git checkout FETCH_HEAD git cherry-pick -x 4bdd2b3a708c1feb701cb8b62feb8ad2fd77bb07 # git commit -s git send-email --to '' --in-reply-to '2026100549-irritant-stammer-cf99@gregkh' --subject-prefix 'PATCH 6.12.y' 'HEAD^..' Possible dependencies: thanks, greg k-h ------------------ original commit in Linus's tree ------------------ From 4bdd2b3a708c1feb701cb8b62feb8ad2fd77bb07 Mon Sep 17 00:00:00 2001 From: Fuad Tabba Date: Tue, 29 Sep 2026 10:00:28 +0100 Subject: [PATCH] KVM: arm64: Apply the fine-grained UNDEFs without FEAT_FGT FGUs don't actually require hardware support, so don't gate fgt trap config insertion on FGT. This is the only action required to allow FGUs always, as kvm_calculate_traps() already computes the FGU bits with or without FEAT_FGT. This also fixes a spurious WARN when a TLBI OS is run on a guest in vEL1 without FEAT_TLBIOS on non FEAT_FGT hardware. In this configuration the course-grained HCR_EL2.TTLBOS trap reaches the handler handle_tlbi_el1(), which expects an EL1 TLBI only from vEL2. With FGUs enabled the UNDEF will be injected without needing the specific handler. Fixes: f5a5a406b4b8b ("KVM: arm64: Propagate and handle Fine-Grained UNDEF bits") Cc: stable@vger.kernel.org Signed-off-by: Fuad Tabba Reviewed-by: Wei-Lin Chang Link: https://patch.msgid.link/20260929090031.3829185-2-fuad.tabba@linux.dev [oliver: Take Wei-Lin's suggested changelog] Signed-off-by: Oliver Upton diff --git a/arch/arm64/kvm/emulate-nested.c b/arch/arm64/kvm/emulate-nested.c index 3806ff0920fe..f59d89d04eca 100644 --- a/arch/arm64/kvm/emulate-nested.c +++ b/arch/arm64/kvm/emulate-nested.c @@ -2386,9 +2386,6 @@ int __init populate_nv_trap_config(void) print_nv_trap_error(fgt, "FGT bit is reserved", ret); } - if (!cpus_have_final_cap(ARM64_HAS_FGT)) - continue; - prev = xa_store(&sr_forward_xa, enc, xa_mk_value(tc.val), GFP_KERNEL);