INFO: task bch-reclaim/loo:6403 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:25800 pid:6403  tgid:6403  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 poweroff:6550 blocked for more than 143 seconds.
      Not tainted syzkaller #0
"echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
task:poweroff        state:D stack:24104 pid:6550  tgid:6550  ppid:5283   task_flags:0x400000 flags:0x00004002
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:0x7f178dc7f7e7
RSP: 002b:00007ffc71b7abf8 EFLAGS: 00000246 ORIG_RAX: 00000000000000a2
RAX: ffffffffffffffda RBX: 0000000000000001 RCX: 00007f178dc7f7e7
RDX: 0000000000000078 RSI: 00007f178de0e8ca RDI: 00000000ffffff9c
RBP: 0000000000000000 R08: 0000000000000001 R09: 00007f178de0e8ca
R10: 0000000000000000 R11: 0000000000000246 R12: 00007ffc71b7ad48
R13: 00007ffc71b7ad58 R14: 000055fdf148e169 R15: 00007f178de5fa80
 </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
3 locks held by kworker/1:1/51:
2 locks held by getty/5677:
 #0: ffff888020f3d0a0 (&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/5852:
 #0: ffff88802060c0e0 (&type->s_umount_key#51){++++}-{4:4}, at: deactivate_super+0xa9/0xe0
 #1: ffff88803c500278 (&c->state_lock){++++}-{4:4}, at: __bch2_fs_stop+0xf8/0x900
 #2: ffff88803c54af68 (&j->reclaim_lock){+.+.}-{4:4}, at: journal_flush_done+0x86/0x810
 #3: ffff88803c504398 (&c->btree_trans_barrier){.+.+}-{0:0}, at: __bch2_trans_get+0x7f4/0xd80
 #4: ffff88803c504398 (&c->btree_trans_barrier){.+.+}-{0:0}, at: bch2_btree_key_cache_journal_flush+0x105/0xd30
 #5: ffff88803c526710 (&c->gc_lock){++++}-{4:4}, at: bch2_btree_update_start+0x542/0x1de0
1 lock held by bch-reclaim/loo/6403:
 #0: ffff88803c54af68 (&j->reclaim_lock){+.+.}-{4:4}, at: bch2_journal_reclaim_thread+0x16b/0x4f0
1 lock held by poweroff/6550:
 #0: ffff88802060c0e0 (&type->s_umount_key#51){++++}-{4:4}, at: super_lock+0x2a9/0x3b0
4 locks held by syz.7.621/9275:

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

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: 9275 Comm: syz.7.621 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:check_preemption_disabled+0x49/0x120
Code: 8b 0d bb 9e 26 07 f7 c1 ff ff ff 7f 74 23 65 48 8b 0d 9b 9e 26 07 48 3b 4c 24 08 0f 85 cc 00 00 00 48 83 c4 10 5b 41 5e 41 5f <5d> e9 81 c9 02 00 cc 48 c7 04 24 00 00 00 00 9c 8f 04 24 f7 04 24
RSP: 0018:ffffc9000281f658 EFLAGS: 00000082
RAX: 0000000000000001 RBX: 0000000000000001 RCX: 73583c86abb94000
RDX: 0000000000000000 RSI: ffffffff8be338e0 RDI: ffffffff8be338a0
RBP: ffffc9000281f730 R08: ffffffff8fa39137 R09: 1ffffffff1f47226
R10: dffffc0000000000 R11: fffffbfff1f47227 R12: ffffc9000281f7c0
R13: 00000003fffffffc R14: 1ffff92000503ed4 R15: dffffc0000000000
FS:  00007f6273e336c0(0000) GS:ffff8881a3c18000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f6270bff000 CR3: 0000000106272000 CR4: 00000000000006f0
Call Trace:
 <TASK>
 rcu_is_watching+0x15/0xb0
 trace_irq_disable+0x37/0x110
 _raw_spin_lock_irq+0x7d/0xf0
 shmem_add_to_page_cache+0x72d/0xba0
 shmem_alloc_and_add_folio+0x846/0xf60
 shmem_get_folio_gfp+0x59d/0x1660
 shmem_write_begin+0xf7/0x2b0
 generic_perform_write+0x2c5/0x900
 shmem_file_write_iter+0xf8/0x120
 vfs_write+0x5c9/0xb30
 ksys_write+0x145/0x250
 do_syscall_64+0xfa/0x3b0
 entry_SYSCALL_64_after_hwframe+0x77/0x7f
RIP: 0033:0x7f6272f8d69f
Code: 89 54 24 18 48 89 74 24 10 89 7c 24 08 e8 f9 92 02 00 48 8b 54 24 18 48 8b 74 24 10 41 89 c0 8b 7c 24 08 b8 01 00 00 00 0f 05 <48> 3d 00 f0 ff ff 77 31 44 89 c7 48 89 44 24 08 e8 4c 93 02 00 48
RSP: 002b:00007f6273e32df0 EFLAGS: 00000293 ORIG_RAX: 0000000000000001
RAX: ffffffffffffffda RBX: 0000000008000000 RCX: 00007f6272f8d69f
RDX: 0000000008000000 RSI: 00007f6268c00000 RDI: 0000000000000004
RBP: 0000000000000000 R08: 0000000000000000 R09: 0000000000022244
R10: 0000000000000002 R11: 0000000000000293 R12: 0000000000000004
R13: 00007f6273e32ef0 R14: 00007f6273e32eb0 R15: 00007f6268c00000
 </TASK>
