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>
Mon, 17 Feb 2025 12:34:45 +0000 (05:34 -0700)
commit92a3bac9a57c39728226ab191859c85f5e2829c0
treeefe8b7c96a5ceead814c4785ae3d4457569523c3
parent7215469659cb9751a9bf80e43b24a48749004d26
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