]> Gentwo Git Trees - linux/.git/commit
io_uring/query: cap number of queries
authorPavel Begunkov <asml.silence@gmail.com>
Fri, 19 Sep 2025 11:11:57 +0000 (12:11 +0100)
committerJens Axboe <axboe@kernel.dk>
Fri, 19 Sep 2025 13:06:43 +0000 (07:06 -0600)
commit7ea24326e72dad7cd326bedd8442c162ae23df9d
tree6e4c8de92490ec6f2c160e337e4bb0f317298c98
parent2408d1783204920880f929a7a3087c76f5a59c13
io_uring/query: cap number of queries

If a query chain forms a cycle, it'll be looping in the kernel until the
process is killed. It might be fine as any such mistake can be easily
uncovered during testing, but it's still nicer to let it break out of
the syscall if it executed too many queries.

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