io_uring: sanitise ring params earlier
authorPavel Begunkov <asml.silence@gmail.com>
Fri, 31 Jan 2025 17:31:03 +0000 (17:31 +0000)
committerJens Axboe <axboe@kernel.dk>
Tue, 4 Feb 2025 19:45:41 +0000 (12:45 -0700)
commit24dc28cc3ea4e972b1cd6bd496821d16ac62d033
tree4641cd2d4dbf014204dcd584e73a9d36ea1586ff
parent75477e16149acc268029ff34775da2ae964d2aee
io_uring: sanitise ring params earlier

Do all struct io_uring_params validation early on before allocating the
context. That makes initialisation easier, especially by having fewer
places where we need to care about partial de-initialisation.

Signed-off-by: Pavel Begunkov <asml.silence@gmail.com>
Link: https://lore.kernel.org/r/363ba90b83ff78eefdc88b60e1b2c4a39d182247.1738344646.git.asml.silence@gmail.com
Signed-off-by: Jens Axboe <axboe@kernel.dk>
io_uring/io_uring.c