INFO: task kworker/u9:4:5118 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:kworker/u9:4 state:D stack:20760 pid:5118 tgid:5118 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:8339 blocked for more than 145 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:24696 pid:8339 tgid:8339 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
5 locks held by kworker/0:2/1141:
#0: ffff888015078948 ((wq_completion)events){+.+.}-{0:0}, at: process_one_work kernel/workqueue.c:3206 [inline]
#0: ffff888015078948 ((wq_completion)events){+.+.}-{0:0}, at: process_scheduled_works+0x90a/0x1830 kernel/workqueue.c:3312
#1: ffffc90004577d00 ((work_completion)(&fw_work->work)){+.+.}-{0:0}, at: process_one_work kernel/workqueue.c:3207 [inline]
#1: ffffc90004577d00 ((work_completion)(&fw_work->work)){+.+.}-{0:0}, at: process_scheduled_works+0x945/0x1830 kernel/workqueue.c:3312
#2: ffff8880237fc190 (&dev->mutex){....}-{3:3}, at: device_lock include/linux/device.h:990 [inline]
#2: ffff8880237fc190 (&dev->mutex){....}-{3:3}, at: ath9k_hif_usb_firmware_fail drivers/net/wireless/ath/ath9k/hif_usb.c:1163 [inline]
#2: ffff8880237fc190 (&dev->mutex){....}-{3:3}, at: ath9k_hif_usb_firmware_cb+0x34a/0x4b0 drivers/net/wireless/ath/ath9k/hif_usb.c:1296
#3: ffff8880227a7190 (&dev->mutex){....}-{3:3}, at: device_lock include/linux/device.h:990 [inline]
#3: ffff8880227a7190 (&dev->mutex){....}-{3:3}, at: __device_driver_lock drivers/base/dd.c:1093 [inline]
#3: ffff8880227a7190 (&dev->mutex){....}-{3:3}, at: device_release_driver_internal+0xce/0x7c0 drivers/base/dd.c:1290
#4: ffff8880235dc868 (hcd->bandwidth_mutex){+.+.}-{3:3}, at: usb_set_configuration+0x4fb/0x1fb0 drivers/usb/core/message.c:2077
2 locks held by getty/4846:
#0: ffff88802ece10a0 (&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
13 locks held by kworker/u9:4/5118:
#0: ffff88802e721148 ((wq_completion)bcachefs){+.+.}-{0:0}, at: process_one_work kernel/workqueue.c:3206 [inline]
#0: ffff88802e721148 ((wq_completion)bcachefs){+.+.}-{0:0}, at: process_scheduled_works+0x90a/0x1830 kernel/workqueue.c:3312
#1: ffffc900048cfd00 ((work_completion)(&wp->index_update_work)){+.+.}-{0:0}, at: process_one_work kernel/workqueue.c:3207 [inline]
#1: ffffc900048cfd00 ((work_completion)(&wp->index_update_work)){+.+.}-{0:0}, at: process_scheduled_works+0x945/0x1830 kernel/workqueue.c:3312
#2: ffff888063284250 (&c->btree_trans_barrier){.+.+}-{0:0}, at: srcu_lock_acquire include/linux/srcu.h:116 [inline]
#2: ffff888063284250 (&c->btree_trans_barrier){.+.+}-{0:0}, at: srcu_read_lock include/linux/srcu.h:215 [inline]
#2: ffff888063284250 (&c->btree_trans_barrier){.+.+}-{0:0}, at: __bch2_trans_get+0x911/0xd30 fs/bcachefs/btree_iter.c:3069
#3: ffff88807c889070 (&dev->mutex){....}-{3:3}, at: six_relock_type fs/bcachefs/six.h:289 [inline]
#3: ffff88807c889070 (&dev->mutex){....}-{3:3}, at: __bch2_btree_node_relock+0x142/0x9c0 fs/bcachefs/btree_locking.c:510
#4: ffff88807c889070 (&dev->mutex){....}-{3:3}, at: btree_node_lock_increment fs/bcachefs/btree_locking.h:248 [inline]
#4: ffff88807c889070 (&dev->mutex){....}-{3:3}, at: __bch2_btree_node_relock+0x67c/0x9c0 fs/bcachefs/btree_locking.c:512
#5: ffff88807c889070 (&dev->mutex){....}-{3:3}, at: btree_node_lock_increment fs/bcachefs/btree_locking.h:248 [inline]
#5: ffff88807c889070 (&dev->mutex){....}-{3:3}, at: __bch2_btree_node_relock+0x67c/0x9c0 fs/bcachefs/btree_locking.c:512
#6: ffff88805c3da5d0 (&dev->mutex){....}-{3:3}, at: six_relock_type fs/bcachefs/six.h:289 [inline]
#6: ffff88805c3da5d0 (&dev->mutex){....}-{3:3}, at: __bch2_btree_node_relock+0x142/0x9c0 fs/bcachefs/btree_locking.c:510
#7: ffff88805d29f070 (&dev->mutex){....}-{3:3}, at: six_relock_type fs/bcachefs/six.h:289 [inline]
#7: ffff88805d29f070 (&dev->mutex){....}-{3:3}, at: __bch2_btree_node_relock+0x142/0x9c0 fs/bcachefs/btree_locking.c:510
#8: ffff88805c3db340 (&dev->mutex){....}-{3:3}, at: six_relock_type fs/bcachefs/six.h:289 [inline]
#8: ffff88805c3db340 (&dev->mutex){....}-{3:3}, at: __bch2_btree_node_relock+0x142/0x9c0 fs/bcachefs/btree_locking.c:510
#9: ffff88805d581070 (&dev->mutex){....}-{3:3}, at: six_relock_type fs/bcachefs/six.h:289 [inline]
#9: ffff88805d581070 (&dev->mutex){....}-{3:3}, at: __bch2_btree_node_relock+0x142/0x9c0 fs/bcachefs/btree_locking.c:510
#10: ffff88805e182870 (&dev->mutex){....}-{3:3}, at: six_relock_type fs/bcachefs/six.h:289 [inline]
#10: ffff88805e182870 (&dev->mutex){....}-{3:3}, at: __bch2_btree_node_relock+0x142/0x9c0 fs/bcachefs/btree_locking.c:510
#11: ffff88807c889070 (&dev->mutex){....}-{3:3}, at: btree_path_copy fs/bcachefs/btree_iter.c:1219 [inline]
#11: ffff88807c889070 (&dev->mutex){....}-{3:3}, at: btree_path_clone fs/bcachefs/btree_iter.c:1227 [inline]
#11: ffff88807c889070 (&dev->mutex){....}-{3:3}, at: __bch2_btree_path_make_mut+0x1de/0x520 fs/bcachefs/btree_iter.c:1237
#12: ffff88805e182870 (&dev->mutex){....}-{3:3}, at: btree_path_copy fs/bcachefs/btree_iter.c:1219 [inline]
#12: ffff88805e182870 (&dev->mutex){....}-{3:3}, at: btree_path_clone fs/bcachefs/btree_iter.c:1227 [inline]
#12: ffff88805e182870 (&dev->mutex){....}-{3:3}, at: __bch2_btree_path_make_mut+0x1de/0x520 fs/bcachefs/btree_iter.c:1237
3 locks held by kworker/u8:9/5510:
4 locks held by syz-executor.4/8310:
4 locks held by bch-reclaim/loo/8339:
#0: ffff8880632cace8 (&j->reclaim_lock){+.+.}-{3:3}, at: bch2_journal_reclaim_thread+0x167/0x560 fs/bcachefs/journal_reclaim.c:726
#1: ffff888063284250 (&c->btree_trans_barrier){.+.+}-{0:0}, at: srcu_lock_acquire include/linux/srcu.h:116 [inline]
#1: ffff888063284250 (&c->btree_trans_barrier){.+.+}-{0:0}, at: srcu_read_lock include/linux/srcu.h:215 [inline]
#1: ffff888063284250 (&c->btree_trans_barrier){.+.+}-{0:0}, at: __bch2_trans_get+0x911/0xd30 fs/bcachefs/btree_iter.c:3069
#2: ffff888063284250 (&c->btree_trans_barrier){.+.+}-{0:0}, at: srcu_lock_acquire include/linux/srcu.h:116 [inline]
#2: ffff888063284250 (&c->btree_trans_barrier){.+.+}-{0:0}, at: srcu_read_lock include/linux/srcu.h:215 [inline]
#2: ffff888063284250 (&c->btree_trans_barrier){.+.+}-{0:0}, at: bch2_btree_key_cache_journal_flush+0x120/0xee0 fs/bcachefs/btree_key_cache.c:728
#3: ffff88805c3da5d0 (&dev->mutex){....}-{3:3}, at: bch2_trans_iter_init fs/bcachefs/btree_iter.h:489 [inline]
#3: ffff88805c3da5d0 (&dev->mutex){....}-{3:3}, at: btree_key_cache_flush_pos fs/bcachefs/btree_key_cache.c:628 [inline]
#3: ffff88805c3da5d0 (&dev->mutex){....}-{3:3}, at: bch2_btree_key_cache_journal_flush+0x5ec/0xee0 fs/bcachefs/btree_key_cache.c:748
3 locks held by kworker/u8:11/10089:
#0: ffff888015081148 ((wq_completion)events_unbound){+.+.}-{0:0}, at: process_one_work kernel/workqueue.c:3206 [inline]
#0: ffff888015081148 ((wq_completion)events_unbound){+.+.}-{0:0}, at: process_scheduled_works+0x90a/0x1830 kernel/workqueue.c:3312
#1: ffffc9000a407d00 ((work_completion)(&rdev->wiphy_work)){+.+.}-{0:0}, at: process_one_work kernel/workqueue.c:3207 [inline]
#1: ffffc9000a407d00 ((work_completion)(&rdev->wiphy_work)){+.+.}-{0:0}, at: process_scheduled_works+0x945/0x1830 kernel/workqueue.c:3312
#2: ffff8880690c8768 (&rdev->wiphy.mtx){+.+.}-{3:3}, at: wiphy_lock include/net/cfg80211.h:5966 [inline]
#2: ffff8880690c8768 (&rdev->wiphy.mtx){+.+.}-{3:3}, at: cfg80211_wiphy_work+0x35/0x260 net/wireless/core.c:424
1 lock held by syz-executor.5/10633:
#0: ffffffff8e339640 (rcu_state.barrier_mutex){+.+.}-{3:3}, at: rcu_barrier+0x4c/0x550 kernel/rcu/tree.c:4448
2 locks held by syz-executor.3/10713:
#0: ffffffff8e1ef128 (sched_core_mutex){+.+.}-{3:3}, at: sched_core_get+0x56/0x180 kernel/sched/core.c:420
#1: ffffffff8e339778 (rcu_state.exp_mutex){+.+.}-{3:3}, at: exp_funnel_lock kernel/rcu/tree_exp.h:323 [inline]
#1: ffffffff8e339778 (rcu_state.exp_mutex){+.+.}-{3:3}, at: synchronize_rcu_expedited+0x451/0x830 kernel/rcu/tree_exp.h:939
=============================================
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: 3 Comm: pool_workqueue_ 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:get_current arch/x86/include/asm/current.h:49 [inline]
RIP: 0010:__sanitizer_cov_trace_pc+0x8/0x70 kernel/kcov.c:206
Code: 8b 3d bc c1 44 0c 48 89 de 5b e9 a3 92 59 00 0f 1f 00 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 f3 0f 1e fa 48 8b 04 24 <65> 48 8b 0c 25 80 d3 03 00 65 8b 15 20 a2 6d 7e f7 c2 00 01 ff 00
RSP: 0018:ffffc90000087c20 EFLAGS: 00000086
RAX: ffffffff84aeb9f3 RBX: ffffffffffffffff RCX: ffff888017293c00
RDX: 0000000000000000 RSI: ffffffffffffc000 RDI: 0000000000000000
RBP: ffffffff9403bc20 R08: ffffffff84aeb9e9 R09: fffff52000010f84
R10: dffffc0000000000 R11: fffff52000010f84 R12: ffffffffffffc000
R13: 0000000000000214 R14: 0000000000020000 R15: 000000000000850e
FS: 0000000000000000(0000) GS:ffff8880b9500000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 000000c000948978 CR3: 00000000619ec000 CR4: 0000000000350ef0
Call Trace:
_find_next_bit+0x83/0x130 lib/find_bit.c:145
find_next_bit include/linux/find.h:69 [inline]
zap_class+0x42b/0x840 kernel/locking/lockdep.c:6130
__lockdep_free_key_range kernel/locking/lockdep.c:6272 [inline]
lockdep_unregister_key+0x3d0/0x540 kernel/locking/lockdep.c:6468
wq_unregister_lockdep kernel/workqueue.c:4780 [inline]
pwq_release_workfn+0x6e0/0x840 kernel/workqueue.c:5083
kthread_worker_fn+0x502/0xaf0 kernel/kthread.c:842
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