general protection fault in update_sit_entry

Status: upstream: reported C repro on 2024/12/08 18:16
Bug presence: origin:downstream
[Documentation on labels]
Reported-by: syzbot+5befe124e5915c6e2b0f@syzkaller.appspotmail.com
First crash: 596d, last: 8d09h
Fix bisection: failed (error log, bisect log)
  
Bug presence (3)
Date Name Commit Repro Result
2024/12/09 android14-6.1 (ToT) c276c53965a8 C [report] general protection fault in update_sit_entry
2024/12/09 lts (merge base) 0d968ced7330 C Didn't crash
2024/12/09 upstream (ToT) fac04efc5c79 C Didn't crash
Similar bugs (5)
Kernel Title Rank 🛈 Repro Cause bisect Fix bisect Count Last Reported Patched Status
linux-5.15 general protection fault in update_sit_entry origin:lts-only 8 C error 18 47d 654d 0/3 upstream: reported C repro on 2024/10/11 17:04
linux-4.14 general protection fault in update_sit_entry f2fs 2 C 9 1241d 1354d 0/1 upstream: reported C repro on 2022/11/12 02:17
android-5-10 general protection fault in update_sit_entry 2 C 58 14d 605d 0/2 upstream: reported C repro on 2024/11/29 11:40
linux-6.1 general protection fault in update_sit_entry origin:lts-only 8 C done 17 186d 567d 0/3 upstream: reported C repro on 2025/01/07 01:40
android-5-15 general protection fault in update_sit_entry origin:downstream 2 C 68 1d13h 611d 0/2 upstream: reported C repro on 2024/11/24 02:28
Last patch testing requests (10)
Created Duration User Patch Repo Result
2026/05/10 16:50 19m retest repro android14-6.1 report log
2026/05/10 16:50 15m retest repro android14-6.1 report log
2026/05/10 16:50 15m retest repro android14-6.1 report log
2026/05/10 16:50 16m retest repro android14-6.1 report log
2026/05/10 16:50 19m retest repro android14-6.1 report log
2026/04/01 19:31 6m retest repro android14-6.1 report log
2026/04/01 19:31 7m retest repro android14-6.1 report log
2026/04/01 19:31 13m retest repro android14-6.1 report log
2026/04/01 19:31 13m retest repro android14-6.1 report log
2026/03/13 19:42 7m retest repro android14-6.1 error
Fix bisection attempts (4)
Created Duration User Patch Repo Result
2026/03/29 11:24 0m bisect fix android14-6.1 error job log
2025/04/25 04:32 2h46m bisect fix android14-6.1 OK (0) job log log
2025/03/05 01:17 1h12m bisect fix android14-6.1 OK (0) job log log
2025/01/31 09:30 1h20m bisect fix android14-6.1 OK (0) job log log

Sample crash report:
general protection fault, probably for non-canonical address 0xdffffc0000000000: 0000 [#1] PREEMPT SMP KASAN
KASAN: null-ptr-deref in range [0x0000000000000000-0x0000000000000007]
CPU: 0 PID: 379 Comm: syz.2.17 Not tainted syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 05/09/2026
RIP: 0010:f2fs_test_and_set_bit fs/f2fs/f2fs.h:3004 [inline]
RIP: 0010:update_sit_entry_for_alloc fs/f2fs/segment.c:2399 [inline]
RIP: 0010:update_sit_entry+0x4aa/0x1480 fs/f2fs/segment.c:2443
Code: 8b 45 d0 48 8d 58 18 48 89 d8 48 c1 e8 03 42 80 3c 28 00 74 08 48 89 df e8 f3 a8 8a ff 48 8b 1b 4c 01 fb 48 89 d8 48 c1 e8 03 <42> 0f b6 04 28 84 c0 0f 85 95 0e 00 00 44 0f b6 33 44 89 f0 44 08
RSP: 0000:ffffc900007ce760 EFLAGS: 00010246
RAX: 0000000000000000 RBX: 0000000000000000 RCX: 0000000000000000
RDX: ffff888114869440 RSI: 0000000000000000 RDI: 0000000000000000
RBP: ffffc900007ce830 R08: ffff888115d0a029 R09: 1ffff11022ba1405
R10: dffffc0000000000 R11: ffffed1022ba1406 R12: 0000000000000004
R13: dffffc0000000000 R14: ffff8881151e0000 R15: 0000000000000000
FS:  000055558c817500(0000) GS:ffff8881f6e00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00001ffffffffe00 CR3: 000000012146c000 CR4: 00000000003506b0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <TASK>
 f2fs_allocate_data_block+0x146f/0x3ab0 fs/f2fs/segment.c:3434
 do_write_page+0x277/0xb20 fs/f2fs/segment.c:3536
 f2fs_outplace_write_data+0x14f/0x2e0 fs/f2fs/segment.c:3609
 f2fs_convert_inline_page+0x78c/0xf50 fs/f2fs/inline.c:179
 f2fs_convert_inline_inode+0x7bc/0x8b0 fs/f2fs/inline.c:232
 f2fs_preallocate_blocks fs/f2fs/file.c:4753 [inline]
 f2fs_file_write_iter+0x12e9/0x27c0 fs/f2fs/file.c:4998
 __kernel_write_iter+0x2a9/0x6a0 fs/read_write.c:517
 __kernel_write+0x103/0x170 fs/read_write.c:537
 __dump_emit+0x20d/0x310 fs/coredump.c:809
 dump_emit+0xa8/0xc0 fs/coredump.c:846
 writenote+0x1bd/0x2f0 fs/binfmt_elf.c:1530
 write_note_info fs/binfmt_elf.c:1998 [inline]
 elf_core_dump+0x280f/0x30b0 fs/binfmt_elf.c:2341
 do_coredump+0x160e/0x23a0 fs/coredump.c:760
 get_signal+0x157d/0x1700 kernel/signal.c:2881
 arch_do_signal_or_restart+0xd1/0x11c0 arch/x86/kernel/signal.c:871
 exit_to_user_mode_loop+0x7a/0xb0 kernel/entry/common.c:174
 exit_to_user_mode_prepare+0x87/0xd0 kernel/entry/common.c:210
 irqentry_exit_to_user_mode+0x9/0x10 kernel/entry/common.c:316
 irqentry_exit+0x12/0x40 kernel/entry/common.c:419
 exc_page_fault+0x5e/0xb0 arch/x86/mm/fault.c:1520
 asm_exc_page_fault+0x27/0x30 arch/x86/include/asm/idtentry.h:608
RIP: 0033:0x0
Code: Unable to access opcode bytes at 0xffffffffffffffd6.
RSP: 002b:00002000000001c8 EFLAGS: 00010217
RAX: 0000000000000000 RBX: 00007ff23b225fa0 RCX: 00007ff23af9de99
RDX: 0000200000000200 RSI: 00002000000001c0 RDI: 0000000000001000
RBP: 00007ff23b033eaf R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000206 R12: 0000000000000000
R13: 00007ff23b225fac R14: 00007ff23b225fa0 R15: 00007ff23b225fa0
 </TASK>
Modules linked in:
---[ end trace 0000000000000000 ]---
RIP: 0010:f2fs_test_and_set_bit fs/f2fs/f2fs.h:3004 [inline]
RIP: 0010:update_sit_entry_for_alloc fs/f2fs/segment.c:2399 [inline]
RIP: 0010:update_sit_entry+0x4aa/0x1480 fs/f2fs/segment.c:2443
Code: 8b 45 d0 48 8d 58 18 48 89 d8 48 c1 e8 03 42 80 3c 28 00 74 08 48 89 df e8 f3 a8 8a ff 48 8b 1b 4c 01 fb 48 89 d8 48 c1 e8 03 <42> 0f b6 04 28 84 c0 0f 85 95 0e 00 00 44 0f b6 33 44 89 f0 44 08
RSP: 0000:ffffc900007ce760 EFLAGS: 00010246
RAX: 0000000000000000 RBX: 0000000000000000 RCX: 0000000000000000
RDX: ffff888114869440 RSI: 0000000000000000 RDI: 0000000000000000
RBP: ffffc900007ce830 R08: ffff888115d0a029 R09: 1ffff11022ba1405
R10: dffffc0000000000 R11: ffffed1022ba1406 R12: 0000000000000004
R13: dffffc0000000000 R14: ffff8881151e0000 R15: 0000000000000000
FS:  000055558c817500(0000) GS:ffff8881f6e00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00001ffffffffe00 CR3: 000000012146c000 CR4: 00000000003506b0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
----------------
Code disassembly (best guess):
   0:	8b 45 d0             	mov    -0x30(%rbp),%eax
   3:	48 8d 58 18          	lea    0x18(%rax),%rbx
   7:	48 89 d8             	mov    %rbx,%rax
   a:	48 c1 e8 03          	shr    $0x3,%rax
   e:	42 80 3c 28 00       	cmpb   $0x0,(%rax,%r13,1)
  13:	74 08                	je     0x1d
  15:	48 89 df             	mov    %rbx,%rdi
  18:	e8 f3 a8 8a ff       	call   0xff8aa910
  1d:	48 8b 1b             	mov    (%rbx),%rbx
  20:	4c 01 fb             	add    %r15,%rbx
  23:	48 89 d8             	mov    %rbx,%rax
  26:	48 c1 e8 03          	shr    $0x3,%rax
* 2a:	42 0f b6 04 28       	movzbl (%rax,%r13,1),%eax <-- trapping instruction
  2f:	84 c0                	test   %al,%al
  31:	0f 85 95 0e 00 00    	jne    0xecc
  37:	44 0f b6 33          	movzbl (%rbx),%r14d
  3b:	44 89 f0             	mov    %r14d,%eax
  3e:	44                   	rex.R
  3f:	08                   	.byte 0x8

Crashes (42):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2026/07/20 01:10 android14-6.1 c7e15f0bdc49 72524a66 .config console log report syz / log C [disk image] [vmlinux] [kernel image] [mounted in repro (corrupt fs)] ci2-android-6-1 general protection fault in update_sit_entry
2026/05/22 19:25 android14-6.1 b07bd8273426 5f091fcc .config console log report syz / log C [disk image] [vmlinux] [kernel image] [mounted in repro (corrupt fs)] ci2-android-6-1 general protection fault in update_sit_entry
2026/01/06 05:49 android14-6.1 5e6db7045704 d6526ea3 .config console log report syz / log C [disk image] [vmlinux] [kernel image] [mounted in repro (corrupt fs)] ci2-android-6-1 general protection fault in update_sit_entry
2025/12/25 03:16 android14-6.1 6da82810f8a5 d6526ea3 .config console log report syz / log C [disk image] [vmlinux] [kernel image] [mounted in repro (corrupt fs)] ci2-android-6-1 general protection fault in update_sit_entry
2025/12/07 15:31 android14-6.1 5ddae867b428 d6526ea3 .config console log report syz / log C [disk image] [vmlinux] [kernel image] [mounted in repro (corrupt fs)] ci2-android-6-1 general protection fault in update_sit_entry
2025/11/29 18:21 android14-6.1 a92da54b7708 d6526ea3 .config console log report syz / log C [disk image] [vmlinux] [kernel image] [mounted in repro (corrupt fs)] ci2-android-6-1 general protection fault in update_sit_entry
2025/06/22 10:16 android14-6.1 f6c21bc9a693 d6cdfb8a .config strace log report syz / log C [disk image] [vmlinux] [kernel image] [mounted in repro (corrupt fs)] ci2-android-6-1 general protection fault in update_sit_entry
2025/06/22 09:39 android14-6.1 f6c21bc9a693 d6cdfb8a .config strace log report syz / log C [disk image] [vmlinux] [kernel image] [mounted in repro (corrupt fs)] ci2-android-6-1 general protection fault in update_sit_entry
2025/06/22 06:24 android14-6.1 f6c21bc9a693 d6cdfb8a .config strace log report syz / log C [disk image] [vmlinux] [kernel image] [mounted in repro (corrupt fs)] ci2-android-6-1 general protection fault in update_sit_entry
2025/06/15 02:08 android14-6.1 6246d345f550 5f4b362d .config strace log report syz / log C [disk image] [vmlinux] [kernel image] [mounted in repro (corrupt fs)] ci2-android-6-1 general protection fault in update_sit_entry
2025/06/13 05:55 android14-6.1 74db64dcc8aa 98683f8f .config strace log report syz / log C [disk image] [vmlinux] [kernel image] [mounted in repro (corrupt fs)] ci2-android-6-1 general protection fault in update_sit_entry
2025/06/10 22:37 android14-6.1 13ff1300ee84 5d7e17ca .config strace log report syz / log C [disk image] [vmlinux] [kernel image] [mounted in repro (corrupt fs)] ci2-android-6-1 general protection fault in update_sit_entry
2025/06/10 14:14 android14-6.1 13ff1300ee84 4826c28e .config console log report syz / log C [disk image] [vmlinux] [kernel image] [mounted in repro (corrupt fs)] ci2-android-6-1 general protection fault in update_sit_entry
2025/06/10 11:19 android14-6.1 13ff1300ee84 4826c28e .config strace log report syz / log C [disk image] [vmlinux] [kernel image] [mounted in repro (corrupt fs)] ci2-android-6-1 general protection fault in update_sit_entry
2025/05/26 07:00 android14-6.1 3c6d0251e1fb 2d4582d0 .config console log report syz / log C [disk image] [vmlinux] [kernel image] [mounted in repro (corrupt fs)] ci2-android-6-1 general protection fault in update_sit_entry
2024/12/08 19:26 android14-6.1 c276c53965a8 9ac0fdc6 .config strace log report syz / log C [disk image] [vmlinux] [kernel image] [mounted in repro] ci2-android-6-1 general protection fault in update_sit_entry
2024/12/08 18:51 android14-6.1 c276c53965a8 9ac0fdc6 .config strace log report syz / log C [disk image] [vmlinux] [kernel image] [mounted in repro] ci2-android-6-1 general protection fault in update_sit_entry
2024/12/08 18:12 android14-6.1 c276c53965a8 9ac0fdc6 .config strace log report syz / log C [disk image] [vmlinux] [kernel image] [mounted in repro] ci2-android-6-1 general protection fault in update_sit_entry
2026/02/27 11:19 android14-6.1 6bfa51973214 a2f13f71 .config console log report syz / log [disk image] [vmlinux] [kernel image] [mounted in repro (corrupt fs)] ci2-android-6-1 general protection fault in update_sit_entry
2026/07/12 17:56 android14-6.1 21b931853e8d d78ea535 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-6-1 general protection fault in update_sit_entry
2026/07/09 05:44 android14-6.1 52939c41021c b9f1ceaa .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-6-1 general protection fault in update_sit_entry
2026/07/06 07:47 android14-6.1 cf4093a4ac64 fcece630 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-6-1 general protection fault in update_sit_entry
2026/07/01 13:16 android14-6.1 75aed2810c22 00a5cf1c .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-6-1 general protection fault in update_sit_entry
2026/07/01 13:16 android14-6.1 75aed2810c22 00a5cf1c .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-6-1 general protection fault in update_sit_entry
2026/06/22 16:19 android14-6.1 72813af230c7 43bfcdb0 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-6-1 general protection fault in update_sit_entry
2026/06/22 10:32 android14-6.1 72813af230c7 43bfcdb0 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-6-1 general protection fault in update_sit_entry
2026/06/21 06:19 android14-6.1 72813af230c7 43bfcdb0 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-6-1 general protection fault in update_sit_entry
2026/05/31 22:59 android14-6.1 b28955bde980 6b4a8443 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-6-1 general protection fault in update_sit_entry
2026/04/22 16:28 android14-6.1 15ea42c3d32a 4595e353 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-6-1 general protection fault in update_sit_entry
2026/04/11 07:40 android14-6.1 4a2a41bddacb 38c8e246 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-6-1 general protection fault in update_sit_entry
2026/01/25 23:50 android14-6.1 5b3c238664a9 55756628 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-6-1 general protection fault in update_sit_entry
2026/01/25 23:50 android14-6.1 5b3c238664a9 55756628 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-6-1 general protection fault in update_sit_entry
2026/01/25 23:50 android14-6.1 5b3c238664a9 55756628 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-6-1 general protection fault in update_sit_entry
2026/01/25 23:49 android14-6.1 5b3c238664a9 55756628 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-6-1 general protection fault in update_sit_entry
2026/01/06 13:07 android14-6.1 5e6db7045704 d6526ea3 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-6-1 general protection fault in update_sit_entry
2025/12/31 08:33 android14-6.1 5e6db7045704 d6526ea3 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-6-1 general protection fault in update_sit_entry
2025/11/29 17:22 android14-6.1 a92da54b7708 d6526ea3 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-6-1 general protection fault in update_sit_entry
2025/06/20 05:49 android14-6.1 f6c21bc9a693 ed3e87f7 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-6-1 general protection fault in update_sit_entry
2024/12/28 19:34 android14-6.1 3f924195e222 d3ccff63 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-6-1 general protection fault in update_sit_entry
2024/12/28 19:33 android14-6.1 3f924195e222 d3ccff63 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-6-1 general protection fault in update_sit_entry
2024/12/08 22:06 android14-6.1 c276c53965a8 9ac0fdc6 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-6-1 general protection fault in update_sit_entry
2024/12/08 17:38 android14-6.1 c276c53965a8 9ac0fdc6 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-6-1 general protection fault in update_sit_entry
* Struck through repros no longer work on HEAD.