From nobody Tue Apr 7 06:19:57 2026 Received: from sender-of-o57.zoho.eu (sender-of-o57.zoho.eu [136.143.169.57]) (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 C32AE3B2A0 for ; Sun, 15 Mar 2026 15:19:10 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=pass smtp.client-ip=136.143.169.57 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1773587952; cv=pass; b=nILkpIosX4SRrdx5nmTt1VAsOGCNxjTOgkas8eGtlvYS5wcsxsgbTY06XAVs3c/8s1fkp67gVYkn32lQBmDIA6VmGsrD+XY0yC6T9PohjN74Qu3JUpgEb/wOkNjhkbKSg1qr7rW3DxGEMfBVKU4wkGrP4YA6wIE7pK1pgzfm0hI= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1773587952; c=relaxed/simple; bh=Kj/4UYDyNcCmLCkkiOdKVa4zS13N7Y+bMrphQHbuujo=; h=From:To:Cc:Subject:Date:Message-Id:MIME-Version; b=u+9Tt+ngNwGPrFfTM16nXQAkejtxrFi19BdpfnTnn6kIj0KReB7gCcwQn4tl3or6FQUc02Gh1/HZCZnswMi5FoYamuvu9GwM2I6gyzJQN/KFEImRUC1I4NmgZwLViYvuoxG6L84h3QKhWrorc9HpVX7vlpF5siy/lliEAf8r1uA= ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=objecting.org; spf=pass smtp.mailfrom=objecting.org; dkim=pass (1024-bit key) header.d=objecting.org header.i=objecting@objecting.org header.b=FwgOpy+E; arc=pass smtp.client-ip=136.143.169.57 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=objecting.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=objecting.org Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=objecting.org header.i=objecting@objecting.org header.b="FwgOpy+E" ARC-Seal: i=1; a=rsa-sha256; t=1773587933; cv=none; d=zohomail.eu; s=zohoarc; b=kJStj7zSRrLGR7wZWlqmFP+NpxTDHVHNylDPk+86pB6KF/DwhqwS26qE6LBL4J6kijfjvDRJtQUP6Nb6bZpaHXF6TLqZfWyGFPY5rxt+e2BOzMufmmc+O9BMqiGgqn1AiRdsIF4aQT4srjN3QCbIO+jaDr1QJ+6OPl/5zMi5hII= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.eu; s=zohoarc; t=1773587933; h=Content-Transfer-Encoding:Cc:Cc:Date:Date:From:From:MIME-Version:Message-ID:Subject:Subject:To:To:Message-Id:Reply-To; bh=XKSysOibWzxicD1D7yEeg33BaeCMlP7zElz6p+JcSV4=; b=RXhDlyYfjkBGiiKg9f4eIDMDPwasMDU92YkKzeYUJGr+XcawvhBQloOyhk86txxYwVUkyJcQiO3YqjTsVd+sfFhbTIaBNLvAs9X5cuL7lZhKfgIXLEtnrLMT4Qz26Yy9jugYYBU1QgQ8UX67comvxrXmKcOrEkbz1z8A+5WZjWw= ARC-Authentication-Results: i=1; mx.zohomail.eu; dkim=pass header.i=objecting.org; spf=pass smtp.mailfrom=objecting@objecting.org; dmarc=pass header.from= DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; t=1773587933; s=zmail; d=objecting.org; i=objecting@objecting.org; h=From:From:To:To:Cc:Cc:Subject:Subject:Date:Date:Message-Id:Message-Id:MIME-Version:Content-Transfer-Encoding:Reply-To; bh=XKSysOibWzxicD1D7yEeg33BaeCMlP7zElz6p+JcSV4=; b=FwgOpy+Ee/qQEVeQaG5LF6th4j9Lm22d086fhUhBdTlf1Iw5uwwJCGhDHlFn//No 6vyj/2iSRBH+jIIPmnqTT/CfQyDMI+KupI5hE8euiWKSWzQ90lKKCKMbV9T/B+qlDbp OPzvqu/BFqlx2yzqZn9F4RgYQQnvEcWnEyfRCp98= Received: by mx.zoho.eu with SMTPS id 1773587929831133.25340401620508; Sun, 15 Mar 2026 16:18:49 +0100 (CET) From: Josh Law To: Oleg Nesterov , Christian Brauner , Andrew Morton Cc: Thomas Gleixner , Peter Zijlstra , linux-kernel@vger.kernel.org, Josh Law Subject: [PATCH] signal: use task parameter instead of current in task_join_group_stop() Date: Sun, 15 Mar 2026 15:18:47 +0000 Message-Id: <20260315151847.214634-1-objecting@objecting.org> 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-ZohoMailClient: External Content-Type: text/plain; charset="utf-8" task_join_group_stop() takes a task_struct parameter but reads jobctl and signal from current instead. This works today because the sole caller (copy_process) always passes a new thread in the same thread group as current, so task->signal =3D=3D current->signal and task->jobctl is a copy of current->jobctl from dup_task_struct(). Use the task parameter directly so the function is self-consistent with its API and will not silently break if a future caller passes a task from a different thread group. Signed-off-by: Josh Law --- kernel/signal.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/kernel/signal.c b/kernel/signal.c index 116cf678c4a3..cb417e3674ed 100644 --- a/kernel/signal.c +++ b/kernel/signal.c @@ -386,8 +386,8 @@ static bool task_participate_group_stop(struct task_str= uct *task) =20 void task_join_group_stop(struct task_struct *task) { - unsigned long mask =3D current->jobctl & JOBCTL_STOP_SIGMASK; - struct signal_struct *sig =3D current->signal; + unsigned long mask =3D task->jobctl & JOBCTL_STOP_SIGMASK; + struct signal_struct *sig =3D task->signal; =20 if (sig->group_stop_count) { sig->group_stop_count++; --=20 2.34.1