From: Ming Lei <ming.lei@redhat.com>
To: syzbot <syzbot+9b145229d11aa73e4571@syzkaller.appspotmail.com>
Cc: axboe@kernel.dk, linux-block@vger.kernel.org,
linux-kernel@vger.kernel.org, syzkaller-bugs@googlegroups.com
Subject: Re: [syzbot] [block?] possible deadlock in loop_set_status
Date: Thu, 28 Nov 2024 20:37:42 +0800 [thread overview]
Message-ID: <Z0hkFoFsW5Xv8iKw@fedora> (raw)
In-Reply-To: <6741e9d0.050a0220.1cc393.0014.GAE@google.com>
On Sat, Nov 23, 2024 at 06:42:24AM -0800, syzbot wrote:
> Hello,
>
> syzbot found the following issue on:
>
> HEAD commit: 06afb0f36106 Merge tag 'trace-v6.13' of git://git.kernel.o..
> git tree: upstream
> console output: https://syzkaller.appspot.com/x/log.txt?x=125a81c0580000
> kernel config: https://syzkaller.appspot.com/x/.config?x=95b76860fd16c857
> dashboard link: https://syzkaller.appspot.com/bug?extid=9b145229d11aa73e4571
> compiler: Debian clang version 15.0.6, GNU ld (GNU Binutils for Debian) 2.40
>
> Unfortunately, I don't have any reproducer for this issue yet.
This one is supposed to be reproduced 100%, :-(
>
> -> #0 (fs_reclaim){+.+.}-{0:0}:
> check_prev_add kernel/locking/lockdep.c:3161 [inline]
> check_prevs_add kernel/locking/lockdep.c:3280 [inline]
> validate_chain+0x18ef/0x5920 kernel/locking/lockdep.c:3904
> __lock_acquire+0x1397/0x2100 kernel/locking/lockdep.c:5226
> lock_acquire+0x1ed/0x550 kernel/locking/lockdep.c:5849
> __fs_reclaim_acquire mm/page_alloc.c:3851 [inline]
> fs_reclaim_acquire+0x88/0x130 mm/page_alloc.c:3865
> might_alloc include/linux/sched/mm.h:318 [inline]
> slab_pre_alloc_hook mm/slub.c:4036 [inline]
> slab_alloc_node mm/slub.c:4114 [inline]
> __kmalloc_cache_noprof+0x3d/0x2c0 mm/slub.c:4290
> kmalloc_noprof include/linux/slab.h:879 [inline]
> kzalloc_noprof include/linux/slab.h:1015 [inline]
> kobject_uevent_env+0x28b/0x8e0 lib/kobject_uevent.c:540
> set_capacity_and_notify+0x206/0x240 block/genhd.c:95
> loop_set_size drivers/block/loop.c:232 [inline]
> loop_set_status+0x584/0x8f0 drivers/block/loop.c:1285
> lo_ioctl+0xcbc/0x1f50
> blkdev_ioctl+0x57d/0x6a0 block/ioctl.c:693
> vfs_ioctl fs/ioctl.c:51 [inline]
> __do_sys_ioctl fs/ioctl.c:906 [inline]
> __se_sys_ioctl+0xf5/0x170 fs/ioctl.c:892
> do_syscall_x64 arch/x86/entry/common.c:52 [inline]
> do_syscall_64+0xf3/0x230 arch/x86/entry/common.c:83
> entry_SYSCALL_64_after_hwframe+0x77/0x7f
Looks one real deadlock because bio_queue_enter() may be called from
direct reclaim, which is under blk_mq_freeze_queue().
thanks,
Ming
next prev parent reply other threads:[~2024-11-28 12:37 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-11-23 14:42 [syzbot] [block?] possible deadlock in loop_set_status syzbot
2024-11-28 12:37 ` Ming Lei [this message]
2025-03-01 10:18 ` syzbot
2025-03-01 13:47 ` Hillf Danton
2025-03-01 14:15 ` syzbot
2025-05-02 11:51 ` syzbot
2025-07-05 15:51 ` Tetsuo Handa
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=Z0hkFoFsW5Xv8iKw@fedora \
--to=ming.lei@redhat.com \
--cc=axboe@kernel.dk \
--cc=linux-block@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=syzbot+9b145229d11aa73e4571@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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.