BUG: MAX_LOCKDEP_CHAINS too low! turning off the locking correctness validator. CPU: 1 UID: 0 PID: 4969 Comm: kworker/u8:7 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_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:1506 [inline] rq_lock kernel/sched/sched.h:1805 [inline] __schedule+0x2e0/0x27d0 kernel/sched/core.c:6592 preempt_schedule_common+0xe8/0x1dc kernel/sched/core.c:6872 preempt_schedule+0x60/0x80 kernel/sched/core.c:6896 __raw_spin_unlock_irq include/linux/spinlock_api_smp.h:160 [inline] _raw_spin_unlock_irq+0x7c/0x80 kernel/locking/spinlock.c:202 spin_unlock_irq include/linux/spinlock.h:401 [inline] loop_queue_work drivers/block/loop.c:903 [inline] loop_queue_rq+0x97c/0xadc drivers/block/loop.c:1877 __blk_mq_issue_directly block/blk-mq.c:2573 [inline] blk_mq_request_issue_directly+0x31c/0x568 block/blk-mq.c:2658 blk_mq_plug_issue_direct+0x200/0x4ec block/blk-mq.c:2679 blk_mq_flush_plug_list+0x650/0x1350 block/blk-mq.c:2791 __blk_flush_plug+0x388/0x460 block/blk-core.c:1199 blk_finish_plug block/blk-core.c:1226 [inline] __submit_bio+0x39c/0x4c4 block/blk-core.c:623 __submit_bio_noacct_mq block/blk-core.c:696 [inline] submit_bio_noacct_nocheck+0x3ac/0xca8 block/blk-core.c:725 submit_bio_noacct+0xc6c/0x166c block/blk-core.c:854 submit_bio+0x374/0x564 block/blk-core.c:896 read_back_super fs/bcachefs/super-io.c:904 [inline] bch2_write_super+0x157c/0x333c fs/bcachefs/super-io.c:1028 btree_update_new_nodes_mark_sb fs/bcachefs/btree_update_interior.c:628 [inline] btree_update_nodes_written fs/bcachefs/btree_update_interior.c:690 [inline] btree_interior_update_work+0x418/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