Re: [PATCH v3] gpio: mpsse: fix race when arming the IRQ poll worker

From: Bartosz Golaszewski

Date: Thu Oct 01 2026 - 08:33:58 EST



On Tue, 29 Sep 2026 09:36:46 +0000, Fan Wu wrote:
> gpio_mpsse_irq_enable() arms the poll worker before publishing it:
> schedule_work() runs before the worker is added to priv->workers. If
> gpio_mpsse_disconnect() walks the list in that window it misses the
> worker, and once disconnect returns, the USB core frees mpsse_priv
> while the orphaned gpio_mpsse_poll() work keeps accessing it, causing
> a use-after-free.
>
> [...]

Applied, thanks!

[1/1] gpio: mpsse: fix race when arming the IRQ poll worker
https://git.kernel.org/brgl/c/7efa1a1953cd6b20b23a3524d5b4b81789c6ef25

Best regards,
--
Bartosz Golaszewski <bartosz.golaszewski@xxxxxxxxxxxxxxxx>