From: Bart Van Assche <bvanassche@acm.org>
To: syzbot <syzbot+f53c29806b4b263165f3@syzkaller.appspotmail.com>,
axboe@kernel.dk, linux-block@vger.kernel.org,
linux-kernel@vger.kernel.org, syzkaller-bugs@googlegroups.com,
Christoph Hellwig <hch@lst.de>,
Damien Le Moal <dlemoal@kernel.org>,
Ming Lei <ming.lei@redhat.com>
Subject: Re: [syzbot] [block?] WARNING in dd_exit_sched
Date: Mon, 25 Nov 2024 14:58:55 -0800 [thread overview]
Message-ID: <2d5e17d7-53a5-4c4e-b961-96a23abfed9f@acm.org> (raw)
In-Reply-To: <67442263.050a0220.1cc393.0069.GAE@google.com>
On 11/24/24 11:08 PM, syzbot wrote:
> statistics for priority 0: i 8 m 0 d 8 c 0
> WARNING: CPU: 0 PID: 7130 at block/mq-deadline.c:562 dd_exit_sched+0x2a8/0x3a0 block/mq-deadline.c:559
> Modules linked in:
> CPU: 0 UID: 0 PID: 7130 Comm: kworker/u8:10 Not tainted 6.12.0-syzkaller-03657-g43fb83c17ba2 #0
> Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/30/2024
> Workqueue: nbd-del nbd_dev_remove_work
> RIP: 0010:dd_exit_sched+0x2a8/0x3a0 block/mq-deadline.c:559
> Call Trace:
> <TASK>
> blk_mq_exit_sched+0x2ce/0x4a0 block/blk-mq-sched.c:547
> elevator_exit+0x5e/0x80 block/elevator.c:159
> del_gendisk+0x7a8/0x930 block/genhd.c:735
> nbd_dev_remove drivers/block/nbd.c:264 [inline]
> nbd_dev_remove_work+0x47/0xe0 drivers/block/nbd.c:280
> process_one_work kernel/workqueue.c:3229 [inline]
> process_scheduled_works+0xa63/0x1850 kernel/workqueue.c:3310
> worker_thread+0x870/0xd30 kernel/workqueue.c:3391
> kthread+0x2f0/0x390 kernel/kthread.c:389
> ret_from_fork+0x4b/0x80 arch/x86/kernel/process.c:147
> ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:244
> </TASK>
All ongoing I/O requests should have completed before elevator_exit() is
called. del_gendisk() calls __blk_freeze_queue_start() indirectly before
it calls elevator_exit() but it doesn't wait for the queue freeze
operation to complete. Isn't that a bug in del_gendisk()?
Thanks,
Bart.
next prev parent reply other threads:[~2024-11-25 22:59 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-11-25 7:08 syzbot
2024-11-25 22:58 ` Bart Van Assche [this message]
2024-11-26 10:25 ` Christoph Hellwig
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=2d5e17d7-53a5-4c4e-b961-96a23abfed9f@acm.org \
--to=bvanassche@acm.org \
--cc=axboe@kernel.dk \
--cc=dlemoal@kernel.org \
--cc=hch@lst.de \
--cc=linux-block@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=ming.lei@redhat.com \
--cc=syzbot+f53c29806b4b263165f3@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
all inboxes | Powered by JetHome®