public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/2] Input: alps/psmouse: Fix UAF bugs and improve workqueue synchronization
@ 2025-11-08 12:40 Duoming Zhou
  2025-11-08 12:40 ` [PATCH 1/2] Input: alps - fix use-after-free bugs caused by dev3_register_work Duoming Zhou
                   ` (2 more replies)
  0 siblings, 3 replies; 5+ messages in thread
From: Duoming Zhou @ 2025-11-08 12:40 UTC (permalink / raw)
  To: linux-input
  Cc: linux-kernel, dmitry.torokhov, kuba, alexander.deucher, pali,
	hverkuil+cisco, akpm, andriy.shevchenko, tglx, mingo,
	Jonathan.Cameron, Duoming Zhou

This patch series addresses use-after-free bugs in the ALPS
touchpad driver and enhances workqueue handling efficiency
in the psmouse subsystem.

The first patch fixes a critical use-after-free race condition
in the ALPS driver where dev3_register_work could be scheduled
after the alps_data structure was already freed. This was caused
by insufficient synchronization during device disconnection,
where flush_workqueue() couldn't prevent subsequent work item
submissions.

The second patch optimizes the psmouse disconnect path by replacing
flush_workqueue() with disable_delayed_work_sync() for better
efficiency and robustness.

Duoming Zhou (2):
  Input: alps - fix use-after-free bugs caused by dev3_register_work
  Input: psmouse - Replace flush_workqueue() with
    disable_delayed_work_sync()

 drivers/input/mouse/alps.c         | 1 +
 drivers/input/mouse/psmouse-base.c | 2 +-
 2 files changed, 2 insertions(+), 1 deletion(-)

-- 
2.34.1


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2025-11-10  1:40 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-11-08 12:40 [PATCH 0/2] Input: alps/psmouse: Fix UAF bugs and improve workqueue synchronization Duoming Zhou
2025-11-08 12:40 ` [PATCH 1/2] Input: alps - fix use-after-free bugs caused by dev3_register_work Duoming Zhou
2025-11-08 12:40 ` [PATCH 2/2] Input: psmouse - Replace flush_workqueue() with disable_delayed_work_sync() Duoming Zhou
2025-11-09 16:13 ` [PATCH 0/2] Input: alps/psmouse: Fix UAF bugs and improve workqueue synchronization Andy Shevchenko
2025-11-10  1:39   ` duoming

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox