From nobody Sun Feb 8 04:30:11 2026 Received: from m16.mail.163.com (m16.mail.163.com [220.197.31.2]) (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 DC1232F12C3; Tue, 3 Feb 2026 02:07:52 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=220.197.31.2 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1770084477; cv=none; b=h33JwfQvjMjzandLF4TT2ovmKFJLmUPOR+MzUE6Sz3MCPF3evpHsHfGnVFV80eFWjUX4ueKg0LQCaS0plFBEcSA+AH+6xYjLoyMFkAVLpZ9kEJ58RDpcHt5QIK2dvy/CInKEuUBNXyGwGVFaZ6sI2eyUVJw+mUA6JxgPElr9ye0= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1770084477; c=relaxed/simple; bh=jFKza2X4gHVxNwPsHqjcoR6OhiKUqCsSj+WN6ieXtww=; h=From:To:Cc:Subject:Date:Message-Id:MIME-Version; b=mmQXP0RrIr+BvlUP1c1s9CgBahhwPHpC/rmAkfLkS4t5wbXYlf26Ib5kTVFUGXjo035uS6ExT3i2c/GuuVEx8fChJE0jrtNvfzHXaOh5XLbacXkY241XWWysqxLGEEFgFvCUgR+Y80yIqa0tCy3Gr4EDs0BahIruj7if20zZ0vI= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=163.com; spf=pass smtp.mailfrom=163.com; dkim=pass (1024-bit key) header.d=163.com header.i=@163.com header.b=Jd8m1RH/; arc=none smtp.client-ip=220.197.31.2 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=163.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=163.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=163.com header.i=@163.com header.b="Jd8m1RH/" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=163.com; s=s110527; h=From:To:Subject:Date:Message-Id:MIME-Version; bh=ci U4ATNB9aX0EL3qFSGEVr2hVOabS7xQU44FB8uyVDI=; b=Jd8m1RH/qXKlrJYI5O zv5rUx31vU9ZMSPuq1cwDgkOwWgkYAHM1uJFw+07F1dl522ixZ8rh2zZV3Dfcj8F ZRNMqmumANd/ChYF34U/W3fUo/YJR/hUdKweZQ9rqlpirkCdi//kSBHFBGiQH6fh cS6WsyCojYp+HbK8A3X96tByI= Received: from pek-lpg-core6.wrs.com (unknown []) by gzga-smtp-mtada-g1-2 (Coremail) with SMTP id _____wDHPMdTWIFpOcoGJA--.140S2; Tue, 03 Feb 2026 10:07:17 +0800 (CST) From: Rahul Sharma To: gregkh@linuxfoundation.org, stable@vger.kernel.org Cc: linux-kernel@vger.kernel.org, Gyeyoung Baek , Thomas Gleixner , Rahul Sharma Subject: [PATCH 5.15.y] genirq/irq_sim: Initialize work context pointers properly Date: Tue, 3 Feb 2026 10:07:14 +0800 Message-Id: <20260203020714.799655-1-black.hawk@163.com> X-Mailer: git-send-email 2.34.1 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-CM-TRANSID: _____wDHPMdTWIFpOcoGJA--.140S2 X-Coremail-Antispam: 1Uf129KBjvJXoW7Aw43try5Zr4xXry7JFW8Zwb_yoW8JFyfpF WfGw1Ivr4DWF10ga4UGrn2v34Yg3WDXw47Wan8uFyfXrZ0qwnrXF1DKrWaqry0vrWFgFWj vF1Fqa10v3WDAw7anT9S1TB71UUUUU7qnTZGkaVYY2UrUUUUjbIjqfuFe4nvWSU5nxnvy2 9KBjDUYxBIdaVFxhVjvjDU0xZFpf9x0pEc_-sUUUUU= X-CM-SenderInfo: 5eoduy4okd4yi6rwjhhfrp/xtbC+hflf2mBWFf68QAA3b Content-Type: text/plain; charset="utf-8" From: Gyeyoung Baek [ Upstream commit 8a2277a3c9e4cc5398f80821afe7ecbe9bdf2819 ] Initialize `ops` member's pointers properly by using kzalloc() instead of kmalloc() when allocating the simulation work context. Otherwise the pointers contain random content leading to invalid dereferencing. Signed-off-by: Gyeyoung Baek Signed-off-by: Thomas Gleixner Link: https://lore.kernel.org/all/20250612124827.63259-1-gye976@gmail.com [ The context change is due to the commit 011f583781fa ("genirq/irq_sim: add an extended irq_sim initializer") which is irrelevant to the logic of this patch. ] Signed-off-by: Rahul Sharma --- kernel/irq/irq_sim.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kernel/irq/irq_sim.c b/kernel/irq/irq_sim.c index 0cd02efa3a74..12a1b951341f 100644 --- a/kernel/irq/irq_sim.c +++ b/kernel/irq/irq_sim.c @@ -166,7 +166,7 @@ struct irq_domain *irq_domain_create_sim(struct fwnode_= handle *fwnode, { struct irq_sim_work_ctx *work_ctx; =20 - work_ctx =3D kmalloc(sizeof(*work_ctx), GFP_KERNEL); + work_ctx =3D kzalloc(sizeof(*work_ctx), GFP_KERNEL); if (!work_ctx) goto err_out; =20 --=20 2.34.1