BUG: MAX_LOCK_DEPTH too low! turning off the locking correctness validator. depth: 48 max: 48! 48 locks held by syz.4.129/7085: #0: ffff0000ed00a420 (sb_writers#11){.+.+}-{0:0}, at: file_start_write include/linux/fs.h:2854 [inline] #0: ffff0000ed00a420 (sb_writers#11){.+.+}-{0:0}, at: vfs_copy_file_range+0x880/0x1248 fs/read_write.c:1510 #1: ffff0000ec619788 (&sb->s_type->i_mutex_key#27){+.+.}-{3:3}, at: inode_lock include/linux/fs.h:791 [inline] #1: ffff0000ec619788 (&sb->s_type->i_mutex_key#27){+.+.}-{3:3}, at: lock_two_nondirectories+0xd4/0x14c fs/inode.c:1111 #2: ffff0000e4d042d8 (&c->btree_trans_barrier){.+.+}-{0:0}, at: srcu_lock_acquire+0x18/0x54 include/linux/srcu.h:115 #3: ffff0000e4d26750 (&c->gc_lock){.+.+}-{3:3}, at: bch2_btree_update_start+0x590/0x15a0 fs/bcachefs/btree_update_interior.c:1195 #4: ffff0000e4d1dc78 (&wp->lock){+.+.}-{3:3}, at: bch2_trans_mutex_lock_norelock fs/bcachefs/alloc_foreground.c:41 [inline] #4: ffff0000e4d1dc78 (&wp->lock){+.+.}-{3:3}, at: writepoint_find fs/bcachefs/alloc_foreground.c:1302 [inline] #4: ffff0000e4d1dc78 (&wp->lock){+.+.}-{3:3}, at: bch2_alloc_sectors_start_trans+0x290/0x1958 fs/bcachefs/alloc_foreground.c:1410 #5: ffff0000cc2d2870 (&dev->mutex){....}-{3:3}, at: six_relock_type+0x24/0x5c fs/bcachefs/six.h:288 #6: ffff0000d38b6870 (&dev->mutex){....}-{3:3}, at: six_relock_type+0x24/0x5c fs/bcachefs/six.h:288 #7: ffff0000d4fdb070 (&dev->mutex){....}-{3:3}, at: six_relock_type+0x24/0x5c fs/bcachefs/six.h:288 #8: ffff0000d4fdb070 (&dev->mutex){....}-{3:3}, at: btree_node_lock_increment fs/bcachefs/btree_locking.h:248 [inline] #8: ffff0000d4fdb070 (&dev->mutex){....}-{3:3}, at: __bch2_btree_node_relock+0x6a0/0xa94 fs/bcachefs/btree_locking.c:509 #9: ffff0000df19cde0 (&dev->mutex){....}-{3:3}, at: six_relock_type+0x24/0x5c fs/bcachefs/six.h:288 #10: ffff0000d4fdb070 (&dev->mutex){....}-{3:3}, at: btree_node_lock_increment fs/bcachefs/btree_locking.h:248 [inline] #10: ffff0000d4fdb070 (&dev->mutex){....}-{3:3}, at: __bch2_btree_node_relock+0x6a0/0xa94 fs/bcachefs/btree_locking.c:509 #11: ffff0000d4fdb070 (&dev->mutex){....}-{3:3}, at: btree_node_lock_increment fs/bcachefs/btree_locking.h:248 [inline] #11: ffff0000d4fdb070 (&dev->mutex){....}-{3:3}, at: __bch2_btree_node_relock+0x6a0/0xa94 fs/bcachefs/btree_locking.c:509 #12: ffff0000d38b6870 (&dev->mutex){....}-{3:3}, at: btree_node_lock_increment fs/bcachefs/btree_locking.h:248 [inline] #12: ffff0000d38b6870 (&dev->mutex){....}-{3:3}, at: __bch2_btree_node_relock+0x6a0/0xa94 fs/bcachefs/btree_locking.c:509 #13: ffff0000d4fdb070 (&dev->mutex){....}-{3:3}, at: btree_node_lock_increment fs/bcachefs/btree_locking.h:248 [inline] #13: ffff0000d4fdb070 (&dev->mutex){....}-{3:3}, at: __bch2_btree_node_relock+0x6a0/0xa94 fs/bcachefs/btree_locking.c:509 #14: ffff0000df19d498 (&dev->mutex){....}-{3:3}, at: six_relock_type+0x24/0x5c fs/bcachefs/six.h:288 #15: ffff0000d38b4070 (&dev->mutex){....}-{3:3}, at: six_relock_type+0x24/0x5c fs/bcachefs/six.h:288 #16: ffff0000d38b4070 (&dev->mutex){....}-{3:3}, at: six_relock_type+0x24/0x5c fs/bcachefs/six.h:288 #17: ffff0000d38b4070 (&dev->mutex){....}-{3:3}, at: six_relock_type+0x24/0x5c fs/bcachefs/six.h:288 #18: ffff0000d38b4070 (&dev->mutex){....}-{3:3}, at: six_relock_type+0x24/0x5c fs/bcachefs/six.h:288 #19: ffff0000d38b4070 (&dev->mutex){....}-{3:3}, at: six_relock_type+0x24/0x5c fs/bcachefs/six.h:288 #20: ffff0000d38b4070 (&dev->mutex){....}-{3:3}, at: six_relock_type+0x24/0x5c fs/bcachefs/six.h:288 #21: ffff0000d38b4070 (&dev->mutex){....}-{3:3}, at: six_relock_type+0x24/0x5c fs/bcachefs/six.h:288 #22: ffff0000d38b4070 (&dev->mutex){....}-{3:3}, at: six_relock_type+0x24/0x5c fs/bcachefs/six.h:288 #23: ffff0000d38b4070 (&dev->mutex){....}-{3:3}, at: six_relock_type+0x24/0x5c fs/bcachefs/six.h:288 #24: ffff0000d38b4070 (&dev->mutex){....}-{3:3}, at: six_relock_type+0x24/0x5c fs/bcachefs/six.h:288 #25: ffff0000d38b4070 (&dev->mutex){....}-{3:3}, at: six_relock_type+0x24/0x5c fs/bcachefs/six.h:288 #26: ffff0000d38b4070 (&dev->mutex){....}-{3:3}, at: six_relock_type+0x24/0x5c fs/bcachefs/six.h:288 #27: ffff0000d38b4070 (&dev->mutex){....}-{3:3}, at: six_relock_type+0x24/0x5c fs/bcachefs/six.h:288 #28: ffff0000d38b4070 (&dev->mutex){....}-{3:3}, at: six_relock_type+0x24/0x5c fs/bcachefs/six.h:288 #29: ffff0000d38b4070 (&dev->mutex){....}-{3:3}, at: six_relock_type+0x24/0x5c fs/bcachefs/six.h:288 #30: ffff0000d38b4070 (&dev->mutex){....}-{3:3}, at: six_relock_type+0x24/0x5c fs/bcachefs/six.h:288 #31: ffff0000d38b4070 (&dev->mutex){....}-{3:3}, at: six_relock_type+0x24/0x5c fs/bcachefs/six.h:288 #32: ffff0000d38b4070 (&dev->mutex){....}-{3:3}, at: six_relock_type+0x24/0x5c fs/bcachefs/six.h:288 #33: ffff0000d38b4070 (&dev->mutex){....}-{3:3}, at: six_relock_type+0x24/0x5c fs/bcachefs/six.h:288 #34: ffff0000d38b4070 (&dev->mutex){....}-{3:3}, at: six_relock_type+0x24/0x5c fs/bcachefs/six.h:288 #35: ffff0000d38b4070 (&dev->mutex){....}-{3:3}, at: six_relock_type+0x24/0x5c fs/bcachefs/six.h:288 #36: ffff0000d38b4070 (&dev->mutex){....}-{3:3}, at: six_relock_type+0x24/0x5c fs/bcachefs/six.h:288 #37: ffff0000d38b4070 (&dev->mutex){....}-{3:3}, at: six_trylock_type+0x1c/0x4c fs/bcachefs/six.h:206 #38: ffff0000d38b4070 (&dev->mutex){....}-{3:3}, at: six_trylock_type+0x1c/0x4c fs/bcachefs/six.h:206 #39: ffff0000d38b4070 (&dev->mutex){....}-{3:3}, at: six_trylock_type+0x1c/0x4c fs/bcachefs/six.h:206 #40: ffff0000df19d090 (&dev->mutex){....}-{3:3}, at: six_relock_type+0x24/0x5c fs/bcachefs/six.h:288 #41: ffff0000df19d340 (&dev->mutex){....}-{3:3}, at: six_relock_type+0x24/0x5c fs/bcachefs/six.h:288 #42: ffff0000dbdd1b50 (&dev->mutex){....}-{3:3}, at: six_relock_type+0x24/0x5c fs/bcachefs/six.h:288 #43: ffff0000d38b4070 (&dev->mutex){....}-{3:3}, at: six_trylock_type+0x1c/0x4c fs/bcachefs/six.h:206 #44: ffff0000d38b4070 (&dev->mutex){....}-{3:3}, at: six_trylock_type+0x1c/0x4c fs/bcachefs/six.h:206 #45: ffff800080007c60 ((&app->periodic_timer)){+.-.}-{0:0}, at: lockdep_copy_map include/linux/lockdep.h:41 [inline] #45: ffff800080007c60 ((&app->periodic_timer)){+.-.}-{0:0}, at: call_timer_fn+0xd0/0x8e8 kernel/time/timer.c:1782 #46: ffff0000d22490c8 (&app->lock){+.-.}-{2:2}, at: spin_lock include/linux/spinlock.h:351 [inline] #46: ffff0000d22490c8 (&app->lock){+.-.}-{2:2}, at: mrp_periodic_timer+0x3c/0x214 net/802/mrp.c:626 #47: ffff80008f9abb40 (fill_pool_map-wait-type-override){+.+.}-{3:3}, at: debug_objects_fill_pool+0x78/0x824 lib/debugobjects.c:600 INFO: lockdep is turned off. CPU: 0 PID: 7085 Comm: syz.4.129 Not tainted 6.10.0-rc7-syzkaller-gc912bf709078 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 06/07/2024 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 debug_objects_fill_pool+0xa4/0x824 lib/debugobjects.c:614 debug_object_assert_init+0x10c/0x3c8 lib/debugobjects.c:893 debug_timer_assert_init kernel/time/timer.c:846 [inline] debug_assert_init kernel/time/timer.c:891 [inline] __mod_timer+0xec/0xcf4 kernel/time/timer.c:1072 mod_timer+0x2c/0x3c kernel/time/timer.c:1242 mrp_periodic_timer_arm net/802/mrp.c:618 [inline] mrp_periodic_timer+0x1cc/0x214 net/802/mrp.c:630 call_timer_fn+0x1b4/0x8e8 kernel/time/timer.c:1792 expire_timers kernel/time/timer.c:1843 [inline] __run_timers kernel/time/timer.c:2417 [inline] __run_timer_base+0x56c/0x7b4 kernel/time/timer.c:2428 run_timer_base kernel/time/timer.c:2437 [inline] run_timer_softirq+0xcc/0x194 kernel/time/timer.c:2447 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 number+0x528/0x900 lib/vsprintf.c:536 vsnprintf+0x13c0/0x1a8c lib/vsprintf.c:2890 sprintf+0xe4/0x130 lib/vsprintf.c:3028 __sprint_symbol+0x1e0/0x314 kernel/kallsyms.c:498 sprint_symbol+0x30/0x40 kernel/kallsyms.c:530 symbol_string+0x1d4/0x35c lib/vsprintf.c:1002 pointer+0x6f4/0xdc8 lib/vsprintf.c:2422 vsnprintf+0xef8/0x1a8c lib/vsprintf.c:2828 bch2_prt_printf+0x194/0x5c4 fs/bcachefs/printbuf.c:183 bch2_btree_path_to_text_short+0x1fc/0x2bc fs/bcachefs/btree_iter.c:1486 __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_remap_range+0x1998/0x33a0 fs/bcachefs/reflink.c:554 bch2_remap_file_range+0x6b0/0xc28 fs/bcachefs/fs-io.c:903 vfs_copy_file_range+0xdf8/0x1248 fs/read_write.c:1522 __do_sys_copy_file_range fs/read_write.c:1612 [inline] __se_sys_copy_file_range fs/read_write.c:1575 [inline] __arm64_sys_copy_file_range+0x468/0x68c fs/read_write.c:1575 __invoke_syscall arch/arm64/kernel/syscall.c:34 [inline] invoke_syscall+0x98/0x2b8 arch/arm64/kernel/syscall.c:48 el0_svc_common+0x130/0x23c arch/arm64/kernel/syscall.c:131 do_el0_svc+0x48/0x58 arch/arm64/kernel/syscall.c:150 el0_svc+0x54/0x168 arch/arm64/kernel/entry-common.c:712 el0t_64_sync_handler+0x84/0xfc arch/arm64/kernel/entry-common.c:730 el0t_64_sync+0x190/0x194 arch/arm64/kernel/entry.S:598