bcachefs (loop3): done initializing freespace bcachefs (loop3): reading snapshots table bcachefs (loop3): reading snapshots done bcachefs (loop3): done starting filesystem BUG: MAX_LOCKDEP_CHAINS too low! turning off the locking correctness validator. CPU: 1 UID: 0 PID: 8244 Comm: syz.3.246 Not tainted 6.17.0-rc1-syzkaller-g8f5ae30d69d7 #0 PREEMPT Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 06/30/2025 Call trace: show_stack+0x2c/0x3c arch/arm64/kernel/stacktrace.c:499 (C) __dump_stack+0x30/0x40 lib/dump_stack.c:94 dump_stack_lvl+0xd8/0x12c lib/dump_stack.c:120 dump_stack+0x1c/0x28 lib/dump_stack.c:129 add_chain_cache kernel/locking/lockdep.c:-1 [inline] lookup_chain_cache_add kernel/locking/lockdep.c:3855 [inline] validate_chain kernel/locking/lockdep.c:3876 [inline] __lock_acquire+0xf9c/0x30a4 kernel/locking/lockdep.c:5237 lock_acquire+0x14c/0x2e0 kernel/locking/lockdep.c:5868 __raw_spin_lock_irqsave include/linux/spinlock_api_smp.h:110 [inline] _raw_spin_lock_irqsave+0x5c/0x7c kernel/locking/spinlock.c:162 stack_depot_save_flags+0x1f4/0x6dc lib/stackdepot.c:690 kasan_save_stack mm/kasan/common.c:48 [inline] kasan_save_track+0x54/0x78 mm/kasan/common.c:68 kasan_save_alloc_info+0x44/0x54 mm/kasan/generic.c:562 poison_kmalloc_redzone mm/kasan/common.c:388 [inline] __kasan_kmalloc+0x9c/0xb4 mm/kasan/common.c:405 kasan_kmalloc include/linux/kasan.h:260 [inline] __do_kmalloc_node mm/slub.c:4365 [inline] __kmalloc_node_track_caller_noprof+0x304/0x4d0 mm/slub.c:4384 __do_krealloc mm/slub.c:4942 [inline] krealloc_noprof+0x11c/0x2f0 mm/slub.c:4995 bch2_printbuf_make_room+0x19c/0x2e0 fs/bcachefs/printbuf.c:59 bch2_prt_printf+0x1fc/0x598 fs/bcachefs/printbuf.c:186 bch2_btree_path_to_text_short+0x184/0xb48 fs/bcachefs/btree_iter.c:1516 __bch2_trans_paths_to_text+0xc8/0x168 fs/bcachefs/btree_iter.c:1589 bch2_trans_paths_to_text+0x2c/0x3c fs/bcachefs/btree_iter.c:1597 bch2_trans_update_max_paths+0x144/0x2dc fs/bcachefs/btree_iter.c:1625 btree_path_alloc+0x61c/0x7cc fs/bcachefs/btree_iter.c:1722 bch2_path_get+0x5f4/0xf54 fs/bcachefs/btree_iter.c:1778 bch2_trans_iter_init_common fs/bcachefs/btree_iter.h:529 [inline] bch2_trans_iter_init_outlined+0x1f8/0x36c fs/bcachefs/btree_iter.c:3126 bch2_trans_iter_init fs/bcachefs/btree_iter.h:547 [inline] __bch2_bkey_get_iter fs/bcachefs/btree_iter.h:631 [inline] bch2_bkey_get_iter+0xd0/0x194 fs/bcachefs/btree_iter.h:646 may_delete_deleted_inode+0x130/0xb2c fs/bcachefs/inode.c:1413 may_delete_deleted_inum fs/bcachefs/inode.c:1515 [inline] bch2_inode_rm+0x134/0x4e0 fs/bcachefs/inode.c:1134 bch2_evict_inode+0x1b4/0x444 fs/bcachefs/fs.c:2182 evict+0x414/0x928 fs/inode.c:810 iput_final fs/inode.c:1897 [inline] iput+0x6e4/0x83c fs/inode.c:1923 dentry_unlink_inode+0x384/0x45c fs/dcache.c:466 __dentry_kill+0x170/0x594 fs/dcache.c:669 dput+0x1b8/0x290 fs/dcache.c:911 ovl_check_rename_whiteout fs/overlayfs/super.c:604 [inline] ovl_make_workdir fs/overlayfs/super.c:704 [inline] ovl_get_workdir+0x8cc/0x1280 fs/overlayfs/super.c:827 ovl_fill_super+0xff4/0x2c38 fs/overlayfs/super.c:1406 vfs_get_super fs/super.c:1325 [inline] get_tree_nodev+0xb4/0x144 fs/super.c:1344 ovl_get_tree+0x28/0x38 fs/overlayfs/params.c:699 vfs_get_tree+0x90/0x28c fs/super.c:1815 do_new_mount+0x278/0x7f4 fs/namespace.c:3805 path_mount+0x5b4/0xde0 fs/namespace.c:4120 do_mount fs/namespace.c:4133 [inline] __do_sys_mount fs/namespace.c:4344 [inline] __se_sys_mount fs/namespace.c:4321 [inline] __arm64_sys_mount+0x3e8/0x468 fs/namespace.c:4321 __invoke_syscall arch/arm64/kernel/syscall.c:35 [inline] invoke_syscall+0x98/0x2b8 arch/arm64/kernel/syscall.c:49 el0_svc_common+0x130/0x23c arch/arm64/kernel/syscall.c:132 do_el0_svc+0x48/0x58 arch/arm64/kernel/syscall.c:151 el0_svc+0x58/0x180 arch/arm64/kernel/entry-common.c:879 el0t_64_sync_handler+0x84/0x12c arch/arm64/kernel/entry-common.c:898 el0t_64_sync+0x198/0x19c arch/arm64/kernel/entry.S:596