loop3: detected capacity change from 0 to 262144 F2FS-fs (loop3): invalid crc value F2FS-fs (loop3): Found nat_bits in checkpoint F2FS-fs (loop3): Start checkpoint disabled! F2FS-fs (loop3): Mounted with checkpoint version = 48b305e5 ------------[ cut here ]------------ kernel BUG at fs/f2fs/segment.c:835! invalid opcode: 0000 [#1] SMP CPU: 1 PID: 2771 Comm: syz.3.16 Not tainted 5.15.179-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 02/12/2025 RIP: 0010:__locate_dirty_segment+0x1ac/0x1b0 fs/f2fs/segment.c:835 Code: 8b 87 1c 09 00 00 31 d2 f7 f1 39 f0 74 19 8b 87 6c 0a 00 00 31 d2 f7 f1 39 f0 74 0b 49 8b 40 48 89 f6 f0 48 0f ab 30 c3 0f 0b <0f> 0b 66 90 55 53 44 8b 8f dc 0d 00 00 44 8b 87 d4 0d 00 00 8b 97 RSP: 0018:ffffc9000173b9e8 EFLAGS: 00010246 RAX: 0000000000000000 RBX: ffff8881791d31b0 RCX: 0000000000000002 RDX: 0000000000000001 RSI: 0000000000000004 RDI: ffff8881689ac000 RBP: 0000000000000009 R08: ffff88810819de00 R09: ffff88810a4ec400 R10: ffff88817a023400 R11: 0000000000000000 R12: ffff8881689ac000 R13: ffff88810819de50 R14: 0000000000000200 R15: 0000000000000096 FS: 00007fd672e0b6c0(0000) GS:ffff888237d00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007fe907c12ed8 CR3: 000000017d1d8000 CR4: 00000000003506e0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: locate_dirty_segment+0xe9/0x1a0 fs/f2fs/segment.c:908 f2fs_invalidate_blocks+0x9d/0xd0 fs/f2fs/segment.c:2382 f2fs_truncate_data_blocks_range+0x14c/0x430 fs/f2fs/file.c:605 truncate_dnode+0x52/0x90 fs/f2fs/node.c:943 f2fs_truncate_inode_blocks+0x127/0x550 fs/f2fs/node.c:1155 f2fs_do_truncate_blocks+0x18d/0x440 fs/f2fs/file.c:723 f2fs_truncate_blocks+0x32/0xe0 fs/f2fs/file.c:751 f2fs_truncate fs/f2fs/file.c:803 [inline] f2fs_truncate+0xee/0x1f0 fs/f2fs/file.c:774 f2fs_setattr+0x38e/0x4e0 fs/f2fs/file.c:981 notify_change+0x3ab/0x550 fs/attr.c:505 do_truncate+0x7b/0xd0 fs/open.c:65 handle_truncate fs/namei.c:3265 [inline] do_open fs/namei.c:3612 [inline] path_openat+0x889/0xb00 fs/namei.c:3742 do_filp_open+0xa4/0x150 fs/namei.c:3769 do_sys_openat2+0x92/0x160 fs/open.c:1253 do_sys_open fs/open.c:1269 [inline] __do_sys_creat fs/open.c:1345 [inline] __se_sys_creat fs/open.c:1339 [inline] __x64_sys_creat+0x44/0x60 fs/open.c:1339 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x33/0x80 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x66/0xd0 RIP: 0033:0x7fd673391d29 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:00007fd672e0b038 EFLAGS: 00000246 ORIG_RAX: 0000000000000055 RAX: ffffffffffffffda RBX: 00007fd673581fa0 RCX: 00007fd673391d29 RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000020000000 RBP: 00007fd67340db08 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 0000000000000000 R14: 00007fd673581fa0 R15: 00007ffd11a83f48 Modules linked in: ---[ end trace 578a6af5816180ab ]--- RIP: 0010:__locate_dirty_segment+0x1ac/0x1b0 fs/f2fs/segment.c:835 Code: 8b 87 1c 09 00 00 31 d2 f7 f1 39 f0 74 19 8b 87 6c 0a 00 00 31 d2 f7 f1 39 f0 74 0b 49 8b 40 48 89 f6 f0 48 0f ab 30 c3 0f 0b <0f> 0b 66 90 55 53 44 8b 8f dc 0d 00 00 44 8b 87 d4 0d 00 00 8b 97 RSP: 0018:ffffc9000173b9e8 EFLAGS: 00010246 RAX: 0000000000000000 RBX: ffff8881791d31b0 RCX: 0000000000000002 RDX: 0000000000000001 RSI: 0000000000000004 RDI: ffff8881689ac000 RBP: 0000000000000009 R08: ffff88810819de00 R09: ffff88810a4ec400 R10: ffff88817a023400 R11: 0000000000000000 R12: ffff8881689ac000 R13: ffff88810819de50 R14: 0000000000000200 R15: 0000000000000096 FS: 00007fd672e0b6c0(0000) GS:ffff888237d00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007fe907c12ed8 CR3: 000000017d1d8000 CR4: 00000000003506e0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400