BUG: MAX_LOCKDEP_CHAIN_HLOCKS too low! turning off the locking correctness validator. CPU: 0 UID: 0 PID: 4448 Comm: kworker/u8:9 Not tainted 6.13.0-rc2-syzkaller-g2e7aff49b5da #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/13/2024 Workqueue: btrfs-qgroup-rescan btrfs_work_helper 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 include/linux/spinlock_api_smp.h:133 [inline] _raw_spin_lock+0x48/0x60 kernel/locking/spinlock.c:154 spin_lock include/linux/spinlock.h:351 [inline] insert_delayed_ref fs/btrfs/delayed-ref.c:573 [inline] add_delayed_ref+0x7b8/0x1ad8 fs/btrfs/delayed-ref.c:1039 btrfs_add_delayed_tree_ref+0x9c/0x110 fs/btrfs/delayed-ref.c:1077 btrfs_alloc_tree_block+0xb2c/0x10c8 fs/btrfs/extent-tree.c:5178 btrfs_force_cow_block+0x428/0x19d4 fs/btrfs/ctree.c:573 btrfs_cow_block+0x33c/0xad4 fs/btrfs/ctree.c:754 btrfs_search_slot+0xa74/0x272c fs/btrfs/ctree.c:2156 btrfs_insert_empty_items+0xa4/0x17c fs/btrfs/ctree.c:4354 btrfs_insert_empty_item fs/btrfs/ctree.h:669 [inline] alloc_reserved_tree_block fs/btrfs/extent-tree.c:4871 [inline] run_delayed_tree_ref fs/btrfs/extent-tree.c:1754 [inline] run_one_delayed_ref fs/btrfs/extent-tree.c:1786 [inline] btrfs_run_delayed_refs_for_head fs/btrfs/extent-tree.c:2007 [inline] __btrfs_run_delayed_refs+0x1378/0x3cbc fs/btrfs/extent-tree.c:2077 btrfs_run_delayed_refs+0xc4/0x2bc fs/btrfs/extent-tree.c:2189 commit_cowonly_roots+0x574/0x750 fs/btrfs/transaction.c:1372 btrfs_commit_transaction+0x1170/0x2ba4 fs/btrfs/transaction.c:2445 btrfs_qgroup_rescan_worker+0x127c/0x163c fs/btrfs/qgroup.c:3862 btrfs_work_helper+0x374/0xd5c fs/btrfs/async-thread.c:314 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 BTRFS info (device loop0): qgroup scan completed (inconsistency flag cleared)