]> git.ipfire.org Git - thirdparty/linux.git/commit
io_uring/io-wq: don't trigger hung task for syzbot craziness
authorJens Axboe <axboe@kernel.dk>
Wed, 21 Jan 2026 17:40:33 +0000 (10:40 -0700)
committerJens Axboe <axboe@kernel.dk>
Thu, 22 Jan 2026 14:25:35 +0000 (07:25 -0700)
commit1f293098a31368a5d5cfab215a56f4cbed3f657a
tree7745b0269ab9e7d67c17e8b6efbee2ec24f1cb6b
parentdd120bddc43af583e3bc9afe75f58bb9280947b0
io_uring/io-wq: don't trigger hung task for syzbot craziness

Use the same trick that blk_io_schedule() does to avoid triggering the
hung task warning (and potential reboot/panic, depending on system
settings), and only wait for half the hung task timeout at the time.
If we exceed the default IO_URING_EXIT_WAIT_MAX period where we expect
things to certainly have finished unless there's a bug, then throw a
WARN_ON_ONCE() for that case.

Reported-by: syzbot+4eb282331cab6d5b6588@syzkaller.appspotmail.com
Tested-by: syzbot+4eb282331cab6d5b6588@syzkaller.appspotmail.com
Signed-off-by: Jens Axboe <axboe@kernel.dk>
io_uring/io-wq.c