BTRFS info (device loop5): enabling ssd optimizations BUG: MAX_LOCKDEP_CHAIN_HLOCKS too low! turning off the locking correctness validator. CPU: 1 PID: 6364 Comm: syz.5.471 Not tainted 6.1.119-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/13/2024 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/0x58 lib/dump_stack.c:113 lookup_chain_cache_add kernel/locking/lockdep.c:3772 [inline] validate_chain kernel/locking/lockdep.c:3793 [inline] __lock_acquire+0x1b88/0x7680 kernel/locking/lockdep.c:5049 lock_acquire+0x26c/0x7cc kernel/locking/lockdep.c:5662 __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:351 [inline] insert_delayed_ref+0x48/0x7b0 fs/btrfs/delayed-ref.c:605 btrfs_add_delayed_tree_ref+0x750/0xe58 fs/btrfs/delayed-ref.c:973 btrfs_alloc_tree_block+0xd60/0x1478 fs/btrfs/extent-tree.c:5056 __btrfs_cow_block+0x3f4/0x1824 fs/btrfs/ctree.c:441 btrfs_cow_block+0x314/0xaa4 fs/btrfs/ctree.c:613 btrfs_search_slot+0xb7c/0x2948 btrfs_update_root+0xec/0xad0 fs/btrfs/root-tree.c:132 commit_fs_roots+0x430/0x65c fs/btrfs/transaction.c:1462 btrfs_commit_transaction+0x1168/0x2cd4 fs/btrfs/transaction.c:2402 try_flush_qgroup+0x230/0x31c fs/btrfs/qgroup.c:3761 __btrfs_qgroup_reserve_meta+0x78/0xd4 fs/btrfs/qgroup.c:4058 btrfs_qgroup_reserve_meta_prealloc fs/btrfs/qgroup.h:384 [inline] start_transaction+0x25c/0x1110 fs/btrfs/transaction.c:590 btrfs_start_transaction+0x34/0x44 fs/btrfs/transaction.c:764 btrfs_setsize fs/btrfs/inode.c:5245 [inline] btrfs_setattr+0x4d0/0xf30 fs/btrfs/inode.c:5316 notify_change+0xb58/0xe1c fs/attr.c:499 do_truncate+0x1c0/0x28c fs/open.c:65 do_sys_ftruncate+0x288/0x31c fs/open.c:193 __do_sys_ftruncate fs/open.c:204 [inline] __se_sys_ftruncate fs/open.c:202 [inline] __arm64_sys_ftruncate+0x60/0x74 fs/open.c:202 __invoke_syscall arch/arm64/kernel/syscall.c:38 [inline] invoke_syscall+0x98/0x2bc arch/arm64/kernel/syscall.c:52 el0_svc_common+0x138/0x258 arch/arm64/kernel/syscall.c:140 do_el0_svc+0x58/0x13c arch/arm64/kernel/syscall.c:204 el0_svc+0x58/0x168 arch/arm64/kernel/entry-common.c:637 el0t_64_sync_handler+0x84/0xf0 arch/arm64/kernel/entry-common.c:655 el0t_64_sync+0x18c/0x190 arch/arm64/kernel/entry.S:585