From nobody Fri Oct 10 13:34:11 2025 Received: from galois.linutronix.de (Galois.linutronix.de [193.142.43.55]) (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 F200519DF8B; Fri, 13 Jun 2025 13:43:51 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=193.142.43.55 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1749822233; cv=none; b=P0qPn6lEl43PP9MpxyQFcBzP8NEGqAZoZFv5471TgWL0xf44tbmgXNQ6Kj6Lhi3nhzRnV7bpn4NzcK87toVS+jxGzEu3lx8Y4kP7Xa+02GmKMROKDY3Vf7OU/mul/GvTd/7R/xpo+h8HjwKD6+rmr640VKpdmHWESyEnRRAiVEc= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1749822233; c=relaxed/simple; bh=iuq70Qtl2TwSbyhOXfgpjjZYlKdn19Srq/EMIvt7ARw=; h=Date:From:To:Subject:Cc:In-Reply-To:References:MIME-Version: Message-ID:Content-Type; b=NhvEA7vUOR5tE3alC99fKEY2u4KwWF44SZDohDzK63gjMpn8cV5bpJNWnqX5NuouxJnDRdyk+yvJRoygt8ZjqONOmSZd5ldJwZtC71LfUqEsZne6kg31zluUX+pcn+cajck5vBtPmOpJiR1oFvIIOwPvAAD8Re5u2Sozc6dr6rk= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linutronix.de; spf=pass smtp.mailfrom=linutronix.de; dkim=pass (2048-bit key) header.d=linutronix.de header.i=@linutronix.de header.b=ZNY5xUJM; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b=r7r6it5Q; arc=none smtp.client-ip=193.142.43.55 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linutronix.de Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linutronix.de Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="ZNY5xUJM"; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="r7r6it5Q" Date: Fri, 13 Jun 2025 13:43:48 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1749822229; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=DMCRxCsdWqhdYORoetpIzc7qzdfVAVCzvKhKY4mALuk=; b=ZNY5xUJM5tE1BAv+oudmS6zYIEbaXJpAuCcYO8dIesRC6yYgWIR+OK/FfJHMBn20x9xXDh Ds+F00b7DpFsIrAWRuqsL62STV17fzrf6o1sGsJRer12WIj2GZSQuln7BeAJfayvcPF6/z kwesee94rsIY8o1m9oxzz5zjBaxJ1e9/7fLR55Ct98b2bS3jH7bo5VlUP3NkyyJyydiJB0 GE56xzA2IZkyD4DYM3/ReJjQ8vjaOMcFAhItzAa+m4aBfAuqHCAaLVwPoA5hA/iT+HtvUC K2yV49ccKp2u0ca2rd9lBo1v77QkJbfA3Zs5lq4jJG+S8PzCcQHPYhGDBJlLqQ== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1749822229; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=DMCRxCsdWqhdYORoetpIzc7qzdfVAVCzvKhKY4mALuk=; b=r7r6it5QNIg8R5iupLmAeiVrT0EvUtTMxtyKZSmTURy4DzYeIsnGFwzFiIpH/Y3QjMi+Y3 FH+Tj4Fdj4HlimAg== From: "tip-bot2 for Gyeyoung Baek" Sender: tip-bot2@linutronix.de Reply-to: linux-kernel@vger.kernel.org To: linux-tip-commits@vger.kernel.org Subject: [tip: irq/urgent] genirq/irq_sim: Initialize work context pointers properly Cc: Gyeyoung Baek , Thomas Gleixner , x86@kernel.org, linux-kernel@vger.kernel.org, maz@kernel.org In-Reply-To: <20250612124827.63259-1-gye976@gmail.com> References: <20250612124827.63259-1-gye976@gmail.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Message-ID: <174982222851.406.8757318075182400850.tip-bot2@tip-bot2> Robot-ID: Robot-Unsubscribe: Contact to get blacklisted from these emails Precedence: bulk Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable The following commit has been merged into the irq/urgent branch of tip: Commit-ID: 8a2277a3c9e4cc5398f80821afe7ecbe9bdf2819 Gitweb: https://git.kernel.org/tip/8a2277a3c9e4cc5398f80821afe7ecbe9= bdf2819 Author: Gyeyoung Baek AuthorDate: Thu, 12 Jun 2025 21:48:27 +09:00 Committer: Thomas Gleixner CommitterDate: Fri, 13 Jun 2025 15:36:35 +02:00 genirq/irq_sim: Initialize work context pointers properly 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 --- 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 1a3d483..ae4c9cb 100644 --- a/kernel/irq/irq_sim.c +++ b/kernel/irq/irq_sim.c @@ -202,7 +202,7 @@ struct irq_domain *irq_domain_create_sim_full(struct fw= node_handle *fwnode, void *data) { struct irq_sim_work_ctx *work_ctx __free(kfree) =3D - kmalloc(sizeof(*work_ctx), GFP_KERNEL); + kzalloc(sizeof(*work_ctx), GFP_KERNEL); =20 if (!work_ctx) return ERR_PTR(-ENOMEM);