From mboxrd@z Thu Jan 1 00:00:00 1970 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 C68FF4E0B92; Thu, 17 Sep 2026 17:53:39 +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=1789667621; cv=none; b=D89OUXRZ2nqINoxRMlHmFTuYnd05SgUYZ6tPyxCmohW+OSYXSu1te4eUrpG40BSNcizEDYmBQpxDPTLx4z971ck62YfQJYwqhNpEYnj2pdFzeggTRKBc8JUkuhgiQ83ZWHxgncN9AEqrqy4v3vsQY+9yCoqXEpQAzrm+lmKopVE= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1789667621; c=relaxed/simple; bh=/IJEwvz1s67OBnM9fJM79L3g1nkLveWxMzcxYKkBMQY=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=eFG3KY7lwh07QwUUW5QZcgumrm5GSpzyZs2Fh3rjFnZWqf1rB+fasC1CqVK4/TUULicw6GvOIZmtZ+OgONtr11sTOewAbH94+qIowOhtGIpadGfYBRP1CcKrzjZyoiBumvbRHZM8lFNqo2nZyiJPOGGkefcXxn5MIoq2Itt8Xsw= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=jkJDJmRt; 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="jkJDJmRt" Received: by smtp.kernel.org (Postfix) with ESMTPSA id B88351F000FF; Thu, 17 Sep 2026 17:53:38 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1789667619; bh=+uBY2q+KQcNUxLocgWX19Ybq87Vez0gNKoVAxW5iVUg=; h=From:To:Cc:Subject:Date:In-Reply-To:References; b=jkJDJmRt+sRV5AGI0he+aNdDgfdPtBBCeiNtg1K8QnKZrqtcz9lVM44xuWyaSYp4N D0FbKEJqmEop1rt64Ibqgj9N0PNCphOWG4ResxAFb40FEpSwQww6TYXeI7DW+i0YHE l0gtkawEjZcb5xuDfndudSK2uO5rge1znBqCW2+Y= From: Greg Kroah-Hartman To: stable@vger.kernel.org Cc: Greg Kroah-Hartman , patches@lists.linux.dev, Marc Zyngier , Mostafa Saleh , Thomas Gleixner , Sasha Levin Subject: [PATCH 6.12 0153/1102] irqchip/gic-v4: Dont advertise VLPIs if no ITS is probed Date: Thu, 17 Sep 2026 16:01:36 +0100 Message-ID: <20260917151543.372741444@linuxfoundation.org> X-Mailer: git-send-email 2.55.0 In-Reply-To: <20260917151539.408551884@linuxfoundation.org> References: <20260917151539.408551884@linuxfoundation.org> User-Agent: quilt/0.69 X-stable: review X-Patchwork-Hint: ignore Precedence: bulk X-Mailing-List: patches@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 6.12-stable review patch. If anyone has any objections, please let me know. ------------------ From: Mostafa Saleh [ Upstream commit e61654fbc3bc5d07ec9fafe29f33e19b2b5d0fd5 ] When accidentally setting “kvm-arm.vgic_v4_enable=1” on a system that has no MSI controller device tree node and GICv4, it results a panic as “gic_domain” is NULL and the kernel attempts to access it. Unable to handle kernel NULL pointer dereference at virtual address 0000000000000028 Mem abort info: ESR = 0x0000000096000006 CPU: 1 UID: 0 PID: 295 Comm: lkvm-static Not tainted 7.1.0-rc4-ge3f15ad3970e #5 PREEMPT Hardware name: linux,dummy-virt (DT) pstate: 81402005 (Nzcv daif +PAN -UAO -TCO +DIT -SSBS BTYPE=--) pc : __irq_domain_instantiate+0x1d4/0x578 lr : __irq_domain_instantiate+0x1cc/0x578 Set vLPI support to false at init time if the host has no ITS, so it propagates properly to kvm_vgic_global_state.has_gicv4. Suggested-by: Marc Zyngier Signed-off-by: Mostafa Saleh Signed-off-by: Thomas Gleixner Acked-by: Marc Zyngier Link: https://patch.msgid.link/20260526125317.3672297-1-smostafa@google.com Signed-off-by: Sasha Levin --- drivers/irqchip/irq-gic-v3-its.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/irqchip/irq-gic-v3-its.c b/drivers/irqchip/irq-gic-v3-its.c index b489594df3294..299134fd02c61 100644 --- a/drivers/irqchip/irq-gic-v3-its.c +++ b/drivers/irqchip/irq-gic-v3-its.c @@ -5739,6 +5739,7 @@ int __init its_init(struct fwnode_handle *handle, struct rdists *rdists, its_acpi_probe(); if (list_empty(&its_nodes)) { + rdists->has_vlpis = false; pr_warn("ITS: No ITS available, not enabling LPIs\n"); return -ENXIO; } -- 2.53.0