F2FS-fs (loop6): Mounted with checkpoint version = 48b305e5 F2FS-fs (loop6): inject too big dir depth in f2fs_add_regular_entry of f2fs_add_dentry+0xda/0x1d0 fs/f2fs/dir.c:771 F2FS-fs (loop6): inject invalid blkaddr in f2fs_is_valid_blkaddr of do_write_page+0x277/0xb10 fs/f2fs/segment.c:3956 ------------[ cut here ]------------ kernel BUG at fs/f2fs/segment.c:3957! Oops: invalid opcode: 0000 [#1] SMP KASAN PTI CPU: 0 UID: 0 PID: 7784 Comm: syz.6.303 Not tainted 6.16.0-rc4-next-20250630-syzkaller #0 PREEMPT(full) Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 05/07/2025 RIP: 0010:do_write_page+0xa44/0xb10 fs/f2fs/segment.c:3956 Code: c2 5a ad fd 49 89 ed 48 89 e8 48 25 ff 0f 00 00 74 1a e8 cf 55 ad fd e9 9f 00 00 00 e8 c5 55 ad fd 90 0f 0b e8 bd 55 ad fd 90 <0f> 0b 4d 89 ee 4c 89 ef be 08 00 00 00 e8 1a 6c 11 fe 49 c1 ee 03 RSP: 0018:ffffc90004576bb8 EFLAGS: 00010287 RAX: ffffffff841275d3 RBX: ffffc90004576ea0 RCX: 0000000000080000 RDX: ffffc9000b689000 RSI: 00000000000050a2 RDI: 00000000000050a3 RBP: ffffc90004576ebc R08: ffffc90004576747 R09: 1ffff920008aece8 R10: dffffc0000000000 R11: fffff520008aece9 R12: ffff888021328000 R13: 1ffff920008aedd7 R14: dffffc0000000000 R15: ffffc90004576ebc FS: 00007f5df0e156c0(0000) GS:ffff888125c1d000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 000055af69b37950 CR3: 000000006cfb2000 CR4: 00000000003526f0 Call Trace: f2fs_outplace_write_data+0x11a/0x220 fs/f2fs/segment.c:4017 f2fs_do_write_data_page+0x12ea/0x1a40 fs/f2fs/data.c:2752 f2fs_write_single_data_page+0x9f1/0x1680 fs/f2fs/data.c:2868 f2fs_write_cache_pages fs/f2fs/data.c:3133 [inline] __f2fs_write_data_pages fs/f2fs/data.c:3282 [inline] f2fs_write_data_pages+0x195b/0x3000 fs/f2fs/data.c:3309 do_writepages+0x32e/0x550 mm/page-writeback.c:2636 filemap_fdatawrite_wbc mm/filemap.c:386 [inline] __filemap_fdatawrite_range mm/filemap.c:419 [inline] file_write_and_wait_range+0x23e/0x340 mm/filemap.c:794 f2fs_do_sync_file+0x5e0/0x1860 fs/f2fs/file.c:294 generic_write_sync include/linux/fs.h:3033 [inline] f2fs_file_write_iter+0x74d/0x2410 fs/f2fs/file.c:5241 new_sync_write fs/read_write.c:593 [inline] vfs_write+0x548/0xa90 fs/read_write.c:686 ksys_pwrite64 fs/read_write.c:793 [inline] __do_sys_pwrite64 fs/read_write.c:801 [inline] __se_sys_pwrite64 fs/read_write.c:798 [inline] __x64_sys_pwrite64+0x193/0x220 fs/read_write.c:798 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0xfa/0x3b0 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7f5deff8e929 Code: ff ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 00 48 89 f8 48 89 f7 48 89 d6 48 89 ca 4d 89 c2 4d 89 c8 4c 8b 4c 24 08 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 c7 c1 a8 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007f5df0e15038 EFLAGS: 00000246 ORIG_RAX: 0000000000000012 RAX: ffffffffffffffda RBX: 00007f5df01b5fa0 RCX: 00007f5deff8e929 RDX: 000000000000fdef RSI: 0000200000000140 RDI: 0000000000000004 RBP: 00007f5df0010b39 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000e7c R11: 0000000000000246 R12: 0000000000000000 R13: 0000000000000000 R14: 00007f5df01b5fa0 R15: 00007ffd37c6d708 Modules linked in: ---[ end trace 0000000000000000 ]--- RIP: 0010:do_write_page+0xa44/0xb10 fs/f2fs/segment.c:3956 Code: c2 5a ad fd 49 89 ed 48 89 e8 48 25 ff 0f 00 00 74 1a e8 cf 55 ad fd e9 9f 00 00 00 e8 c5 55 ad fd 90 0f 0b e8 bd 55 ad fd 90 <0f> 0b 4d 89 ee 4c 89 ef be 08 00 00 00 e8 1a 6c 11 fe 49 c1 ee 03 RSP: 0018:ffffc90004576bb8 EFLAGS: 00010287 RAX: ffffffff841275d3 RBX: ffffc90004576ea0 RCX: 0000000000080000 RDX: ffffc9000b689000 RSI: 00000000000050a2 RDI: 00000000000050a3 RBP: ffffc90004576ebc R08: ffffc90004576747 R09: 1ffff920008aece8 R10: dffffc0000000000 R11: fffff520008aece9 R12: ffff888021328000 R13: 1ffff920008aedd7 R14: dffffc0000000000 R15: ffffc90004576ebc FS: 00007f5df0e156c0(0000) GS:ffff888125c1d000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007fb503e67000 CR3: 000000006cfb2000 CR4: 00000000003526f0