EXT4-fs error (device loop0): ext4_free_branches:1030: inode #13: comm syz.0.501: invalid indirect mapped block 1819239214 (level 0) EXT4-fs error (device loop0): ext4_free_branches:1030: inode #13: comm syz.0.501: invalid indirect mapped block 1819239214 (level 1) BUG: MAX_LOCKDEP_CHAINS too low! turning off the locking correctness validator. CPU: 1 PID: 6769 Comm: syz.0.501 Not tainted 5.15.179-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 02/12/2025 Call trace: dump_backtrace+0x0/0x530 arch/arm64/kernel/stacktrace.c:152 show_stack+0x2c/0x3c arch/arm64/kernel/stacktrace.c:216 __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 add_chain_cache kernel/locking/lockdep.c:-1 [inline] lookup_chain_cache_add kernel/locking/lockdep.c:3735 [inline] validate_chain kernel/locking/lockdep.c:3756 [inline] __lock_acquire+0x1b64/0x7638 kernel/locking/lockdep.c:5012 lock_acquire+0x240/0x77c kernel/locking/lockdep.c:5623 _raw_spin_lock_nested+0xb4/0x110 kernel/locking/spinlock.c:368 raw_spin_rq_lock_nested kernel/sched/core.c:475 [inline] raw_spin_rq_lock kernel/sched/sched.h:1326 [inline] rq_lock kernel/sched/sched.h:1621 [inline] __schedule+0x328/0x1e48 kernel/sched/core.c:6289 preempt_schedule_irq+0x90/0x274 kernel/sched/core.c:6779 arm64_preempt_schedule_irq+0x174/0x2c4 arch/arm64/kernel/entry-common.c:260 el1_interrupt+0x40/0x58 arch/arm64/kernel/entry-common.c:463 el1h_64_irq_handler+0x18/0x24 arch/arm64/kernel/entry-common.c:470 el1h_64_irq+0x78/0x7c arch/arm64/kernel/entry.S:522 preempt_count arch/arm64/include/asm/preempt.h:12 [inline] check_kcov_mode kernel/kcov.c:172 [inline] __sanitizer_cov_trace_pc+0x34/0xac kernel/kcov.c:206 walk_stackframe arch/arm64/kernel/stacktrace.c:148 [inline] arch_stack_walk+0x270/0x32c arch/arm64/kernel/stacktrace.c:238 stack_trace_save+0xfc/0x1a0 kernel/stacktrace.c:122 kasan_save_stack mm/kasan/common.c:38 [inline] kasan_set_track mm/kasan/common.c:46 [inline] set_alloc_info mm/kasan/common.c:434 [inline] __kasan_slab_alloc+0x8c/0xcc mm/kasan/common.c:467 kasan_slab_alloc include/linux/kasan.h:254 [inline] slab_post_alloc_hook+0x74/0x3f4 mm/slab.h:519 slab_alloc_node mm/slub.c:3220 [inline] slab_alloc mm/slub.c:3228 [inline] kmem_cache_alloc+0x1dc/0x45c mm/slub.c:3233 kmem_cache_zalloc include/linux/slab.h:711 [inline] ext4_init_io_end+0x30/0x120 fs/ext4/page-io.c:278 ext4_writepages+0x9f8/0x36fc fs/ext4/inode.c:2777 do_writepages+0x39c/0x5ec mm/page-writeback.c:2386 __writeback_single_inode+0x148/0x13a4 fs/fs-writeback.c:1647 writeback_single_inode+0x1c0/0x79c fs/fs-writeback.c:1760 write_inode_now+0x240/0x2d0 fs/fs-writeback.c:2800 iput_final fs/inode.c:1756 [inline] iput+0x5bc/0x824 fs/inode.c:1795 ext4_process_orphan+0x244/0x2b8 fs/ext4/orphan.c:360 ext4_orphan_cleanup+0x8bc/0x1048 fs/ext4/orphan.c:474 ext4_fill_super+0x8044/0x8768 fs/ext4/super.c:4975 mount_bdev+0x274/0x370 fs/super.c:1400 ext4_mount+0x44/0x58 fs/ext4/super.c:6603 legacy_get_tree+0xd4/0x16c fs/fs_context.c:611 vfs_get_tree+0x90/0x274 fs/super.c:1530 do_new_mount+0x278/0x8fc fs/namespace.c:3012 path_mount+0x594/0x101c fs/namespace.c:3342 do_mount fs/namespace.c:3355 [inline] __do_sys_mount fs/namespace.c:3563 [inline] __se_sys_mount fs/namespace.c:3540 [inline] __arm64_sys_mount+0x510/0x5e0 fs/namespace.c:3540 __invoke_syscall arch/arm64/kernel/syscall.c:38 [inline] invoke_syscall+0x98/0x2b8 arch/arm64/kernel/syscall.c:52 el0_svc_common+0x138/0x258 arch/arm64/kernel/syscall.c:142 do_el0_svc+0x58/0x14c arch/arm64/kernel/syscall.c:181 el0_svc+0x7c/0x1f0 arch/arm64/kernel/entry-common.c:608 el0t_64_sync_handler+0x84/0xe4 arch/arm64/kernel/entry-common.c:626 el0t_64_sync+0x1a0/0x1a4 arch/arm64/kernel/entry.S:584 EXT4-fs (loop0): 1 truncate cleaned up EXT4-fs (loop0): mounted filesystem without journal. Opts: auto_da_alloc=0x0000000000000003,,errors=continue. Quota mode: none. EXT4-fs warning (device loop0): dx_probe:833: inode #2: comm syz.0.501: Unrecognised inode hash code 20 EXT4-fs warning (device loop0): dx_probe:966: inode #2: comm syz.0.501: Corrupt directory, running e2fsck is recommended EXT4-fs error (device loop0): ext4_readdir:260: inode #2: block 13: comm syz.0.501: path /: bad entry in directory: rec_len % 4 != 0 - offset=108, inode=4294901777, rec_len=65535, size=1024 fake=0 EXT4-fs error (device loop0): htree_dirblock_to_tree:1112: inode #2: block 13: comm syz.0.501: bad entry in directory: rec_len % 4 != 0 - offset=108, inode=4294901777, rec_len=65535, size=1024 fake=0