BUG: MAX_LOCKDEP_CHAINS too low! turning off the locking correctness validator. CPU: 1 UID: 0 PID: 12 Comm: kworker/u8:1 Not tainted 6.13.0-rc2-syzkaller-g2e7aff49b5da #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+0x2070/0x7904 kernel/locking/lockdep.c:5226 lock_acquire+0x23c/0x724 kernel/locking/lockdep.c:5849 _raw_spin_lock_nested+0x50/0x6c kernel/locking/spinlock.c:378 raw_spin_rq_lock_nested kernel/sched/core.c:598 [inline] raw_spin_rq_lock kernel/sched/sched.h:1514 [inline] rq_lock kernel/sched/sched.h:1813 [inline] __schedule+0x2e0/0x27f0 kernel/sched/core.c:6680 preempt_schedule_common+0xe8/0x1dc kernel/sched/core.c:6935 preempt_schedule kernel/sched/core.c:6959 [inline] class_preempt_destructor include/linux/preempt.h:480 [inline] try_to_wake_up+0x894/0x11d4 kernel/sched/core.c:4328 wake_up_process+0x18/0x24 kernel/sched/core.c:4454 closure_sync_fn+0x104/0x1d0 lib/closure.c:131 closure_queue include/linux/closure.h:270 [inline] closure_put_after_sub+0x27c/0x304 lib/closure.c:42 closure_sub lib/closure.c:61 [inline] __closure_wake_up+0xa8/0x104 lib/closure.c:91 closure_wake_up include/linux/closure.h:349 [inline] bch2_btree_update_free+0x3d0/0x498 fs/bcachefs/btree_update_interior.c:593 btree_update_nodes_written fs/bcachefs/btree_update_interior.c:840 [inline] btree_interior_update_work+0x1914/0x1e00 fs/bcachefs/btree_update_interior.c:861 process_one_work+0x7a8/0x15cc 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