From: Duoming Zhou <duoming@zju.edu.cn>
To: linux-input@vger.kernel.org
Cc: linux-kernel@vger.kernel.org, dmitry.torokhov@gmail.com,
kuba@kernel.org, alexander.deucher@amd.com, pali@kernel.org,
hverkuil+cisco@kernel.org, akpm@linux-foundation.org,
andriy.shevchenko@linux.intel.com, tglx@linutronix.de,
mingo@kernel.org, Jonathan.Cameron@huawei.com,
Duoming Zhou <duoming@zju.edu.cn>
Subject: [PATCH 0/2] Input: alps/psmouse: Fix UAF bugs and improve workqueue synchronization
Date: Sat, 8 Nov 2025 20:40:03 +0800 [thread overview]
Message-ID: <cover.1762604516.git.duoming@zju.edu.cn> (raw)
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
next reply other threads:[~2025-11-08 12:40 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-11-08 12:40 Duoming Zhou [this message]
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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=cover.1762604516.git.duoming@zju.edu.cn \
--to=duoming@zju.edu.cn \
--cc=Jonathan.Cameron@huawei.com \
--cc=akpm@linux-foundation.org \
--cc=alexander.deucher@amd.com \
--cc=andriy.shevchenko@linux.intel.com \
--cc=dmitry.torokhov@gmail.com \
--cc=hverkuil+cisco@kernel.org \
--cc=kuba@kernel.org \
--cc=linux-input@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=mingo@kernel.org \
--cc=pali@kernel.org \
--cc=tglx@linutronix.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox