BUG: MAX_LOCKDEP_CHAIN_HLOCKS too low! turning off the locking correctness validator. CPU: 0 PID: 1987 Comm: kworker/u4:12 Not tainted 6.7.0-rc1-syzkaller-00213-g791c8ab095f7 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 11/10/2023 Workqueue: btrfs-qgroup-rescan btrfs_work_helper Call Trace: __dump_stack lib/dump_stack.c:88 [inline] dump_stack_lvl+0xd9/0x1b0 lib/dump_stack.c:106 add_chain_cache kernel/locking/lockdep.c:3734 [inline] lookup_chain_cache_add kernel/locking/lockdep.c:3815 [inline] validate_chain kernel/locking/lockdep.c:3836 [inline] __lock_acquire+0x2e92/0x3b10 kernel/locking/lockdep.c:5136 lock_acquire kernel/locking/lockdep.c:5753 [inline] lock_acquire+0x1ae/0x520 kernel/locking/lockdep.c:5718 __raw_spin_lock include/linux/spinlock_api_smp.h:133 [inline] _raw_spin_lock+0x2e/0x40 kernel/locking/spinlock.c:154 spin_lock include/linux/spinlock.h:351 [inline] insert_delayed_ref+0x60/0xae0 fs/btrfs/delayed-ref.c:694 btrfs_add_delayed_tree_ref+0x66f/0xb90 fs/btrfs/delayed-ref.c:1080 btrfs_alloc_tree_block+0xeeb/0x12c0 fs/btrfs/extent-tree.c:5159 btrfs_force_cow_block+0x3e5/0x19e0 fs/btrfs/ctree.c:563 btrfs_cow_block+0x2b6/0xb30 fs/btrfs/ctree.c:741 btrfs_search_slot+0x11bd/0x2fd0 fs/btrfs/ctree.c:2095 update_qgroup_info_item fs/btrfs/qgroup.c:884 [inline] btrfs_run_qgroups+0x502/0x930 fs/btrfs/qgroup.c:3016 commit_cowonly_roots+0x23c/0xa60 fs/btrfs/transaction.c:1394 btrfs_commit_transaction+0x1382/0x3b40 fs/btrfs/transaction.c:2487 btrfs_qgroup_rescan_worker+0x458/0xa00 fs/btrfs/qgroup.c:3614 btrfs_work_helper+0x210/0xbf0 fs/btrfs/async-thread.c:315 process_one_work+0x886/0x15d0 kernel/workqueue.c:2630 process_scheduled_works kernel/workqueue.c:2703 [inline] worker_thread+0x8b9/0x1290 kernel/workqueue.c:2784 kthread+0x2c6/0x3a0 kernel/kthread.c:388 ret_from_fork+0x45/0x80 arch/x86/kernel/process.c:147 ret_from_fork_asm+0x11/0x20 arch/x86/entry/entry_64.S:242 BTRFS info (device loop4): qgroup scan completed (inconsistency flag cleared) BTRFS info (device loop1): qgroup scan completed (inconsistency flag cleared) BTRFS info (device loop3): qgroup scan completed (inconsistency flag cleared) BTRFS info (device loop1): qgroup scan completed (inconsistency flag cleared) BTRFS info (device loop3): qgroup scan completed (inconsistency flag cleared) BTRFS info (device loop1): qgroup scan completed (inconsistency flag cleared) BTRFS info (device loop3): qgroup scan completed (inconsistency flag cleared) BTRFS info (device loop5): qgroup scan completed (inconsistency flag cleared) BTRFS info (device loop1): qgroup scan completed (inconsistency flag cleared) wlan1: No active IBSS STAs - trying to scan for other IBSS networks with same SSID (merge) BTRFS info (device loop3): qgroup scan completed (inconsistency flag cleared) BTRFS info (device loop5): qgroup scan completed (inconsistency flag cleared) BTRFS info (device loop5): qgroup scan completed (inconsistency flag cleared)