BUG: MAX_LOCKDEP_CHAIN_HLOCKS too low! turning off the locking correctness validator. CPU: 1 PID: 4404 Comm: kworker/u4:5 Not tainted 6.1.23-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 03/02/2023 Workqueue: events_unbound btrfs_async_reclaim_metadata_space Call trace: dump_backtrace+0x1c8/0x1f4 arch/arm64/kernel/stacktrace.c:158 show_stack+0x2c/0x3c arch/arm64/kernel/stacktrace.c:165 __dump_stack lib/dump_stack.c:88 [inline] dump_stack_lvl+0x108/0x170 lib/dump_stack.c:106 dump_stack+0x1c/0x5c lib/dump_stack.c:113 lookup_chain_cache_add kernel/locking/lockdep.c:3779 [inline] validate_chain kernel/locking/lockdep.c:3800 [inline] __lock_acquire+0x1b8c/0x764c kernel/locking/lockdep.c:5056 lock_acquire+0x26c/0x7cc kernel/locking/lockdep.c:5669 local_lock_acquire+0x44/0x1ac include/linux/local_lock_internal.h:29 folio_add_lru+0x258/0x584 mm/swap.c:532 filemap_add_folio+0x1c8/0x298 mm/filemap.c:949 __filemap_get_folio+0x7b0/0xb6c mm/filemap.c:1976 pagecache_get_page+0x3c/0x16c mm/folio-compat.c:110 find_or_create_page include/linux/pagemap.h:613 [inline] alloc_extent_buffer+0x214/0x114c fs/btrfs/extent_io.c:4613 btrfs_find_create_tree_block+0x3c/0x50 fs/btrfs/disk-io.c:922 btrfs_init_new_buffer fs/btrfs/extent-tree.c:4866 [inline] btrfs_alloc_tree_block+0x21c/0x1478 fs/btrfs/extent-tree.c:4985 __btrfs_cow_block+0x3f4/0x16f0 fs/btrfs/ctree.c:433 btrfs_cow_block+0x354/0x7dc fs/btrfs/ctree.c:588 btrfs_search_slot+0xb7c/0x2948 lookup_inline_extent_backref+0x30c/0x1098 fs/btrfs/extent-tree.c:832 lookup_extent_backref fs/btrfs/extent-tree.c:1054 [inline] __btrfs_free_extent+0x254/0x28c8 fs/btrfs/extent-tree.c:2962 run_delayed_tree_ref fs/btrfs/extent-tree.c:1675 [inline] run_one_delayed_ref fs/btrfs/extent-tree.c:1699 [inline] btrfs_run_delayed_refs_for_head fs/btrfs/extent-tree.c:1948 [inline] __btrfs_run_delayed_refs+0xe0c/0x3aa4 fs/btrfs/extent-tree.c:2011 btrfs_run_delayed_refs+0x13c/0x4c0 fs/btrfs/extent-tree.c:2142 commit_cowonly_roots+0x574/0x740 fs/btrfs/transaction.c:1305 btrfs_commit_transaction+0x1228/0x2cd4 fs/btrfs/transaction.c:2389 flush_space+0x870/0xdb8 fs/btrfs/space-info.c:811 btrfs_async_reclaim_metadata_space+0x260/0x30c fs/btrfs/space-info.c:1084 process_one_work+0x7ac/0x1404 kernel/workqueue.c:2289 worker_thread+0x8e4/0xfec kernel/workqueue.c:2436 kthread+0x24c/0x2d4 kernel/kthread.c:376 ret_from_fork+0x10/0x20 arch/arm64/kernel/entry.S:860