INFO: task bch-reclaim/loo:9521 blocked for more than 143 seconds.
      Not tainted syzkaller #0
"echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
task:bch-reclaim/loo state:D stack:18824 pid:9521  tgid:9521  ppid:2      task_flags:0x200040 flags:0x00004000
Call Trace:
 <TASK>
 __schedule+0x1798/0x4cc0
 schedule+0x165/0x360
 schedule_preempt_disabled+0x13/0x30
 __mutex_lock+0x7e6/0x1350
 bch2_journal_reclaim_thread+0x16b/0x4f0
 kthread+0x711/0x8a0
 ret_from_fork+0x439/0x7d0
 ret_from_fork_asm+0x1a/0x30
 </TASK>
INFO: task syz.4.393:9594 blocked for more than 143 seconds.
      Not tainted syzkaller #0
"echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
task:syz.4.393       state:D stack:28936 pid:9594  tgid:9593  ppid:9015   task_flags:0x400040 flags:0x00004004
Call Trace:
 <TASK>
 __schedule+0x1798/0x4cc0
 schedule+0x165/0x360
 schedule_preempt_disabled+0x13/0x30
 rwsem_down_read_slowpath+0x5fd/0x8f0
 down_read+0x98/0x2e0
 super_lock+0x2a9/0x3b0
 __iterate_supers+0x126/0x290
 ksys_sync+0x94/0x150
 __ia32_sys_sync+0xe/0x20
 do_syscall_64+0xfa/0x3b0
 entry_SYSCALL_64_after_hwframe+0x77/0x7f
RIP: 0033:0x7f864db8ec29
RSP: 002b:00007f864ea93038 EFLAGS: 00000246 ORIG_RAX: 00000000000000a2
RAX: ffffffffffffffda RBX: 00007f864ddd5fa0 RCX: 00007f864db8ec29
RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000000
RBP: 00007f864ddd5fa0 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 00007f864ddd6038 R14: 00007f864ddd5fa0 R15: 00007ffc472c7218
 </TASK>

Showing all locks held in the system:
4 locks held by kworker/u9:0/26:
1 lock held by khungtaskd/34:
 #0: ffffffff8e13a0e0 (rcu_read_lock){....}-{1:3}, at: debug_show_all_locks+0x2e/0x180
4 locks held by kworker/u10:5/1090:
 #0: ffff888024d47948 ((wq_completion)btree_update){+.+.}-{0:0}, at: process_scheduled_works+0x9b4/0x17b0
 #1: ffffc90007037bc0 ((work_completion)(&c->btree_interior_update_work)){+.+.}-{0:0}, at: process_scheduled_works+0x9ef/0x17b0
 #2: ffff888043904398 (&c->btree_trans_barrier){.+.+}-{0:0}, at: bch2_trans_srcu_lock+0xaf/0x220
 #3: ffff888043926710 (&c->gc_lock){++++}-{4:4}, at: bch2_btree_update_start+0x542/0x1de0
2 locks held by getty/5673:
 #0: ffff888108f0a0a0 (&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/6490:
3 locks held by syz-executor/7254:
3 locks held by kworker/0:7/7370:
 #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: ffff888126ced240 (&data->fib_lock){+.+.}-{4:4}, at: nsim_fib_event_work+0x26b/0x3180
6 locks held by syz-executor/8317:
 #0: ffff88810956a0e0 (&type->s_umount_key#57){++++}-{4:4}, at: deactivate_super+0xa9/0xe0
 #1: ffff888043900278 (&c->state_lock){++++}-{4:4}, at: __bch2_fs_stop+0xf8/0x900
 #2: ffff88804394af68 (&j->reclaim_lock){+.+.}-{4:4}, at: journal_flush_done+0x86/0x810
 #3: ffff888043904398 (&c->btree_trans_barrier){.+.+}-{0:0}, at: __bch2_trans_get+0x7f4/0xd80
 #4: ffff888043904740 (&wb->flushing.lock){+.+.}-{4:4}, at: btree_write_buffer_flush_seq+0x18bd/0x1a40
 #5: ffff888043926710 (&c->gc_lock){++++}-{4:4}, at: bch2_btree_update_start+0x542/0x1de0
1 lock held by bch-reclaim/loo/9521:
 #0: ffff88804394af68 (&j->reclaim_lock){+.+.}-{4:4}, at: bch2_journal_reclaim_thread+0x16b/0x4f0
1 lock held by syz.4.393/9594:
 #0: ffff8880347160e0 (&type->s_umount_key#55){++++}-{4:4}, at: super_lock+0x2a9/0x3b0
1 lock held by syz.7.493/10582:
 #0: ffff8880347160e0 (&type->s_umount_key#55){++++}-{4:4}, at: super_lock+0x25c/0x3b0
1 lock held by syz-executor/10882:
1 lock held by syz.9.580/11402:
 #0: ffff8880347160e0 (&type->s_umount_key#55){++++}-{4:4}, at: super_lock+0x2a9/0x3b0
1 lock held by syz.8.686/12010:
 #0: ffff888104e300e0 (&type->s_umount_key#55){++++}-{4:4}, at: super_lock+0x2a9/0x3b0
3 locks held by syz-executor/12152:
 #0: ffff888063c70dc0 (&hdev->req_lock){+.+.}-{4:4}, at: hci_unregister_dev+0x212/0x510
 #1: ffff888063c700b8 (&hdev->lock){+.+.}-{4:4}, at: hci_dev_close_sync+0x66a/0x1330
 #2: ffffffff8f69efe8 (hci_cb_list_lock){+.+.}-{4:4}, at: hci_conn_hash_flush+0xa1/0x230
5 locks held by syz-executor/12170:
 #0: ffff88811ce48dc0 (&hdev->req_lock){+.+.}-{4:4}, at: hci_unregister_dev+0x212/0x510
 #1: ffff88811ce480b8 (&hdev->lock){+.+.}-{4:4}, at: hci_dev_close_sync+0x66a/0x1330
 #2: ffffffff8f69efe8 (hci_cb_list_lock){+.+.}-{4:4}, at: hci_conn_hash_flush+0xa1/0x230
 #3: ffff88811c92d338 (&conn->lock#2){+.+.}-{4:4}, at: l2cap_conn_del+0x70/0x680
 #4: ffffffff8e13fb78 (rcu_state.exp_mutex){+.+.}-{4:4}, at: synchronize_rcu_expedited+0x2f6/0x730
4 locks held by rm/12236:
 #0: ffff888136639f98 (&rq->__lock){-.-.}-{2:2}, at: raw_spin_rq_lock_nested+0x2a/0x140
 #1: ffff888136624008 (psi_seq){-.-.}-{0:0}, at: psi_task_switch+0x53/0x880
 #2: ffff88810ae74638 (&sig->wait_chldexit){....}-{3:3}, at: __wake_up_common_lock+0x2f/0x1f0
 #3: ffff8880222d43a8 (&p->pi_lock){-.-.}-{2:2}, at: try_to_wake_up+0x67/0x12b0

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

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+0x439/0x7d0
 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: 3 Comm: pool_workqueue_ 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
RIP: 0010:zap_class+0xe5/0x360
Code: c1 75 d7 45 8b 7d 00 41 f6 c7 fc 0f 84 e2 00 00 00 41 c1 ef 08 4e 8d 34 7d 10 a3 a9 92 49 81 ff 00 00 50 00 73 30 41 0f b7 06 <25> ff 1f 00 00 48 39 c3 74 33 49 ff c7 41 8b 45 00 89 c1 c1 e9 08
RSP: 0018:ffffc90000067bc0 EFLAGS: 00000083
RAX: 000000000000075d RBX: 0000000000000e9a RCX: 0000000000012600
RDX: ffffffff9364a338 RSI: 0000000000000004 RDI: 000000000008569c
RBP: ffffffff93a8a7b0 R08: 0000000000000000 R09: ffffffff81aa8548
R10: dffffc0000000000 R11: fffffbfff1f474e7 R12: 000000000000d700
R13: ffffffff93b8be10 R14: ffffffff92adf654 R15: 00000000000229a2
FS:  0000000000000000(0000) GS:ffff8881a3c12000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007fff81372958 CR3: 0000000110d52000 CR4: 00000000000006f0
Call Trace:
 <TASK>
 lockdep_unregister_key+0x1a6/0x310
 pwq_release_workfn+0x6d5/0x870
 kthread_worker_fn+0x507/0xb60
 kthread+0x711/0x8a0
 ret_from_fork+0x439/0x7d0
 ret_from_fork_asm+0x1a/0x30
 </TASK>
