BUG: MAX_LOCKDEP_CHAINS too low! turning off the locking correctness validator. CPU: 1 UID: 0 PID: 2064 Comm: kworker/u8:9 Not tainted 6.16.0-rc2-syzkaller-g9aa9b43d689e #0 PREEMPT Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 05/07/2025 Workqueue: btree_update btree_interior_update_work Call trace: show_stack+0x2c/0x3c arch/arm64/kernel/stacktrace.c:501 (C) __dump_stack+0x30/0x40 lib/dump_stack.c:94 dump_stack_lvl+0xd8/0x12c lib/dump_stack.c:120 dump_stack+0x1c/0x28 lib/dump_stack.c:129 add_chain_cache kernel/locking/lockdep.c:-1 [inline] lookup_chain_cache_add kernel/locking/lockdep.c:3858 [inline] validate_chain kernel/locking/lockdep.c:3879 [inline] __lock_acquire+0xf9c/0x30a4 kernel/locking/lockdep.c:5240 lock_acquire+0x14c/0x2e0 kernel/locking/lockdep.c:5871 __raw_spin_lock_irq include/linux/spinlock_api_smp.h:119 [inline] _raw_spin_lock_irq+0x58/0x70 kernel/locking/spinlock.c:170 spin_lock_irq include/linux/spinlock.h:376 [inline] rcu_sync_enter+0x88/0x454 kernel/rcu/sync.c:109 percpu_down_write+0x74/0x2f0 kernel/locking/percpu-rwsem.c:235 bch2_accounting_mem_insert+0x300/0x8d0 fs/bcachefs/disk_accounting.c:407 bch2_accounting_mem_mod_locked+0x98c/0xdfc fs/bcachefs/disk_accounting.h:198 bch2_accounting_trans_commit_hook fs/bcachefs/disk_accounting.h:268 [inline] bch2_trans_commit_write_locked fs/bcachefs/btree_trans_commit.c:673 [inline] do_bch2_trans_commit fs/bcachefs/btree_trans_commit.c:851 [inline] __bch2_trans_commit+0x2dc4/0x6198 fs/bcachefs/btree_trans_commit.c:1079 bch2_trans_commit fs/bcachefs/btree_update.h:242 [inline] btree_update_nodes_written fs/bcachefs/btree_update_interior.c:729 [inline] btree_interior_update_work+0xb98/0x1d28 fs/bcachefs/btree_update_interior.c:867 process_one_work+0x7e8/0x155c kernel/workqueue.c:3238 process_scheduled_works kernel/workqueue.c:3321 [inline] worker_thread+0x958/0xed8 kernel/workqueue.c:3402 kthread+0x5fc/0x75c kernel/kthread.c:464 ret_from_fork+0x10/0x20 arch/arm64/kernel/entry.S:847