INFO: task syz-executor:5848 blocked for more than 143 seconds.
      Not tainted syzkaller #0
"echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
task:syz-executor    state:D stack:16672 pid:5848  tgid:5848  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:0x7f319dd8ff17
RSP: 002b:00007ffcb05cef38 EFLAGS: 00000246 ORIG_RAX: 00000000000000a6
RAX: 0000000000000000 RBX: 00007f319de11c05 RCX: 00007f319dd8ff17
RDX: 0000000000000000 RSI: 0000000000000009 RDI: 00007ffcb05ceff0
RBP: 00007ffcb05ceff0 R08: 0000000000000000 R09: 0000000000000000
R10: 00000000ffffffff R11: 0000000000000246 R12: 00007ffcb05d0080
R13: 00007f319de11c05 R14: 0000000000023834 R15: 00007ffcb05d00c0
 </TASK>

Showing all locks held in the system:
1 lock held by khungtaskd/34:
 #0: ffffffff8e139f20 (rcu_read_lock){....}-{1:3}, at: debug_show_all_locks+0x2e/0x180
5 locks held by kworker/1:2/792:
 #0: ffff888100066148 ((wq_completion)usb_hub_wq){+.+.}-{0:0}, at: process_scheduled_works+0x9b4/0x17b0
 #1: ffffc9000489fbc0 ((work_completion)(&hub->events)){+.+.}-{0:0}, at: process_scheduled_works+0x9ef/0x17b0
 #2: ffff888021e43198 (&dev->mutex){....}-{4:4}, at: hub_event+0x184/0x4a20
 #3: ffff888021e46518 (&port_dev->status_lock){+.+.}-{4:4}, at: hub_event+0x21b8/0x4a20
 #4: ffff888021bc5468 (hcd->address0_mutex){+.+.}-{4:4}, at: hub_event+0x21e5/0x4a20
4 locks held by kworker/u10:5/1090:
 #0: ffff88811192a148 ((wq_completion)btree_update){+.+.}-{0:0}, at: process_scheduled_works+0x9b4/0x17b0
 #1: ffffc90007127bc0 ((work_completion)(&c->btree_interior_update_work)){+.+.}-{0:0}, at: process_scheduled_works+0x9ef/0x17b0
 #2: ffff888030004398 (&c->btree_trans_barrier){.+.+}-{0:0}, at: bch2_trans_srcu_lock+0xaf/0x220
 #3: ffff888030026710 (&c->gc_lock){++++}-{4:4}, at: bch2_btree_update_start+0x542/0x1de0
4 locks held by kworker/u10:7/1094:
 #0: ffff88810074e948 ((wq_completion)writeback){+.+.}-{0:0}, at: process_scheduled_works+0x9b4/0x17b0
 #1: ffffc90007167bc0 ((work_completion)(&(&wb->dwork)->work)){+.+.}-{0:0}, at: process_scheduled_works+0x9ef/0x17b0
 #2: ffff8881016a00e0 (&type->s_umount_key#76){++++}-{4:4}, at: super_trylock_shared+0x20/0xf0
 #3: ffff88811f361410 (&sbi->gc_lock){+.+.}-{4:4}, at: f2fs_balance_fs+0x5ab/0x7f0
4 locks held by kworker/1:1H/1118:
 #0: ffff888108028148 ((wq_completion)bcachefs_btree_write_complete){+.+.}-{0:0}, at: process_scheduled_works+0x9b4/0x17b0
 #1: ffffc90007297bc0 ((work_completion)(&wb->work)){+.+.}-{0:0}, at: process_scheduled_works+0x9ef/0x17b0
 #2: ffff888030004398 (&c->btree_trans_barrier){.+.+}-{0:0}, at: __bch2_trans_get+0x7f4/0xd80
 #3: ffff888030026710 (&c->gc_lock){++++}-{4:4}, at: bch2_btree_update_start+0x542/0x1de0
3 locks held by kworker/1:3/2286:
 #0: ffff88801a480d48 ((wq_completion)events){+.+.}-{0:0}, at: process_scheduled_works+0x9b4/0x17b0
 #1: ffffc9000ad27bc0 ((work_completion)(&fw_work->work)){+.+.}-{0:0}, at: process_scheduled_works+0x9ef/0x17b0
 #2: ffff888021e43198 (&dev->mutex){....}-{4:4}, at: ath9k_hif_usb_firmware_cb+0x332/0x4c0
1 lock held by syslogd/5281:
 #0: ffff888136639f98 (&rq->__lock){-.-.}-{2:2}, at: raw_spin_rq_lock_nested+0x2a/0x140
2 locks held by getty/5677:
 #0: ffff8880260700a0 (&tty->ldisc_sem){++++}-{0:0}, at: tty_ldisc_ref_wait+0x25/0x70
 #1: ffffc900029062f0 (&ldata->atomic_read_lock){+.+.}-{4:4}, at: n_tty_read+0x43e/0x1400
2 locks held by syz-executor/5848:
 #0: ffff88811c8b40e0 (&type->s_umount_key#60){++++}-{4:4}, at: deactivate_super+0xa9/0xe0
 #1: ffff888030000278 (&c->state_lock){++++}-{4:4}, at: __bch2_fs_stop+0xf8/0x900
7 locks held by syz.7.613/9009:

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

NMI backtrace for cpu 0
CPU: 0 UID: 0 PID: 34 Comm: khungtaskd Not tainted syzkaller #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 0 to CPUs 1:
NMI backtrace for cpu 1
CPU: 1 UID: 0 PID: 7996 Comm: kworker/u9:17 Not tainted syzkaller #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 toggle_allocation_gate
RIP: 0010:load_new_mm_cr3+0x14e/0x1e0
Code: 0f b7 c3 3d ff 07 00 00 73 4c f7 c3 00 08 00 00 75 50 ff c3 0f b7 c3 48 09 c1 48 b8 00 00 00 00 00 00 00 80 48 09 c8 0f 22 d8 <5b> 41 5c 41 5e 41 5f c3 cc cc cc cc cc 90 0f 0b 90 eb af 90 0f 0b
RSP: 0018:ffffc9000316f4d8 EFLAGS: 00000046
RAX: 000000000df36000 RBX: 0000000000000000 RCX: ffff88803d7a3980
RDX: 0000000000000000 RSI: 000000000df36000 RDI: 000000001fffffff
RBP: ffffc9000316f5d0 R08: ffffffff8e2425df R09: 1ffffffff1c484bb
R10: dffffc0000000000 R11: fffffbfff1c484bc R12: ffffffff8e241f38
R13: ffffffff8e241e80 R14: ffffffff8df36000 R15: 0000000000010000
FS:  0000000000000000(0000) GS:ffff8881a3c18000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 000055556f53a5c8 CR3: 000000000df36000 CR4: 00000000000006f0
Call Trace:
 <TASK>
 switch_mm_irqs_off+0x52d/0x7a0
 unuse_temporary_mm+0x136/0x220
 __text_poke+0x6c8/0xa10
 smp_text_poke_batch_finish+0xd0f/0x1130
 arch_jump_label_transform_apply+0x1c/0x30
 static_key_disable_cpuslocked+0xc5/0x1b0
 static_key_disable+0x1a/0x20
 toggle_allocation_gate+0x1a1/0x240
 process_scheduled_works+0xae1/0x17b0
 worker_thread+0x8a0/0xda0
 kthread+0x711/0x8a0
 ret_from_fork+0x3fc/0x770
 ret_from_fork_asm+0x1a/0x30
 </TASK>
