INFO: task bch-reclaim/loo:14658 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:14658 tgid:14658 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>

Showing all locks held in the system:
5 locks held by kworker/0:1/10:
 #0: ffff88801b723548 ((wq_completion)usb_hub_wq){+.+.}-{0:0}, at: process_scheduled_works+0x9b4/0x17b0
 #1: ffffc900000d7bc0 ((work_completion)(&hub->events)){+.+.}-{0:0}, at: process_scheduled_works+0x9ef/0x17b0
 #2: ffff888136488198 (&dev->mutex){....}-{4:4}, at: hub_event+0x184/0x4a20
 #3: ffff888043752198 (&dev->mutex){....}-{4:4}, at: __device_attach+0x88/0x400
 #4: ffff888104ca7a78 (&(&priv->bus_notifier)->rwsem){++++}-{4:4}, at: blocking_notifier_call_chain+0x54/0x90
1 lock held by khungtaskd/34:
 #0: ffffffff8e13a0e0 (rcu_read_lock){....}-{1:3}, at: debug_show_all_locks+0x2e/0x180
2 locks held by getty/5672:
 #0: ffff88802227a0a0 (&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
4 locks held by kworker/1:1H/12282:
 #0: ffff8881205d9148 ((wq_completion)bcachefs_btree_write_complete){+.+.}-{0:0}, at: process_scheduled_works+0x9b4/0x17b0
 #1: ffffc90003cdfbc0 ((work_completion)(&wb->work)){+.+.}-{0:0}, at: process_scheduled_works+0x9ef/0x17b0
 #2: ffff888123b04398 (&c->btree_trans_barrier){.+.+}-{0:0}, at: bch2_trans_srcu_lock+0xaf/0x220
 #3: ffff888123b26710 (&c->gc_lock){++++}-{4:4}, at: bch2_btree_update_start+0x542/0x1de0
6 locks held by syz-executor/14094:
 #0: ffff88812ba420e0 (&type->s_umount_key#96){++++}-{4:4}, at: deactivate_super+0xa9/0xe0
 #1: ffff888123b00278 (&c->state_lock){++++}-{4:4}, at: __bch2_fs_stop+0xf8/0x900
 #2: ffff888123b4af68 (&j->reclaim_lock){+.+.}-{4:4}, at: journal_flush_done+0x86/0x810
 #3: ffff888123b04398 (&c->btree_trans_barrier){.+.+}-{0:0}, at: __bch2_trans_get+0x7f4/0xd80
 #4: ffff888123b04740 (&wb->flushing.lock){+.+.}-{4:4}, at: btree_write_buffer_flush_seq+0x18bd/0x1a40
 #5: ffff888123b26710 (&c->gc_lock){++++}-{4:4}, at: bch2_btree_update_start+0x542/0x1de0
1 lock held by bch-reclaim/loo/14658:
 #0: ffff888123b4af68 (&j->reclaim_lock){+.+.}-{4:4}, at: bch2_journal_reclaim_thread+0x16b/0x4f0
3 locks held by kworker/u10:9/15039:
 #0: ffff88801a489148 ((wq_completion)events_unbound){+.+.}-{0:0}, at: process_scheduled_works+0x9b4/0x17b0
 #1: ffffc90003727bc0 ((linkwatch_work).work){+.+.}-{0:0}, at: process_scheduled_works+0x9ef/0x17b0
 #2: ffffffff8f53a548 (rtnl_mutex){+.+.}-{4:4}, at: linkwatch_event+0xe/0x60
1 lock held by syz.8.2486/15118:
 #0: ffff88812ba420e0 (&type->s_umount_key#96){++++}-{4:4}, at: super_lock+0x2a9/0x3b0
3 locks held by syz.1.2879/16915:
1 lock held by syz.3.2885/16904:
 #0: ffffffff8f53a548 (rtnl_mutex){+.+.}-{4:4}, at: tun_chr_close+0x3e/0x1c0

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

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+0x439/0x7d0
 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: 16915 Comm: syz.1.2879 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:preempt_count_add+0x9/0x1a0
Code: 2e 93 00 eb 8c e9 f1 fe ff ff 0f 1f 80 00 00 00 00 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 f3 0f 1e fa 41 57 41 56 53 <49> bf 00 00 00 00 00 fc ff df 48 c7 c0 20 33 ac 99 48 c1 e8 03 42
RSP: 0018:ffffc900071d76a0 EFLAGS: 00000287
RAX: 1ffffffff1b7c5a2 RBX: 0000000000000001 RCX: dffffc0000000000
RDX: 0000000000000017 RSI: ffffffff8be34260 RDI: 0000000000000001
RBP: 0000000000000000 R08: dffffc0000000000 R09: 0000000000000000
R10: ffffed1024c08800 R11: fffffbfff1f47587 R12: ffffffff8dbe2d10
R13: ffff88804b040000 R14: ffff88804b040000 R15: 0000000000000000
FS:  00007fa6cefb36c0(0000) GS:ffff8880b8612000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007fa6cefb1ff0 CR3: 00000001214ae000 CR4: 00000000000006f0
Call Trace:
 <TASK>
 _raw_spin_trylock+0x19/0x80
 __free_frozen_pages+0x65e/0xd30
 vfree+0x25a/0x400
 vb2_vmalloc_put+0x68/0xb0
 __vb2_buf_mem_free+0x119/0x2d0
 __vb2_queue_free+0x414/0xb00
 vb2_core_queue_release+0x6b/0x150
 vb2_fop_release+0x16e/0x200
 v4l2_release+0x1ed/0x3b0
 __fput+0x44c/0xa70
 task_work_run+0x1d4/0x260
 do_exit+0x6b5/0x2300
 do_group_exit+0x21c/0x2d0
 get_signal+0x1286/0x1340
 arch_do_signal_or_restart+0x9a/0x750
 exit_to_user_mode_loop+0x75/0x110
 do_syscall_64+0x2bd/0x3b0
 entry_SYSCALL_64_after_hwframe+0x77/0x7f
RIP: 0033:0x7fa6ce18e82b
Code: Unable to access opcode bytes at 0x7fa6ce18e801.
RSP: 002b:00007fa6cefb0f60 EFLAGS: 00000246 ORIG_RAX: 0000000000000010
RAX: fffffffffffffffc RBX: 0000000000000004 RCX: 00007fa6ce18e82b
RDX: 00007fa6cefb1ff0 RSI: 0000000080085502 RDI: 0000000000000004
RBP: 00007fa6ce211e41 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000004 R11: 0000000000000246 R12: 0000200000000580
R13: 0000200000000240 R14: 00007fa6ce3d6450 R15: 00007ffe5b797f48
 </TASK>
