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: 4243 Comm: syz-executor159 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:ffffc90003c571f8 EFLAGS: 00010293
RAX: ffffffff83dd4601 RBX: ffff888026aab4f0 RCX: ffff88802d4f5940
RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000000
RBP: 0000000000000000 R08: ffffffff83dd4002 R09: ffffed10037d7928
R10: 0000000000000000 R11: dffffc0000000001 R12: ffff8880269fb610
R13: 1ffff1100f57b02d R14: 0000000000000004 R15: ffff88807abd8168
FS: 0000555582c52380(0000) GS:ffff8880b8f00000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007ffd42000000 CR3: 0000000026c04000 CR4: 00000000003506e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
<TASK>
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:0x7f1bdf5f5739
Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 61 17 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:00007ffd41fff188 EFLAGS: 00000246 ORIG_RAX: 0000000000000055
RAX: ffffffffffffffda RBX: 00007ffd41fff358 RCX: 00007f1bdf5f5739
RDX: 00007f1bdf5f5739 RSI: 0000000000000000 RDI: 0000000020000000
RBP: 00007f1bdf688610 R08: 00007ffd41fff358 R09: 00007ffd41fff358
R10: 00007ffd41fff358 R11: 0000000000000246 R12: 0000000000000001
R13: 00007ffd41fff348 R14: 0000000000000001 R15: 0000000000000001
</TASK>
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:ffffc90003c571f8 EFLAGS: 00010293
RAX: ffffffff83dd4601 RBX: ffff888026aab4f0 RCX: ffff88802d4f5940
RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000000
RBP: 0000000000000000 R08: ffffffff83dd4002 R09: ffffed10037d7928
R10: 0000000000000000 R11: dffffc0000000001 R12: ffff8880269fb610
R13: 1ffff1100f57b02d R14: 0000000000000004 R15: ffff88807abd8168
FS: 0000555582c52380(0000) GS:ffff8880b8f00000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007ffd42000000 CR3: 0000000026c04000 CR4: 00000000003506e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400