BUG: MAX_LOCKDEP_CHAIN_HLOCKS too low! turning off the locking correctness validator. CPU: 0 UID: 0 PID: 478 Comm: kworker/u8:6 Not tainted 6.15.0-rc4-syzkaller-ge0f4c8dd9d2d #0 PREEMPT Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 02/12/2025 Workqueue: btrfs-qgroup-rescan btrfs_work_helper Call trace: show_stack+0x2c/0x3c arch/arm64/kernel/stacktrace.c:466 (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:3856 [inline] validate_chain kernel/locking/lockdep.c:3877 [inline] __lock_acquire+0xf50/0x3058 kernel/locking/lockdep.c:5235 lock_acquire+0x14c/0x2e0 kernel/locking/lockdep.c:5866 __raw_spin_lock_irqsave include/linux/spinlock_api_smp.h:110 [inline] _raw_spin_lock_irqsave+0x5c/0x7c kernel/locking/spinlock.c:162 get_partial_node+0x44/0x410 mm/slub.c:2880 get_partial mm/slub.c:2994 [inline] ___slab_alloc+0x650/0xeb4 mm/slub.c:3852 __slab_alloc+0x74/0xd0 mm/slub.c:3962 __slab_alloc_node mm/slub.c:4037 [inline] slab_alloc_node mm/slub.c:4198 [inline] __kmalloc_cache_noprof+0x2f4/0x3fc mm/slub.c:4367 kmalloc_noprof include/linux/slab.h:905 [inline] ulist_add_merge+0x184/0x478 fs/btrfs/ulist.c:223 ulist_add+0x40/0x54 fs/btrfs/ulist.c:203 add_all_parents fs/btrfs/backref.c:488 [inline] resolve_indirect_ref fs/btrfs/backref.c:686 [inline] resolve_indirect_refs fs/btrfs/backref.c:776 [inline] find_parent_nodes+0x32f0/0x5334 fs/btrfs/backref.c:1570 btrfs_find_all_roots_safe+0x188/0x40c fs/btrfs/backref.c:1768 btrfs_find_all_roots+0x88/0xf4 fs/btrfs/backref.c:1799 qgroup_rescan_leaf fs/btrfs/qgroup.c:3784 [inline] btrfs_qgroup_rescan_worker+0xba4/0x150c fs/btrfs/qgroup.c:3849 btrfs_work_helper+0x380/0xca8 fs/btrfs/async-thread.c:313 process_one_work+0x7e8/0x156c kernel/workqueue.c:3238 process_scheduled_works kernel/workqueue.c:3319 [inline] worker_thread+0x958/0xed8 kernel/workqueue.c:3400 kthread+0x5fc/0x75c kernel/kthread.c:464 ret_from_fork+0x10/0x20 arch/arm64/kernel/entry.S:862 BTRFS info (device loop0): qgroup scan completed (inconsistency flag cleared) BTRFS info (device loop0): qgroup scan completed (inconsistency flag cleared) BTRFS info (device loop0): qgroup scan completed (inconsistency flag cleared) BTRFS info (device loop0): qgroup scan completed (inconsistency flag cleared) BTRFS info (device loop0): qgroup scan completed (inconsistency flag cleared) BTRFS info (device loop0): qgroup scan completed (inconsistency flag cleared) BTRFS info (device loop0): qgroup scan completed (inconsistency flag cleared) BTRFS info (device loop0): qgroup scan completed (inconsistency flag cleared) BTRFS info (device loop0): qgroup scan completed (inconsistency flag cleared) BTRFS info (device loop0): qgroup scan completed (inconsistency flag cleared) BTRFS info (device loop0): qgroup scan completed (inconsistency flag cleared) BTRFS info (device loop0): qgroup scan completed (inconsistency flag cleared) BTRFS info (device loop0): qgroup scan completed (inconsistency flag cleared) BTRFS info (device loop0): qgroup scan completed (inconsistency flag cleared) BTRFS info (device loop0): qgroup scan completed (inconsistency flag cleared) BTRFS info (device loop0): qgroup scan completed (inconsistency flag cleared) BTRFS info (device loop0): qgroup scan completed (inconsistency flag cleared) BTRFS info (device loop0): qgroup scan completed (inconsistency flag cleared) BTRFS info (device loop0): qgroup scan completed (inconsistency flag cleared)