From: Jens Axboe <axboe@kernel.dk>
To: io-uring@vger.kernel.org
Subject: [PATCHSET 0/2] Avoid spurious syzbot induced hung task panics
Date: Wed, 21 Jan 2026 16:22:15 -0700 [thread overview]
Message-ID: <20260121232546.260055-1-axboe@kernel.dk> (raw)
Hi,
For details, see this saga:
https://lore.kernel.org/io-uring/68a2decc.050a0220.e29e5.0099.GAE@google.com/
where the tldr is that there's no real bug here, it's just syzbot doing
hundreds of 2GB /dev/msr* reads in a tiny vm and with a bunch of
debugging enabled. That leads to triggering the hung task detector when
we wait on io-wq workers to exit. I did queue a patch for 6.19 that
makes this less likely to occur, as it'll only run the very first of
the items before noticing the cancelation:
https://lore.kernel.org/io-uring/937c3e38-368e-43eb-9d7e-2dcc0697799f@kernel.dk/
but even that isn't quite enough due to how much syzbot overloads the
system.
This will still throw a WARN_ON_ONCE(), which perhaps should just be a
printk() of some sort as the trace isn't THAT interesting. But it will
avoid hitting the hung task timeout detector, which for syzbot leads
to a panic + reboot.
io_uring/io-wq.c | 22 +++++++++++++++++++++-
io_uring/io_uring.c | 2 +-
io_uring/io_uring.h | 6 ++++++
3 files changed, 28 insertions(+), 2 deletions(-)
--
Jens Axboe
next reply other threads:[~2026-01-21 23:25 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-01-21 23:22 Jens Axboe [this message]
2026-01-21 23:22 ` [PATCH 1/2] io_uring: add IO_URING_EXIT_WAIT_MAX definition Jens Axboe
2026-01-21 23:22 ` [PATCH 2/2] io_uring/io-wq: don't trigger hung task for syzbot craziness Jens Axboe
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20260121232546.260055-1-axboe@kernel.dk \
--to=axboe@kernel.dk \
--cc=io-uring@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox