linux/io_uring
Pavel Begunkov ea011ee102 io_uring: protect cq_timeouts with timeout_lock
Read cq_timeouts in io_flush_timeouts() only after taking the
timeout_lock, as it's protected by it. There are many places where we
also grab ->completion_lock, but for instance io_timeout_fn() doesn't
and still modifies cq_timeouts.

Cc: stable@vger.kernel.org
Signed-off-by: Pavel Begunkov <asml.silence@gmail.com>
Link: https://lore.kernel.org/r/9c79544dd6cf5c4018cb1bab99cf481a93ea46ef.1670002973.git.asml.silence@gmail.com
Signed-off-by: Jens Axboe <axboe@kernel.dk>
2022-12-14 08:51:28 -07:00
..
2022-08-12 17:01:00 -06:00
2022-12-13 10:40:31 -08:00
2022-12-13 10:33:08 -08:00
2022-12-07 06:47:13 -07:00
2022-12-13 10:40:31 -08:00
2022-09-21 13:15:02 -06:00
2022-12-07 06:47:13 -07:00
2022-12-13 10:33:08 -08:00
2022-12-07 06:47:13 -07:00
2022-12-07 06:47:13 -07:00
2022-12-13 10:43:59 -08:00
2022-10-07 12:25:30 -06:00