INFO: task kworker/0:1:10 blocked for more than 143 seconds.
      Not tainted 6.16.0-syzkaller-11895-gcca7a0aae895-dirty #0
"echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
task:kworker/0:1     state:D stack:21272 pid:10    tgid:10    ppid:2      task_flags:0x4208060 flags:0x00004000
Workqueue: bcachefs_write_ref bch2_do_discards_work
Call Trace:
 <TASK>
 __schedule+0x1798/0x4cc0
 schedule+0x165/0x360
 __closure_sync+0x163/0x220
 bch2_journal_res_get_slowpath+0xa04/0xaf0
 bch2_journal_res_get+0x206/0x8f0
 bch2_trans_commit_error+0x361/0x1130
 __bch2_trans_commit+0x1bb5/0x8870
 bch2_discard_one_bucket+0xa32/0x11a0
 bch2_do_discards_work+0x3b3/0x9c0
 process_scheduled_works+0xae1/0x17b0
 worker_thread+0x8a0/0xda0
 kthread+0x711/0x8a0
 ret_from_fork+0x3fc/0x770
 ret_from_fork_asm+0x1a/0x30
 </TASK>
INFO: task kworker/u9:1:29 blocked for more than 143 seconds.
      Not tainted 6.16.0-syzkaller-11895-gcca7a0aae895-dirty #0
"echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
task:kworker/u9:1    state:D stack:17776 pid:29    tgid:29    ppid:2      task_flags:0x4208060 flags:0x00004000
Workqueue: btree_update btree_interior_update_work
Call Trace:
 <TASK>
 __schedule+0x1798/0x4cc0
 schedule+0x165/0x360
 __closure_sync+0x163/0x220
 bch2_journal_res_get_slowpath+0xa04/0xaf0
 bch2_journal_res_get+0x206/0x8f0
 bch2_trans_commit_error+0x361/0x1130
 __bch2_trans_commit+0x1bb5/0x8870
 btree_interior_update_work+0x1082/0x27d0
 process_scheduled_works+0xae1/0x17b0
 worker_thread+0x8a0/0xda0
 kthread+0x711/0x8a0
 ret_from_fork+0x3fc/0x770
 ret_from_fork_asm+0x1a/0x30
 </TASK>
INFO: task kworker/u12:0:56 blocked for more than 143 seconds.
      Not tainted 6.16.0-syzkaller-11895-gcca7a0aae895-dirty #0
"echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
task:kworker/u12:0   state:D stack:17704 pid:56    tgid:56    ppid:2      task_flags:0x4208060 flags:0x00004000
Workqueue: bcachefs bch2_write_point_do_index_updates
Call Trace:
 <TASK>
 __schedule+0x1798/0x4cc0
 schedule+0x165/0x360
 __closure_sync+0x163/0x220
 bch2_journal_res_get_slowpath+0xa04/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_point_do_index_updates+0x43f/0x570
 process_scheduled_works+0xae1/0x17b0
 worker_thread+0x8a0/0xda0
 kthread+0x711/0x8a0
 ret_from_fork+0x3fc/0x770
 ret_from_fork_asm+0x1a/0x30
 </TASK>
INFO: task kworker/1:1H:1115 blocked for more than 143 seconds.
      Not tainted 6.16.0-syzkaller-11895-gcca7a0aae895-dirty #0
"echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
task:kworker/1:1H    state:D stack:23352 pid:1115  tgid:1115  ppid:2      task_flags:0x4208060 flags:0x00004000
Workqueue: bcachefs_btree_write_complete btree_node_write_work
Call Trace:
 <TASK>
 __schedule+0x1798/0x4cc0
 schedule+0x165/0x360
 __closure_sync+0x163/0x220
 bch2_journal_res_get_slowpath+0xa04/0xaf0
 bch2_journal_res_get+0x206/0x8f0
 bch2_trans_commit_error+0x361/0x1130
 __bch2_trans_commit+0x1bb5/0x8870
 bch2_btree_node_update_key+0x1ab7/0x3030
 bch2_btree_node_update_key_get_iter+0x5ad/0x640
 btree_node_write_work+0x763/0xc40
 process_scheduled_works+0xae1/0x17b0
 worker_thread+0x8a0/0xda0
 kthread+0x711/0x8a0
 ret_from_fork+0x3fc/0x770
 ret_from_fork_asm+0x1a/0x30
 </TASK>
INFO: task kworker/1:2H:5311 blocked for more than 143 seconds.
      Not tainted 6.16.0-syzkaller-11895-gcca7a0aae895-dirty #0
"echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
task:kworker/1:2H    state:D stack:22472 pid:5311  tgid:5311  ppid:2      task_flags:0x4208060 flags:0x00004000
Workqueue: bcachefs_btree_write_complete btree_node_write_work
Call Trace:
 <TASK>
 __schedule+0x1798/0x4cc0
 schedule+0x165/0x360
 __closure_sync+0x163/0x220
 bch2_journal_res_get_slowpath+0xa04/0xaf0
 bch2_journal_res_get+0x206/0x8f0
 bch2_trans_commit_error+0x361/0x1130
 __bch2_trans_commit+0x1bb5/0x8870
 bch2_btree_node_update_key+0x1ab7/0x3030
 bch2_btree_node_update_key_get_iter+0x5ad/0x640
 btree_node_write_work+0x763/0xc40
 process_scheduled_works+0xae1/0x17b0
 worker_thread+0x8a0/0xda0
 kthread+0x711/0x8a0
 ret_from_fork+0x3fc/0x770
 ret_from_fork_asm+0x1a/0x30
 </TASK>
INFO: task kworker/1:3:5846 blocked for more than 144 seconds.
      Not tainted 6.16.0-syzkaller-11895-gcca7a0aae895-dirty #0
"echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
task:kworker/1:3     state:D stack:21488 pid:5846  tgid:5846  ppid:2      task_flags:0x4208060 flags:0x00004000
Workqueue: bcachefs_write_ref bch2_do_discards_work
Call Trace:
 <TASK>
 __schedule+0x1798/0x4cc0
 schedule+0x165/0x360
 __closure_sync+0x163/0x220
 bch2_journal_res_get_slowpath+0xa04/0xaf0
 bch2_journal_res_get+0x206/0x8f0
 bch2_trans_commit_error+0x361/0x1130
 __bch2_trans_commit+0x1bb5/0x8870
 bch2_discard_one_bucket+0xa32/0x11a0
 bch2_do_discards_work+0x3b3/0x9c0
 process_scheduled_works+0xae1/0x17b0
 worker_thread+0x8a0/0xda0
 kthread+0x711/0x8a0
 ret_from_fork+0x3fc/0x770
 ret_from_fork_asm+0x1a/0x30
 </TASK>
INFO: task syz-executor:5853 blocked for more than 144 seconds.
      Not tainted 6.16.0-syzkaller-11895-gcca7a0aae895-dirty #0
"echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
task:syz-executor    state:D stack:18024 pid:5853  tgid:5853  ppid:1      task_flags:0x400140 flags:0x00004004
Call Trace:
 <TASK>
 __schedule+0x1798/0x4cc0
 schedule+0x165/0x360
 io_schedule+0x80/0xd0
 folio_wait_bit_common+0x6b0/0xb90
 folio_wait_writeback+0xb0/0x100
 __filemap_fdatawait_range+0x147/0x230
 filemap_fdatawait_keep_errors+0x31/0xd0
 sync_inodes_sb+0x7a9/0xa10
 sync_filesystem+0x17a/0x230
 generic_shutdown_super+0x6f/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:0x7fe15478ff17
RSP: 002b:00007ffca1823c88 EFLAGS: 00000246 ORIG_RAX: 00000000000000a6
RAX: 0000000000000000 RBX: 00007fe154811c05 RCX: 00007fe15478ff17
RDX: 0000000000000000 RSI: 0000000000000009 RDI: 00007ffca1823d40
RBP: 00007ffca1823d40 R08: 0000000000000000 R09: 0000000000000000
R10: 00000000ffffffff R11: 0000000000000246 R12: 00007ffca1824dd0
R13: 00007fe154811c05 R14: 0000000000019c1f R15: 00007ffca1824e10
 </TASK>
INFO: task kworker/u13:2:5969 blocked for more than 144 seconds.
      Not tainted 6.16.0-syzkaller-11895-gcca7a0aae895-dirty #0
"echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
task:kworker/u13:2   state:D stack:13576 pid:5969  tgid:5969  ppid:2      task_flags:0x4208060 flags:0x00004000
Workqueue: bcachefs bch2_write_point_do_index_updates
Call Trace:
 <TASK>
 __schedule+0x1798/0x4cc0
 schedule+0x165/0x360
 __closure_sync+0x163/0x220
 bch2_journal_res_get_slowpath+0xa04/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_point_do_index_updates+0x43f/0x570
 process_scheduled_works+0xae1/0x17b0
 worker_thread+0x8a0/0xda0
 kthread+0x711/0x8a0
 ret_from_fork+0x3fc/0x770
 ret_from_fork_asm+0x1a/0x30
 </TASK>
INFO: task kworker/u12:1:5971 blocked for more than 144 seconds.
      Not tainted 6.16.0-syzkaller-11895-gcca7a0aae895-dirty #0
"echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
task:kworker/u12:1   state:D stack:22648 pid:5971  tgid:5971  ppid:2      task_flags:0x4208060 flags:0x00004000
Workqueue: bcachefs bch2_write_point_do_index_updates
Call Trace:
 <TASK>
 __schedule+0x1798/0x4cc0
 schedule+0x165/0x360
 __closure_sync+0x163/0x220
 bch2_journal_res_get_slowpath+0xa04/0xaf0
 bch2_journal_res_get+0x206/0x8f0
 bch2_trans_commit_error+0x361/0x1130
 __bch2_trans_commit+0x1bb5/0x8870
 __bch2_data_update_index_update+0x425d/0x4f70
 bch2_data_update_index_update+0x65/0xa0
 __bch2_write_index+0x1004/0x1930
 bch2_write_point_do_index_updates+0x43f/0x570
 process_scheduled_works+0xae1/0x17b0
 worker_thread+0x8a0/0xda0
 kthread+0x711/0x8a0
 ret_from_fork+0x3fc/0x770
 ret_from_fork_asm+0x1a/0x30
 </TASK>
INFO: task kworker/0:2H:6007 blocked for more than 144 seconds.
      Not tainted 6.16.0-syzkaller-11895-gcca7a0aae895-dirty #0
"echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
task:kworker/0:2H    state:D stack:23352 pid:6007  tgid:6007  ppid:2      task_flags:0x4208060 flags:0x00004000
Workqueue: bcachefs_btree_write_complete btree_node_write_work
Call Trace:
 <TASK>
 __schedule+0x1798/0x4cc0
 schedule+0x165/0x360
 __closure_sync+0x163/0x220
 bch2_journal_res_get_slowpath+0xa04/0xaf0
 bch2_journal_res_get+0x206/0x8f0
 bch2_trans_commit_error+0x361/0x1130
 __bch2_trans_commit+0x1bb5/0x8870
 bch2_btree_node_update_key+0x1ab7/0x3030
 bch2_btree_node_update_key_get_iter+0x5ad/0x640
 btree_node_write_work+0x763/0xc40
 process_scheduled_works+0xae1/0x17b0
 worker_thread+0x8a0/0xda0
 kthread+0x711/0x8a0
 ret_from_fork+0x3fc/0x770
 ret_from_fork_asm+0x1a/0x30
 </TASK>
Future hung task reports are suppressed, see sysctl kernel.hung_task_warnings
INFO: task syz-executor:6931 blocked for more than 144 seconds.
      Not tainted 6.16.0-syzkaller-11895-gcca7a0aae895-dirty #0
"echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
task:syz-executor    state:D stack:21832 pid:6931  tgid:6931  ppid:1      task_flags:0x400140 flags:0x00004004
Call Trace:
 <TASK>
 __schedule+0x1798/0x4cc0
 schedule+0x165/0x360
 io_schedule+0x80/0xd0
 folio_wait_bit_common+0x6b0/0xb90
 folio_wait_writeback+0xb0/0x100
 __filemap_fdatawait_range+0x147/0x230
 filemap_fdatawait_keep_errors+0x31/0xd0
 sync_inodes_sb+0x7a9/0xa10
 sync_filesystem+0x17a/0x230
 generic_shutdown_super+0x6f/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:0x7fcf5ed8ff17
RSP: 002b:00007ffdbbaebd98 EFLAGS: 00000246 ORIG_RAX: 00000000000000a6
RAX: 0000000000000000 RBX: 00007fcf5ee11c05 RCX: 00007fcf5ed8ff17
RDX: 0000000000000000 RSI: 0000000000000009 RDI: 00007ffdbbaebe50
RBP: 00007ffdbbaebe50 R08: 0000000000000000 R09: 0000000000000000
R10: 00000000ffffffff R11: 0000000000000246 R12: 00007ffdbbaecee0
R13: 00007fcf5ee11c05 R14: 0000000000018b8f R15: 00007ffdbbaecf20
 </TASK>
Future hung task reports are suppressed, see sysctl kernel.hung_task_warnings
INFO: task bch-rebalance/l:6976 blocked for more than 144 seconds.
      Not tainted 6.16.0-syzkaller-11895-gcca7a0aae895-dirty #0
"echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
task:bch-rebalance/l state:D stack:21912 pid:6976  tgid:6976  ppid:2      task_flags:0x200040 flags:0x00004000
Call Trace:
 <TASK>
 __schedule+0x1798/0x4cc0
 schedule+0x165/0x360
 bch2_move_ratelimit+0xcc3/0x1330
 bch2_rebalance_thread+0x17b0/0x1f80
 kthread+0x711/0x8a0
 ret_from_fork+0x3fc/0x770
 ret_from_fork_asm+0x1a/0x30
 </TASK>
Future hung task reports are suppressed, see sysctl kernel.hung_task_warnings
INFO: task bch-rebalance/l:7026 blocked for more than 144 seconds.
      Not tainted 6.16.0-syzkaller-11895-gcca7a0aae895-dirty #0
"echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
task:bch-rebalance/l state:D stack:19736 pid:7026  tgid:7026  ppid:2      task_flags:0x200040 flags:0x00004000
Call Trace:
 <TASK>
 __schedule+0x1798/0x4cc0
 schedule+0x165/0x360
 bch2_move_ratelimit+0xcc3/0x1330
 bch2_rebalance_thread+0x17b0/0x1f80
 kthread+0x711/0x8a0
 ret_from_fork+0x3fc/0x770
 ret_from_fork_asm+0x1a/0x30
 </TASK>
Future hung task reports are suppressed, see sysctl kernel.hung_task_warnings
INFO: task kworker/u12:5:7028 blocked for more than 145 seconds.
      Not tainted 6.16.0-syzkaller-11895-gcca7a0aae895-dirty #0
"echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
task:kworker/u12:5   state:D stack:21160 pid:7028  tgid:7028  ppid:2      task_flags:0x4208060 flags:0x00004000
Workqueue: bcachefs bch2_write_point_do_index_updates
Call Trace:
 <TASK>
 __schedule+0x1798/0x4cc0
 schedule+0x165/0x360
 __closure_sync+0x163/0x220
 bch2_journal_res_get_slowpath+0xa04/0xaf0
 bch2_journal_res_get+0x206/0x8f0
 bch2_trans_commit_error+0x361/0x1130
 __bch2_trans_commit+0x1bb5/0x8870
 __bch2_data_update_index_update+0x425d/0x4f70
 bch2_data_update_index_update+0x65/0xa0
 __bch2_write_index+0x1004/0x1930
 bch2_write_point_do_index_updates+0x43f/0x570
 process_scheduled_works+0xae1/0x17b0
 worker_thread+0x8a0/0xda0
 kthread+0x711/0x8a0
 ret_from_fork+0x3fc/0x770
 ret_from_fork_asm+0x1a/0x30
 </TASK>
Future hung task reports are suppressed, see sysctl kernel.hung_task_warnings
INFO: task kworker/0:3H:7051 blocked for more than 145 seconds.
      Not tainted 6.16.0-syzkaller-11895-gcca7a0aae895-dirty #0
"echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
task:kworker/0:3H    state:D stack:22472 pid:7051  tgid:7051  ppid:2      task_flags:0x4208060 flags:0x00004000
Workqueue: bcachefs_btree_write_complete btree_node_write_work
Call Trace:
 <TASK>
 __schedule+0x1798/0x4cc0
 schedule+0x165/0x360
 __closure_sync+0x163/0x220
 bch2_journal_res_get_slowpath+0xa04/0xaf0
 bch2_journal_res_get+0x206/0x8f0
 bch2_trans_commit_error+0x361/0x1130
 __bch2_trans_commit+0x1bb5/0x8870
 bch2_btree_node_update_key+0x1ab7/0x3030
 bch2_btree_node_update_key_get_iter+0x5ad/0x640
 btree_node_write_work+0x763/0xc40
 process_scheduled_works+0xae1/0x17b0
 worker_thread+0x8a0/0xda0
 kthread+0x711/0x8a0
 ret_from_fork+0x3fc/0x770
 ret_from_fork_asm+0x1a/0x30
 </TASK>
Future hung task reports are suppressed, see sysctl kernel.hung_task_warnings

Showing all locks held in the system:
2 locks held by kworker/0:1/10:
 #0: ffff8881142d5148 ((wq_completion)bcachefs_write_ref){+.+.}-{0:0}, at: process_scheduled_works+0x9b4/0x17b0
 #1: ffffc900000d7bc0 ((work_completion)(&ca->discard_work)){+.+.}-{0:0}, at: process_scheduled_works+0x9ef/0x17b0
2 locks held by kworker/u9:0/26:
 #0: ffff888021b9e948 ((wq_completion)btree_update#3){+.+.}-{0:0}, at: process_scheduled_works+0x9b4/0x17b0
 #1: ffffc900001efbc0 ((work_completion)(&c->btree_interior_update_work)){+.+.}-{0:0}, at: process_scheduled_works+0x9ef/0x17b0
2 locks held by kworker/u9:1/29:
 #0: ffff888125401148 ((wq_completion)btree_update){+.+.}-{0:0}, at: process_scheduled_works+0x9b4/0x17b0
 #1: ffffc9000062fbc0 ((work_completion)(&c->btree_interior_update_work)){+.+.}-{0:0}, at: process_scheduled_works+0x9ef/0x17b0
1 lock held by khungtaskd/34:
 #0: ffffffff8e139ee0 (rcu_read_lock){....}-{1:3}, at: debug_show_all_locks+0x2e/0x180
2 locks held by kworker/1:1/47:
 #0: ffff88802ee24d48 ((wq_completion)bcachefs_write_ref#3){+.+.}-{0:0}, at: process_scheduled_works+0x9b4/0x17b0
 #1: ffffc9000075fbc0 ((work_completion)(&ca->discard_work)){+.+.}-{0:0}, at: process_scheduled_works+0x9ef/0x17b0
2 locks held by kworker/u12:0/56:
 #0: ffff888125400948 ((wq_completion)bcachefs){+.+.}-{0:0}, at: process_scheduled_works+0x9b4/0x17b0
 #1: ffffc900007efbc0 ((work_completion)(&wp->index_update_work)){+.+.}-{0:0}, at: process_scheduled_works+0x9ef/0x17b0
2 locks held by kworker/1:1H/1115:
 #0: ffff88812746b948 ((wq_completion)bcachefs_btree_write_complete){+.+.}-{0:0}, at: process_scheduled_works+0x9b4/0x17b0
 #1: ffffc90007547bc0 ((work_completion)(&wb->work)){+.+.}-{0:0}, at: process_scheduled_works+0x9ef/0x17b0
2 locks held by kworker/1:2H/5311:
 #0: ffff88802f9c9548 ((wq_completion)bcachefs_btree_write_complete#2){+.+.}-{0:0}, at: process_scheduled_works+0x9b4/0x17b0
 #1: ffffc900026afbc0 ((work_completion)(&wb->work)){+.+.}-{0:0}, at: process_scheduled_works+0x9ef/0x17b0
2 locks held by getty/5672:
 #0: ffff88801fd0e0a0 (&tty->ldisc_sem){++++}-{0:0}, at: tty_ldisc_ref_wait+0x25/0x70
 #1: ffffc900028a82f0 (&ldata->atomic_read_lock){+.+.}-{4:4}, at: n_tty_read+0x43e/0x1400
2 locks held by syz-executor/5845:
 #0: ffff8880310c80e0 (&type->s_umount_key#60){++++}-{4:4}, at: deactivate_super+0xa9/0xe0
 #1: ffff8880310c8950 (&s->s_sync_lock){+.+.}-{4:4}, at: sync_inodes_sb+0x255/0xa10
2 locks held by kworker/1:3/5846:
 #0: ffff888022340948 ((wq_completion)bcachefs_write_ref#2){+.+.}-{0:0}, at: process_scheduled_works+0x9b4/0x17b0
 #1: ffffc900034ffbc0 ((work_completion)(&ca->discard_work)){+.+.}-{0:0}, at: process_scheduled_works+0x9ef/0x17b0
2 locks held by syz-executor/5853:
 #0: ffff8880309980e0 (&type->s_umount_key#60){++++}-{4:4}, at: deactivate_super+0xa9/0xe0
 #1: ffff888030998950 (&s->s_sync_lock){+.+.}-{4:4}, at: sync_inodes_sb+0x255/0xa10
2 locks held by kworker/u13:1/5968:
 #0: ffff888021b9e148 ((wq_completion)bcachefs#3){+.+.}-{0:0}, at: process_scheduled_works+0x9b4/0x17b0
 #1: ffffc90004f2fbc0 ((work_completion)(&wp->index_update_work)){+.+.}-{0:0}, at: process_scheduled_works+0x9ef/0x17b0
2 locks held by kworker/u13:2/5969:
 #0: ffff8880305a4148 ((wq_completion)bcachefs#2){+.+.}-{0:0}, at: process_scheduled_works+0x9b4/0x17b0
 #1: ffffc90004f3fbc0 ((work_completion)(&wp->index_update_work)){+.+.}-{0:0}, at: process_scheduled_works+0x9ef/0x17b0
2 locks held by kworker/u12:1/5971:
 #0: ffff888125400948 ((wq_completion)bcachefs){+.+.}-{0:0}, at: process_scheduled_works+0x9b4/0x17b0
 #1: ffffc90004f4fbc0 ((work_completion)(&wp->index_update_work)){+.+.}-{0:0}, at: process_scheduled_works+0x9ef/0x17b0
2 locks held by kworker/0:2H/6007:
 #0: ffff88812746b948 ((wq_completion)bcachefs_btree_write_complete){+.+.}-{0:0}, at: process_scheduled_works+0x9b4/0x17b0
 #1: ffffc900067bfbc0 ((work_completion)(&wb->work)){+.+.}-{0:0}, at: process_scheduled_works+0x9ef/0x17b0
2 locks held by syz-executor/6931:
 #0: ffff88802f8940e0 (&type->s_umount_key#60){++++}-{4:4}, at: deactivate_super+0xa9/0xe0
 #1: ffff88802f894950 (&s->s_sync_lock){+.+.}-{4:4}, at: sync_inodes_sb+0x255/0xa10
2 locks held by kworker/u12:4/6981:
 #0: ffff888021b9e148 ((wq_completion)bcachefs#3){+.+.}-{0:0}, at: process_scheduled_works+0x9b4/0x17b0
 #1: ffffc9000678fbc0 ((work_completion)(&wp->index_update_work)){+.+.}-{0:0}, at: process_scheduled_works+0x9ef/0x17b0
2 locks held by kworker/u12:5/7028:
 #0: ffff8880305a4148 ((wq_completion)bcachefs#2){+.+.}-{0:0}, at: process_scheduled_works+0x9b4/0x17b0
 #1: ffffc90006fc7bc0 ((work_completion)(&wp->index_update_work)){+.+.}-{0:0}, at: process_scheduled_works+0x9ef/0x17b0
2 locks held by kworker/0:3H/7051:
 #0: ffff88802f9c9548 ((wq_completion)bcachefs_btree_write_complete#2){+.+.}-{0:0}, at: process_scheduled_works+0x9b4/0x17b0
 #1: ffffc90006de7bc0 ((work_completion)(&wb->work)){+.+.}-{0:0}, at: process_scheduled_works+0x9ef/0x17b0
2 locks held by kworker/1:4H/7595:
 #0: ffff888028738548 ((wq_completion)bcachefs_btree_write_complete#3){+.+.}-{0:0}, at: process_scheduled_works+0x9b4/0x17b0
 #1: ffffc90006f07bc0 ((work_completion)(&wb->work)){+.+.}-{0:0}, at: process_scheduled_works+0x9ef/0x17b0
2 locks held by kworker/0:4H/7620:
 #0: ffff888028738548 ((wq_completion)bcachefs_btree_write_complete#3){+.+.}-{0:0}, at: process_scheduled_works+0x9b4/0x17b0
 #1: ffffc900079afbc0 ((work_completion)(&wb->work)){+.+.}-{0:0}, at: process_scheduled_works+0x9ef/0x17b0

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

NMI backtrace for cpu 0
CPU: 0 UID: 0 PID: 34 Comm: khungtaskd Not tainted 6.16.0-syzkaller-11895-gcca7a0aae895-dirty #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: 0 Comm: swapper/1 Not tainted 6.16.0-syzkaller-11895-gcca7a0aae895-dirty #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:pv_native_safe_halt+0x13/0x20
Code: 13 e8 02 00 cc cc cc 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 f3 0f 1e fa eb 07 0f 00 2d 53 97 0f 00 f3 0f 1e fa fb f4 <c3> cc cc cc cc cc cc cc cc cc cc cc cc 90 90 90 90 90 90 90 90 90
RSP: 0018:ffffc90000177de0 EFLAGS: 00000282
RAX: 502f3a459dfbd900 RBX: ffffffff81968308 RCX: 502f3a459dfbd900
RDX: 0000000000000001 RSI: ffffffff8d9b4408 RDI: ffffffff8be32600
RBP: ffffc90000177f20 R08: ffff888136632f9b R09: 1ffff11026cc65f3
R10: dffffc0000000000 R11: ffffed1026cc65f4 R12: ffffffff8fa34230
R13: 0000000000000001 R14: 0000000000000001 R15: 1ffff11020007000
FS:  0000000000000000(0000) GS:ffff8881a3c24000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000000000000000 CR3: 000000010f7dc000 CR4: 00000000000006f0
Call Trace:
 <TASK>
 default_idle+0x13/0x20
 default_idle_call+0x74/0xb0
 do_idle+0x1e8/0x510
 cpu_startup_entry+0x44/0x60
 start_secondary+0x101/0x110
 common_startup_64+0x13e/0x147
 </TASK>
