BUG: MAX_LOCKDEP_CHAIN_HLOCKS too low! turning off the locking correctness validator. CPU: 0 PID: 153 Comm: kworker/u8:4 Not tainted 6.9.0-rc4-syzkaller-g6a71d2909427 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 03/27/2024 Workqueue: btrfs-endio-write btrfs_work_helper Call trace: dump_backtrace+0x1b8/0x1e4 arch/arm64/kernel/stacktrace.c:317 show_stack+0x2c/0x3c arch/arm64/kernel/stacktrace.c:324 __dump_stack lib/dump_stack.c:88 [inline] dump_stack_lvl+0xe4/0x150 lib/dump_stack.c:114 dump_stack+0x1c/0x28 lib/dump_stack.c:123 lookup_chain_cache_add kernel/locking/lockdep.c:3816 [inline] validate_chain kernel/locking/lockdep.c:3837 [inline] __lock_acquire+0x1c58/0x763c kernel/locking/lockdep.c:5137 lock_acquire+0x248/0x73c kernel/locking/lockdep.c:5754 __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] insert_delayed_ref+0x64/0x854 fs/btrfs/delayed-ref.c:694 btrfs_add_delayed_tree_ref+0x75c/0xd14 fs/btrfs/delayed-ref.c:1126 btrfs_alloc_tree_block+0xc44/0x11e8 fs/btrfs/extent-tree.c:5214 btrfs_force_cow_block+0x4c0/0x1a58 fs/btrfs/ctree.c:571 btrfs_cow_block+0x318/0xa3c fs/btrfs/ctree.c:749 btrfs_search_slot+0xba0/0x2a00 btrfs_lookup_file_extent+0x124/0x1bc fs/btrfs/file-item.c:266 btrfs_drop_extents+0x364/0x299c fs/btrfs/file.c:252 insert_reserved_file_extent+0x2b4/0xa6c fs/btrfs/inode.c:2927 insert_ordered_extent_file_extent+0x350/0x510 fs/btrfs/inode.c:3034 btrfs_finish_one_ordered+0x6c4/0x13ec fs/btrfs/inode.c:3142 btrfs_finish_ordered_io+0x124/0x138 fs/btrfs/inode.c:3286 finish_ordered_fn+0x20/0xa8 fs/btrfs/ordered-data.c:302 btrfs_work_helper+0x37c/0xda4 fs/btrfs/async-thread.c:314 process_one_work+0x7b8/0x15d4 kernel/workqueue.c:3254 process_scheduled_works kernel/workqueue.c:3335 [inline] worker_thread+0x938/0xef4 kernel/workqueue.c:3416 kthread+0x288/0x310 kernel/kthread.c:388 ret_from_fork+0x10/0x20 arch/arm64/kernel/entry.S:860