F2FS-fs (loop0): invalid crc value F2FS-fs (loop0): Found nat_bits in checkpoint F2FS-fs (loop0): Start checkpoint disabled! F2FS-fs (loop0): Mounted with checkpoint version = 48b305e5 ------------[ cut here ]------------ kernel BUG at fs/f2fs/segment.c:757! invalid opcode: 0000 [#1] PREEMPT SMP KASAN CPU: 1 PID: 5073 Comm: syz.0.16 Not tainted 6.1.123-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/13/2024 RIP: 0010:__locate_dirty_segment+0xba1/0xbb0 fs/f2fs/segment.c:756 Code: ff 89 d9 80 e1 07 80 c1 03 38 c1 0f 8c 0f fd ff ff 48 89 df e8 10 ea 04 fe e9 02 fd ff ff e8 06 56 ad fd 0f 0b e8 ff 55 ad fd <0f> 0b e8 f8 55 ad fd 0f 0b 66 0f 1f 44 00 00 55 41 57 41 56 41 55 RSP: 0018:ffffc900039271f8 EFLAGS: 00010293 RAX: ffffffff83dd4601 RBX: ffff88807528c8f0 RCX: ffff8880308d1dc0 RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000000 RBP: 0000000000000000 R08: ffffffff83dd4002 R09: ffffed1003bf824c R10: 0000000000000000 R11: dffffc0000000001 R12: ffff88802add1410 R13: 1ffff1100c56682d R14: 0000000000000004 R15: ffff888062b34168 FS: 00007f776bbf66c0(0000) GS:ffff8880b8f00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f776ad69160 CR3: 0000000029cdb000 CR4: 00000000003506e0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: locate_dirty_segment+0x43f/0x5a0 fs/f2fs/segment.c:829 f2fs_invalidate_blocks+0x2b2/0x3a0 fs/f2fs/segment.c:2304 f2fs_truncate_data_blocks_range+0x5f6/0xe50 fs/f2fs/file.c:641 truncate_dnode fs/f2fs/node.c:950 [inline] f2fs_truncate_inode_blocks+0x899/0xe50 fs/f2fs/node.c:1162 f2fs_do_truncate_blocks+0x605/0xd50 fs/f2fs/file.c:759 f2fs_truncate_blocks+0x109/0x2f0 fs/f2fs/file.c:787 f2fs_truncate+0x3de/0x7d0 fs/f2fs/file.c:839 f2fs_setattr+0xc34/0x1260 fs/f2fs/file.c:1057 notify_change+0xce3/0xfc0 fs/attr.c:499 do_truncate+0x21c/0x300 fs/open.c:65 handle_truncate fs/namei.c:3285 [inline] do_open fs/namei.c:3630 [inline] path_openat+0x27e2/0x2e60 fs/namei.c:3783 do_filp_open+0x230/0x480 fs/namei.c:3810 do_sys_openat2+0x13b/0x4f0 fs/open.c:1318 do_sys_open fs/open.c:1334 [inline] __do_sys_creat fs/open.c:1412 [inline] __se_sys_creat fs/open.c:1406 [inline] __x64_sys_creat+0x11f/0x160 fs/open.c:1406 do_syscall_x64 arch/x86/entry/common.c:51 [inline] do_syscall_64+0x3b/0xb0 arch/x86/entry/common.c:81 entry_SYSCALL_64_after_hwframe+0x68/0xd2 RIP: 0033:0x7f776ad85d29 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:00007f776bbf6038 EFLAGS: 00000246 ORIG_RAX: 0000000000000055 RAX: ffffffffffffffda RBX: 00007f776af75fa0 RCX: 00007f776ad85d29 RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000020000000 RBP: 00007f776ae01b08 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 0000000000000000 R14: 00007f776af75fa0 R15: 00007ffef1c3b418 Modules linked in: ---[ end trace 0000000000000000 ]--- RIP: 0010:__locate_dirty_segment+0xba1/0xbb0 fs/f2fs/segment.c:756 Code: ff 89 d9 80 e1 07 80 c1 03 38 c1 0f 8c 0f fd ff ff 48 89 df e8 10 ea 04 fe e9 02 fd ff ff e8 06 56 ad fd 0f 0b e8 ff 55 ad fd <0f> 0b e8 f8 55 ad fd 0f 0b 66 0f 1f 44 00 00 55 41 57 41 56 41 55 RSP: 0018:ffffc900039271f8 EFLAGS: 00010293 RAX: ffffffff83dd4601 RBX: ffff88807528c8f0 RCX: ffff8880308d1dc0 RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000000 RBP: 0000000000000000 R08: ffffffff83dd4002 R09: ffffed1003bf824c R10: 0000000000000000 R11: dffffc0000000001 R12: ffff88802add1410 R13: 1ffff1100c56682d R14: 0000000000000004 R15: ffff888062b34168 FS: 00007f776bbf66c0(0000) GS:ffff8880b8f00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f776ad69160 CR3: 0000000029cdb000 CR4: 00000000003506e0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400