]> git.ipfire.org Git - thirdparty/linux.git/commit
io_uring: check for user passing 0 nr_submit
authorPavel Begunkov <asml.silence@gmail.com>
Thu, 16 Oct 2025 11:20:31 +0000 (12:20 +0100)
committerJens Axboe <axboe@kernel.dk>
Wed, 22 Oct 2025 17:12:54 +0000 (11:12 -0600)
commitdde92a5026d81df1a146e9c243d09b27d1bf04bf
tree6720f993fbff2264feb55f2f726f943fdb55bdfb
parent1cba30bf9fdd6c982708f3587f609a30c370d889
io_uring: check for user passing 0 nr_submit

io_submit_sqes() shouldn't be stepping into its main loop when there is
nothing to submit, i.e. nr=0. Fix 0 submission queue entries checks,
which should follow after all user input truncations.

Signed-off-by: Pavel Begunkov <asml.silence@gmail.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
io_uring/io_uring.c