BUG: MAX_LOCKDEP_CHAIN_HLOCKS too low! turning off the locking correctness validator. CPU: 0 PID: 190 Comm: kworker/u4:4 Not tainted 6.6.0-rc6-syzkaller-gc295ba49917a #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/06/2023 Workqueue: btrfs-endio-write 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 __raw_spin_lock include/linux/spinlock_api_smp.h:133 [inline] _raw_spin_lock+0x48/0x60 kernel/locking/spinlock.c:154 spin_lock include/linux/spinlock.h:351 [inline] btrfs_block_rsv_use_bytes fs/btrfs/block-rsv.c:301 [inline] btrfs_use_block_rsv+0x1b0/0x6e8 fs/btrfs/block-rsv.c:492 btrfs_alloc_tree_block+0x174/0x1444 fs/btrfs/extent-tree.c:4927 __btrfs_cow_block+0x3f4/0x1924 fs/btrfs/ctree.c:546 btrfs_cow_block+0x314/0xa0c fs/btrfs/ctree.c:724 push_leaf_left+0x2bc/0x4ec fs/btrfs/ctree.c:3609 split_leaf+0x394/0x119c fs/btrfs/ctree.c:3805 search_leaf fs/btrfs/ctree.c:2069 [inline] btrfs_search_slot+0x220c/0x29d8 fs/btrfs/ctree.c:2256 btrfs_csum_file_blocks+0x3d0/0x1554 fs/btrfs/file-item.c:1122 add_pending_csums fs/btrfs/inode.c:2601 [inline] btrfs_finish_one_ordered+0xf10/0x16f8 fs/btrfs/inode.c:3121 btrfs_finish_ordered_io+0xf8/0x10c fs/btrfs/inode.c:3229 finish_ordered_fn+0x20/0xa8 fs/btrfs/ordered-data.c:303 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