From: Pavel Begunkov <[email protected]>
To: Jens Axboe <[email protected]>, Dmitry Vyukov <[email protected]>,
syzbot <[email protected]>,
[email protected]
Cc: [email protected], [email protected]
Subject: Re: [syzbot] [kernel?] KASAN: slab-use-after-free Read in thread_group_cputime
Date: Fri, 10 Jan 2025 14:32:24 +0000 [thread overview]
Message-ID: <[email protected]> (raw)
In-Reply-To: <[email protected]>
On 1/10/25 14:13, Jens Axboe wrote:
> On 1/10/25 7:13 AM, Pavel Begunkov wrote:
>> On 1/10/25 13:56, Dmitry Vyukov wrote:
>>> On Fri, 10 Jan 2025 at 14:51, syzbot
>>> <[email protected]> wrote:
...
>>> #syz set subsystems: io-uring
>>>
>>> +maintainers
>>
>> Thanks. It probably needs something like below.
>>
>> diff --git a/io_uring/sqpoll.c b/io_uring/sqpoll.c
>> index 6df5e649c413..5768e31e99b1 100644
>> --- a/io_uring/sqpoll.c
>> +++ b/io_uring/sqpoll.c
>> @@ -268,8 +268,12 @@ static int io_sq_thread(void *data)
>> DEFINE_WAIT(wait);
>>
>> /* offload context creation failed, just exit */
>> - if (!current->io_uring)
>> + if (!current->io_uring) {
>> + mutex_lock(&sqd->lock);
>> + sqd->thread = NULL;
>> + mutex_unlock(&sqd->lock);
>> goto err_out;
>> + }
>>
>> snprintf(buf, sizeof(buf), "iou-sqp-%d", sqd->task_pid);
>> set_task_comm(current, buf);
>
> Indeed - can you send that out and I can include it in this weeks pull?
Done
--
Pavel Begunkov
next prev parent reply other threads:[~2025-01-10 14:31 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <[email protected]>
2025-01-10 13:56 ` [syzbot] [kernel?] KASAN: slab-use-after-free Read in thread_group_cputime Dmitry Vyukov
2025-01-10 14:13 ` Pavel Begunkov
2025-01-10 14:13 ` Jens Axboe
2025-01-10 14:32 ` Pavel Begunkov [this message]
2025-01-10 14:14 ` 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 \
[email protected] \
[email protected] \
[email protected] \
[email protected] \
[email protected] \
[email protected] \
[email protected] \
[email protected] \
/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