syzbot


kernel BUG in __locate_dirty_segment

Status: upstream: reported C repro on 2025/01/08 02:25
Bug presence: origin:lts-only
[Documentation on labels]
Reported-by: syzbot+e6004fe17169c1b9fd40@syzkaller.appspotmail.com
First crash: 387d, last: 24d
Bug presence (2)
Date Name Commit Repro Result
2025/01/09 linux-6.1.y (ToT) 7dc732d24ff7 C [report] kernel BUG in __locate_dirty_segment
2025/01/09 upstream (ToT) eea6e4b4dfb8 C Didn't crash
Similar bugs (1)
Kernel Title Rank 🛈 Repro Cause bisect Fix bisect Count Last Reported Patched Status
linux-5.15 kernel BUG in __locate_dirty_segment origin:lts-only -1 C error 6 30d 388d 0/3 upstream: reported C repro on 2025/01/07 19:13
Fix bisection attempts (3)
Created Duration User Patch Repo Result
2025/07/19 22:38 2h13m fix candidate upstream OK (0) job log
2025/04/23 04:44 12h01m fix candidate upstream error job log
2025/01/26 00:21 12h12m fix candidate upstream error job log

Sample crash report:
------------[ cut here ]------------
kernel BUG at fs/f2fs/segment.c:757!
invalid opcode: 0000 [#1] PREEMPT SMP KASAN
CPU: 1 PID: 4372 Comm: syz-executor Not tainted syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/25/2025
RIP: 0010:__locate_dirty_segment+0xa7b/0xa90 fs/f2fs/segment.c:756
Code: 44 89 f1 80 e1 07 80 c1 03 38 c1 0f 8c fa fc ff ff 4c 89 f7 e8 66 33 2b fe e9 ed fc ff ff e8 1c 02 db fd 0f 0b e8 15 02 db fd <0f> 0b e8 0e 02 db fd 0f 0b 66 2e 0f 1f 84 00 00 00 00 00 66 90 55
RSP: 0018:ffffc90003457760 EFLAGS: 00010293
RAX: ffffffff83a5ddbb RBX: ffff888079fe4000 RCX: ffff88802832bb80
RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000000
RBP: 0000000000000000 R08: dffffc0000000000 R09: ffffed100fa57bf5
R10: ffffed100fa57bf5 R11: 1ffff1100fa57bf4 R12: dffffc0000000000
R13: ffff88805d291c00 R14: 1ffff1100f3fc82d R15: ffff888079fe4168
FS:  00005555810aa500(0000) GS:ffff8880b8f00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 000000c006c13000 CR3: 00000000272aa000 CR4: 00000000003506e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <TASK>
 locate_dirty_segment+0x421/0x580 fs/f2fs/segment.c:829
 f2fs_invalidate_blocks+0x29b/0x380 fs/f2fs/segment.c:2304
 f2fs_truncate_data_blocks_range+0x5c0/0xd60 fs/f2fs/file.c:639
 truncate_dnode fs/f2fs/node.c:960 [inline]
 f2fs_truncate_inode_blocks+0x68e/0xc00 fs/f2fs/node.c:1179
 f2fs_do_truncate_blocks+0x614/0xc30 fs/f2fs/file.c:757
 f2fs_truncate_blocks+0x106/0x2f0 fs/f2fs/file.c:785
 f2fs_truncate+0x400/0x810 fs/f2fs/file.c:837
 f2fs_evict_inode+0x6fc/0x17d0 fs/f2fs/inode.c:802
 evict+0x485/0x870 fs/inode.c:705
 do_unlinkat+0x377/0x560 fs/namei.c:4405
 __do_sys_unlink fs/namei.c:4446 [inline]
 __se_sys_unlink fs/namei.c:4444 [inline]
 __x64_sys_unlink+0x45/0x50 fs/namei.c:4444
 do_syscall_x64 arch/x86/entry/common.c:51 [inline]
 do_syscall_64+0x4c/0xa0 arch/x86/entry/common.c:81
 entry_SYSCALL_64_after_hwframe+0x68/0xd2
RIP: 0033:0x7f957058ecf7
Code: 73 01 c3 48 c7 c1 a8 ff ff ff f7 d8 64 89 01 48 83 c8 ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 44 00 00 b8 57 00 00 00 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:00007ffce484fc28 EFLAGS: 00000206 ORIG_RAX: 0000000000000057
RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 00007f957058ecf7
RDX: 00007ffce484fc50 RSI: 00007ffce484fce0 RDI: 00007ffce484fce0
RBP: 00007ffce484fce0 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000100 R11: 0000000000000206 R12: 00007ffce4850dd0
R13: 00007f9570613d7d R14: 0000000000019e4e R15: 00007ffce4851ea0
 </TASK>
Modules linked in:
---[ end trace 0000000000000000 ]---
RIP: 0010:__locate_dirty_segment+0xa7b/0xa90 fs/f2fs/segment.c:756
Code: 44 89 f1 80 e1 07 80 c1 03 38 c1 0f 8c fa fc ff ff 4c 89 f7 e8 66 33 2b fe e9 ed fc ff ff e8 1c 02 db fd 0f 0b e8 15 02 db fd <0f> 0b e8 0e 02 db fd 0f 0b 66 2e 0f 1f 84 00 00 00 00 00 66 90 55
RSP: 0018:ffffc90003457760 EFLAGS: 00010293
RAX: ffffffff83a5ddbb RBX: ffff888079fe4000 RCX: ffff88802832bb80
RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000000
RBP: 0000000000000000 R08: dffffc0000000000 R09: ffffed100fa57bf5
R10: ffffed100fa57bf5 R11: 1ffff1100fa57bf4 R12: dffffc0000000000
R13: ffff88805d291c00 R14: 1ffff1100f3fc82d R15: ffff888079fe4168
FS:  00005555810aa500(0000) GS:ffff8880b8e00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00005555810dd688 CR3: 00000000272aa000 CR4: 00000000003506f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400

Crashes (6):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2026/01/06 02:06 linux-6.1.y 50cbba13faa2 d6526ea3 .config console log report syz / log C [disk image] [vmlinux] [kernel image] [mounted in repro (corrupt fs)] ci2-linux-6-1-kasan kernel BUG in __locate_dirty_segment
2025/01/08 04:22 linux-6.1.y 7dc732d24ff7 f3558dbf .config console log report syz / log C [disk image] [vmlinux] [kernel image] [mounted in repro] ci2-linux-6-1-kasan kernel BUG in __locate_dirty_segment
2025/01/08 03:42 linux-6.1.y 7dc732d24ff7 f3558dbf .config console log report syz / log C [disk image] [vmlinux] [kernel image] [mounted in repro] ci2-linux-6-1-kasan kernel BUG in __locate_dirty_segment
2025/01/08 03:02 linux-6.1.y 7dc732d24ff7 f3558dbf .config console log report syz / log C [disk image] [vmlinux] [kernel image] [mounted in repro] ci2-linux-6-1-kasan kernel BUG in __locate_dirty_segment
2026/01/06 00:25 linux-6.1.y 50cbba13faa2 d6526ea3 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan kernel BUG in __locate_dirty_segment
2025/01/08 02:24 linux-6.1.y 7dc732d24ff7 f3558dbf .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan kernel BUG in __locate_dirty_segment
* Struck through repros no longer work on HEAD.