]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
io_uring: sanitise ring params earlier
authorPavel Begunkov <asml.silence@gmail.com>
Fri, 31 Jan 2025 17:31:03 +0000 (17:31 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 29 May 2025 09:13:19 +0000 (11:13 +0200)
commit6ff20c390ec3b10798cf049a50ee22aa8a863cde
treea8a707528ebfc152b1446cbfbc2d05dc48c61ba0
parent60909349f61da47bfd0563f6b0f88190d935556f
io_uring: sanitise ring params earlier

[ Upstream commit 92a3bac9a57c39728226ab191859c85f5e2829c0 ]

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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
io_uring/io_uring.c