BUG: MAX_LOCKDEP_CHAIN_HLOCKS too low! turning off the locking correctness validator. CPU: 0 PID: 52 Comm: kworker/u9:0 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 lookup_chain_cache_add kernel/locking/lockdep.c:3816 [inline] validate_chain kernel/locking/lockdep.c:3837 [inline] __lock_acquire+0x1c58/0x763c kernel/locking/lockdep.c:5137 lock_acquire+0x240/0x728 kernel/locking/lockdep.c:5754 fs_reclaim_acquire+0xb0/0x12c mm/page_alloc.c:3823 might_alloc include/linux/sched/mm.h:334 [inline] slab_pre_alloc_hook mm/slub.c:3891 [inline] slab_alloc_node mm/slub.c:3982 [inline] __do_kmalloc_node mm/slub.c:4122 [inline] kmalloc_node_track_caller_noprof+0xd0/0x4d0 mm/slub.c:4143 __do_krealloc mm/slab_common.c:1183 [inline] krealloc_noprof+0x94/0x148 mm/slab_common.c:1216 bch2_printbuf_make_room+0x1b4/0x2f4 fs/bcachefs/printbuf.c:59 bch2_prt_printf+0x224/0x5c4 fs/bcachefs/printbuf.c:186 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+0xe78/0x15a0 fs/bcachefs/btree_update_interior.c:1245 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