]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
io_uring/futex: always remove futex entry for cancel all
authorJens Axboe <axboe@kernel.dk>
Fri, 15 Mar 2024 21:37:15 +0000 (15:37 -0600)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 3 Apr 2024 13:11:28 +0000 (15:11 +0200)
commit4cb794627258a82fb7783aecb9cafa142da6c613
tree3c59f790baa9346ce48ed8640c6f6269e15059b3
parent4b329d1a2f7a742c8f85c89e0b4b4d0098836819
io_uring/futex: always remove futex entry for cancel all

[ Upstream commit 30dab608c3cb99c2a05b76289fd05551703979ae ]

We know the request is either being removed, or already in the process of
being removed through task_work, so we can delete it from our futex list
upfront. This is important for remove all conditions, as we otherwise
will find it multiple times and prevent cancelation progress.

Cc: stable@vger.kernel.org
Fixes: 194bb58c6090 ("io_uring: add support for futex wake and wait")
Fixes: 8f350194d5cf ("io_uring: add support for vectored futex waits")
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Signed-off-by: Sasha Levin <sashal@kernel.org>
io_uring/futex.c