BUG: MAX_LOCKDEP_CHAINS too low! turning off the locking correctness validator. CPU: 1 UID: 0 PID: 346 Comm: kworker/u8:5 Not tainted 6.12.0-syzkaller-g7b1d1d4cfac0 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/13/2024 Workqueue: btree_update btree_interior_update_work Call trace: show_stack+0x2c/0x3c arch/arm64/kernel/stacktrace.c:484 (C) __dump_stack lib/dump_stack.c:94 [inline] dump_stack_lvl+0xe4/0x150 lib/dump_stack.c:120 dump_stack+0x1c/0x28 lib/dump_stack.c:129 lookup_chain_cache_add kernel/locking/lockdep.c:3851 [inline] validate_chain kernel/locking/lockdep.c:3872 [inline] __lock_acquire+0x1fb8/0x77c8 kernel/locking/lockdep.c:5202 lock_acquire+0x240/0x728 kernel/locking/lockdep.c:5825 __raw_spin_lock_irqsave include/linux/spinlock_api_smp.h:110 [inline] _raw_spin_lock_irqsave+0x5c/0x7c kernel/locking/spinlock.c:162 __bch2_time_stats_update+0x188/0x304 fs/bcachefs/time_stats.c:127 bch2_time_stats_update fs/bcachefs/time_stats.h:118 [inline] bch2_btree_node_mem_alloc+0x944/0x14b4 fs/bcachefs/btree_cache.c:853 __bch2_btree_node_alloc fs/bcachefs/btree_update_interior.c:321 [inline] bch2_btree_reserve_get+0x294/0xf70 fs/bcachefs/btree_update_interior.c:549 bch2_btree_update_start+0xe14/0x15ac fs/bcachefs/btree_update_interior.c:1247 bch2_btree_split_leaf+0x118/0x7b0 fs/bcachefs/btree_update_interior.c:1856 bch2_trans_commit_error+0x2a8/0x1150 fs/bcachefs/btree_trans_commit.c:942 __bch2_trans_commit+0x2a80/0x6604 fs/bcachefs/btree_trans_commit.c:1140 bch2_trans_commit fs/bcachefs/btree_update.h:184 [inline] btree_update_nodes_written fs/bcachefs/btree_update_interior.c:723 [inline] btree_interior_update_work+0xd40/0x1e00 fs/bcachefs/btree_update_interior.c:861 process_one_work+0x7bc/0x1600 kernel/workqueue.c:3229 process_scheduled_works kernel/workqueue.c:3310 [inline] worker_thread+0x97c/0xeec kernel/workqueue.c:3391 kthread+0x288/0x310 kernel/kthread.c:389 ret_from_fork+0x10/0x20 arch/arm64/kernel/entry.S:862 bucket 0:29 gen 0 data type btree sector count overflow: 0 + -256 > U32_MAX while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq e81e1ed936acf3df written 32 min_key POS_MIN durability: 1 ptr: 0:29:0 gen 0, continuing bucket 0:26 gen 0 data type btree sector count overflow: 0 + -256 > U32_MAX while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq ac62141f8dc7e261 written 24 min_key POS_MIN durability: 1 ptr: 0:26:0 gen 0, continuing