From: Zizhi Wo <wozizhi@huaweicloud.com>
To: Jens Axboe <axboe@kernel.dk>,
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 21:37:31 +0800 [thread overview]
Message-ID: <eaca07d4-0cb8-4a27-9ca7-5f494786bbd4@huaweicloud.com> (raw)
In-Reply-To: <ca0a0f6f-f760-4c6a-813e-93eb187b1b9c@kernel.dk>
在 2026/5/14 21:26, Jens Axboe 写道:
> 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
Indeed..since my English isn't great, I used AI to polish it up a bit :)
> 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.
>
Thanks for pointing that out.
Thanks,
Zizhi Wo
prev parent reply other threads:[~2026-05-14 13:37 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
2026-05-14 13:37 ` Zizhi Wo [this message]
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=eaca07d4-0cb8-4a27-9ca7-5f494786bbd4@huaweicloud.com \
--to=wozizhi@huaweicloud.com \
--cc=asml.silence@gmail.com \
--cc=axboe@kernel.dk \
--cc=chengzhihao1@huawei.com \
--cc=io-uring@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--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®