INFO: task bch-reclaim/loo:6133 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:18360 pid:6133  tgid:6133  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>
INFO: task syz.3.58:6430 blocked for more than 143 seconds.
      Not tainted syzkaller #0
"echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
task:syz.3.58        state:D stack:24392 pid:6430  tgid:6429  ppid:6010   task_flags:0x400140 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
 __se_sys_quotactl+0x353/0x950
 do_syscall_64+0xfa/0x3b0
 entry_SYSCALL_64_after_hwframe+0x77/0x7f
RIP: 0033:0x7f759438ebe9
RSP: 002b:00007f7595259038 EFLAGS: 00000246 ORIG_RAX: 00000000000000b3
RAX: ffffffffffffffda RBX: 00007f75945c5fa0 RCX: 00007f759438ebe9
RDX: 0000000000000000 RSI: 0000000000000000 RDI: ffffffff80000101
RBP: 00007f7594411e19 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 00007f75945c6038 R14: 00007f75945c5fa0 R15: 00007ffdda248918
 </TASK>

Showing all locks held in the system:
3 locks held by kworker/0:1/10:
 #0: ffff88801a480d48 ((wq_completion)events){+.+.}-{0:0}, at: process_scheduled_works+0x9b4/0x17b0
 #1: ffffc900000d7bc0 ((work_completion)(&data->fib_event_work)){+.+.}-{0:0}, at: process_scheduled_works+0x9ef/0x17b0
 #2: ffff888110fb4240 (&data->fib_lock){+.+.}-{4:4}, at: nsim_fib_event_work+0x26b/0x3180
1 lock held by khungtaskd/34:
 #0: ffffffff8e139f20 (rcu_read_lock){....}-{1:3}, at: debug_show_all_locks+0x2e/0x180
2 locks held by getty/5675:
 #0: ffff8881080900a0 (&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
6 locks held by syz-executor/5857:
 #0: ffff88801f8d40e0 (&type->s_umount_key#70){++++}-{4:4}, at: deactivate_super+0xa9/0xe0
 #1: ffff88811bd00278 (&c->state_lock){++++}-{4:4}, at: __bch2_fs_stop+0xf8/0x900
 #2: ffff88811bd4af68 (&j->reclaim_lock){+.+.}-{4:4}, at: journal_flush_done+0x86/0x810
 #3: ffff88811bd04398 (&c->btree_trans_barrier){.+.+}-{0:0}, at: __bch2_trans_get+0x7f4/0xd80
 #4: ffff88811bd04740 (&wb->flushing.lock){+.+.}-{4:4}, at: btree_write_buffer_flush_seq+0x18bd/0x1a40
 #5: ffff88811bd26710 (&c->gc_lock){++++}-{4:4}, at: bch2_btree_update_start+0x542/0x1de0
2 locks held by kworker/u8:3/5878:
 #0: ffff88804b039f98 (&rq->__lock){-.-.}-{2:2}, at: raw_spin_rq_lock_nested+0x2a/0x140
 #1: ffffc9000391fbc0 ((work_completion)(&work->work)){+.+.}-{0:0}, at: process_scheduled_works+0x9ef/0x17b0
3 locks held by kworker/u8:4/5884:
 #0: ffff88802175f148 ((wq_completion)ipv6_addrconf){+.+.}-{0:0}, at: process_scheduled_works+0x9b4/0x17b0
 #1: ffff88804b024008 (psi_seq){-.-.}-{0:0}, at: psi_task_switch+0x53/0x880
 #2: ffff88804b025918 (&base->lock){-.-.}-{2:2}, at: __mod_timer+0x1ae/0xf30
1 lock held by bch-reclaim/loo/6133:
 #0: ffff88811bd4af68 (&j->reclaim_lock){+.+.}-{4:4}, at: bch2_journal_reclaim_thread+0x16b/0x4f0
1 lock held by syz.3.58/6430:
 #0: ffff88801f8d40e0 (&type->s_umount_key#70){++++}-{4:4}, at: super_lock+0x2a9/0x3b0
1 lock held by syz-executor/6903:
 #0: ffffffff8e13f880 (rcu_state.barrier_mutex){+.+.}-{4:4}, at: rcu_barrier+0x4c/0x570
1 lock held by syz.2.303/9138:
 #0: ffff88801f8d40e0 (&type->s_umount_key#70){++++}-{4:4}, at: super_lock+0x2a9/0x3b0
1 lock held by syz.2.303/9139:
 #0: ffff88801f8d40e0 (&type->s_umount_key#70){++++}-{4:4}, at: super_lock+0x2a9/0x3b0
3 locks held by syz-executor/9420:
 #0: ffffffff8f538c48 (rtnl_mutex){+.+.}-{4:4}, at: rtnl_newlink+0x8db/0x1c70
 #1: ffff8880202694e8 (&wg->device_update_lock){+.+.}-{4:4}, at: wg_open+0x227/0x420
 #2: ffffffff8e13f9b8 (rcu_state.exp_mutex){+.+.}-{4:4}, at: synchronize_rcu_expedited+0x3b9/0x730
3 locks held by syz.9.342/9473:
 #0: ffff8881239f8428 (sb_writers#17){.+.+}-{0:0}, at: direct_splice_actor+0x49/0x160
 #1: ffff88802bf854d0 (&sb->s_type->i_mutex_key#27){++++}-{4:4}, at: bch2_direct_write+0x192/0x2ce0
 #2: ffff888130904398 (&c->btree_trans_barrier){.+.+}-{0:0}, at: __bch2_trans_get+0x7f4/0xd80
3 locks held by syz.9.342/9494:

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

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: 9473 Comm: syz.9.342 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:validate_chain+0xe7d/0x2140
Code: 00 00 0f 83 89 01 00 00 4e 8b 2c fd e0 c7 a8 95 ff c0 25 ff 0f 00 00 89 05 b0 95 0b 14 4d 85 ed 0f 84 a7 01 00 00 49 8b 45 10 <48> 85 c0 0f 84 bb 0b 00 00 8b 0d 9c 95 0b 14 39 48 5c 0f 84 6e ff
RSP: 0018:ffffc9000458db18 EFLAGS: 00000086
RAX: ffffffff934b0b50 RBX: 00000000000003fd RCX: ffffffff9633e848
RDX: 0000000000000008 RSI: 00000000000003fd RDI: ffff888108278000
RBP: ffffffff934c8d70 R08: ffffc9000458dae0 R09: 0000000000000020
R10: ffffc9000458de18 R11: ffffffff819dce90 R12: ffffffff9631d678
R13: ffffffff9633e848 R14: ffff888108278bb8 R15: 00000000000002d7
FS:  00007f98a25606c0(0000) GS:ffff8880b8618000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f98983ff000 CR3: 00000000445ee000 CR4: 00000000000006f0
Call Trace:
 <TASK>
 __lock_acquire+0xab9/0xd20
 lock_acquire+0x120/0x360
 _raw_spin_lock_irqsave+0xa7/0xf0
 debug_object_activate+0xbb/0x420
 __mod_timer+0xa4f/0xf30
 mod_delayed_work_on+0xf8/0x200
 __journal_res_get+0x1cc1/0x27f0
 bch2_journal_res_get_slowpath+0xdc/0xaf0
 bch2_journal_res_get+0x206/0x8f0
 bch2_trans_commit_error+0x361/0x1130
 __bch2_trans_commit+0x1bb5/0x8870
 bch2_extent_update+0x33e/0x900
 __bch2_write_index+0xbb8/0x1930
 __bch2_write+0x3203/0x3900
 bch2_direct_write+0x1986/0x2ce0
 bch2_write_iter+0x18f/0x2b90
 iter_file_splice_write+0x975/0x10e0
 direct_splice_actor+0x101/0x160
 splice_direct_to_actor+0x5a8/0xcc0
 do_splice_direct+0x181/0x270
 do_sendfile+0x4da/0x7e0
 __se_sys_sendfile64+0x13e/0x190
 do_syscall_64+0xfa/0x3b0
 entry_SYSCALL_64_after_hwframe+0x77/0x7f
RIP: 0033:0x7f98a178ebe9
Code: ff ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 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 a8 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007f98a2560038 EFLAGS: 00000246 ORIG_RAX: 0000000000000028
RAX: ffffffffffffffda RBX: 00007f98a19c5fa0 RCX: 00007f98a178ebe9
RDX: 0000000000000000 RSI: 0000000000000004 RDI: 0000000000000005
RBP: 00007f98a1811e19 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000fffa83 R11: 0000000000000246 R12: 0000000000000000
R13: 00007f98a19c6038 R14: 00007f98a19c5fa0 R15: 00007ffdd638c2a8
 </TASK>
