BTRFS info (device loop1): relocating block group 5242880 flags data|metadata BUG: MAX_LOCKDEP_CHAIN_HLOCKS too low! turning off the locking correctness validator. CPU: 1 PID: 7082 Comm: syz.1.416 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 rcu_note_context_switch+0x2a8/0x1048 kernel/rcu/tree_plugin.h:326 __schedule+0x2b0/0x1d44 kernel/sched/core.c:6457 preempt_schedule_irq+0x8c/0x1b8 kernel/sched/core.c:6870 arm64_preempt_schedule_irq arch/arm64/kernel/entry-common.c:265 [inline] __el1_irq arch/arm64/kernel/entry-common.c:474 [inline] el1_interrupt+0x4c/0x68 arch/arm64/kernel/entry-common.c:486 el1h_64_irq_handler+0x18/0x24 arch/arm64/kernel/entry-common.c:491 el1h_64_irq+0x64/0x68 arch/arm64/kernel/entry.S:581 arch_local_irq_restore+0x8/0x10 arch/arm64/include/asm/irqflags.h:122 lock_is_held include/linux/lockdep.h:283 [inline] rcu_read_lock_held+0x34/0x50 kernel/rcu/update.c:311 xa_entry include/linux/xarray.h:1198 [inline] xas_descend+0x104/0x40c lib/xarray.c:204 xas_load+0xa4/0x140 lib/xarray.c:242 mapping_get_entry mm/filemap.c:1881 [inline] __filemap_get_folio+0x200/0xb6c mm/filemap.c:1943 pagecache_get_page+0x3c/0x16c mm/folio-compat.c:110 find_or_create_page include/linux/pagemap.h:646 [inline] alloc_extent_buffer+0x214/0x114c fs/btrfs/extent_io.c:4610 btrfs_find_create_tree_block+0x3c/0x50 fs/btrfs/disk-io.c:915 btrfs_init_new_buffer fs/btrfs/extent-tree.c:4903 [inline] btrfs_alloc_tree_block+0x21c/0x1478 fs/btrfs/extent-tree.c:5022 __btrfs_cow_block+0x3f4/0x1824 fs/btrfs/ctree.c:441 btrfs_cow_block+0x314/0xaa4 fs/btrfs/ctree.c:613 push_leaf_left+0x2c0/0x4ec fs/btrfs/ctree.c:3392 split_leaf+0x394/0x1134 fs/btrfs/ctree.c:3588 search_leaf fs/btrfs/ctree.c:1926 [inline] btrfs_search_slot+0x21fc/0x2948 fs/btrfs/ctree.c:2111 btrfs_insert_empty_items fs/btrfs/ctree.c:4173 [inline] btrfs_insert_empty_item fs/btrfs/ctree.h:3132 [inline] btrfs_insert_item+0x170/0x368 fs/btrfs/ctree.c:4202 btrfs_insert_root+0xa4/0x13c fs/btrfs/root-tree.c:202 create_reloc_root+0x574/0x8fc fs/btrfs/relocation.c:805 btrfs_init_reloc_root+0x280/0x40c fs/btrfs/relocation.c:882 record_root_in_trans+0x268/0x370 fs/btrfs/transaction.c:441 btrfs_record_root_in_trans+0x128/0x154 fs/btrfs/transaction.c:487 select_reloc_root+0x20c/0xd74 fs/btrfs/relocation.c:2189 do_relocation+0x2b4/0x18bc fs/btrfs/relocation.c:2417 relocate_tree_block fs/btrfs/relocation.c:2740 [inline] relocate_tree_blocks+0xcb4/0x17cc fs/btrfs/relocation.c:2795 relocate_block_group+0x504/0xac4 fs/btrfs/relocation.c:3687 btrfs_relocate_block_group+0x5a8/0x98c fs/btrfs/relocation.c:4094 btrfs_relocate_chunk+0x118/0x368 fs/btrfs/volumes.c:3312 __btrfs_balance+0x1468/0x1dc8 fs/btrfs/volumes.c:4060 btrfs_balance+0xa38/0xe40 fs/btrfs/volumes.c:4436 btrfs_ioctl_balance+0x3e4/0x778 fs/btrfs/ioctl.c:4511 btrfs_ioctl+0x72c/0xb08 fs/btrfs/ioctl.c:5550 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/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 BTRFS info (device loop1): found 12 extents, stage: move data extents BTRFS info (device loop1): found 1 extents, stage: update data pointers BTRFS info (device loop1): balance: ended with status: 0