From: Pavel Begunkov <asml.silence@gmail.com>
To: Kun Hu <huk23@m.fudan.edu.cn>, Waiman Long <llong@redhat.com>,
axboe@kernel.dk
Cc: peterz@infradead.org, mingo@redhat.com, will@kernel.org,
boqun.feng@gmail.com, linux-kernel@vger.kernel.org,
"jjtan24@m.fudan.edu.cn" <jjtan24@m.fudan.edu.cn>,
io-uring@vger.kernel.org
Subject: Re: Bug: slab-use-after-free Read in try_to_wake_up
Date: Thu, 26 Dec 2024 16:57:08 +0000 [thread overview]
Message-ID: <d4d4da73-5d00-4476-9fd2-bee4e64b1304@gmail.com> (raw)
In-Reply-To: <7556DAC6-20C1-4FCA-A9C8-633E36281341@m.fudan.edu.cn>
On 12/26/24 03:43, Kun Hu wrote:
>> This is not caused by a locking bug. The freed structure is a task_struct which is passed by io_sq_thread() to try_to_wake_up(). So the culprit is probably in the io_uring code. cc'ing the io_uring developers for further review.
>
> Thanks. This also seems to involve sqpoll.c and io_uring.c. I'm sending an email to both Pavel Begunkov and Jens Axboe, with a cc to io_uring.
Kun Hu, can you try out the patch I sent? It should likely be
it, but I couldn't reproduce without hand tailoring the kernel
code with sleeping and such.
--
Pavel Begunkov
next prev parent reply other threads:[~2024-12-26 16:56 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <1CF89E16-3A37-494F-831C-5CA24BCEEE50@m.fudan.edu.cn>
2024-12-25 21:11 ` Bug: slab-use-after-free Read in try_to_wake_up Waiman Long
2024-12-26 3:43 ` Kun Hu
2024-12-26 16:57 ` Pavel Begunkov [this message]
2024-12-26 20:45 ` Fudam
2024-12-28 12:13 ` Pavel Begunkov
2024-12-26 12:24 ` Pavel Begunkov
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=d4d4da73-5d00-4476-9fd2-bee4e64b1304@gmail.com \
--to=asml.silence@gmail.com \
--cc=axboe@kernel.dk \
--cc=boqun.feng@gmail.com \
--cc=huk23@m.fudan.edu.cn \
--cc=io-uring@vger.kernel.org \
--cc=jjtan24@m.fudan.edu.cn \
--cc=linux-kernel@vger.kernel.org \
--cc=llong@redhat.com \
--cc=mingo@redhat.com \
--cc=peterz@infradead.org \
--cc=will@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