BUG: MAX_LOCK_DEPTH too low! turning off the locking correctness validator. depth: 48 max: 48! 48 locks held by kworker/u9:6/6395: #0: ffff0000d6bb9948 ((wq_completion)bcachefs){+.+.}-{0:0}, at: process_one_work+0x624/0x15b8 kernel/workqueue.c:3222 #1: ffff80009cde7c20 ((work_completion)(&wp->index_update_work)){+.+.}-{0:0}, at: process_one_work+0x6a0/0x15b8 kernel/workqueue.c:3222 #2: ffff0000fa4042d8 (&c->btree_trans_barrier){.+.+}-{0:0}, at: srcu_lock_acquire+0x18/0x54 include/linux/srcu.h:115 #3: ffff0000fa426750 (&c->gc_lock){.+.+}-{3:3}, at: bch2_btree_update_start+0x590/0x15a0 fs/bcachefs/btree_update_interior.c:1195 #4: ffff0000fa41dc78 (&wp->lock){+.+.}-{3:3}, at: bch2_trans_mutex_lock_norelock fs/bcachefs/alloc_foreground.c:41 [inline] #4: ffff0000fa41dc78 (&wp->lock){+.+.}-{3:3}, at: writepoint_find fs/bcachefs/alloc_foreground.c:1302 [inline] #4: ffff0000fa41dc78 (&wp->lock){+.+.}-{3:3}, at: bch2_alloc_sectors_start_trans+0x290/0x1958 fs/bcachefs/alloc_foreground.c:1410 #5: ffff0000f7ac2870 (&dev->mutex){....}-{3:3}, at: six_relock_type+0x24/0x5c fs/bcachefs/six.h:288 #6: ffff0000ed3b1070 (&dev->mutex){....}-{3:3}, at: six_relock_type+0x24/0x5c fs/bcachefs/six.h:288 #7: ffff0000ed3b1070 (&dev->mutex){....}-{3:3}, at: btree_node_lock_increment fs/bcachefs/btree_locking.h:248 [inline] #7: ffff0000ed3b1070 (&dev->mutex){....}-{3:3}, at: __bch2_btree_node_relock+0x6a0/0xa94 fs/bcachefs/btree_locking.c:509 #8: ffff0000eed3d5f0 (&dev->mutex){....}-{3:3}, at: six_relock_type+0x24/0x5c fs/bcachefs/six.h:288 #9: ffff0000dbb598a0 (&dev->mutex){....}-{3:3}, at: six_relock_type+0x24/0x5c fs/bcachefs/six.h:288 #10: ffff0000ed3b1070 (&dev->mutex){....}-{3:3}, at: btree_node_lock_increment fs/bcachefs/btree_locking.h:248 [inline] #10: ffff0000ed3b1070 (&dev->mutex){....}-{3:3}, at: __bch2_btree_node_relock+0x6a0/0xa94 fs/bcachefs/btree_locking.c:509 #11: ffff0000ed3b1070 (&dev->mutex){....}-{3:3}, at: btree_node_lock_increment fs/bcachefs/btree_locking.h:248 [inline] #11: ffff0000ed3b1070 (&dev->mutex){....}-{3:3}, at: __bch2_btree_node_relock+0x6a0/0xa94 fs/bcachefs/btree_locking.c:509 #12: ffff0000eed3c320 (&dev->mutex){....}-{3:3}, at: six_relock_type+0x24/0x5c fs/bcachefs/six.h:288 #13: ffff0000ecf91070 (&dev->mutex){....}-{3:3}, at: six_relock_type+0x24/0x5c fs/bcachefs/six.h:288 #14: ffff0000f7ac7870 (&dev->mutex){....}-{3:3}, at: six_relock_type+0x24/0x5c fs/bcachefs/six.h:288 #15: ffff0000f7ac7870 (&dev->mutex){....}-{3:3}, at: six_relock_type+0x24/0x5c fs/bcachefs/six.h:288 #16: ffff0000f7ac7870 (&dev->mutex){....}-{3:3}, at: six_relock_type+0x24/0x5c fs/bcachefs/six.h:288 #17: ffff0000f7ac7870 (&dev->mutex){....}-{3:3}, at: six_relock_type+0x24/0x5c fs/bcachefs/six.h:288 #18: ffff0000f7ac7870 (&dev->mutex){....}-{3:3}, at: six_relock_type+0x24/0x5c fs/bcachefs/six.h:288 #19: ffff0000f7ac7870 (&dev->mutex){....}-{3:3}, at: six_relock_type+0x24/0x5c fs/bcachefs/six.h:288 #20: ffff0000f7ac7870 (&dev->mutex){....}-{3:3}, at: six_relock_type+0x24/0x5c fs/bcachefs/six.h:288 #21: ffff0000f7ac7870 (&dev->mutex){....}-{3:3}, at: six_relock_type+0x24/0x5c fs/bcachefs/six.h:288 #22: ffff0000f7ac7870 (&dev->mutex){....}-{3:3}, at: six_relock_type+0x24/0x5c fs/bcachefs/six.h:288 #23: ffff0000f7ac7870 (&dev->mutex){....}-{3:3}, at: six_relock_type+0x24/0x5c fs/bcachefs/six.h:288 #24: ffff0000f7ac7870 (&dev->mutex){....}-{3:3}, at: six_relock_type+0x24/0x5c fs/bcachefs/six.h:288 #25: ffff0000f7ac7870 (&dev->mutex){....}-{3:3}, at: six_relock_type+0x24/0x5c fs/bcachefs/six.h:288 #26: ffff0000f7ac7870 (&dev->mutex){....}-{3:3}, at: six_relock_type+0x24/0x5c fs/bcachefs/six.h:288 #27: ffff0000f7ac7870 (&dev->mutex){....}-{3:3}, at: six_relock_type+0x24/0x5c fs/bcachefs/six.h:288 #28: ffff0000f7ac7870 (&dev->mutex){....}-{3:3}, at: six_relock_type+0x24/0x5c fs/bcachefs/six.h:288 #29: ffff0000f7ac7870 (&dev->mutex){....}-{3:3}, at: six_relock_type+0x24/0x5c fs/bcachefs/six.h:288 #30: ffff0000f7ac7870 (&dev->mutex){....}-{3:3}, at: six_relock_type+0x24/0x5c fs/bcachefs/six.h:288 #31: ffff0000f7ac7870 (&dev->mutex){....}-{3:3}, at: six_relock_type+0x24/0x5c fs/bcachefs/six.h:288 #32: ffff0000f7ac7870 (&dev->mutex){....}-{3:3}, at: six_relock_type+0x24/0x5c fs/bcachefs/six.h:288 #33: ffff0000f7ac7870 (&dev->mutex){....}-{3:3}, at: six_relock_type+0x24/0x5c fs/bcachefs/six.h:288 #34: ffff0000f7ac7870 (&dev->mutex){....}-{3:3}, at: six_relock_type+0x24/0x5c fs/bcachefs/six.h:288 #35: ffff0000f7ac7870 (&dev->mutex){....}-{3:3}, at: six_relock_type+0x24/0x5c fs/bcachefs/six.h:288 #36: ffff0000f7ac7870 (&dev->mutex){....}-{3:3}, at: six_trylock_type+0x1c/0x4c fs/bcachefs/six.h:206 #37: ffff0000f7ac7870 (&dev->mutex){....}-{3:3}, at: six_trylock_type+0x1c/0x4c fs/bcachefs/six.h:206 #38: ffff0000eed3d9f8 (&dev->mutex){....}-{3:3}, at: six_relock_type+0x24/0x5c fs/bcachefs/six.h:288 #39: ffff0000eed3c1c8 (&dev->mutex){....}-{3:3}, at: six_relock_type+0x24/0x5c fs/bcachefs/six.h:288 #40: ffff0000eed3c9d8 (&dev->mutex){....}-{3:3}, at: six_relock_type+0x24/0x5c fs/bcachefs/six.h:288 #41: ffff80008f4b7be0 (rcu_read_lock){....}-{1:2}, at: rcu_lock_acquire+0x10/0x4c include/linux/rcupdate.h:328 #42: ffff0000c63796f0 (&local->rx_path_lock){+.-.}-{2:2}, at: spin_lock_bh include/linux/spinlock.h:356 [inline] #42: ffff0000c63796f0 (&local->rx_path_lock){+.-.}-{2:2}, at: ieee80211_rx_handlers+0x100/0x9df4 net/mac80211/rx.c:4171 #43: ffff80008f4b7be0 (rcu_read_lock){....}-{1:2}, at: rcu_lock_acquire+0x10/0x4c include/linux/rcupdate.h:328 #44: ffff0000c1088018 (&pool->lock){-.-.}-{2:2}, at: __queue_work+0x854/0x12ac #45: ffff0000d429c638 (&p->pi_lock){-.-.}-{2:2}, at: class_raw_spinlock_irqsave_constructor include/linux/spinlock.h:553 [inline] #45: ffff0000d429c638 (&p->pi_lock){-.-.}-{2:2}, at: try_to_wake_up+0xb0/0xf2c kernel/sched/core.c:4262 #46: ffff0001b3d35018 (&rq->__lock){-.-.}-{2:2}, at: raw_spin_rq_lock_nested kernel/sched/core.c:559 [inline] #46: ffff0001b3d35018 (&rq->__lock){-.-.}-{2:2}, at: raw_spin_rq_lock kernel/sched/sched.h:1406 [inline] #46: ffff0001b3d35018 (&rq->__lock){-.-.}-{2:2}, at: rq_lock kernel/sched/sched.h:1702 [inline] #46: ffff0001b3d35018 (&rq->__lock){-.-.}-{2:2}, at: ttwu_queue kernel/sched/core.c:4055 [inline] #46: ffff0001b3d35018 (&rq->__lock){-.-.}-{2:2}, at: try_to_wake_up+0x4e4/0xf2c kernel/sched/core.c:4378 #47: fffffdffbf73a888 (&per_cpu_ptr(group->pcpu, cpu)->seq){-.-.}-{0:0}, at: update_rq_clock_task kernel/sched/core.c:726 [inline] #47: fffffdffbf73a888 (&per_cpu_ptr(group->pcpu, cpu)->seq){-.-.}-{0:0}, at: update_rq_clock+0x1b8/0x634 kernel/sched/core.c:770 INFO: lockdep is turned off. CPU: 1 PID: 6395 Comm: kworker/u9:6 Not tainted 6.10.0-rc7-syzkaller-gc912bf709078 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 06/07/2024 Workqueue: bcachefs bch2_write_point_do_index_updates Call trace: dump_backtrace+0x1b8/0x1e4 arch/arm64/kernel/stacktrace.c:317 show_stack+0x2c/0x3c arch/arm64/kernel/stacktrace.c:324 __dump_stack lib/dump_stack.c:88 [inline] dump_stack_lvl+0xe4/0x150 lib/dump_stack.c:114 dump_stack+0x1c/0x28 lib/dump_stack.c:123 __lock_acquire+0x1d5c/0x763c kernel/locking/lockdep.c:5159 lock_acquire+0x240/0x728 kernel/locking/lockdep.c:5754 do_write_seqcount_begin_nested include/linux/seqlock.h:469 [inline] do_write_seqcount_begin include/linux/seqlock.h:495 [inline] psi_account_irqtime+0x310/0x7cc kernel/sched/psi.c:1016 update_rq_clock_task kernel/sched/core.c:726 [inline] update_rq_clock+0x1b8/0x634 kernel/sched/core.c:770 ttwu_queue kernel/sched/core.c:4056 [inline] try_to_wake_up+0x514/0xf2c kernel/sched/core.c:4378 wake_up_process+0x18/0x24 kernel/sched/core.c:4510 kick_pool+0x3f0/0x59c kernel/workqueue.c:1280 __queue_work+0xdcc/0x12ac kernel/workqueue.c:2361 queue_work_on+0xe0/0x1a0 kernel/workqueue.c:2411 queue_work include/linux/workqueue.h:621 [inline] wiphy_work_queue+0x154/0x17c net/wireless/core.c:1618 __ieee80211_queue_skb_to_iface net/mac80211/rx.c:233 [inline] ieee80211_queue_skb_to_iface net/mac80211/rx.c:244 [inline] ieee80211_rx_h_mgmt+0x440/0x630 net/mac80211/rx.c:4047 ieee80211_rx_handlers+0x6060/0x9df4 net/mac80211/rx.c:4205 ieee80211_invoke_rx_handlers net/mac80211/rx.c:4235 [inline] ieee80211_prepare_and_rx_handle+0x1d98/0x5034 net/mac80211/rx.c:5083 ieee80211_rx_for_interface+0x298/0x314 net/mac80211/rx.c:5168 __ieee80211_rx_handle_packet net/mac80211/rx.c:5324 [inline] ieee80211_rx_list+0x2338/0x2c60 net/mac80211/rx.c:5459 ieee80211_rx_napi+0x164/0x34c net/mac80211/rx.c:5482 ieee80211_rx include/net/mac80211.h:5093 [inline] ieee80211_handle_queued_frames+0xec/0x180 net/mac80211/main.c:438 ieee80211_tasklet_handler+0x20/0x30 net/mac80211/main.c:457 tasklet_action_common+0x318/0x3f4 kernel/softirq.c:785 tasklet_action+0x68/0x8c kernel/softirq.c:811 handle_softirqs+0x2e4/0xbfc kernel/softirq.c:554 __do_softirq+0x14/0x20 kernel/softirq.c:588 ____do_softirq+0x14/0x20 arch/arm64/kernel/irq.c:81 call_on_irq_stack+0x24/0x4c arch/arm64/kernel/entry.S:889 do_softirq_own_stack+0x20/0x2c arch/arm64/kernel/irq.c:86 invoke_softirq kernel/softirq.c:435 [inline] __irq_exit_rcu+0x1d8/0x434 kernel/softirq.c:637 irq_exit_rcu+0x14/0x84 kernel/softirq.c:649 __el1_irq arch/arm64/kernel/entry-common.c:537 [inline] el1_interrupt+0x38/0x68 arch/arm64/kernel/entry-common.c:551 el1h_64_irq_handler+0x18/0x24 arch/arm64/kernel/entry-common.c:556 el1h_64_irq+0x64/0x68 arch/arm64/kernel/entry.S:594 preempt_count arch/arm64/include/asm/preempt.h:13 [inline] check_kcov_mode kernel/kcov.c:173 [inline] __sanitizer_cov_trace_pc+0x14/0x6c kernel/kcov.c:207 vsnprintf+0x130/0x1a8c lib/vsprintf.c:2776 bch2_prt_printf+0x194/0x5c4 fs/bcachefs/printbuf.c:183 bch2_btree_path_to_text_short+0x1a4/0x2bc fs/bcachefs/btree_iter.c:1476 __bch2_trans_paths_to_text+0xc8/0x168 fs/bcachefs/btree_iter.c:1541 bch2_trans_paths_to_text+0x2c/0x3c fs/bcachefs/btree_iter.c:1549 bch2_trans_update_max_paths+0x15c/0x360 fs/bcachefs/btree_iter.c:1577 btree_path_alloc+0x508/0x6ec fs/bcachefs/btree_iter.c:1674 btree_path_clone fs/bcachefs/btree_iter.c:1235 [inline] __bch2_btree_path_make_mut+0x11c/0x508 fs/bcachefs/btree_iter.c:1249 bch2_btree_path_make_mut fs/bcachefs/btree_iter.h:196 [inline] __bch2_btree_path_set_pos+0x2a4/0x14f4 fs/bcachefs/btree_iter.c:1264 bch2_btree_path_set_pos fs/bcachefs/btree_iter.h:211 [inline] __bch2_btree_iter_peek fs/bcachefs/btree_iter.c:2176 [inline] bch2_btree_iter_peek_upto+0xa10/0x535c fs/bcachefs/btree_iter.c:2280 bch2_btree_iter_peek_upto_type fs/bcachefs/btree_iter.h:641 [inline] bch2_bucket_alloc_freelist fs/bcachefs/alloc_foreground.c:491 [inline] bch2_bucket_alloc_trans+0x858/0x29e4 fs/bcachefs/alloc_foreground.c:649 bch2_bucket_alloc_set_trans+0x490/0x9e4 fs/bcachefs/alloc_foreground.c:810 __open_bucket_add_buckets+0xfb4/0x18b4 fs/bcachefs/alloc_foreground.c:1058 open_bucket_add_buckets+0x160/0x220 fs/bcachefs/alloc_foreground.c:1102 bch2_alloc_sectors_start_trans+0xa74/0x1958 __bch2_btree_node_alloc fs/bcachefs/btree_update_interior.c:333 [inline] bch2_btree_reserve_get+0x4ac/0xf54 fs/bcachefs/btree_update_interior.c:547 bch2_btree_update_start+0x11d4/0x15a0 fs/bcachefs/btree_update_interior.c:1264 bch2_btree_split_leaf+0x11c/0x734 fs/bcachefs/btree_update_interior.c:1851 bch2_trans_commit_error+0x2a4/0x1068 fs/bcachefs/btree_trans_commit.c:918 __bch2_trans_commit+0x35e4/0x592c fs/bcachefs/btree_trans_commit.c:1138 bch2_trans_commit fs/bcachefs/btree_update.h:170 [inline] bch2_extent_update+0x3d0/0x9b4 fs/bcachefs/io_write.c:326 bch2_write_index_default fs/bcachefs/io_write.c:374 [inline] __bch2_write_index+0x6b4/0x1324 fs/bcachefs/io_write.c:527 bch2_write_point_do_index_updates+0x288/0x560 fs/bcachefs/io_write.c:636 process_one_work+0x79c/0x15b8 kernel/workqueue.c:3248 process_scheduled_works kernel/workqueue.c:3329 [inline] worker_thread+0x938/0xecc kernel/workqueue.c:3409 kthread+0x288/0x310 kernel/kthread.c:389 ret_from_fork+0x10/0x20 arch/arm64/kernel/entry.S:860