BUG: MAX_LOCKDEP_CHAINS too low! turning off the locking correctness validator. CPU: 1 UID: 0 PID: 52 Comm: kworker/u9:0 Not tainted 6.16.0-rc7-syzkaller-g82af5ea7c611 #0 PREEMPT Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 06/18/2025 Workqueue: bcachefs_journal bch2_journal_write Call trace: show_stack+0x2c/0x3c arch/arm64/kernel/stacktrace.c:499 (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 reacquire_held_locks+0x13c/0x1f8 kernel/locking/lockdep.c:5388 __lock_release kernel/locking/lockdep.c:5577 [inline] lock_release+0x198/0x39c kernel/locking/lockdep.c:5892 __mutex_unlock_slowpath+0xc8/0x618 kernel/locking/mutex.c:909 mutex_unlock+0x18/0x24 kernel/locking/mutex.c:540 bch2_journal_keys_to_write_buffer_end+0x860/0x8b0 fs/bcachefs/btree_write_buffer.c:834 bch2_journal_write_prep fs/bcachefs/journal_io.c:2001 [inline] bch2_journal_write+0x1250/0x3d84 fs/bcachefs/journal_io.c:2162 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:844