BUG: MAX_LOCKDEP_CHAIN_HLOCKS too low! turning off the locking correctness validator. CPU: 1 UID: 0 PID: 12 Comm: kworker/u8:0 Not tainted syzkaller #0 PREEMPT Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/03/2025 Workqueue: btrfs-qgroup-rescan btrfs_work_helper 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 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] find_free_extent_unclustered fs/btrfs/extent-tree.c:3789 [inline] do_allocation_clustered fs/btrfs/extent-tree.c:3825 [inline] do_allocation fs/btrfs/extent-tree.c:4027 [inline] find_free_extent+0x34dc/0x4fc0 fs/btrfs/extent-tree.c:4562 btrfs_reserve_extent+0x22c/0x624 fs/btrfs/extent-tree.c:4717 btrfs_alloc_tree_block+0x168/0xe38 fs/btrfs/extent-tree.c:5170 btrfs_force_cow_block+0x404/0x2058 fs/btrfs/ctree.c:517 btrfs_cow_block+0x328/0x940 fs/btrfs/ctree.c:708 btrfs_search_slot+0x96c/0x223c fs/btrfs/ctree.c:2106 btrfs_update_root+0xe4/0xcd8 fs/btrfs/root-tree.c:144 commit_fs_roots+0x440/0x784 fs/btrfs/transaction.c:1515 btrfs_commit_transaction+0x108c/0x2ce4 fs/btrfs/transaction.c:2442 btrfs_qgroup_rescan_worker+0x12c8/0x19f8 fs/btrfs/qgroup.c:3834 btrfs_work_helper+0x380/0xca8 fs/btrfs/async-thread.c:312 process_one_work+0x7e8/0x155c kernel/workqueue.c:3263 process_scheduled_works kernel/workqueue.c:3346 [inline] worker_thread+0x958/0xed8 kernel/workqueue.c:3427 kthread+0x5fc/0x75c kernel/kthread.c:463 ret_from_fork+0x10/0x20 arch/arm64/kernel/entry.S:844 BTRFS info (device loop3): qgroup scan completed (inconsistency flag cleared) BTRFS info (device loop2): qgroup scan completed (inconsistency flag cleared) BTRFS info (device loop3): qgroup scan completed (inconsistency flag cleared) BTRFS info (device loop0): 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 loop2): qgroup scan completed (inconsistency flag cleared) BTRFS info (device loop1): qgroup scan completed (inconsistency flag cleared) BTRFS info (device loop2): qgroup scan completed (inconsistency flag cleared) BTRFS info (device loop0): qgroup scan completed (inconsistency flag cleared)