F2FS-fs (loop3): Mounted with checkpoint version = 48b305e5 F2FS-fs (loop3): inject no free segment in get_new_segment of __allocate_new_segment+0x1ce/0x940 fs/f2fs/segment.c:3167 F2FS-fs (loop3): Stopped filesystem due to reason: 7 ------------[ cut here ]------------ kernel BUG at fs/f2fs/segment.c:2748! Oops: invalid opcode: 0000 [#1] PREEMPT SMP KASAN PTI CPU: 0 UID: 0 PID: 6297 Comm: syz.3.113 Not tainted 6.11.0-syzkaller-08068-g1ec6d097897a #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 08/06/2024 RIP: 0010:get_new_segment fs/f2fs/segment.c:2748 [inline] RIP: 0010:new_curseg+0x1f61/0x1f70 fs/f2fs/segment.c:2836 Code: 24 58 e8 b2 96 f2 ff eb 05 e8 2b 11 97 fd 48 8b 7c 24 70 e8 d1 a6 c4 07 48 8b 7c 24 10 31 f6 ba 07 00 00 00 e8 10 fd f5 ff 90 <0f> 0b 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 00 90 90 90 90 90 90 90 RSP: 0018:ffffc90003b17548 EFLAGS: 00010246 RAX: 3fdedcf528e51c00 RBX: 00000000000002b2 RCX: 3fdedcf528e51c00 RDX: ffffc90009eb9000 RSI: 000000000000638b RDI: 000000000000638c RBP: ffff8880613cd0c8 R08: ffffffff81746d5c R09: 1ffff92000762e1c R10: dffffc0000000000 R11: fffff52000762e1d R12: ffff88814b226e80 R13: ffff8880613cd0cc R14: 1ffff1100c279a19 R15: 00000000000002b2 FS: 00007fa5779936c0(0000) GS:ffff8880b8600000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 000056273ec54950 CR3: 000000007f7be000 CR4: 00000000003506f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: __allocate_new_segment+0x1ce/0x940 fs/f2fs/segment.c:3167 f2fs_allocate_new_section fs/f2fs/segment.c:3181 [inline] f2fs_allocate_pinning_section+0xfa/0x4e0 fs/f2fs/segment.c:3195 f2fs_expand_inode_data+0x5d6/0xbb0 fs/f2fs/file.c:1799 f2fs_fallocate+0x445/0x960 fs/f2fs/file.c:1903 vfs_fallocate+0x569/0x6e0 fs/open.c:333 do_vfs_ioctl+0x2583/0x2e40 fs/ioctl.c:886 __do_sys_ioctl fs/ioctl.c:905 [inline] __se_sys_ioctl+0x81/0x170 fs/ioctl.c:893 do_syscall_x64 arch/x86/entry/common.c:52 [inline] do_syscall_64+0xf3/0x230 arch/x86/entry/common.c:83 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7fa576b7def9 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:00007fa577993038 EFLAGS: 00000246 ORIG_RAX: 0000000000000010 RAX: ffffffffffffffda RBX: 00007fa576d35f80 RCX: 00007fa576b7def9 RDX: 0000000020000140 RSI: 0000000040305828 RDI: 0000000000000005 RBP: 00007fa576bf0b76 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 0000000000000000 R14: 00007fa576d35f80 R15: 00007fff8d24fa38 Modules linked in: ---[ end trace 0000000000000000 ]--- RIP: 0010:get_new_segment fs/f2fs/segment.c:2748 [inline] RIP: 0010:new_curseg+0x1f61/0x1f70 fs/f2fs/segment.c:2836 Code: 24 58 e8 b2 96 f2 ff eb 05 e8 2b 11 97 fd 48 8b 7c 24 70 e8 d1 a6 c4 07 48 8b 7c 24 10 31 f6 ba 07 00 00 00 e8 10 fd f5 ff 90 <0f> 0b 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 00 90 90 90 90 90 90 90 RSP: 0018:ffffc90003b17548 EFLAGS: 00010246 RAX: 3fdedcf528e51c00 RBX: 00000000000002b2 RCX: 3fdedcf528e51c00 RDX: ffffc90009eb9000 RSI: 000000000000638b RDI: 000000000000638c RBP: ffff8880613cd0c8 R08: ffffffff81746d5c R09: 1ffff92000762e1c R10: dffffc0000000000 R11: fffff52000762e1d R12: ffff88814b226e80 R13: ffff8880613cd0cc R14: 1ffff1100c279a19 R15: 00000000000002b2 FS: 00007fa5779936c0(0000) GS:ffff8880b8700000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007fd3cd4c25e8 CR3: 000000007f7be000 CR4: 00000000003506f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400