BUG: MAX_LOCKDEP_CHAIN_HLOCKS too low! turning off the locking correctness validator. CPU: 0 PID: 8109 Comm: syz.5.335 Not tainted 6.1.148-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 06/30/2025 Call trace: dump_backtrace+0x1c8/0x1f4 arch/arm64/kernel/stacktrace.c:158 show_stack+0x2c/0x3c arch/arm64/kernel/stacktrace.c:165 __dump_stack+0x30/0x40 lib/dump_stack.c:88 dump_stack_lvl+0xf8/0x160 lib/dump_stack.c:106 dump_stack+0x1c/0x5c lib/dump_stack.c:113 add_chain_cache kernel/locking/lockdep.c:-1 [inline] lookup_chain_cache_add kernel/locking/lockdep.c:3772 [inline] validate_chain kernel/locking/lockdep.c:3793 [inline] __lock_acquire+0x1b40/0x6544 kernel/locking/lockdep.c:5049 lock_acquire+0x20c/0x644 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] btrfs_lookup_extent_info+0x730/0xd7c fs/btrfs/extent-tree.c:229 update_ref_for_cow+0x70c/0xd28 fs/btrfs/ctree.c:309 btrfs_force_cow_block+0x808/0x187c fs/btrfs/ctree.c:464 btrfs_cow_block+0x2d0/0x710 fs/btrfs/ctree.c:616 push_leaf_left+0x228/0x400 fs/btrfs/ctree.c:3397 btrfs_del_items+0x898/0xda4 fs/btrfs/ctree.c:4415 drop_verity_items+0x260/0x3c8 fs/btrfs/verity.c:156 btrfs_drop_verity_items+0x48/0x68 fs/btrfs/verity.c:189 btrfs_orphan_cleanup+0x300/0x77c fs/btrfs/inode.c:3843 create_snapshot+0x698/0x838 fs/btrfs/ioctl.c:864 btrfs_mksubvol+0x554/0x6bc fs/btrfs/ioctl.c:1008 btrfs_mksnapshot+0xc4/0x154 fs/btrfs/ioctl.c:1054 __btrfs_ioctl_snap_create+0x310/0x3f8 fs/btrfs/ioctl.c:2218 btrfs_ioctl_snap_create_v2+0x1a4/0x38c fs/btrfs/ioctl.c:2305 btrfs_ioctl+0xa88/0xbd0 fs/btrfs/ioctl.c:-1 vfs_ioctl fs/ioctl.c:51 [inline] __do_sys_ioctl fs/ioctl.c:870 [inline] __se_sys_ioctl fs/ioctl.c:856 [inline] __arm64_sys_ioctl+0x14c/0x1c8 fs/ioctl.c:856 __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/0x138 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