Re: [PATCH v2] gpiolib: keep the line state workqueue alive until device release
From: Bartosz Golaszewski
Date: Tue Nov 17 2026 - 03:33:25 EST
On Tue, 10 Nov 2026 10:29:34 +0100, Bartosz Golaszewski wrote:
> gpiod_line_state_notify() races with a concurrent gpiochip_remove() which
> unconditionally destroys the line state workqueue causing
> a use-after-free situation where queue_work() can schedule a work on a
> freed workqueue.
>
> Keep the line state workqueue alive until GPIO device release.
>
> [...]
Applied, thanks!
[1/1] gpiolib: keep the line state workqueue alive until device release
https://git.kernel.org/brgl/c/2e002a1d05b1979006f3c46eb6cb5cc36e5630ac
Best regards,
--
Bartosz Golaszewski <bartosz.golaszewski@xxxxxxxxxxxxxxxx>