BUG: MAX_LOCKDEP_CHAIN_HLOCKS too low! turning off the locking correctness validator. CPU: 0 UID: 0 PID: 867 Comm: kworker/u8:5 Not tainted 6.17.0-rc1-syzkaller-g8f5ae30d69d7 #0 PREEMPT Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 06/30/2025 Workqueue: btree_update btree_interior_update_work 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:3855 [inline] validate_chain kernel/locking/lockdep.c:3876 [inline] __lock_acquire+0xf9c/0x30a4 kernel/locking/lockdep.c:5237 lock_acquire+0x14c/0x2e0 kernel/locking/lockdep.c:5868 __raw_spin_lock_irqsave include/linux/spinlock_api_smp.h:110 [inline] _raw_spin_lock_irqsave+0x5c/0x7c kernel/locking/spinlock.c:162 class_raw_spinlock_irqsave_constructor include/linux/spinlock.h:557 [inline] try_to_wake_up+0x6c/0xe24 kernel/sched/core.c:4216 wake_up_process+0x18/0x24 kernel/sched/core.c:4459 kick_pool+0x3e0/0x58c kernel/workqueue.c:1283 __queue_work+0xdbc/0x1210 kernel/workqueue.c:2340 queue_work_on+0xdc/0x18c kernel/workqueue.c:2390 queue_work include/linux/workqueue.h:669 [inline] loop_queue_work drivers/block/loop.c:852 [inline] loop_queue_rq+0x944/0xaa8 drivers/block/loop.c:1878 __blk_mq_issue_directly block/blk-mq.c:2695 [inline] blk_mq_request_issue_directly+0x2c0/0x560 block/blk-mq.c:2782 blk_mq_issue_direct+0x254/0x558 block/blk-mq.c:2803 blk_mq_dispatch_queue_requests+0x568/0x674 block/blk-mq.c:2878 blk_mq_flush_plug_list+0x370/0x488 block/blk-mq.c:2961 __blk_flush_plug+0x330/0x408 block/blk-core.c:1220 blk_finish_plug block/blk-core.c:1247 [inline] __submit_bio+0x3f4/0x4d8 block/blk-core.c:649 __submit_bio_noacct_mq block/blk-core.c:722 [inline] submit_bio_noacct_nocheck+0x390/0xaac block/blk-core.c:751 submit_bio_noacct+0xc84/0x176c block/blk-core.c:874 submit_bio+0x3b4/0x550 block/blk-core.c:916 read_back_super fs/bcachefs/super-io.c:993 [inline] bch2_write_super+0x114c/0x28dc fs/bcachefs/super-io.c:1125 btree_update_new_nodes_mark_sb fs/bcachefs/btree_update_interior.c:613 [inline] btree_update_nodes_written fs/bcachefs/btree_update_interior.c:683 [inline] btree_interior_update_work+0x3a0/0x1d28 fs/bcachefs/btree_update_interior.c:867 process_one_work+0x7e8/0x155c kernel/workqueue.c:3236 process_scheduled_works kernel/workqueue.c:3319 [inline] worker_thread+0x958/0xed8 kernel/workqueue.c:3400 kthread+0x5fc/0x75c kernel/kthread.c:463 ret_from_fork+0x10/0x20 arch/arm64/kernel/entry.S:844