From: John Garry <john.garry@huawei.com>
To: syzbot <syzbot+412ca156285f619b8b62@syzkaller.appspotmail.com>,
"axboe@kernel.dk" <axboe@kernel.dk>,
"gregkh@linuxfoundation.org" <gregkh@linuxfoundation.org>,
"hare@suse.de" <hare@suse.de>,
"linux-block@vger.kernel.org" <linux-block@vger.kernel.org>,
"linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>,
"rafael@kernel.org" <rafael@kernel.org>,
"syzkaller-bugs@googlegroups.com"
<syzkaller-bugs@googlegroups.com>
Subject: Re: [syzbot] KASAN: use-after-free Read in blk_mq_sched_tags_teardown
Date: Mon, 25 Oct 2021 09:39:31 +0100 [thread overview]
Message-ID: <a189d065-fb64-b76f-9f45-f866f9d5638c@huawei.com> (raw)
In-Reply-To: <000000000000d4e1e105cf235f15@google.com>
On 25/10/2021 02:35, syzbot wrote:
> Hello,
>
> syzbot found the following issue on:
>
> HEAD commit: 51dba6e335ff Add linux-next specific files for 20211020
> git tree: linux-next
> console output:https://syzkaller.appspot.com/x/log.txt?x=10171dc8b00000
> kernel config:https://syzkaller.appspot.com/x/.config?x=1adca843ed814d57
> dashboard link:https://syzkaller.appspot.com/bug?extid=412ca156285f619b8b62
> compiler: gcc (Debian 10.2.1-6) 10.2.1 20210110, GNU ld (GNU Binutils for Debian) 2.35.2
> syz repro:https://syzkaller.appspot.com/x/repro.syz?x=14f768b4b00000
> C reproducer:https://syzkaller.appspot.com/x/repro.c?x=1295a8c7300000
>
> The issue was bisected to:
>
> commit 645db34e50501aac141713fb47a315e5202ff890
I think that it should be e155b0c238b2 ("blk-mq: Use shared tags for
shared sbitmap support")
> Author: John Garry<john.garry@huawei.com>
> Date: Tue Oct 5 10:23:36 2021 +0000
>
> blk-mq: Refactor and rename blk_mq_free_map_and_{requests->rqs}()
>
> bisection log:https://syzkaller.appspot.com/x/bisect.txt?x=1597e130b00000
> final oops:https://syzkaller.appspot.com/x/report.txt?x=1797e130b00000
> console output:https://syzkaller.appspot.com/x/log.txt?x=1397e130b00000
>
> IMPORTANT: if you fix the issue, please add the following tag to the commit:
> Reported-by:syzbot+412ca156285f619b8b62@syzkaller.appspotmail.com
> Fixes: 645db34e5050 ("blk-mq: Refactor and rename blk_mq_free_map_and_{requests->rqs}()")
>
> ==================================================================
> BUG: KASAN: use-after-free in blk_mq_sched_tags_teardown+0x2a1/0x2d0 block/blk-mq-sched.c:544
> Read of size 4 at addr ffff8880760b81e0 by task systemd-udevd/6750
#syz fix: blk-mq-sched: Don't reference queue tagset in
blk_mq_sched_tags_teardown()
next prev parent reply other threads:[~2021-10-25 8:39 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-10-25 1:35 [syzbot] KASAN: use-after-free Read in blk_mq_sched_tags_teardown syzbot
2021-10-25 8:39 ` John Garry [this message]
2021-10-25 8:46 ` Dmitry Vyukov
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=a189d065-fb64-b76f-9f45-f866f9d5638c@huawei.com \
--to=john.garry@huawei.com \
--cc=axboe@kernel.dk \
--cc=gregkh@linuxfoundation.org \
--cc=hare@suse.de \
--cc=linux-block@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=rafael@kernel.org \
--cc=syzbot+412ca156285f619b8b62@syzkaller.appspotmail.com \
--cc=syzkaller-bugs@googlegroups.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;
as well as URLs for NNTP newsgroup(s).