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
Fix commit: f2fs: reject device aliasing without a multi-device configuration
Patched on: [ci-upstream-linux-next-kasan-gce-root ci-upstream-rust-kasan-gce], missing on: [ci-qemu-gce-upstream-auto ci-qemu-native-arm64-kvm ci-qemu-upstream ci-qemu-upstream-386 ci-qemu2-arm32 ci-qemu2-arm64 ci-qemu2-arm64-compat ci-qemu2-arm64-mte ci-qemu2-riscv64 ci-snapshot-upstream-root ci-upstream-bpf-kasan-gce ci-upstream-bpf-next-kasan-gce ci-upstream-gce-arm64 ci-upstream-gce-leak ci-upstream-kasan-badwrites-root ci-upstream-kasan-gce ci-upstream-kasan-gce-386 ci-upstream-kasan-gce-root ci-upstream-kasan-gce-selinux-root ci-upstream-kasan-gce-smack-root ci-upstream-kmsan-gce-386-root ci-upstream-kmsan-gce-root ci-upstream-net-kasan-gce ci-upstream-net-this-kasan-gce ci2-upstream-fs ci2-upstream-kcsan-gce ci2-upstream-usb]
First crash: 49d, last: 3h57m
▶ ▼ ✨ 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 (3)
Title Replies (including bot) Last reply
[PATCH] f2fs: reject device aliasing without a multi-device configuration 3 (3) 2026/09/30 17:20
[syzbot] Monthly f2fs report (Sep 2026) 0 (1) 2026/09/11 12:33
[syzbot] [f2fs?] general protection fault in new_curseg 0 (1) 2026/09/02 03:41

Sample crash report:
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: 6778 Comm: kworker/u8:18 Not tainted syzkaller #0 PREEMPT(full) 
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 08/05/2026
Workqueue: writeback wb_workfn (flush-7:1)
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 01 95 cd 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:ffffc900047f6608 EFLAGS: 00010216
RAX: 000000000000000c RBX: 0000000000008000 RCX: dffffc0000000000
RDX: 0000000000000000 RSI: 0000000000008000 RDI: ffff888033121a88
RBP: 0000000000000000 R08: 0000000000000003 R09: 0000000000000004
R10: dffffc0000000000 R11: fffff520008fecb0 R12: ffff88807b26e000
R13: 0000000000000004 R14: 0000000000000061 R15: 0000000000000000
FS:  0000000000000000(0000) GS:ffff888123abf000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f0c5a23e000 CR3: 0000000077505000 CR4: 0000000000350ef0
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
 __writeback_single_inode+0x136/0x1220 fs/fs-writeback.c:1803
 writeback_sb_inodes+0x9de/0x1b00 fs/fs-writeback.c:2114
 wb_writeback+0x41c/0xad0 fs/fs-writeback.c:2299
 wb_do_writeback fs/fs-writeback.c:2467 [inline]
 wb_workfn+0x431/0x10f0 fs/fs-writeback.c:2512
 process_one_work kernel/workqueue.c:3396 [inline]
 process_scheduled_works+0xc3d/0x1630 kernel/workqueue.c:3479
 worker_thread+0xa47/0xfb0 kernel/workqueue.c:3560
 kthread+0x38b/0x480 kernel/kthread.c:436
 ret_from_fork+0x514/0xb70 arch/x86/kernel/process.c:158
 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:245
 </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 01 95 cd 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:ffffc900047f6608 EFLAGS: 00010216
RAX: 000000000000000c RBX: 0000000000008000 RCX: dffffc0000000000
RDX: 0000000000000000 RSI: 0000000000008000 RDI: ffff888033121a88
RBP: 0000000000000000 R08: 0000000000000003 R09: 0000000000000004
R10: dffffc0000000000 R11: fffff520008fecb0 R12: ffff88807b26e000
R13: 0000000000000004 R14: 0000000000000061 R15: 0000000000000000
FS:  0000000000000000(0000) GS:ffff888123abf000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f0c5a23e000 CR3: 0000000077505000 CR4: 0000000000350ef0
----------------
Code disassembly (best guess):
   0:	e8 01 95 cd fd       	call   0xfdcd9506
   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 (714):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2026/10/10 19:02 upstream 3857c2fe5449 4f92358f .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-root general protection fault in new_curseg
2026/10/09 19:45 upstream af32da41b032 4f92358f .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs general protection fault in new_curseg
2026/10/17 17:27 upstream 58161ead29e5 432c0077 .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root general protection fault in new_curseg
2026/10/17 10:01 upstream 70dd4ee72eb2 432c0077 .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root general protection fault in new_curseg
2026/10/17 06:47 upstream 70dd4ee72eb2 432c0077 .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root general protection fault in new_curseg
2026/10/17 02:51 upstream 70dd4ee72eb2 432c0077 .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root general protection fault in new_curseg
2026/10/17 01:35 upstream 70dd4ee72eb2 432c0077 .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root general protection fault in new_curseg
2026/10/16 21:04 upstream 2f2f7eeef8b0 b1757810 .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root general protection fault in new_curseg
2026/10/16 19:50 upstream 2f2f7eeef8b0 b1757810 .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root general protection fault in new_curseg
2026/10/16 18:27 upstream 2f2f7eeef8b0 b1757810 .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root general protection fault in new_curseg
2026/10/16 14:48 upstream 2f2f7eeef8b0 b1757810 .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root general protection fault in new_curseg
2026/10/16 13:25 upstream 2f2f7eeef8b0 b1757810 .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root general protection fault in new_curseg
2026/10/16 09:52 upstream 2f2f7eeef8b0 3f2522c6 .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root general protection fault in new_curseg
2026/10/16 03:04 upstream 045958acaa75 3f2522c6 .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root general protection fault in new_curseg
2026/10/15 23:53 upstream 045958acaa75 3f2522c6 .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root general protection fault in new_curseg
2026/10/15 20:46 upstream 045958acaa75 3f2522c6 .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root general protection fault in new_curseg
2026/10/15 10:25 upstream 0fcb05b72344 8fb0ae89 .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root general protection fault in new_curseg
2026/10/15 08:42 upstream 0fcb05b72344 8fb0ae89 .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root general protection fault in new_curseg
2026/10/15 05:44 upstream 0fcb05b72344 8fb0ae89 .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root general protection fault in new_curseg
2026/10/15 02:31 upstream 0fcb05b72344 8fb0ae89 .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root general protection fault in new_curseg
2026/10/14 09:46 upstream ca3e345926b0 7321cd29 .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root general protection fault in new_curseg
2026/10/14 04:08 upstream ca3e345926b0 7321cd29 .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root general protection fault in new_curseg
2026/10/13 17:30 upstream 24a19b953e2a 5a1eeac4 .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root general protection fault in new_curseg
2026/10/13 09:39 upstream 24a19b953e2a 5a1eeac4 .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root general protection fault in new_curseg
2026/10/13 03:11 upstream 24a19b953e2a 745a967f .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root general protection fault in new_curseg
2026/10/13 01:32 upstream 24a19b953e2a 745a967f .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root general protection fault in new_curseg
2026/10/13 00:06 upstream 24a19b953e2a 745a967f .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root general protection fault in new_curseg
2026/10/12 22:21 upstream 24a19b953e2a 745a967f .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root general protection fault in new_curseg
2026/10/12 20:20 upstream 24a19b953e2a 745a967f .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root general protection fault in new_curseg
2026/10/12 17:30 upstream 24a19b953e2a 745a967f .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root general protection fault in new_curseg
2026/10/12 16:20 upstream 24a19b953e2a 745a967f .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root general protection fault in new_curseg
2026/10/12 12:46 upstream b88c841d1164 4f92358f .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root general protection fault in new_curseg
2026/10/12 11:35 upstream b88c841d1164 4f92358f .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root general protection fault in new_curseg
2026/10/12 09:30 upstream b88c841d1164 4f92358f .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root general protection fault in new_curseg
2026/10/12 08:12 upstream b88c841d1164 4f92358f .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root general protection fault in new_curseg
2026/10/11 22:29 upstream b88c841d1164 4f92358f .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root general protection fault in new_curseg
2026/10/11 20:35 upstream b88c841d1164 4f92358f .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root general protection fault in new_curseg
2026/10/11 19:26 upstream b88c841d1164 4f92358f .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root general protection fault in new_curseg
2026/10/11 14:59 upstream a5ebb76233b7 4f92358f .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root general protection fault in new_curseg
2026/10/11 12:32 upstream a5ebb76233b7 4f92358f .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root general protection fault in new_curseg
2026/10/11 11:20 upstream a5ebb76233b7 4f92358f .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root general protection fault in new_curseg
2026/10/11 09:34 upstream a5ebb76233b7 4f92358f .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root general protection fault in new_curseg
2026/10/11 08:32 upstream a5ebb76233b7 4f92358f .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root general protection fault in new_curseg
2026/10/11 06:25 upstream a5ebb76233b7 4f92358f .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root general protection fault in new_curseg
2026/10/11 04:30 upstream a5ebb76233b7 4f92358f .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root general protection fault in new_curseg
2026/10/10 23:41 upstream 3857c2fe5449 4f92358f .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root general protection fault in new_curseg
2026/10/10 23:01 upstream 3857c2fe5449 4f92358f .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/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/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.