BUG: MAX_LOCKDEP_CHAIN_HLOCKS too low! turning off the locking correctness validator. CPU: 0 UID: 0 PID: 41 Comm: kworker/u8:2 Not tainted syzkaller #0 PREEMPT Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 06/30/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 fs_reclaim_acquire+0xb8/0x118 mm/page_alloc.c:4251 might_alloc include/linux/sched/mm.h:318 [inline] slab_pre_alloc_hook mm/slub.c:4142 [inline] slab_alloc_node mm/slub.c:4220 [inline] kmem_cache_alloc_noprof+0x58/0x3e8 mm/slub.c:4247 alloc_extent_state+0x38/0x374 fs/btrfs/extent-io-tree.c:154 set_extent_bit+0x25c/0x1cd0 fs/btrfs/extent-io-tree.c:1079 btrfs_set_extent_bit+0x54/0x6c fs/btrfs/extent-io-tree.c:1297 btrfs_init_new_buffer fs/btrfs/extent-tree.c:5124 [inline] btrfs_alloc_tree_block+0x764/0xe5c fs/btrfs/extent-tree.c:5173 btrfs_force_cow_block+0x404/0x2044 fs/btrfs/ctree.c:517 btrfs_cow_block+0x3d4/0x934 fs/btrfs/ctree.c:699 btrfs_search_slot+0x9ec/0x2268 fs/btrfs/ctree.c:2097 update_qgroup_status_item+0xf4/0x284 fs/btrfs/qgroup.c:921 btrfs_qgroup_rescan_worker+0x1480/0x19f8 fs/btrfs/qgroup.c:3874 btrfs_work_helper+0x380/0xca8 fs/btrfs/async-thread.c:312 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 BTRFS info (device loop0): qgroup scan completed (inconsistency flag cleared) BTRFS info (device loop4): qgroup scan completed (inconsistency flag cleared) BTRFS info (device loop1): qgroup scan completed (inconsistency flag cleared) BTRFS info (device loop4): 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)