From: Jens Axboe <axboe@kernel.dk>
To: Zizhi Wo <wozizhi@huaweicloud.com>,
asml.silence@gmail.com, io-uring@vger.kernel.org
Cc: linux-kernel@vger.kernel.org, yangerkun@huawei.com,
chengzhihao1@huawei.com
Subject: Re: [PATCH V2] io_uring: validate user-controlled cq.head in io_cqe_cache_refill()
Date: Thu, 14 May 2026 07:26:01 -0600 [thread overview]
Message-ID: <ca0a0f6f-f760-4c6a-813e-93eb187b1b9c@kernel.dk> (raw)
In-Reply-To: <20260514021847.4062782-1-wozizhi@huaweicloud.com>
On 5/13/26 8:18 PM, Zizhi Wo wrote:
> From: Zizhi Wo <wozizhi@huawei.com>
>
> [BUG]
> A fuzzing run reproduced an unkillable io_uring task stuck at ~100% CPU:
>
> [root@fedora io_uring_stress]# ps -ef | grep io_uring
> root 1240 1 99 13:36 ? 00:01:35 [io_uring_stress] <defunct>
>
> The task loops inside io_cqring_wait() and never returns to userspace, and
> SIGKILL has no effect.
Thanks - applied with a few edits, see final result here:
https://git.kernel.org/pub/scm/linux/kernel/git/axboe/linux.git/commit/?h=io_uring-7.1&id=f44d38a31f1802b7222adaea9ee69f9d280f698a
The comments (and commit message) read very LLM'ish, so dialed that back
a bit. And there's no reason to put io_cqring_queued() in a header file
when it's only used in io_uring.c. And finally, the 'queued' variable is
now useless, so kill that too.
--
Jens Axboe
next prev parent reply other threads:[~2026-05-14 13:26 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-05-14 2:18 Zizhi Wo
2026-05-14 13:24 ` Jens Axboe
2026-05-14 13:26 ` Jens Axboe [this message]
2026-05-14 13:37 ` Zizhi Wo
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=ca0a0f6f-f760-4c6a-813e-93eb187b1b9c@kernel.dk \
--to=axboe@kernel.dk \
--cc=asml.silence@gmail.com \
--cc=chengzhihao1@huawei.com \
--cc=io-uring@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=wozizhi@huaweicloud.com \
--cc=yangerkun@huawei.com \
/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
all inboxes | Powered by JetHome®