INFO: task kworker/u9:6:5125 blocked for more than 143 seconds.
Not tainted 6.9.0-syzkaller-08414-g7ee332c9f12b #0
"echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
task:kworker/u9:6 state:D stack:19440 pid:5125 tgid:5125 ppid:2 flags:0x00004000
Workqueue: bcachefs bch2_write_point_do_index_updates
Call Trace:
context_switch kernel/sched/core.c:5409 [inline]
__schedule+0x17e8/0x4a50 kernel/sched/core.c:6746
__schedule_loop kernel/sched/core.c:6823 [inline]
schedule+0x14b/0x320 kernel/sched/core.c:6838
six_lock_slowpath+0x660/0x16a0 fs/bcachefs/six.c:493
six_lock_ip_waiter+0x117/0x160 fs/bcachefs/six.c:550
__btree_node_lock_nopath fs/bcachefs/btree_locking.h:208 [inline]
__bch2_btree_node_lock_write+0x11c/0x3c0 fs/bcachefs/btree_locking.c:429
__btree_node_lock_write fs/bcachefs/btree_locking.h:298 [inline]
bch2_btree_node_lock_write fs/bcachefs/btree_locking.h:306 [inline]
bch2_trans_lock_write+0x73b/0xce0 fs/bcachefs/btree_trans_commit.c:103
do_bch2_trans_commit fs/bcachefs/btree_trans_commit.c:850 [inline]
__bch2_trans_commit+0x3302/0x8560 fs/bcachefs/btree_trans_commit.c:1093
bch2_trans_commit fs/bcachefs/btree_update.h:168 [inline]
bch2_extent_update+0x4c0/0xbb0 fs/bcachefs/io_write.c:326
bch2_write_index_default fs/bcachefs/io_write.c:374 [inline]
__bch2_write_index+0xee9/0x2190 fs/bcachefs/io_write.c:528
bch2_write_point_do_index_updates+0x32e/0x690 fs/bcachefs/io_write.c:637
process_one_work kernel/workqueue.c:3231 [inline]
process_scheduled_works+0xa2e/0x1830 kernel/workqueue.c:3312
worker_thread+0x86d/0xd70 kernel/workqueue.c:3393
kthread+0x2f2/0x390 kernel/kthread.c:389
ret_from_fork+0x4d/0x80 arch/x86/kernel/process.c:147
ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:244
INFO: task bch-reclaim/loo:7762 blocked for more than 144 seconds.
Not tainted 6.9.0-syzkaller-08414-g7ee332c9f12b #0
"echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
task:bch-reclaim/loo state:D stack:25912 pid:7762 tgid:7762 ppid:2 flags:0x00004000
Call Trace:
context_switch kernel/sched/core.c:5409 [inline]
__schedule+0x17e8/0x4a50 kernel/sched/core.c:6746
__schedule_loop kernel/sched/core.c:6823 [inline]
schedule+0x14b/0x320 kernel/sched/core.c:6838
six_lock_slowpath+0x660/0x16a0 fs/bcachefs/six.c:493
six_lock_ip_waiter+0x117/0x160 fs/bcachefs/six.c:550
__btree_node_lock_nopath fs/bcachefs/btree_locking.h:208 [inline]
btree_node_lock_nopath+0xb6/0x160 fs/bcachefs/btree_locking.h:221
btree_node_lock fs/bcachefs/btree_locking.h:268 [inline]
bch2_btree_path_traverse_cached+0x7af/0xd50 fs/bcachefs/btree_key_cache.c:579
bch2_btree_path_traverse_one+0x499/0x3250 fs/bcachefs/btree_iter.c:1155
bch2_btree_path_traverse fs/bcachefs/btree_iter.h:225 [inline]
bch2_btree_iter_traverse+0x627/0xb80 fs/bcachefs/btree_iter.c:1741
btree_key_cache_flush_pos fs/bcachefs/btree_key_cache.c:633 [inline]
bch2_btree_key_cache_journal_flush+0x616/0xee0 fs/bcachefs/btree_key_cache.c:748
journal_flush_pins+0x5f9/0xb20 fs/bcachefs/journal_reclaim.c:553
__bch2_journal_reclaim+0x77d/0xe40 fs/bcachefs/journal_reclaim.c:685
bch2_journal_reclaim_thread+0x174/0x560 fs/bcachefs/journal_reclaim.c:727
kthread+0x2f2/0x390 kernel/kthread.c:389
ret_from_fork+0x4d/0x80 arch/x86/kernel/process.c:147
ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:244
Showing all locks held in the system:
1 lock held by khungtaskd/30:
#0: ffffffff8e3343a0 (rcu_read_lock){....}-{1:2}, at: rcu_lock_acquire include/linux/rcupdate.h:329 [inline]
#0: ffffffff8e3343a0 (rcu_read_lock){....}-{1:2}, at: rcu_read_lock include/linux/rcupdate.h:781 [inline]
#0: ffffffff8e3343a0 (rcu_read_lock){....}-{1:2}, at: debug_show_all_locks+0x55/0x2a0 kernel/locking/lockdep.c:6614
2 locks held by kworker/u8:8/4133:
2 locks held by getty/4842:
#0: ffff88802f3a80a0 (&tty->ldisc_sem){++++}-{0:0}, at: tty_ldisc_ref_wait+0x25/0x70 drivers/tty/tty_ldisc.c:243
#1: ffffc90002f162f0 (&ldata->atomic_read_lock){+.+.}-{3:3}, at: n_tty_read+0x6b5/0x1e10 drivers/tty/n_tty.c:2201
12 locks held by kworker/u9:6/5125:
#0: ffff88805cf9f148 ((wq_completion)bcachefs){+.+.}-{0:0}, at: process_one_work kernel/workqueue.c:3206 [inline]
#0: ffff88805cf9f148 ((wq_completion)bcachefs){+.+.}-{0:0}, at: process_scheduled_works+0x90a/0x1830 kernel/workqueue.c:3312
#1: ffffc90002f6fd00 ((work_completion)(&wp->index_update_work)){+.+.}-{0:0}, at: process_one_work kernel/workqueue.c:3207 [inline]
#1: ffffc90002f6fd00 ((work_completion)(&wp->index_update_work)){+.+.}-{0:0}, at: process_scheduled_works+0x945/0x1830 kernel/workqueue.c:3312
#2: ffff888061a84250 (&c->btree_trans_barrier){.+.+}-{0:0}, at: srcu_lock_acquire include/linux/srcu.h:116 [inline]
#2: ffff888061a84250 (&c->btree_trans_barrier){.+.+}-{0:0}, at: srcu_read_lock include/linux/srcu.h:215 [inline]
#2: ffff888061a84250 (&c->btree_trans_barrier){.+.+}-{0:0}, at: __bch2_trans_get+0x911/0xd30 fs/bcachefs/btree_iter.c:3069
#3: ffff8880571c3870 (&dev->mutex){....}-{3:3}, at: six_relock_type fs/bcachefs/six.h:289 [inline]
#3: ffff8880571c3870 (&dev->mutex){....}-{3:3}, at: __bch2_btree_node_relock+0x142/0x9c0 fs/bcachefs/btree_locking.c:510
#4: ffff8880571c3870 (&dev->mutex){....}-{3:3}, at: btree_node_lock_increment fs/bcachefs/btree_locking.h:248 [inline]
#4: ffff8880571c3870 (&dev->mutex){....}-{3:3}, at: __bch2_btree_node_relock+0x67c/0x9c0 fs/bcachefs/btree_locking.c:512
#5: ffff888069682de0 (&dev->mutex){....}-{3:3}, at: six_relock_type fs/bcachefs/six.h:289 [inline]
#5: ffff888069682de0 (&dev->mutex){....}-{3:3}, at: __bch2_btree_node_relock+0x142/0x9c0 fs/bcachefs/btree_locking.c:510
#6: ffff888069677ca8 (&dev->mutex){....}-{3:3}, at: six_relock_type fs/bcachefs/six.h:289 [inline]
#6: ffff888069677ca8 (&dev->mutex){....}-{3:3}, at: __bch2_btree_node_relock+0x142/0x9c0 fs/bcachefs/btree_locking.c:510
#7: ffff88802e9e2070 (&dev->mutex){....}-{3:3}, at: six_relock_type fs/bcachefs/six.h:289 [inline]
#7: ffff88802e9e2070 (&dev->mutex){....}-{3:3}, at: __bch2_btree_node_relock+0x142/0x9c0 fs/bcachefs/btree_locking.c:510
#8: ffff8880571c3870 (&dev->mutex){....}-{3:3}, at: btree_path_copy fs/bcachefs/btree_iter.c:1219 [inline]
#8: ffff8880571c3870 (&dev->mutex){....}-{3:3}, at: btree_path_clone fs/bcachefs/btree_iter.c:1227 [inline]
#8: ffff8880571c3870 (&dev->mutex){....}-{3:3}, at: __bch2_btree_path_make_mut+0x1de/0x520 fs/bcachefs/btree_iter.c:1237
#9: ffff88802e9e6870 (&dev->mutex){....}-{3:3}, at: six_trylock_type fs/bcachefs/six.h:207 [inline]
#9: ffff88802e9e6870 (&dev->mutex){....}-{3:3}, at: btree_node_lock fs/bcachefs/btree_locking.h:266 [inline]
#9: ffff88802e9e6870 (&dev->mutex){....}-{3:3}, at: btree_path_lock_root fs/bcachefs/btree_iter.c:760 [inline]
#9: ffff88802e9e6870 (&dev->mutex){....}-{3:3}, at: bch2_btree_path_traverse_one+0xa85/0x3250 fs/bcachefs/btree_iter.c:1178
#10: ffff88802e9e0070 (&dev->mutex){....}-{3:3}, at: six_trylock_type fs/bcachefs/six.h:207 [inline]
#10: ffff88802e9e0070 (&dev->mutex){....}-{3:3}, at: btree_node_lock fs/bcachefs/btree_locking.h:266 [inline]
#10: ffff88802e9e0070 (&dev->mutex){....}-{3:3}, at: btree_path_lock_root fs/bcachefs/btree_iter.c:760 [inline]
#10: ffff88802e9e0070 (&dev->mutex){....}-{3:3}, at: bch2_btree_path_traverse_one+0xa85/0x3250 fs/bcachefs/btree_iter.c:1178
#11: ffff88802e9e0070 (&dev->mutex){....}-{3:3}, at: btree_node_lock_increment+0x2f9/0x320 fs/bcachefs/btree_locking.h:248
4 locks held by syz-executor.4/7724:
4 locks held by bch-reclaim/loo/7762:
#0: ffff888061acace8 (&j->reclaim_lock){+.+.}-{3:3}, at: bch2_journal_reclaim_thread+0x167/0x560 fs/bcachefs/journal_reclaim.c:726
#1: ffff888061a84250 (&c->btree_trans_barrier){.+.+}-{0:0}, at: srcu_lock_acquire include/linux/srcu.h:116 [inline]
#1: ffff888061a84250 (&c->btree_trans_barrier){.+.+}-{0:0}, at: srcu_read_lock include/linux/srcu.h:215 [inline]
#1: ffff888061a84250 (&c->btree_trans_barrier){.+.+}-{0:0}, at: __bch2_trans_get+0x911/0xd30 fs/bcachefs/btree_iter.c:3069
#2: ffff888061a84250 (&c->btree_trans_barrier){.+.+}-{0:0}, at: srcu_lock_acquire include/linux/srcu.h:116 [inline]
#2: ffff888061a84250 (&c->btree_trans_barrier){.+.+}-{0:0}, at: srcu_read_lock include/linux/srcu.h:215 [inline]
#2: ffff888061a84250 (&c->btree_trans_barrier){.+.+}-{0:0}, at: bch2_btree_key_cache_journal_flush+0x120/0xee0 fs/bcachefs/btree_key_cache.c:728
#3: ffff888069682de0 (&dev->mutex){....}-{3:3}, at: bch2_trans_iter_init fs/bcachefs/btree_iter.h:489 [inline]
#3: ffff888069682de0 (&dev->mutex){....}-{3:3}, at: btree_key_cache_flush_pos fs/bcachefs/btree_key_cache.c:628 [inline]
#3: ffff888069682de0 (&dev->mutex){....}-{3:3}, at: bch2_btree_key_cache_journal_flush+0x5ec/0xee0 fs/bcachefs/btree_key_cache.c:748
3 locks held by syz-executor.1/9291:
#0: ffffffff8e3810a8 (tracepoints_mutex){+.+.}-{3:3}, at: tracepoint_probe_unregister+0x32/0x990 kernel/tracepoint.c:548
#1: ffffffff8e41f848 (reg_lock){+.+.}-{3:3}, at: trace_mmap_lock_unreg+0x18/0x50 mm/mmap_lock.c:121
#2: ffffffff8e339778 (rcu_state.exp_mutex){+.+.}-{3:3}, at: exp_funnel_lock kernel/rcu/tree_exp.h:291 [inline]
#2: ffffffff8e339778 (rcu_state.exp_mutex){+.+.}-{3:3}, at: synchronize_rcu_expedited+0x381/0x830 kernel/rcu/tree_exp.h:939
1 lock held by syz-executor.2/9351:
#0: ffff88802ac12468 (&pipe->mutex){+.+.}-{3:3}, at: splice_file_to_pipe+0x2e/0x500 fs/splice.c:1292
=============================================
NMI backtrace for cpu 0
CPU: 0 PID: 30 Comm: khungtaskd Not tainted 6.9.0-syzkaller-08414-g7ee332c9f12b #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 04/02/2024
Call Trace:
__dump_stack lib/dump_stack.c:88 [inline]
dump_stack_lvl+0x241/0x360 lib/dump_stack.c:114
nmi_cpu_backtrace+0x49c/0x4d0 lib/nmi_backtrace.c:113
nmi_trigger_cpumask_backtrace+0x198/0x320 lib/nmi_backtrace.c:62
trigger_all_cpu_backtrace include/linux/nmi.h:160 [inline]
check_hung_uninterruptible_tasks kernel/hung_task.c:223 [inline]
watchdog+0xfde/0x1020 kernel/hung_task.c:380
kthread+0x2f2/0x390 kernel/kthread.c:389
ret_from_fork+0x4d/0x80 arch/x86/kernel/process.c:147
ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:244
Sending NMI from CPU 0 to CPUs 1:
NMI backtrace for cpu 1
CPU: 1 PID: 9350 Comm: syz-executor.2 Not tainted 6.9.0-syzkaller-08414-g7ee332c9f12b #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 04/02/2024
RIP: 0010:hrtimer_set_expires_range_ns include/linux/hrtimer.h:112 [inline]
RIP: 0010:__hrtimer_start_range_ns kernel/time/hrtimer.c:1250 [inline]
RIP: 0010:hrtimer_start_range_ns+0x3b9/0xc60 kernel/time/hrtimer.c:1300
Code: 48 8b 5c 24 10 49 89 5f 20 4c 8b 64 24 48 4a 8d 2c 23 31 ff 48 89 ee e8 65 da 12 00 48 89 ef 48 89 de e8 da d7 12 00 48 89 ef <4c> 89 e6 e8 cf d7 12 00 48 39 dd 48 89 eb 49 0f 4c de 48 85 ed 49
RSP: 0018:ffffc9000376fb90 EFLAGS: 00000093
RAX: 0000000000000000 RBX: 000000583deeca0c RCX: ffff88807d35bc00
RDX: 0000000000000000 RSI: 000000583deeca0c RDI: 000000583def8d5c
RBP: 000000583def8d5c R08: ffffffff81835bd6 R09: 1ffffffff1f59b6d
R10: dffffc0000000000 R11: ffffffff81357d50 R12: 000000000000c350
R13: dffffc0000000000 R14: 7fffffffffffffff R15: ffffc9000376fd60
FS: 0000555572a92480(0000) GS:ffff8880b9500000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000000020000000 CR3: 0000000068b14000 CR4: 0000000000350ef0
Call Trace:
hrtimer_start_expires include/linux/hrtimer.h:289 [inline]
hrtimer_sleeper_start_expires kernel/time/hrtimer.c:1949 [inline]
do_nanosleep+0x158/0x600 kernel/time/hrtimer.c:2025
hrtimer_nanosleep+0x227/0x470 kernel/time/hrtimer.c:2081
__do_sys_clock_nanosleep kernel/time/posix-timers.c:1396 [inline]
__se_sys_clock_nanosleep+0x32d/0x3c0 kernel/time/posix-timers.c:1373
do_syscall_x64 arch/x86/entry/common.c:52 [inline]
do_syscall_64+0xf5/0x240 arch/x86/entry/common.c:83
entry_SYSCALL_64_after_hwframe+0x77/0x7f
RIP: 0033:0x7f9c492a82f5
Code: 24 0c 89 3c 24 48 89 4c 24 18 e8 f6 b9 ff ff 4c 8b 54 24 18 48 8b 54 24 10 41 89 c0 8b 74 24 0c 8b 3c 24 b8 e6 00 00 00 0f 05 <44> 89 c7 48 89 04 24 e8 4f ba ff ff 48 8b 04 24 48 83 c4 28 f7 d8
RSP: 002b:00007ffcc2519c30 EFLAGS: 00000293 ORIG_RAX: 00000000000000e6
RAX: ffffffffffffffda RBX: 00007f9c493abf80 RCX: 00007f9c492a82f5
RDX: 00007ffcc2519c70 RSI: 0000000000000000 RDI: 0000000000000000
RBP: 00007f9c493ad980 R08: 0000000000000000 R09: 7fffffffffffffff
R10: 0000000000000000 R11: 0000000000000293 R12: 000000000005ca4c
R13: 00007f9c493abf8c R14: 00007ffcc2519d80 R15: 0000000000000032