general protection fault in new_curseg

Status: upstream: reported on 2026/09/02 03:41
Subsystems: f2fs
Labels: prio:high
[Documentation on labels]
Reported-by: syzbot+ae5b8eb92ed40411ce16@syzkaller.appspotmail.com
First crash: 4d00h, last: 35m
✨ AI Jobs (1)
ID Workflow Result Correct Bug Created Started Finished Revision
5bde44b1 assessment-security DenialOfService: ✅ Exploitable: ❌ FilesystemTrigger: ✅ NetworkTrigger: ❌ PeripheralTrigger: ✅ RemoteTrigger: ❌ Unprivileged: ❌ UserNamespace: ❌ VMGuestTrigger: ❌ VMHostTrigger: ❌ general protection fault in new_curseg 2026/08/31 01:40 2026/08/31 01:40 2026/08/31 02:21 2f52988a
Discussions (1)
Title Replies (including bot) Last reply
[syzbot] [f2fs?] general protection fault in new_curseg 0 (1) 2026/09/02 03:41

Sample crash report:
F2FS-fs (loop0): f2fs_check_nid_range: out-of-range nid=60900, run fsck to fix.
F2FS-fs (loop0): f2fs_check_nid_range: out-of-range nid=60900, run fsck to fix.
Oops: general protection fault, probably for non-canonical address 0xdffffc000000000c: 0000 [#1] SMP KASAN NOPTI
KASAN: null-ptr-deref in range [0x0000000000000060-0x0000000000000067]
CPU: 0 UID: 0 PID: 5331 Comm: syz.0.0 Not tainted syzkaller #0 PREEMPT(full) 
Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014
RIP: 0010:f2fs_dev_is_alloc_blocked fs/f2fs/segment.h:956 [inline]
RIP: 0010:get_new_segment fs/f2fs/segment.c:2964 [inline]
RIP: 0010:new_curseg+0x1134/0x3580 fs/f2fs/segment.c:3110
Code: e8 21 ab ce fd 48 8b 7c 24 30 48 8b 07 49 6b cf 70 4c 8d 34 08 49 83 c6 61 4c 89 f0 48 c1 e8 03 48 b9 00 00 00 00 00 fc ff df <0f> b6 04 08 84 c0 0f 85 73 11 00 00 41 80 3e 00 0f 84 e6 00 00 00
RSP: 0018:ffffc9000ef36708 EFLAGS: 00010206
RAX: 000000000000000c RBX: 0000000000008000 RCX: dffffc0000000000
RDX: 0000000000000000 RSI: 0000000000008000 RDI: ffff88801288da88
RBP: 0000000000000000 R08: 0000000000000003 R09: 0000000000000004
R10: dffffc0000000000 R11: fffff52001de6cd0 R12: ffff888033a22000
R13: 0000000000000004 R14: 0000000000000061 R15: 0000000000000000
FS:  00007fb8fe3926c0(0000) GS:ffff88808c2cf000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007fb8f5e04000 CR3: 00000000441bf000 CR4: 0000000000352ef0
Call Trace:
 <TASK>
 f2fs_allocate_data_block+0x229c/0x43c0 fs/f2fs/segment.c:3979
 do_write_page+0x13f/0x880 fs/f2fs/segment.c:4099
 f2fs_outplace_write_data+0x11a/0x220 fs/f2fs/segment.c:4175
 f2fs_do_write_data_page+0x1150/0x1540 fs/f2fs/data.c:3048
 f2fs_write_single_data_page+0x9cc/0x1840 fs/f2fs/data.c:3165
 f2fs_write_cache_pages fs/f2fs/data.c:3427 [inline]
 __f2fs_write_data_pages fs/f2fs/data.c:3603 [inline]
 f2fs_write_data_pages+0x1d2e/0x36f0 fs/f2fs/data.c:3641
 do_writepages+0x338/0x560 mm/page-writeback.c:2560
 filemap_writeback mm/filemap.c:387 [inline]
 filemap_fdatawrite_range mm/filemap.c:412 [inline]
 file_write_and_wait_range+0x36e/0x440 mm/filemap.c:786
 f2fs_do_sync_file+0x69d/0x1960 fs/f2fs/file.c:359
 generic_write_sync include/linux/fs.h:2686 [inline]
 f2fs_file_write_iter+0x68e/0x2920 fs/f2fs/file.c:5720
 do_iter_readv_writev+0x612/0x8c0 fs/read_write.c:-1
 vfs_writev+0x343/0x990 fs/read_write.c:1058
 do_pwritev fs/read_write.c:1154 [inline]
 __do_sys_pwritev2 fs/read_write.c:1212 [inline]
 __se_sys_pwritev2+0x177/0x2a0 fs/read_write.c:1203
 do_syscall_x64 arch/x86/entry/syscall_64.c:61 [inline]
 do_syscall_64+0x166/0x520 arch/x86/entry/syscall_64.c:84
 entry_SYSCALL_64_after_hwframe+0x77/0x7f
RIP: 0033:0x7fb901f9e159
Code: ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 44 00 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 e8 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007fb8fe391fe8 EFLAGS: 00000246 ORIG_RAX: 0000000000000148
RAX: ffffffffffffffda RBX: 00007fb902226270 RCX: 00007fb901f9e159
RDX: 0000000000000001 RSI: 0000200000000180 RDI: 000000000000000a
RBP: 00007fb902035024 R08: 0000000000000000 R09: 0000000000000015
R10: 0000000000000007 R11: 0000000000000246 R12: 0000000000000000
R13: 00007fb902226308 R14: 00007fb902226270 R15: 00007fffd4c19998
 </TASK>
Modules linked in:
---[ end trace 0000000000000000 ]---
RIP: 0010:f2fs_dev_is_alloc_blocked fs/f2fs/segment.h:956 [inline]
RIP: 0010:get_new_segment fs/f2fs/segment.c:2964 [inline]
RIP: 0010:new_curseg+0x1134/0x3580 fs/f2fs/segment.c:3110
Code: e8 21 ab ce fd 48 8b 7c 24 30 48 8b 07 49 6b cf 70 4c 8d 34 08 49 83 c6 61 4c 89 f0 48 c1 e8 03 48 b9 00 00 00 00 00 fc ff df <0f> b6 04 08 84 c0 0f 85 73 11 00 00 41 80 3e 00 0f 84 e6 00 00 00
RSP: 0018:ffffc9000ef36708 EFLAGS: 00010206
RAX: 000000000000000c RBX: 0000000000008000 RCX: dffffc0000000000
RDX: 0000000000000000 RSI: 0000000000008000 RDI: ffff88801288da88
RBP: 0000000000000000 R08: 0000000000000003 R09: 0000000000000004
R10: dffffc0000000000 R11: fffff52001de6cd0 R12: ffff888033a22000
R13: 0000000000000004 R14: 0000000000000061 R15: 0000000000000000
FS:  00007fb8fe3926c0(0000) GS:ffff88808c2cf000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007fb8f5e04000 CR3: 00000000441bf000 CR4: 0000000000352ef0
----------------
Code disassembly (best guess):
   0:	e8 21 ab ce fd       	call   0xfdceab26
   5:	48 8b 7c 24 30       	mov    0x30(%rsp),%rdi
   a:	48 8b 07             	mov    (%rdi),%rax
   d:	49 6b cf 70          	imul   $0x70,%r15,%rcx
  11:	4c 8d 34 08          	lea    (%rax,%rcx,1),%r14
  15:	49 83 c6 61          	add    $0x61,%r14
  19:	4c 89 f0             	mov    %r14,%rax
  1c:	48 c1 e8 03          	shr    $0x3,%rax
  20:	48 b9 00 00 00 00 00 	movabs $0xdffffc0000000000,%rcx
  27:	fc ff df
* 2a:	0f b6 04 08          	movzbl (%rax,%rcx,1),%eax <-- trapping instruction
  2e:	84 c0                	test   %al,%al
  30:	0f 85 73 11 00 00    	jne    0x11a9
  36:	41 80 3e 00          	cmpb   $0x0,(%r14)
  3a:	0f 84 e6 00 00 00    	je     0x126

Crashes (66):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2026/09/02 03:57 upstream 89a312991dc6 587f6b29 .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root general protection fault in new_curseg
2026/09/02 02:00 upstream 89a312991dc6 587f6b29 .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root general protection fault in new_curseg
2026/09/02 00:48 upstream 89a312991dc6 587f6b29 .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root general protection fault in new_curseg
2026/09/01 21:19 upstream bf1079577a11 587f6b29 .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root general protection fault in new_curseg
2026/09/01 14:03 upstream bf1079577a11 316d9396 .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root general protection fault in new_curseg
2026/09/01 11:39 upstream bf1079577a11 316d9396 .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root general protection fault in new_curseg
2026/09/01 10:17 upstream bf1079577a11 316d9396 .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root general protection fault in new_curseg
2026/09/01 05:47 upstream bf1079577a11 316d9396 .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root general protection fault in new_curseg
2026/09/01 01:53 upstream bf1079577a11 00e9c810 .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root general protection fault in new_curseg
2026/09/01 00:12 upstream bf1079577a11 00e9c810 .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root general protection fault in new_curseg
2026/08/31 21:10 upstream cee9395acd80 00e9c810 .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root general protection fault in new_curseg
2026/08/31 20:10 upstream cee9395acd80 00e9c810 .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root general protection fault in new_curseg
2026/08/31 19:04 upstream cee9395acd80 00e9c810 .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root general protection fault in new_curseg
2026/08/31 17:31 upstream cee9395acd80 00e9c810 .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root general protection fault in new_curseg
2026/08/31 13:53 upstream cee9395acd80 2f52988a .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root general protection fault in new_curseg
2026/08/31 13:08 upstream cee9395acd80 2f52988a .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root general protection fault in new_curseg
2026/08/31 12:41 upstream cee9395acd80 2f52988a .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root general protection fault in new_curseg
2026/08/31 12:27 upstream cee9395acd80 2f52988a .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root general protection fault in new_curseg
2026/08/31 11:24 upstream cee9395acd80 2f52988a .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root general protection fault in new_curseg
2026/08/31 11:10 upstream cee9395acd80 2f52988a .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root general protection fault in new_curseg
2026/08/31 10:19 upstream cee9395acd80 2f52988a .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root general protection fault in new_curseg
2026/08/31 10:19 upstream cee9395acd80 2f52988a .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root general protection fault in new_curseg
2026/08/31 10:07 upstream cee9395acd80 2f52988a .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root general protection fault in new_curseg
2026/08/31 06:53 upstream a23cbb05744b 2f52988a .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root general protection fault in new_curseg
2026/08/31 05:40 upstream a23cbb05744b 2f52988a .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root general protection fault in new_curseg
2026/08/31 04:34 upstream a23cbb05744b 2f52988a .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root general protection fault in new_curseg
2026/08/30 23:29 upstream a23cbb05744b 2f52988a .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root general protection fault in new_curseg
2026/08/30 17:45 upstream 08dbfad3f504 2f52988a .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root general protection fault in new_curseg
2026/08/30 17:16 upstream 08dbfad3f504 2f52988a .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root general protection fault in new_curseg
2026/08/30 17:03 upstream 08dbfad3f504 2f52988a .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root general protection fault in new_curseg
2026/08/30 16:56 upstream 08dbfad3f504 2f52988a .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root general protection fault in new_curseg
2026/08/30 15:36 upstream 08dbfad3f504 2f52988a .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root general protection fault in new_curseg
2026/08/30 15:16 upstream 08dbfad3f504 2f52988a .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root general protection fault in new_curseg
2026/08/30 15:03 upstream 08dbfad3f504 2f52988a .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root general protection fault in new_curseg
2026/08/30 12:09 upstream 08dbfad3f504 2f52988a .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root general protection fault in new_curseg
2026/08/30 11:35 upstream 08dbfad3f504 2f52988a .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root general protection fault in new_curseg
2026/08/30 08:35 upstream 08dbfad3f504 2f52988a .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root general protection fault in new_curseg
2026/08/30 05:45 upstream 08dbfad3f504 2f52988a .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root general protection fault in new_curseg
2026/08/30 04:31 upstream 08dbfad3f504 2f52988a .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root general protection fault in new_curseg
2026/08/30 03:23 upstream 08dbfad3f504 2f52988a .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root general protection fault in new_curseg
2026/08/30 02:45 upstream 08dbfad3f504 2f52988a .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root general protection fault in new_curseg
2026/08/29 19:32 upstream cf72cbb39da8 2f52988a .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root general protection fault in new_curseg
2026/08/29 18:44 upstream cf72cbb39da8 2f52988a .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root general protection fault in new_curseg
2026/08/29 17:38 upstream cf72cbb39da8 2f52988a .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root general protection fault in new_curseg
2026/08/29 17:13 upstream cf72cbb39da8 2f52988a .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root general protection fault in new_curseg
2026/08/29 15:40 upstream cf72cbb39da8 2f52988a .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root general protection fault in new_curseg
2026/08/29 14:28 upstream cf72cbb39da8 2f52988a .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root general protection fault in new_curseg
2026/08/29 09:15 upstream cf72cbb39da8 2f52988a .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root general protection fault in new_curseg
2026/08/29 09:13 upstream cf72cbb39da8 2f52988a .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root general protection fault in new_curseg
2026/08/29 07:52 upstream cf72cbb39da8 2f52988a .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root general protection fault in new_curseg
2026/08/29 05:19 upstream cf72cbb39da8 2f52988a .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root general protection fault in new_curseg
2026/08/29 04:51 upstream cf72cbb39da8 2f52988a .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root general protection fault in new_curseg
2026/08/29 04:51 upstream cf72cbb39da8 2f52988a .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root general protection fault in new_curseg
2026/08/29 03:34 upstream cf72cbb39da8 2f52988a .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root general protection fault in new_curseg
2026/08/29 03:34 upstream cf72cbb39da8 2f52988a .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root general protection fault in new_curseg
* Struck through repros no longer work on HEAD.