------------[ cut here ]------------
refcount_t: underflow; use-after-free.
WARNING: CPU: 0 PID: 5034 at lib/refcount.c:28 refcount_warn_saturate+0x14e/0x1a0 lib/refcount.c:28
Modules linked in:
CPU: 0 PID: 5034 Comm: syz.0.286 Not tainted 5.15.175-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 11/25/2024
RIP: 0010:refcount_warn_saturate+0x14e/0x1a0 lib/refcount.c:28
Code: 09 01 48 c7 c7 00 b3 f9 8a e8 7e 58 38 fd 0f 0b eb 8d e8 25 be 6c fd c6 05 b9 00 e3 09 01 48 c7 c7 60 b3 f9 8a e8 62 58 38 fd <0f> 0b e9 6e ff ff ff e8 06 be 6c fd c6 05 9b 00 e3 09 01 48 c7 c7
RSP: 0018:ffffc900058479e0 EFLAGS: 00010246
RAX: 00e643076fa68a00 RBX: 0000000000000003 RCX: ffff888026309dc0
RDX: 0000000000000000 RSI: 0000000080000000 RDI: 0000000000000000
RBP: 0000000000000003 R08: ffffffff8166aa6c R09: ffffed10171c67a8
R10: 0000000000000000 R11: dffffc0000000001 R12: ffffc90005847c10
R13: 0000000000000000 R14: 1ffff92000b08f83 R15: ffff888021373200
FS: 00007ff171d726c0(0000) GS:ffff8880b8f00000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007ff171d71f98 CR3: 0000000023a0c000 CR4: 00000000003506e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
<TASK>
bt_tags_iter+0x231/0x2d0 block/blk-mq-tag.c:307
__sbitmap_for_each_set include/linux/sbitmap.h:263 [inline]
sbitmap_for_each_set+0x2c8/0x4f0 include/linux/sbitmap.h:284
bt_tags_for_each block/blk-mq-tag.c:334 [inline]
__blk_mq_all_tag_iter block/blk-mq-tag.c:345 [inline]
blk_mq_tagset_busy_iter+0x3a7/0x490 block/blk-mq-tag.c:386
nbd_clear_que drivers/block/nbd.c:849 [inline]
nbd_clear_sock drivers/block/nbd.c:1240 [inline]
nbd_clear_sock_ioctl drivers/block/nbd.c:1379 [inline]
__nbd_ioctl drivers/block/nbd.c:1407 [inline]
nbd_ioctl+0x2cc/0xe10 drivers/block/nbd.c:1467
blkdev_ioctl+0x333/0x6b0 block/ioctl.c:604
block_ioctl+0xb1/0xf0 block/fops.c:493
vfs_ioctl fs/ioctl.c:51 [inline]
__do_sys_ioctl fs/ioctl.c:874 [inline]
__se_sys_ioctl+0xf1/0x160 fs/ioctl.c:860
do_syscall_x64 arch/x86/entry/common.c:50 [inline]
do_syscall_64+0x3b/0xb0 arch/x86/entry/common.c:80
entry_SYSCALL_64_after_hwframe+0x66/0xd0
RIP: 0033:0x7ff172b1ad29
Code: ff ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 00 48 89 f8 48 89 f7 48 89 d6 48 89 ca 4d 89 c2 4d 89 c8 4c 8b 4c 24 08 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 c7 c1 a8 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007ff171d72038 EFLAGS: 00000246 ORIG_RAX: 0000000000000010
RAX: ffffffffffffffda RBX: 00007ff172d0b080 RCX: 00007ff172b1ad29
RDX: 0000000000000000 RSI: 000000000000ab04 RDI: 0000000000000003
RBP: 00007ff172b96aa8 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 0000000000000001 R14: 00007ff172d0b080 R15: 00007ffc9f979e98
</TASK>