WARNING in blk_mq_free_tag_set
Subsystems (2)
syzbot
syzbotHello,
syzbot found the following issue on:
HEAD commit: 6b8c8af514d7 Add linux-next specific files for 20260807 git tree: linux-next console output: https://syzkaller.appspot.com/x/log.txt?x=11d2bfb9580000 kernel config: https://syzkaller.appspot.com/x/.config?x=6d343b54cc50df0f dashboard link: https://syzkaller.appspot.com/bug?extid=02b37e31e64ea5cb6d29 compiler: Debian clang version 22.1.8 (++20260613092233+e80beda6e255-1~exp1~20260613092250.77), Debian LLD 22.1.8 syz repro: https://syzkaller.appspot.com/x/repro.syz?x=10f56132580000
Downloadable assets:
disk image: https://storage.googleapis.com/syzbot-assets/71ff4edcb608/disk-6b8c8af5.raw.xz
vmlinux: https://storage.googleapis.com/syzbot-assets/1f5fa331d8f2/vmlinux-6b8c8af5.xz
kernel image: https://storage.googleapis.com/syzbot-assets/f993558ec63b/bzImage-6b8c8af5.xz
IMPORTANT: if you fix the issue, please add the following tag to the commit:
------------[ cut here ]------------ timer_delete_sync(&sdp->delay_work) WARNING: kernel/rcu/srcutree.c:706 at cleanup_srcu_struct+0x3aa/0x890 kernel/rcu/srcutree.c:706, CPU#1: kworker/u8:11/3800 Modules linked in: CPU: 1 UID: 0 PID: 3800 Comm: kworker/u8:11 Not tainted syzkaller #0 PREEMPT(full) Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/24/2026 Workqueue: nbd-del nbd_dev_remove_work RIP: 0010:cleanup_srcu_struct+0x3aa/0x890 kernel/rcu/srcutree.c:706 Code: b9 8a 00 48 83 7d 00 00 4c 8b 74 24 10 0f 85 dd 03 00 00 41 ff c5 41 83 e5 0f 41 83 fd 07 0f 86 0e ff ff ff e9 ab 00 00 00 90 <0f> 0b 90 4c 8d b5 00 02 00 00 4c 89 f3 48 c1 eb 03 48 b8 00 00 00 RSP: 0018:ffffc9000e69f9d0 EFLAGS: 00010202 RAX: 0000000000000001 RBX: 0000607edad2e8c0 RCX: 0000000000000000 RDX: 0000000000000006 RSI: ffffffff8e253559 RDI: 00000000ffffffff RBP: ffffe8ffffc3a8c0 R08: ffffffff9058fb7f R09: 1ffffffff20b1f6f R10: dffffc0000000000 R11: fffffbfff20b1f70 R12: ffff88802b760000 R13: 0000000000000000 R14: ffffffff8e5237d0 R15: 1ffffffff1ca47de FS: 0000000000000000(0000) GS:ffff88812500c000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007fbb3d026e9c CR3: 000000000e948000 CR4: 00000000003526f0 Call Trace: <TASK> blk_mq_free_tag_set+0x617/0x780 block/blk-mq.c:4976 nbd_dev_remove drivers/block/nbd.c:269 [inline] nbd_dev_remove_work+0x4f/0xe0 drivers/block/nbd.c:284 process_one_work kernel/workqueue.c:3375 [inline] process_scheduled_works+0xc4e/0x1630 kernel/workqueue.c:3458 worker_thread+0xa47/0xfb0 kernel/workqueue.c:3539 kthread+0x388/0x470 kernel/kthread.c:436 ret_from_fork+0x514/0xb70 arch/x86/kernel/process.c:158 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:245 </TASK>
---
This report is generated by a bot. It may contain errors. See https://goo.gl/tpsmEJ for more information about syzbot. syzbot engineers can be reached at [email protected].
syzbot will keep track of this issue. See:
https://goo.gl/tpsmEJ#status for how to communicate with syzbot.
If the report is already addressed, let syzbot know by replying with:
#syz fix: exact-commit-title
If you want syzbot to run the reproducer, reply with:
#syz test: git://repo/address.git branch-or-commit-hash
If you attach or paste a git patch, syzbot will apply it before testing.
If you want to overwrite report's subsystems, reply with:
#syz set subsystems: new-subsystem
(See the list of subsystem names on the web dashboard)
If the report is a duplicate of another one, reply with:
#syz dup: exact-subject-of-another-report
If you want to undo deduplication, reply with:
#syz undup
syzbot
syzbotsyzbot has found a reproducer for the following issue on:
syzbot has found a reproducer for the following issue on:
HEAD commit: a8406e6c0b79 Add linux-next specific files for 20260825 git tree: linux-next console output: https://syzkaller.appspot.com/x/log.txt?x=114f1625580000 kernel config: https://syzkaller.appspot.com/x/.config?x=da8932b2925a9804 dashboard link: https://syzkaller.appspot.com/bug?extid=02b37e31e64ea5cb6d29 compiler: Debian clang version 22.1.8 (++20260613092233+e80beda6e255-1~exp1~20260613092250.77), Debian LLD 22.1.8 syz repro: https://syzkaller.appspot.com/x/repro.syz?x=13dad979580000 C reproducer: https://syzkaller.appspot.com/x/repro.c?x=10136979580000
Downloadable assets:
disk image: https://storage.googleapis.com/syzbot-assets/bd019bacac75/disk-a8406e6c.raw.xz
vmlinux: https://storage.googleapis.com/syzbot-assets/e47580ccc38d/vmlinux-a8406e6c.xz
kernel image: https://storage.googleapis.com/syzbot-assets/b7909a5638c6/bzImage-a8406e6c.xz
IMPORTANT: if you fix the issue, please add the following tag to the commit:
------------[ cut here ]------------ timer_delete_sync(&sdp->delay_work) && rcu_segcblist_n_cbs(&sdp->srcu_cblist) WARNING: kernel/rcu/srcutree.c:707 at cleanup_srcu_struct+0x3d6/0x8b0 kernel/rcu/srcutree.c:706, CPU#0: syz.0.1231/9288 Modules linked in: CPU: 0 UID: 0 PID: 9288 Comm: syz.0.1231 Not tainted syzkaller #0 PREEMPT(full) Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/24/2026 RIP: 0010:cleanup_srcu_struct+0x3d6/0x8b0 kernel/rcu/srcutree.c:706 Code: f3 8b 00 48 83 7d 00 00 4c 8b 74 24 10 0f 85 dd 03 00 00 41 ff c5 41 83 e5 0f 41 83 fd 07 0f 86 e2 fe ff ff e9 ab 00 00 00 90 <0f> 0b 90 4c 8d b5 00 02 00 00 4c 89 f3 48 c1 eb 03 48 b8 00 00 00 RSP: 0018:ffffc900033c7cf0 EFLAGS: 00010206 RAX: 1ffffd1ffff81745 RBX: 0000607edaf36940 RCX: dffffc0000000000 RDX: 0000000000000001 RSI: ffffffff8e478a87 RDI: 00000000ffffffff RBP: ffffe8ffffc0b940 R08: ffffffff907a4f7f R09: 1ffffffff20f49ef R10: dffffc0000000000 R11: fffffbfff20f49f0 R12: ffff888054a1e800 R13: 0000000000000000 R14: ffffe8ffffc0ba28 R15: 1ffffffff1ce95de FS: 00007f73abf2d6c0(0000) GS:ffff888124cd5000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000200000000100 CR3: 0000000076d8a000 CR4: 00000000003526f0 Call Trace: <TASK> blk_mq_free_tag_set+0x617/0x790 block/blk-mq.c:4976 loop_remove+0x4e/0xc0 drivers/block/loop.c:2143 loop_control_remove drivers/block/loop.c:2201 [inline] loop_control_ioctl+0x4a6/0x5a0 drivers/block/loop.c:2243 vfs_ioctl fs/ioctl.c:51 [inline] __do_sys_ioctl fs/ioctl.c:597 [inline] __se_sys_ioctl+0xfc/0x170 fs/ioctl.c:583 do_syscall_x64 arch/x86/entry/syscall_64.c:61 [inline] do_syscall_64+0x166/0x520 arch/x86/entry/syscall_64.c:84 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7f73aaf9e0d9 Code: ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 44 00 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 e8 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007f73abf2d028 EFLAGS: 00000246 ORIG_RAX: 0000000000000010 RAX: ffffffffffffffda RBX: 00007f73ab225fa0 RCX: 00007f73aaf9e0d9 RDX: 0000000000000001 RSI: 0000000000004c81 RDI: 0000000000000003 RBP: 00007f73ab035024 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007f73ab226038 R14: 00007f73ab225fa0 R15: 00007ffe4f51e5e8 </TASK>
---
If you want syzbot to run the reproducer, reply with:
#syz test: git://repo/address.git branch-or-commit-hash
If you attach or paste a git patch, syzbot will apply it before testing.
syzbot
syzbotForwarded: Re: [syzbot] [block?] WARNING in blk_mq_free_tag_set
In reply to syzbotFor archival purposes, forwarding an incoming command email to [email protected], [email protected].
For archival purposes, forwarding an incoming command email to [email protected], [email protected].
***
Subject: Re: [syzbot] [block?] WARNING in blk_mq_free_tag_set
Author: [email protected]
#syz test: git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git f0100363d8c3
kernel/rcu/srcutree.c +7 -4
@@ -701,10 +701,13 @@ void cleanup_srcu_struct(struct srcu_struct *ssp)for_each_possible_cpu (cpu) {struct srcu_data *sdp =per_cpu_ptr (ssp->sda, cpu); -// Call srcu_barrier() before this cleanup_srcu_struct() -// to avoid triggering this WARN_ON(). -if (WARN_ON (timer_delete_sync (&sdp->delay_work) && -rcu_segcblist_n_cbs (&sdp->srcu_cblist)) && +// Deleting a pending delay timer that still has callbacks +// behind it is not an error: queueing the work here and +// flushing it below invokes them. A caller that really did +// forget srcu_barrier() is caught by the WARN_ON() after the +// flush. +if (timer_delete_sync (&sdp->delay_work) && +rcu_segcblist_n_cbs (&sdp->srcu_cblist) &&rcu_cpu_beenfullyonline (sdp->cpu))queue_work_on (sdp->cpu, rcu_gp_wq, &sdp->work);flush_work (&sdp->work);