linux/io_uring
Pavel Begunkov cef59d1ea7 io_uring: clean rings on NO_MMAP alloc fail
We make a few cancellation judgements based on ctx->rings, so let's
zero it afer deallocation for IORING_SETUP_NO_MMAP just like it's
done with the mmap case. Likely, it's not a real problem, but zeroing
is safer and better tested.

Cc: stable@vger.kernel.org
Fixes: 03d89a2de25bbc ("io_uring: support for user allocated memory for rings/sqes")
Signed-off-by: Pavel Begunkov <asml.silence@gmail.com>
Link: https://lore.kernel.org/r/9ff6cdf91429b8a51699c210e1f6af6ea3f8bdcf.1710255382.git.asml.silence@gmail.com
Signed-off-by: Jens Axboe <axboe@kernel.dk>
2024-03-12 09:21:36 -06:00
..
2023-12-29 11:58:41 -08:00
2024-02-09 11:54:19 -07:00
2022-12-07 06:47:13 -07:00
2024-03-11 11:35:31 -07:00
2024-02-09 09:04:39 -07:00
2024-02-12 19:02:11 -07:00
2023-08-11 10:42:57 -06:00
2024-02-09 09:04:39 -07:00
2024-02-09 09:04:39 -07:00
2024-02-12 19:02:11 -07:00
2024-02-06 19:55:14 -07:00