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 271CB3C0A00 for ; Tue, 22 Sep 2026 18:37:32 +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=1790102254; cv=none; b=tDnHnagKLSFCAm/SAdCNiFlSyj4tKHa595KqcybnjBVSrzrrV4OIgKWHTuD0QksgpIV5WfJlwZx+QSdYiqWx8WoyP5ZVMh973BDu8bm8/6dRpTi2i7jhCISH3k06e/Gthgf7EyxvFDxBZbfTTQCzk8lSw5ogJr4K4wsXLyg5hmc= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1790102254; c=relaxed/simple; bh=Cyj/a7aD0htE+cYAQCmhWbDxWS5SIn806XBiddZWImQ=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=Kb6C/Cp9W8JUTfxHQ80B/LN61svZ5Q5vb2tfS0rhp/NqbjHFSk30H9P9gyw9ZBsywNVH8RQhOvCWUTaICUc45MMAnOBqgB0AfOAfoFJ5SrONhF6oVmjs7FJdCbn+62yVX76YdwvN81PZOVZjz13sDNjRXYwHV8BTegfJ0f8Kls0= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=Oq5XoqOM; 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="Oq5XoqOM" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 2AAF51F000FF; Tue, 22 Sep 2026 18:37:32 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1790102252; bh=lDCdQ0OvaacXvY7qiiixqWhPom2MScUJxqQFozZZWfs=; h=From:To:Cc:Subject:Date:In-Reply-To:References; b=Oq5XoqOMb1i4Beg1nEYExvKqFbW7bueqPzhptwRmyQCxFMs9dJZVKHlej/96+gcm9 rlnQfB8G1RuMt1OkgEGnXXzlv6kuXDkf7k7vOGe6oXVhYM85nh2fSEuzf5Aj5Z3h96 rHTyT9wEPCSQgoSXINGy7ID0Tz2hcXzCjT+eLd8mFVkXXBj802GHoubVVKE9n/Empw LRshBnnLrWCleL3l8/qb0jxafx6CQgIArs7AY8Qwzuc2wOxexWIoXxZEPto3I41Pvv P4a2+ISkAOa1RRole0jzhOYWzJ3BdgWVKHhxUyW4Ot99CZq1nZ6g4n7wz5a+RbJKEU Xziq5D0fDq+gw== From: Sasha Levin To: stable@vger.kernel.org Cc: Runyu Xiao , Helge Deller , Dmitry Torokhov , Sasha Levin Subject: [PATCH 5.15.y] Input: hp_sdc - shut down kicker timer on module exit Date: Tue, 22 Sep 2026 14:37:30 -0400 Message-ID: <20260922183730.3715251-1-sashal@kernel.org> X-Mailer: git-send-email 2.53.0 In-Reply-To: <2026092215-retrieval-garlic-5b53@gregkh> References: <2026092215-retrieval-garlic-5b53@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