INFO: task syz-executor:6510 blocked for more than 143 seconds.
      Not tainted 6.16.0-syzkaller-11895-gcca7a0aae895 #0
"echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
task:syz-executor    state:D stack:16752 pid:6510  tgid:6510  ppid:1      task_flags:0x400140 flags:0x00004006
Call Trace:
 <TASK>
 __schedule+0x1798/0x4cc0
 schedule+0x165/0x360
 __closure_sync+0x163/0x220
 bch2_journal_flush_pins+0x18e/0x250
 __bch2_fs_read_only+0x144/0x5b0
 bch2_fs_read_only+0x42a/0xb00
 __bch2_fs_stop+0x100/0x900
 generic_shutdown_super+0x135/0x2c0
 bch2_kill_sb+0x41/0x50
 deactivate_locked_super+0xbc/0x130
 cleanup_mnt+0x425/0x4c0
 task_work_run+0x1d4/0x260
 exit_to_user_mode_loop+0xec/0x110
 do_syscall_64+0x2bd/0x3b0
 entry_SYSCALL_64_after_hwframe+0x77/0x7f
RIP: 0033:0x7f3d06b8ff17
RSP: 002b:00007ffe84ca9478 EFLAGS: 00000246 ORIG_RAX: 00000000000000a6
RAX: 0000000000000000 RBX: 00007f3d06c11c05 RCX: 00007f3d06b8ff17
RDX: 0000000000000000 RSI: 0000000000000009 RDI: 00007ffe84ca9530
RBP: 00007ffe84ca9530 R08: 0000000000000000 R09: 0000000000000000
R10: 00000000ffffffff R11: 0000000000000246 R12: 00007ffe84caa5c0
R13: 00007f3d06c11c05 R14: 0000000000024c0a R15: 00007ffe84caa600
 </TASK>

Showing all locks held in the system:
4 locks held by kworker/1:0H/25:
 #0: ffff888111961148 ((wq_completion)bcachefs_btree_write_complete){+.+.}-{0:0}, at: process_scheduled_works+0x9b4/0x17b0
 #1: ffffc900001d7bc0 ((work_completion)(&wb->work)){+.+.}-{0:0}, at: process_scheduled_works+0x9ef/0x17b0
 #2: ffff888122d84398 (&c->btree_trans_barrier){.+.+}-{0:0}, at: bch2_trans_srcu_lock+0xaf/0x220
 #3: ffff888122da6710 (&c->gc_lock){.+.+}-{4:4}, at: bch2_btree_update_start+0x542/0x1de0
1 lock held by khungtaskd/34:
 #0: ffffffff8e139ee0 (rcu_read_lock){....}-{1:3}, at: debug_show_all_locks+0x2e/0x180
5 locks held by kworker/u9:2/74:
 #0: ffff88804b039f98 (&rq->__lock){-.-.}-{2:2}, at: raw_spin_rq_lock_nested+0x2a/0x140
 #1: ffff88804b024008 (psi_seq){-.-.}-{0:0}, at: psi_task_switch+0x53/0x880
 #2: ffff88812b260768 (&rdev->wiphy.mtx){+.+.}-{4:4}, at: cfg80211_wiphy_work+0xc4/0x470
 #3: ffffffff8e139ee0 (rcu_read_lock){....}-{1:3}, at: ieee80211_sta_active_ibss+0xc3/0x330
 #4: ffffffff99af5388 (&____s->seqcount#2){----}-{0:0}, at: ktime_get+0x3e/0x1f0
5 locks held by kworker/0:2/793:
 #0: ffff88801b786d48 ((wq_completion)usb_hub_wq){+.+.}-{0:0}, at: process_scheduled_works+0x9b4/0x17b0
 #1: ffffc90004e37bc0 ((work_completion)(&hub->events)){+.+.}-{0:0}, at: process_scheduled_works+0x9ef/0x17b0
 #2: ffff8880231d6198 (&dev->mutex){....}-{4:4}, at: hub_event+0x184/0x4a20
 #3: ffff88802ff33198 (&dev->mutex){....}-{4:4}, at: __device_attach+0x88/0x400
 #4: ffff88803e464160 (&dev->mutex){....}-{4:4}, at: __device_attach+0x88/0x400
2 locks held by getty/5675:
 #0: ffff888021e220a0 (&tty->ldisc_sem){++++}-{0:0}, at: tty_ldisc_ref_wait+0x25/0x70
 #1: ffffc900029032f0 (&ldata->atomic_read_lock){+.+.}-{4:4}, at: n_tty_read+0x43e/0x1400
3 locks held by kworker/u8:3/5858:
 #0: ffff88804b039f98 (&rq->__lock){-.-.}-{2:2}, at: raw_spin_rq_lock_nested+0x2a/0x140
 #1: ffffc9000341fbc0 ((work_completion)(&(&bat_priv->nc.work)->work)){+.+.}-{0:0}, at: process_scheduled_works+0x9ef/0x17b0
 #2: ffff88804b025918 (&base->lock){-.-.}-{2:2}, at: __mod_timer+0x1ae/0xf30
3 locks held by kworker/0:3/5893:
 #0: ffff88801a480d48 ((wq_completion)events){+.+.}-{0:0}, at: process_scheduled_works+0x9b4/0x17b0
 #1: ffffc9000368fbc0 ((work_completion)(&data->fib_event_work)){+.+.}-{0:0}, at: process_scheduled_works+0x9ef/0x17b0
 #2: ffff88803d7af240 (&data->fib_lock){+.+.}-{4:4}, at: nsim_fib_event_work+0x26b/0x3180
2 locks held by syz-executor/6510:
 #0: ffff888129f0c0e0 (&type->s_umount_key#105){++++}-{4:4}, at: deactivate_super+0xa9/0xe0
 #1: ffff888122d80278 (&c->state_lock){+.+.}-{4:4}, at: __bch2_fs_stop+0xf8/0x900
1 lock held by syz.1.1318/9329:
 #0: ffff888129f0c0e0 (&type->s_umount_key#105){++++}-{4:4}, at: super_lock+0x2a9/0x3b0
1 lock held by syz.5.1664/10236:
 #0: ffff888129f0c0e0 (&type->s_umount_key#105){++++}-{4:4}, at: super_lock+0x2a9/0x3b0
1 lock held by syz.2.1735/10413:
 #0: ffff888129f0c0e0 (&type->s_umount_key#105){++++}-{4:4}, at: super_lock+0x2a9/0x3b0
1 lock held by syz.6.2315/12071:
 #0: ffffffff8e13f978 (rcu_state.exp_mutex){+.+.}-{4:4}, at: synchronize_rcu_expedited+0x3b9/0x730

=============================================

NMI backtrace for cpu 1
CPU: 1 UID: 0 PID: 34 Comm: khungtaskd Not tainted 6.16.0-syzkaller-11895-gcca7a0aae895 #0 PREEMPT(full) 
Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.2-debian-1.16.2-1 04/01/2014
Call Trace:
 <TASK>
 dump_stack_lvl+0x189/0x250
 nmi_cpu_backtrace+0x39e/0x3d0
 nmi_trigger_cpumask_backtrace+0x17a/0x300
 watchdog+0xf93/0xfe0
 kthread+0x711/0x8a0
 ret_from_fork+0x3fc/0x770
 ret_from_fork_asm+0x1a/0x30
 </TASK>
Sending NMI from CPU 1 to CPUs 0:
NMI backtrace for cpu 0
CPU: 0 UID: 0 PID: 74 Comm: kworker/u9:2 Not tainted 6.16.0-syzkaller-11895-gcca7a0aae895 #0 PREEMPT(full) 
Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.2-debian-1.16.2-1 04/01/2014
Workqueue: events_unbound cfg80211_wiphy_work
RIP: 0010:__mod_timer+0x84/0xf30
Code: 89 64 24 08 4c 89 6c 24 28 73 76 4d 8d 74 24 08 4d 89 f7 49 c1 ef 03 41 80 3c 2f 00 74 08 4c 89 f7 e8 f0 25 76 00 49 83 3e 00 <74> 5f 4c 89 7c 24 18 4d 8d 7c 24 10 4c 89 f8 48 c1 e8 03 48 89 44
RSP: 0018:ffffc9000174f800 EFLAGS: 00000286
RAX: ffffffff81acf036 RBX: 0000000000000000 RCX: 0000000000000000
RDX: ffff88801c380000 RSI: 0000000000000000 RDI: 0000000000000004
RBP: dffffc0000000000 R08: ffffffff8fa34237 R09: 1ffffffff1f46846
R10: dffffc0000000000 R11: fffffbfff1f46847 R12: ffff888131861b28
R13: 0000000100001134 R14: ffff888131861b30 R15: 1ffff1102630c366
FS:  0000000000000000(0000) GS:ffff8880b8624000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007ffcc08f3ff8 CR3: 00000001085be000 CR4: 00000000000006f0
Call Trace:
 <TASK>
 ieee80211_ibss_work+0x5af/0x1060
 cfg80211_wiphy_work+0x2bb/0x470
 process_scheduled_works+0xae1/0x17b0
 worker_thread+0x8a0/0xda0
 kthread+0x711/0x8a0
 ret_from_fork+0x3fc/0x770
 ret_from_fork_asm+0x1a/0x30
 </TASK>
