public inbox for io-uring@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCHSET 0/2] Avoid spurious syzbot induced hung task panics
@ 2026-01-21 23:22 Jens Axboe
  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
  0 siblings, 2 replies; 3+ messages in thread
From: Jens Axboe @ 2026-01-21 23:22 UTC (permalink / raw)
  To: io-uring

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


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2026-01-21 23:25 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-01-21 23:22 [PATCHSET 0/2] Avoid spurious syzbot induced hung task panics Jens Axboe
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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox