INFO: task bch-reclaim/loo:17877 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:22568 pid:17877 tgid:17877 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+0x3fc/0x770
 ret_from_fork_asm+0x1a/0x30
 </TASK>

Showing all locks held in the system:
2 locks held by kworker/u10:0/27:
 #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
1 lock held by khungtaskd/34:
 #0: ffffffff8e139ee0 (rcu_read_lock){....}-{1:3}, at: debug_show_all_locks+0x2e/0x180
3 locks held by kworker/u11:0/55:
 #0: ffff888121a30148 ((wq_completion)hci2){+.+.}-{0:0}, at: process_scheduled_works+0x9b4/0x17b0
 #1: ffffc900007dfbc0 ((work_completion)(&hdev->cmd_sync_work)){+.+.}-{0:0}, at: process_scheduled_works+0x9ef/0x17b0
 #2: ffff8881069e0dc0 (&hdev->req_lock){+.+.}-{4:4}, at: hci_cmd_sync_work+0x1d4/0x3a0
4 locks held by kworker/0:1H/98:
 #0: ffff888106e30d48 ((wq_completion)bcachefs_btree_write_complete){+.+.}-{0:0}, at: process_scheduled_works+0x9b4/0x17b0
 #1: ffffc90001bdfbc0 ((work_completion)(&wb->work)){+.+.}-{0:0}, at: process_scheduled_works+0x9ef/0x17b0
 #2: ffff888130e04398 (&c->btree_trans_barrier){.+.+}-{0:0}, at: bch2_trans_srcu_lock+0xaf/0x220
 #3: ffff888130e26710 (&c->gc_lock){++++}-{4:4}, at: bch2_btree_update_start+0x542/0x1de0
2 locks held by kworker/u9:3/157:
2 locks held by getty/5672:
 #0: ffff88801b6f90a0 (&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
1 lock held by udevd/5862:
6 locks held by syz-executor/13605:
 #0: ffff8881219020e0 (&type->s_umount_key#61){++++}-{4:4}, at: deactivate_super+0xa9/0xe0
 #1: ffff888130e00278 (&c->state_lock){++++}-{4:4}, at: __bch2_fs_stop+0xf8/0x900
 #2: ffff888130e4af68 (&j->reclaim_lock){+.+.}-{4:4}, at: journal_flush_done+0x86/0x810
 #3: ffff888130e04398 (&c->btree_trans_barrier){.+.+}-{0:0}, at: __bch2_trans_get+0x7f4/0xd80
 #4: ffff888130e04740 (&wb->flushing.lock){+.+.}-{4:4}, at: btree_write_buffer_flush_seq+0x18bd/0x1a40
 #5: ffff888130e26710 (&c->gc_lock){++++}-{4:4}, at: bch2_btree_update_start+0x542/0x1de0
1 lock held by bch-reclaim/loo/17877:
 #0: ffff888130e4af68 (&j->reclaim_lock){+.+.}-{4:4}, at: bch2_journal_reclaim_thread+0x16b/0x4f0
1 lock held by syz.4.1443/23911:
 #0: ffff8881219020e0 (&type->s_umount_key#61){++++}-{4:4}, at: super_lock+0x2a9/0x3b0
1 lock held by syz.2.1446/23955:
 #0: ffff8881219020e0 (&type->s_umount_key#61){++++}-{4:4}, at: super_lock+0x2a9/0x3b0
2 locks held by syz.6.1653/27052:
1 lock held by syz.7.1655/27059:
 #0: ffffffff8e13f978 (rcu_state.exp_mutex){+.+.}-{4:4}, at: synchronize_rcu_expedited+0x2f6/0x730
2 locks held by udevadm/27128:

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

NMI backtrace for cpu 1
CPU: 1 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 1 to CPUs 0:
NMI backtrace for cpu 0
CPU: 0 UID: 0 PID: 5295 Comm: udevd 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:kernfs_root+0x135/0x230
Code: 05 e8 8f 79 61 ff 4d 85 ff 4d 0f 45 f7 49 83 c6 78 4c 89 f0 48 c1 e8 03 42 80 3c 20 00 74 08 4c 89 f7 e8 fe e7 c4 ff 4d 8b 36 <e8> b6 7c 1b 09 89 c5 31 ff 89 c6 e8 9b 7d 61 ff 85 ed 74 10 e8 f2
RSP: 0018:ffffc90021f3fc78 EFLAGS: 00000246
RAX: 1ffff110039d64c3 RBX: ffffffff825e310c RCX: ffff888021e81cc0
RDX: 0000000000000000 RSI: 0000000000000001 RDI: 0000000000000000
RBP: 0000000000000001 R08: 0000000000000000 R09: ffffffff825e310c
R10: dffffc0000000000 R11: ffffed102001c025 R12: dffffc0000000000
R13: ffff888108951780 R14: ffff8881000e0000 R15: ffff88801ceb25a0
FS:  00007fd27ee8ec80(0000) GS:ffff8880b861b000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 000055e513e14888 CR3: 00000000215cc000 CR4: 00000000000006f0
Call Trace:
 <TASK>
 kernfs_parent+0x51/0x190
 kernfs_iop_get_link+0x10d/0x6c0
 vfs_readlink+0x24d/0x550
 do_readlinkat+0x215/0x500
 __x64_sys_readlink+0x7f/0x90
 do_syscall_64+0xfa/0x3b0
 entry_SYSCALL_64_after_hwframe+0x77/0x7f
RIP: 0033:0x7fd27eb17d47
Code: 73 01 c3 48 8b 0d e1 90 0d 00 f7 d8 64 89 01 48 83 c8 ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 44 00 00 b8 59 00 00 00 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 8b 0d b1 90 0d 00 f7 d8 64 89 01 48
RSP: 002b:00007fff3b7f3418 EFLAGS: 00000202 ORIG_RAX: 0000000000000059
RAX: ffffffffffffffda RBX: 000055d7bf11fd40 RCX: 00007fd27eb17d47
RDX: 0000000000000400 RSI: 00007fff3b7f3828 RDI: 00007fff3b7f3428
RBP: 00007fff3b7f3c68 R08: 000000000000fcff R09: 0000000000000000
R10: 0000000000000012 R11: 0000000000000202 R12: 0000000000000200
R13: 00007fff3b7f3828 R14: 00007fff3b7f3428 R15: 0000000000000000
 </TASK>
