linux/io_uring
Pavel Begunkov 8579538c89 io_uring/msg_ring: fix remote queue to disabled ring
IORING_SETUP_R_DISABLED rings don't have the submitter task set, so
it's not always safe to use ->submitter_task. Disallow posting msg_ring
messaged to disabled rings. Also add task NULL check for loosy sync
around testing for IORING_SETUP_R_DISABLED.

Cc: stable@vger.kernel.org
Fixes: 6d043ee1164ca ("io_uring: do msg_ring in target task via tw")
Signed-off-by: Pavel Begunkov <asml.silence@gmail.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
2023-01-20 09:49:34 -07:00
..
2022-08-12 17:01:00 -06:00
2022-12-07 06:47:13 -07:00
2022-12-19 08:28:28 -07:00
2022-09-21 13:15:02 -06:00
2022-12-07 06:47:13 -07:00
2022-12-07 06:47:13 -07:00
2022-12-07 06:47:13 -07:00
2023-01-13 07:32:46 -07:00
2022-10-07 12:25:30 -06:00