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 3B8FF475357 for ; Tue, 22 Sep 2026 18:21:14 +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=1790101275; cv=none; b=l+kf3VSZujtgoh0ZfvJJt6qhj8D483F+KccmAQu3l00qqNFWh4hZ069+mGavY+saxfyrOwEOSbhivCpG5Bb8UfC6YJCHIdg3i+Gqk1Hf47fRl0xlxkGrs9tFk1EPcN98HtUHw+FZekMo0SCbUJRPaBV+DEhUnvjU2oIGjL45jzY= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1790101275; c=relaxed/simple; bh=Cyj/a7aD0htE+cYAQCmhWbDxWS5SIn806XBiddZWImQ=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=UZqXpbd4G4lSEP4ANwgQHkOVuPgx5bUhLVW99oKORhOnNxf+NC/sKakpzCFvJp8OT6V4RF3abLaa/MnM/lfQBhoKUhpeVNjhuW8kFuCIlVPUK/xd21vJL/yt/4aiXTReX42N5r3KM4iu66lcjJpjyTVpRPqCAK7D+oAYxOCIUgk= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=kNlAMe8v; 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="kNlAMe8v" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 6AA511F00899; Tue, 22 Sep 2026 18:21:13 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1790101274; bh=lDCdQ0OvaacXvY7qiiixqWhPom2MScUJxqQFozZZWfs=; h=From:To:Cc:Subject:Date:In-Reply-To:References; b=kNlAMe8vazjoHfpjTzCnXgreUpSVDyNxzSNrR+M24Dw6k3viFyDhecpkfEsS3pqlJ nnsmBj4iq9++XADAD3RMjZOeBniH4fIClz0WqbqlJRJk1wwpATe6N5bYAKV4gtb/9P yM/HNFpucA39UNHfRixKOvZ933QDNgFkfO13DoGWzVIXvJ7f6Aq05s9wM5birWmCUq HEy0Bq5IFk8JfJNsW6mEEgveeGHtUILH4ukqVVyDPHQMDdQyZc8ALqwtIJF7uerGhM WeORIy+p6tUy1420M+NqXNLGBaiIQZCqCjigHOqeROLmnE9kGAAbGdGGBSxtkeYm2v Qsbv5pePoazDg== From: Sasha Levin To: stable@vger.kernel.org Cc: Runyu Xiao , Helge Deller , Dmitry Torokhov , Sasha Levin Subject: [PATCH 6.6.y] Input: hp_sdc - shut down kicker timer on module exit Date: Tue, 22 Sep 2026 14:21:12 -0400 Message-ID: <20260922182112.3568555-1-sashal@kernel.org> X-Mailer: git-send-email 2.53.0 In-Reply-To: <2026092214-backpedal-genetics-2368@gregkh> References: <2026092214-backpedal-genetics-2368@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