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 67AAC45C704 for ; Tue, 22 Sep 2026 18:16:45 +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=1790101007; cv=none; b=k5nKvo1y8HXmyMBG2viROxLczdwrASAUa+pdwLNi4C7OFXq6ohN20qZ4LX/CzajNJaMT4zQBjzLWyzVeLrH9t+KrEfQSFMWq3zqVOFLTU/eRvQ7bsvvxNagt/r89CpyoZhW9O2p27dXwOEaA8eCraYLcjGE5fS0zVdG1rmJ8VqY= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1790101007; c=relaxed/simple; bh=Cyj/a7aD0htE+cYAQCmhWbDxWS5SIn806XBiddZWImQ=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=isWwOzt+ePYRGfH+MdajGskzF0IRLVGubsddZcPbGzO2cM915TuVIHV9UurxCKVftep3KBszLGz6yNH08868liqaNiVHS2DVABx+ZDv8NTXdU/64Jvwe4JnENYQe7jIMiDkVSnL6tkbxbe5woH0ie22QVQDtSZ7kAzBNhHJOIsI= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=Rf3sPTY+; arc=none smtp.client-ip=100.103.45.18 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="Rf3sPTY+" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 7B98A1F000FF; Tue, 22 Sep 2026 18:16:44 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1790101005; bh=lDCdQ0OvaacXvY7qiiixqWhPom2MScUJxqQFozZZWfs=; h=From:To:Cc:Subject:Date:In-Reply-To:References; b=Rf3sPTY+Tha1v71HncoUbAnj+yU5iqkPYtTRyvetjwucnQFaIgkTlVrSJeiey9kwd iK0WTUmrYpAV8W5fvsN4jbg3U4Y/gUNR72+r3FE8Bu8ilzc2IaWonaUYA+MTF9Ptt2 g6hQafnX3j5LQB9OFYeMsFpl+eOx83A1nIOM6AZVnf2zXe2TvazOxE5isGObIr9lZI V5jv/8qizL5j0rkx1Eu+O8AFitFwikxgnAjmKxT4ej4Iwerlbe8MHHxAJCAzqTTwDc EPJj+rW6xLTf3829kJkZbhTik7QKEcCxKH62dQvRDLr8gzT6Ti0Rigj5el6144CB1u c1RPbG4x78nkA== From: Sasha Levin To: stable@vger.kernel.org Cc: Runyu Xiao , Helge Deller , Dmitry Torokhov , Sasha Levin Subject: [PATCH 6.12.y] Input: hp_sdc - shut down kicker timer on module exit Date: Tue, 22 Sep 2026 14:16:43 -0400 Message-ID: <20260922181643.3521513-1-sashal@kernel.org> X-Mailer: git-send-email 2.53.0 In-Reply-To: <2026092213-clinking-taunt-b525@gregkh> References: <2026092213-clinking-taunt-b525@gregkh> Precedence: bulk X-Mailing-List: stable@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit From: Runyu Xiao [ Upstream commit 309731e95917125bbd13626a7a5600490a5bf44f ] hp_sdc_kicker() rearms hp_sdc.kicker with mod_timer() after scheduling the tasklet. The module exit path uses timer_delete_sync(). That waits for a callback already running but can still leave the timer rearmed. A callback can therefore leave the timer pending while hp_sdc_exit() tears down the driver, allowing timer activity to access dismantled driver state. Use timer_shutdown_sync() for final teardown. It waits for a running callback and prevents rearming after module exit begins. Fixes: 1da177e4c3f4 ("Linux-2.6.12-rc2") Cc: stable@vger.kernel.org Assisted-by: Codex:GPT-5 Signed-off-by: Runyu Xiao Acked-by: Helge Deller Link: https://patch.msgid.link/20260902154004.3595416-1-runyu.xiao@seu.edu.cn Signed-off-by: Dmitry Torokhov [ adjusted the removal hunk to match del_timer_sync() instead of timer_delete_sync() ] Signed-off-by: Sasha Levin --- drivers/input/serio/hp_sdc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/input/serio/hp_sdc.c b/drivers/input/serio/hp_sdc.c index 13eacf6ab4310..ee096d7c7846c 100644 --- a/drivers/input/serio/hp_sdc.c +++ b/drivers/input/serio/hp_sdc.c @@ -980,7 +980,7 @@ static void hp_sdc_exit(void) free_irq(hp_sdc.irq, &hp_sdc); write_unlock_irq(&hp_sdc.lock); - del_timer_sync(&hp_sdc.kicker); + timer_shutdown_sync(&hp_sdc.kicker); tasklet_kill(&hp_sdc.task); -- 2.53.0