BTRFS info (device loop6): enabling ssd optimizations BUG: MAX_LOCKDEP_CHAINS too low! turning off the locking correctness validator. CPU: 1 PID: 8150 Comm: syz.6.754 Not tainted 6.1.118-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/0x5c 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 local_lock_acquire+0x3c/0x98 include/linux/local_lock_internal.h:29 ___slab_alloc+0x1c8/0xee0 mm/slub.c:3099 __slab_alloc mm/slub.c:3279 [inline] slab_alloc_node mm/slub.c:3364 [inline] __kmem_cache_alloc_node+0x2c8/0x388 mm/slub.c:3437 kmalloc_trace+0x48/0x94 mm/slab_common.c:1026 kmalloc include/linux/slab.h:557 [inline] kzalloc include/linux/slab.h:693 [inline] btrfs_cache_block_group+0xec/0x688 fs/btrfs/block-group.c:773 find_free_extent+0x2c60/0x48c0 fs/btrfs/extent-tree.c:4430 btrfs_reserve_extent+0x364/0x680 fs/btrfs/extent-tree.c:4604 btrfs_alloc_tree_block+0x1b4/0x1478 fs/btrfs/extent-tree.c:5017 __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_insert_empty_items+0xa4/0x178 fs/btrfs/ctree.c:4173 btrfs_insert_empty_item fs/btrfs/ctree.h:3132 [inline] insert_with_overflow+0x138/0x378 fs/btrfs/dir-item.c:32 btrfs_insert_dir_item+0x1d8/0x4f8 fs/btrfs/dir-item.c:132 btrfs_add_link+0x224/0xb00 fs/btrfs/inode.c:6697 btrfs_create_new_inode+0x16a0/0x2448 fs/btrfs/inode.c:6638 btrfs_create_common+0x1bc/0x2b8 fs/btrfs/inode.c:6773 btrfs_create+0x104/0x128 fs/btrfs/inode.c:6813 lookup_open fs/namei.c:3482 [inline] open_last_lookups fs/namei.c:3550 [inline] path_openat+0xeac/0x2548 fs/namei.c:3780 do_filp_open+0x1bc/0x3cc fs/namei.c:3810 do_sys_openat2+0x128/0x3e0 fs/open.c:1318 do_sys_open fs/open.c:1334 [inline] __do_sys_openat fs/open.c:1350 [inline] __se_sys_openat fs/open.c:1345 [inline] __arm64_sys_openat+0x1f0/0x240 fs/open.c:1345 __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