F2FS-fs (loop4): invalid crc value F2FS-fs (loop4): Found nat_bits in checkpoint F2FS-fs (loop4): Mounted with checkpoint version = 753bd00b F2FS-fs (loop4): Bitmap was wrongly cleared, blk:5634 ------------[ cut here ]------------ kernel BUG at fs/f2fs/segment.c:2075! invalid opcode: 0000 [#1] PREEMPT SMP KASAN CPU: 0 PID: 12173 Comm: syz-executor.4 Not tainted 4.19.211-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/26/2022 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:ffff8880493f6ad8 EFLAGS: 00010282 RAX: 0000000000000000 RBX: ffff8880b43cec50 RCX: ffffc90008a45000 RDX: 0000000000012d71 RSI: ffffffff83137d7e RDI: ffffed100927ed2d RBP: ffff88808e91c3c0 R08: 0000000000000035 R09: 0000000000000000 R10: 0000000000000005 R11: 0000000000000000 R12: 0000000000000020 R13: 00000000ffffffff R14: 0000000000001602 R15: 0000000000000000 FS: 00007fafce8ef700(0000) GS:ffff8880ba000000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007fafd03a1d50 CR3: 00000000978ec000 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:0x7fafd037d0a9 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:00007fafce8ef168 EFLAGS: 00000246 ORIG_RAX: 0000000000000055 RAX: ffffffffffffffda RBX: 00007fafd049cf80 RCX: 00007fafd037d0a9 RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000020000080 RBP: 00007fafd03d8ae9 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007ffc2ae567ff R14: 00007fafce8ef300 R15: 0000000000022000 Modules linked in: ---[ end trace da20c8988ed6c1c1 ]--- 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:ffff8880493f6ad8 EFLAGS: 00010282 RAX: 0000000000000000 RBX: ffff8880b43cec50 RCX: ffffc90008a45000 RDX: 0000000000012d71 RSI: ffffffff83137d7e RDI: ffffed100927ed2d RBP: ffff88808e91c3c0 R08: 0000000000000035 R09: 0000000000000000 R10: 0000000000000005 R11: 0000000000000000 R12: 0000000000000020 R13: 00000000ffffffff R14: 0000000000001602 R15: 0000000000000000 FS: 00007fafce8ef700(0000) GS:ffff8880ba000000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 F2FS-fs (loop1): Invalid log sectors per block(2411855875) log sectorsize(9) CR2: 00007fafd03a1d50 CR3: 00000000978ec000 CR4: 00000000003406f0 F2FS-fs (loop1): Can't find valid F2FS filesystem in 1th superblock DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 F2FS-fs (loop1): invalid crc value DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 F2FS-fs (loop1): Found nat_bits in checkpoint