Re: [PATCH] Input: uinput - fix circular locking dependency with ff-core

From: Mikhail Gavrilov

Date: Tue Apr 07 2026 - 04:40:29 EST


On Tue, Apr 7, 2026 at 10:19 AM Dmitry Torokhov
<dmitry.torokhov@xxxxxxxxx> wrote:
>
> I was talking about taking this new lock in both uinput_request_send()
> as well as in uinput_destroy_device() when updating the state. With that
> requests_lock will be taken only in uinput_request_alloc_id(),
> uinput_request_release_slot(), and uinput_flush_requests().

Hi Dmitry,

I've sent v2 as a separate thread with a dedicated state_lock
spinlock as you suggested, along with Fixes and Cc: stable tags.

https://lore.kernel.org/all/20260407075031.38351-1-mikhail.v.gavrilov@xxxxxxxxx/

--
Best Regards,
Mike Gavrilov.