F2FS-fs (loop2): Wrong segment_count / block_count (2097183 > 16384) F2FS-fs (loop2): Can't find valid F2FS filesystem in 1th superblock F2FS-fs (loop2): invalid crc value ------------[ cut here ]------------ kernel BUG at fs/f2fs/segment.c:2075! invalid opcode: 0000 [#1] PREEMPT SMP KASAN CPU: 0 PID: 31933 Comm: syz-executor.2 Not tainted 4.19.211-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/21/2023 RIP: 0010:update_sit_entry+0x100a/0x1300 fs/f2fs/segment.c:2075 Code: ff df 48 c1 ea 03 80 3c 02 00 0f 85 d7 02 00 00 48 8b 7d 00 44 89 f1 48 c7 c2 e0 4b a8 88 48 c7 c6 a0 4a a8 88 e8 06 7b f6 ff <0f> 0b 4c 89 ff e8 cc 60 7b fe e9 61 f1 ff ff 48 89 df e8 2f 60 7b RSP: 0018:ffff88804c446ad8 EFLAGS: 00010282 RAX: 0000000000000000 RBX: ffff88808d13e250 RCX: ffffc90008e2f000 RDX: 000000000000287e RSI: ffffffff83137d7e RDI: 0000000000000005 RBP: ffff88808d341b40 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000005 R11: 0000000000000000 R12: 0000000000000080 R13: 00000000ffffffff R14: 0000000000001600 R15: 0000000000000000 FS: 00007fb12da63700(0000) GS:ffff8880ba000000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000557f53c1d8c8 CR3: 0000000098777000 CR4: 00000000003406f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: f2fs_allocate_data_block+0x5f3/0x1e10 fs/f2fs/segment.c:2936 do_write_page+0x2de/0x670 fs/f2fs/segment.c:3003 f2fs_outplace_write_data+0x163/0x3c0 fs/f2fs/segment.c:3066 f2fs_do_write_data_page+0x1761/0x2950 fs/f2fs/data.c:1838 __write_data_page+0x1eaf/0x22d0 fs/f2fs/data.c:1920 f2fs_write_cache_pages+0x96e/0x13e0 fs/f2fs/data.c:2107 __f2fs_write_data_pages fs/f2fs/data.c:2217 [inline] f2fs_write_data_pages+0xcc3/0x1060 fs/f2fs/data.c:2244 do_writepages+0xe5/0x290 mm/page-writeback.c:2344 __filemap_fdatawrite_range+0x27d/0x350 mm/filemap.c:446 f2fs_sync_dirty_inodes+0x220/0xdf0 fs/f2fs/checkpoint.c:1034 block_operations+0x149/0x7d0 fs/f2fs/checkpoint.c:1121 f2fs_write_checkpoint+0x2d3/0x5050 fs/f2fs/checkpoint.c:1480 f2fs_sync_fs+0x285/0x530 fs/f2fs/super.c:1109 f2fs_create+0x43b/0x930 fs/f2fs/namei.c:305 lookup_open+0x893/0x1a20 fs/namei.c:3235 do_last fs/namei.c:3327 [inline] path_openat+0x1094/0x2df0 fs/namei.c:3537 do_filp_open+0x18c/0x3f0 fs/namei.c:3567 do_sys_open+0x3b3/0x520 fs/open.c:1085 do_syscall_64+0xf9/0x620 arch/x86/entry/common.c:293 entry_SYSCALL_64_after_hwframe+0x49/0xbe RIP: 0033:0x7fb12f4f10f9 Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 f1 19 00 00 90 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 b8 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007fb12da63168 EFLAGS: 00000246 ORIG_RAX: 0000000000000002 RAX: ffffffffffffffda RBX: 00007fb12f610f80 RCX: 00007fb12f4f10f9 RDX: 0000000000000000 RSI: 000000000014da42 RDI: 00000000200000c0 RBP: 00007fb12f54cae9 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007ffe506debaf R14: 00007fb12da63300 R15: 0000000000022000 Modules linked in: x_tables: duplicate underflow at hook 2 ---[ end trace 8ce0b0ed010ff714 ]--- RIP: 0010:update_sit_entry+0x100a/0x1300 fs/f2fs/segment.c:2075 Code: ff df 48 c1 ea 03 80 3c 02 00 0f 85 d7 02 00 00 48 8b 7d 00 44 89 f1 48 c7 c2 e0 4b a8 88 48 c7 c6 a0 4a a8 88 e8 06 7b f6 ff <0f> 0b 4c 89 ff e8 cc 60 7b fe e9 61 f1 ff ff 48 89 df e8 2f 60 7b RSP: 0018:ffff88804c446ad8 EFLAGS: 00010282 RAX: 0000000000000000 RBX: ffff88808d13e250 RCX: ffffc90008e2f000 RDX: 000000000000287e RSI: ffffffff83137d7e RDI: 0000000000000005 RBP: ffff88808d341b40 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000005 R11: 0000000000000000 R12: 0000000000000080 R13: 00000000ffffffff R14: 0000000000001600 R15: 0000000000000000 FS: 00007fb12da63700(0000) GS:ffff8880ba100000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000557f53c2f8e0 CR3: 0000000098777000 CR4: 00000000003406e0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400