]> Gentwo Git Trees - linux/.git/commit
io_uring/query: prevent infinite loops
authorPavel Begunkov <asml.silence@gmail.com>
Fri, 19 Sep 2025 11:11:56 +0000 (12:11 +0100)
committerJens Axboe <axboe@kernel.dk>
Fri, 19 Sep 2025 13:06:43 +0000 (07:06 -0600)
commit2408d1783204920880f929a7a3087c76f5a59c13
treeae6520d8aada448fa1bf35b29e0802479eaa5568
parent31bf77dcc3810e08bcc7d15470e92cdfffb7f7f1
io_uring/query: prevent infinite loops

If the query chain forms a cycle, the interface will loop indefinitely.
Make sure it handles fatal signals, so the user can kill the process and
hence break out of the infinite loop.

Fixes: c265ae75f900 ("io_uring: introduce io_uring querying")
Reported-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