[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <d4d4da73-5d00-4476-9fd2-bee4e64b1304@gmail.com>
Date: Thu, 26 Dec 2024 16:57:08 +0000
From: Pavel Begunkov <asml.silence@...il.com>
To: Kun Hu <huk23@...udan.edu.cn>, Waiman Long <llong@...hat.com>,
axboe@...nel.dk
Cc: peterz@...radead.org, mingo@...hat.com, will@...nel.org,
boqun.feng@...il.com, linux-kernel@...r.kernel.org,
"jjtan24@...udan.edu.cn" <jjtan24@...udan.edu.cn>, io-uring@...r.kernel.org
Subject: Re: Bug: slab-use-after-free Read in try_to_wake_up
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
Powered by blists - more mailing lists