BUG: MAX_LOCKDEP_CHAIN_HLOCKS too low! turning off the locking correctness validator. CPU: 0 UID: 0 PID: 38 Comm: kworker/u8:2 Not tainted 6.12.0-rc6-syzkaller-g46f782153ea2 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/13/2024 Workqueue: btrfs-endio-write btrfs_work_helper Call trace: show_stack+0x2c/0x3c arch/arm64/kernel/stacktrace.c:484 (C) __dump_stack lib/dump_stack.c:94 [inline] dump_stack_lvl+0xe4/0x150 lib/dump_stack.c:120 dump_stack+0x1c/0x28 lib/dump_stack.c:129 lookup_chain_cache_add kernel/locking/lockdep.c:3851 [inline] validate_chain kernel/locking/lockdep.c:3872 [inline] __lock_acquire+0x1fb8/0x77c8 kernel/locking/lockdep.c:5202 lock_acquire+0x240/0x728 kernel/locking/lockdep.c:5825 __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] find_free_extent_unclustered fs/btrfs/extent-tree.c:3768 [inline] do_allocation_clustered fs/btrfs/extent-tree.c:3804 [inline] do_allocation fs/btrfs/extent-tree.c:4006 [inline] find_free_extent+0x3268/0x4c44 fs/btrfs/extent-tree.c:4541 btrfs_reserve_extent+0x35c/0x674 fs/btrfs/extent-tree.c:4695 btrfs_alloc_tree_block+0x1a8/0x12d4 fs/btrfs/extent-tree.c:5150 btrfs_force_cow_block+0x4e4/0x1c9c fs/btrfs/ctree.c:573 btrfs_cow_block+0x318/0xa28 fs/btrfs/ctree.c:754 btrfs_search_slot+0xba0/0x2a08 btrfs_lookup_csum+0x164/0x500 fs/btrfs/file-item.c:219 btrfs_csum_file_blocks+0x29c/0x1548 fs/btrfs/file-item.c:1082 add_pending_csums fs/btrfs/inode.c:2639 [inline] btrfs_finish_one_ordered+0x8ac/0x13cc fs/btrfs/inode.c:3173 btrfs_finish_ordered_io+0x120/0x134 fs/btrfs/inode.c:3295 finish_ordered_fn+0x20/0x30 fs/btrfs/ordered-data.c:331 btrfs_work_helper+0x340/0xd28 fs/btrfs/async-thread.c:314 process_one_work+0x7bc/0x1600 kernel/workqueue.c:3229 process_scheduled_works kernel/workqueue.c:3310 [inline] worker_thread+0x97c/0xeec kernel/workqueue.c:3391 kthread+0x288/0x310 kernel/kthread.c:389 ret_from_fork+0x10/0x20 arch/arm64/kernel/entry.S:862