BUG: MAX_LOCKDEP_CHAIN_HLOCKS too low! turning off the locking correctness validator. CPU: 0 PID: 5069 Comm: kworker/u4:11 Not tainted 6.1.22-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 03/02/2023 Workqueue: btrfs-endio-write btrfs_work_helper 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 __raw_spin_lock include/linux/spinlock_api_smp.h:133 [inline] _raw_spin_lock+0x54/0x6c kernel/locking/spinlock.c:154 spin_lock include/linux/spinlock.h:350 [inline] insert_delayed_ref+0x48/0x7bc fs/btrfs/delayed-ref.c:612 btrfs_add_delayed_tree_ref+0x750/0xe58 fs/btrfs/delayed-ref.c:980 btrfs_alloc_tree_block+0xd60/0x1478 fs/btrfs/extent-tree.c:5019 __btrfs_cow_block+0x3f4/0x16f0 fs/btrfs/ctree.c:433 btrfs_cow_block+0x354/0x7dc fs/btrfs/ctree.c:588 push_leaf_left+0x2a0/0x400 fs/btrfs/ctree.c:3339 split_leaf+0x394/0x1134 fs/btrfs/ctree.c:3534 search_leaf fs/btrfs/ctree.c:1876 [inline] btrfs_search_slot+0x21fc/0x2948 fs/btrfs/ctree.c:2061 btrfs_insert_empty_items+0xa4/0x178 fs/btrfs/ctree.c:4119 btrfs_insert_empty_item fs/btrfs/ctree.h:3133 [inline] insert_reserved_file_extent+0x52c/0xa7c fs/btrfs/inode.c:3092 insert_ordered_extent_file_extent fs/btrfs/inode.c:3190 [inline] btrfs_finish_ordered_io+0xd2c/0x16e8 fs/btrfs/inode.c:3299 finish_ordered_fn+0x20/0x30 fs/btrfs/ordered-data.c:280 btrfs_work_helper+0x31c/0xd98 fs/btrfs/async-thread.c:280 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