INFO: task syz-executor:6222 blocked for more than 143 seconds.
      Not tainted syzkaller #0
"echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
task:syz-executor    state:D stack:17032 pid:6222  tgid:6222  ppid:1      task_flags:0x400140 flags:0x00004006
Call Trace:
 <TASK>
 __schedule+0x1798/0x4cc0
 schedule+0x165/0x360
 __closure_sync+0x163/0x220
 bch2_journal_flush_pins+0x18e/0x250
 __bch2_fs_read_only+0x144/0x5b0
 bch2_fs_read_only+0x42a/0xb00
 __bch2_fs_stop+0x100/0x900
 generic_shutdown_super+0x135/0x2c0
 bch2_kill_sb+0x41/0x50
 deactivate_locked_super+0xbc/0x130
 cleanup_mnt+0x425/0x4c0
 task_work_run+0x1d4/0x260
 exit_to_user_mode_loop+0xec/0x110
 do_syscall_64+0x2bd/0x3b0
 entry_SYSCALL_64_after_hwframe+0x77/0x7f
RIP: 0033:0x7fccca98fed7
RSP: 002b:00007fff72e3dcc8 EFLAGS: 00000246 ORIG_RAX: 00000000000000a6
RAX: 0000000000000000 RBX: 00007fcccaa11c05 RCX: 00007fccca98fed7
RDX: 0000000000000000 RSI: 0000000000000009 RDI: 00007fff72e3dd80
RBP: 00007fff72e3dd80 R08: 0000000000000000 R09: 0000000000000000
R10: 00000000ffffffff R11: 0000000000000246 R12: 00007fff72e3ee10
R13: 00007fcccaa11c05 R14: 0000000000016f6a R15: 00007fff72e3ee50
 </TASK>

Showing all locks held in the system:
3 locks held by kworker/1:0/24:
 #0: ffff88801a480d48 ((wq_completion)events){+.+.}-{0:0}, at: process_scheduled_works+0x9b4/0x17b0
 #1: ffffc900001c7bc0 ((work_completion)(&data->fib_event_work)){+.+.}-{0:0}, at: process_scheduled_works+0x9ef/0x17b0
 #2: ffff888111ca6240 (&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
3 locks held by kworker/u11:0/54:
 #0: ffff8881252dc948 ((wq_completion)hci3){+.+.}-{0:0}, at: process_scheduled_works+0x9b4/0x17b0
 #1: ffffc900007cfbc0 ((work_completion)(&hdev->cmd_sync_work)){+.+.}-{0:0}, at: process_scheduled_works+0x9ef/0x17b0
 #2: ffff88811482cdc0 (&hdev->req_lock){+.+.}-{4:4}, at: hci_cmd_sync_work+0x1d4/0x3a0
4 locks held by kworker/u9:2/64:
 #0: ffff88802fb36148 ((wq_completion)btree_update){+.+.}-{0:0}, at: process_scheduled_works+0x9b4/0x17b0
 #1: ffffc9000172fbc0 ((work_completion)(&c->btree_interior_update_work)){+.+.}-{0:0}, at: process_scheduled_works+0x9ef/0x17b0
 #2: ffff888122e84398 (&c->btree_trans_barrier){.+.+}-{0:0}, at: bch2_trans_srcu_lock+0xaf/0x220
 #3: ffff888122ea6710 (&c->gc_lock){++++}-{4:4}, at: bch2_btree_update_start+0x542/0x1de0
2 locks held by getty/5677:
 #0: ffff8880296340a0 (&tty->ldisc_sem){++++}-{0:0}, at: tty_ldisc_ref_wait+0x25/0x70
 #1: ffffc900028882f0 (&ldata->atomic_read_lock){+.+.}-{4:4}, at: n_tty_read+0x43e/0x1400
4 locks held by kworker/0:2H/6037:
 #0: ffff888106d3f548 ((wq_completion)bcachefs_btree_write_complete){+.+.}-{0:0}, at: process_scheduled_works+0x9b4/0x17b0
 #1: ffffc9000445fbc0 ((work_completion)(&wb->work)){+.+.}-{0:0}, at: process_scheduled_works+0x9ef/0x17b0
 #2: ffff888122e84398 (&c->btree_trans_barrier){.+.+}-{0:0}, at: bch2_trans_srcu_lock+0xaf/0x220
 #3: ffff888122ea6710 (&c->gc_lock){++++}-{4:4}, at: bch2_btree_update_start+0x542/0x1de0
2 locks held by syz-executor/6222:
 #0: ffff8880291780e0 (&type->s_umount_key#54){++++}-{4:4}, at: deactivate_super+0xa9/0xe0
 #1: ffff888122e80278 (&c->state_lock){++++}-{4:4}, at: __bch2_fs_stop+0xf8/0x900
1 lock held by syz.4.144/7014:
 #0: ffff8880291780e0 (&type->s_umount_key#54){++++}-{4:4}, at: super_lock+0x2a9/0x3b0
1 lock held by syz.7.316/8082:
 #0: ffff8880291780e0 (&type->s_umount_key#54){++++}-{4:4}, at: super_lock+0x2a9/0x3b0
1 lock held by syz.3.421/9178:
 #0: ffff8880291780e0 (&type->s_umount_key#54){++++}-{4:4}, at: super_lock+0x2a9/0x3b0
1 lock held by syz.5.517/10115:
 #0: ffff8880291780e0 (&type->s_umount_key#54){++++}-{4:4}, at: super_lock+0x2a9/0x3b0
3 locks held by syz.0.521/10239:
1 lock held by syz.1.522/10257:

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

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: 10257 Comm: syz.1.522 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:unwind_next_frame+0x1957/0x2390
Code: c0 0f 85 9b 03 00 00 c6 03 01 4c 8b 7c 24 48 4c 8b 64 24 20 41 0f b6 04 2c 84 c0 0f 85 2d 03 00 00 41 c7 06 00 00 00 00 31 db <e8> 94 54 07 0a 85 c0 74 3a e8 9b 85 33 00 84 c0 75 31 e8 82 54 07
RSP: 0018:ffffc9000387f158 EFLAGS: 00000206
RAX: ffffc90003880000 RBX: ffffffff90420f01 RCX: ffffc9000387fe08
RDX: ffffc9000387f201 RSI: dffffc0000000000 RDI: ffffc9000387f230
RBP: dffffc0000000000 R08: ffffc9000387fdf0 R09: 0000000000000000
R10: ffffc9000387f278 R11: fffff5200070fe51 R12: ffffc9000387fe00
R13: ffffc90003878000 R14: ffffc9000387f228 R15: ffffffff8172c195
FS:  00007f2c02a3a6c0(0000) GS:ffff8881a3c15000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f0f2885dba8 CR3: 00000001261e0000 CR4: 00000000000006f0
Call Trace:
 <TASK>
 arch_stack_walk+0x11c/0x150
 stack_trace_save+0x9c/0xe0
 save_stack+0xf5/0x1f0
 __reset_page_owner+0x71/0x1f0
 free_unref_folios+0xdbd/0x1520
 folios_put_refs+0x559/0x640
 shmem_undo_range+0x49e/0x14b0
 shmem_evict_inode+0x272/0xa70
 evict+0x504/0x9c0
 __dentry_kill+0x209/0x660
 dput+0x19f/0x2b0
 __fput+0x68e/0xa70
 fput_close_sync+0x119/0x200
 __x64_sys_close+0x7f/0x110
 do_syscall_64+0xfa/0x3b0
 entry_SYSCALL_64_after_hwframe+0x77/0x7f
RIP: 0033:0x7f2c01b8d80a
Code: 48 3d 00 f0 ff ff 77 48 c3 0f 1f 80 00 00 00 00 48 83 ec 18 89 7c 24 0c e8 43 91 02 00 8b 7c 24 0c 89 c2 b8 03 00 00 00 0f 05 <48> 3d 00 f0 ff ff 77 36 89 d7 89 44 24 0c e8 a3 91 02 00 8b 44 24
RSP: 002b:00007f2c02a39e00 EFLAGS: 00000293 ORIG_RAX: 0000000000000003
RAX: ffffffffffffffda RBX: 00000000ffffffff RCX: 00007f2c01b8d80a
RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000003
RBP: 0000000000000010 R08: 0000000000000000 R09: 0000000000005e91
R10: 0000000000000000 R11: 0000000000000293 R12: 0000000000000003
R13: 00007f2c02a39ef0 R14: 00007f2c02a39eb0 R15: 00007f2bf7800000
 </TASK>
