BUG: MAX_LOCKDEP_CHAIN_HLOCKS too low! turning off the locking correctness validator. CPU: 1 PID: 11 Comm: kworker/u4:0 Not tainted 6.6.0-rc6-syzkaller-g78124b0c1d10 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/06/2023 Workqueue: btrfs-qgroup-rescan btrfs_work_helper Call trace: dump_backtrace+0x1b8/0x1e4 arch/arm64/kernel/stacktrace.c:233 show_stack+0x2c/0x44 arch/arm64/kernel/stacktrace.c:240 __dump_stack lib/dump_stack.c:88 [inline] dump_stack_lvl+0xd0/0x124 lib/dump_stack.c:106 dump_stack+0x1c/0x28 lib/dump_stack.c:113 lookup_chain_cache_add kernel/locking/lockdep.c:3815 [inline] validate_chain kernel/locking/lockdep.c:3836 [inline] __lock_acquire+0x1c60/0x75e8 kernel/locking/lockdep.c:5136 lock_acquire+0x23c/0x71c kernel/locking/lockdep.c:5753 seqcount_lockdep_reader_access+0x5c/0xd4 include/linux/seqlock.h:102 read_seqbegin include/linux/seqlock.h:837 [inline] zone_span_seqbegin include/linux/memory_hotplug.h:134 [inline] page_outside_zone_boundaries mm/page_alloc.c:449 [inline] bad_range+0x98/0x298 mm/page_alloc.c:468 rmqueue mm/page_alloc.c:2794 [inline] get_page_from_freelist+0x31ac/0x3354 mm/page_alloc.c:3167 __alloc_pages+0x220/0x698 mm/page_alloc.c:4426 alloc_pages+0x4bc/0x7c0 folio_alloc+0x28/0x6c mm/mempolicy.c:2307 filemap_alloc_folio+0xc4/0x470 mm/filemap.c:976 __filemap_get_folio+0x3c8/0x8b8 mm/filemap.c:1936 pagecache_get_page+0x44/0x25c mm/folio-compat.c:99 find_or_create_page include/linux/pagemap.h:723 [inline] alloc_extent_buffer+0x344/0x1020 fs/btrfs/extent_io.c:3526 btrfs_find_create_tree_block+0x3c/0x50 fs/btrfs/disk-io.c:585 btrfs_init_new_buffer fs/btrfs/extent-tree.c:4815 [inline] btrfs_alloc_tree_block+0x214/0x1444 fs/btrfs/extent-tree.c:4936 __btrfs_cow_block+0x3f4/0x1924 fs/btrfs/ctree.c:546 btrfs_cow_block+0x314/0xa0c fs/btrfs/ctree.c:724 btrfs_search_slot+0xb8c/0x29d8 btrfs_update_root+0xe4/0xa88 fs/btrfs/root-tree.c:137 commit_fs_roots+0x428/0x69c fs/btrfs/transaction.c:1473 btrfs_commit_transaction+0x10ec/0x2dd4 fs/btrfs/transaction.c:2418 btrfs_qgroup_rescan_worker+0x15fc/0x1674 fs/btrfs/qgroup.c:3417 btrfs_work_helper+0x340/0x1504 fs/btrfs/async-thread.c:314 process_one_work+0x694/0x1204 kernel/workqueue.c:2630 process_scheduled_works kernel/workqueue.c:2703 [inline] worker_thread+0x938/0xef4 kernel/workqueue.c:2784 kthread+0x288/0x310 kernel/kthread.c:388 ret_from_fork+0x10/0x20 arch/arm64/kernel/entry.S:857 BTRFS info (device loop0): 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)