BUG: MAX_LOCKDEP_CHAIN_HLOCKS too low! turning off the locking correctness validator. CPU: 1 UID: 0 PID: 4496 Comm: kworker/u8:14 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+0x140/0x2e0 kernel/locking/lockdep.c:5868 seqcount_lockdep_reader_access+0x58/0xc8 include/linux/seqlock.h:72 read_seqbegin include/linux/seqlock.h:836 [inline] zone_span_seqbegin include/linux/memory_hotplug.h:87 [inline] page_outside_zone_boundaries mm/page_alloc.c:586 [inline] bad_range+0x94/0x26c mm/page_alloc.c:605 rmqueue mm/page_alloc.c:3388 [inline] get_page_from_freelist+0x2478/0x2624 mm/page_alloc.c:3912 __alloc_frozen_pages_noprof+0x17c/0x318 mm/page_alloc.c:5210 __alloc_pages_noprof mm/page_alloc.c:5244 [inline] alloc_pages_bulk_noprof+0x564/0x810 mm/page_alloc.c:5164 btrfs_alloc_page_array fs/btrfs/extent_io.c:677 [inline] alloc_eb_folio_array+0x128/0x398 fs/btrfs/extent_io.c:701 alloc_extent_buffer+0x2ac/0x2128 fs/btrfs/extent_io.c:3434 btrfs_find_create_tree_block+0x3c/0x50 fs/btrfs/disk-io.c:614 btrfs_init_new_buffer fs/btrfs/extent-tree.c:5049 [inline] btrfs_alloc_tree_block+0x1b4/0xe38 fs/btrfs/extent-tree.c:5162 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/0x2228 fs/btrfs/ctree.c:2130 update_qgroup_info_item fs/btrfs/qgroup.c:866 [inline] btrfs_run_qgroups+0x2f8/0x650 fs/btrfs/qgroup.c:3088 commit_cowonly_roots+0x1b4/0x700 fs/btrfs/transaction.c:1363 btrfs_commit_transaction+0x10e8/0x2d30 fs/btrfs/transaction.c:2477 btrfs_qgroup_rescan_worker+0x12b8/0x19e8 fs/btrfs/qgroup.c:3815 btrfs_work_helper+0x360/0xca8 fs/btrfs/async-thread.c:312 process_one_work+0x7c0/0x1558 kernel/workqueue.c:3257 process_scheduled_works kernel/workqueue.c:3340 [inline] worker_thread+0x958/0xed8 kernel/workqueue.c:3421 kthread+0x5fc/0x75c kernel/kthread.c:463 ret_from_fork+0x10/0x20 arch/arm64/kernel/entry.S:844 BTRFS info (device loop4): qgroup scan completed (inconsistency flag cleared) BTRFS info (device loop0): qgroup scan completed (inconsistency flag cleared)