syzbot


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: 218d, last: 8d00h
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 24d 276d 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 863d 976d 0/1 upstream: reported C repro on 2022/11/12 02:17
android-5-10 general protection fault in update_sit_entry 2 C 12 8d02h 227d 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 7 1d11h 189d 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 17 6d14h 233d 0/2 upstream: reported C repro on 2024/11/24 02:28
Last patch testing requests (10)
Created Duration User Patch Repo Result
2025/07/07 01:53 7m retest repro android14-6.1 report log
2025/07/07 01:53 8m retest repro android14-6.1 report log
2025/07/07 01:53 6m retest repro android14-6.1 report log
2025/07/07 01:53 6m retest repro android14-6.1 report log
2025/07/07 01:53 9m retest repro android14-6.1 report log
2025/06/09 09:05 8m retest repro android14-6.1 report log
2025/06/09 09:05 7m retest repro android14-6.1 report log
2025/06/09 09:05 10m retest repro android14-6.1 report log
2025/03/21 04:37 11m retest repro android14-6.1 report log
2025/03/21 04:37 6m retest repro android14-6.1 report log
Fix bisection attempts (3)
Created Duration User Patch Repo Result
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:
syz-executor402: attempt to access beyond end of device
loop0: rw=2049, sector=45352, nr_sectors = 128 limit=40427
syz-executor402: attempt to access beyond end of device
loop0: rw=2049, sector=45480, nr_sectors = 128 limit=40427
general protection fault, probably for non-canonical address 0xdffffc0000000001: 0000 [#1] PREEMPT SMP KASAN
KASAN: null-ptr-deref in range [0x0000000000000008-0x000000000000000f]
CPU: 1 PID: 292 Comm: syz-executor402 Not tainted 6.1.138-syzkaller-00013-gf6c21bc9a693 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 05/07/2025
RIP: 0010:f2fs_test_and_set_bit fs/f2fs/f2fs.h:2941 [inline]
RIP: 0010:update_sit_entry_for_alloc fs/f2fs/segment.c:2396 [inline]
RIP: 0010:update_sit_entry+0x4f9/0x15a0 fs/f2fs/segment.c:2440
Code: 00 00 fc ff df 80 3c 08 00 74 08 48 89 df e8 ee 11 8d ff 48 8b 1b 4c 01 f3 48 89 d8 48 c1 e8 03 48 b9 00 00 00 00 00 fc ff df <0f> b6 04 08 84 c0 0f 85 55 0f 00 00 44 0f b6 23 44 89 e0 44 08 f8
RSP: 0018:ffffc90000e064e0 EFLAGS: 00010202
RAX: 0000000000000001 RBX: 0000000000000008 RCX: dffffc0000000000
RDX: ffff888111260000 RSI: 0000000000000000 RDI: 0000000000000000
RBP: ffffc90000e065b0 R08: ffff888111260000 R09: 0000000000000003
R10: 00000000ffffffff R11: 0000000000000000 R12: 0000000000000000
R13: ffff88810c7400c8 R14: 0000000000000008 R15: 0000000000000004
FS:  00007fbf855956c0(0000) GS:ffff8881f7100000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f7a56f52000 CR3: 0000000121a56000 CR4: 00000000003506a0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <TASK>
 f2fs_allocate_data_block+0x148c/0x3af0 fs/f2fs/segment.c:3430
 do_write_page+0x297/0xc40 fs/f2fs/segment.c:3532
 f2fs_outplace_write_data+0x14f/0x2d0 fs/f2fs/segment.c:3605
 f2fs_do_write_data_page+0x105f/0x14a0 fs/f2fs/data.c:2796
 f2fs_write_single_data_page+0x949/0x17f0 fs/f2fs/data.c:2913
 f2fs_write_cache_pages fs/f2fs/data.c:3165 [inline]
 __f2fs_write_data_pages fs/f2fs/data.c:3315 [inline]
 f2fs_write_data_pages+0x1405/0x28b0 fs/f2fs/data.c:3342
 do_writepages+0x3a9/0x5e0 mm/page-writeback.c:2494
 filemap_fdatawrite_wbc+0x128/0x190 mm/filemap.c:408
 __filemap_fdatawrite_range mm/filemap.c:441 [inline]
 filemap_write_and_wait_range+0x10b/0x1d0 mm/filemap.c:694
 f2fs_flush_buffered_write fs/f2fs/file.c:4756 [inline]
 f2fs_file_write_iter+0x798/0x2550 fs/f2fs/file.c:4964
 do_iter_readv_writev fs/read_write.c:-1 [inline]
 do_iter_write+0x650/0xb10 fs/read_write.c:861
 vfs_iter_write+0x7d/0xa0 fs/read_write.c:902
 iter_file_splice_write+0x662/0xc50 fs/splice.c:685
 do_splice_from fs/splice.c:763 [inline]
 direct_splice_actor+0xf7/0x130 fs/splice.c:930
 splice_direct_to_actor+0x4a2/0xb10 fs/splice.c:885
 do_splice_direct+0x1b3/0x2c0 fs/splice.c:973
 do_sendfile+0x5c6/0xeb0 fs/read_write.c:1255
 __do_sys_sendfile64 fs/read_write.c:1323 [inline]
 __se_sys_sendfile64 fs/read_write.c:1309 [inline]
 __x64_sys_sendfile64+0x18f/0x1f0 fs/read_write.c:1309
 x64_sys_call+0x62c/0x9a0 arch/x86/include/generated/asm/syscalls_64.h:41
 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:0x7fbf855d8589
Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 e1 18 00 00 90 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 b0 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007fbf85595218 EFLAGS: 00000246 ORIG_RAX: 0000000000000028
RAX: ffffffffffffffda RBX: 00007fbf85665608 RCX: 00007fbf855d8589
RDX: 0000000000000000 RSI: 0000000000000005 RDI: 0000000000000005
RBP: 00007fbf85665600 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000fffe80 R11: 0000000000000246 R12: 00007fbf856319e4
R13: 0000200000000000 R14: 0000200000000100 R15: 0000200000000780
 </TASK>
Modules linked in:
---[ end trace 0000000000000000 ]---
RIP: 0010:f2fs_test_and_set_bit fs/f2fs/f2fs.h:2941 [inline]
RIP: 0010:update_sit_entry_for_alloc fs/f2fs/segment.c:2396 [inline]
RIP: 0010:update_sit_entry+0x4f9/0x15a0 fs/f2fs/segment.c:2440
Code: 00 00 fc ff df 80 3c 08 00 74 08 48 89 df e8 ee 11 8d ff 48 8b 1b 4c 01 f3 48 89 d8 48 c1 e8 03 48 b9 00 00 00 00 00 fc ff df <0f> b6 04 08 84 c0 0f 85 55 0f 00 00 44 0f b6 23 44 89 e0 44 08 f8
RSP: 0018:ffffc90000e064e0 EFLAGS: 00010202
RAX: 0000000000000001 RBX: 0000000000000008 RCX: dffffc0000000000
RDX: ffff888111260000 RSI: 0000000000000000 RDI: 0000000000000000
RBP: ffffc90000e065b0 R08: ffff888111260000 R09: 0000000000000003
R10: 00000000ffffffff R11: 0000000000000000 R12: 0000000000000000
R13: ffff88810c7400c8 R14: 0000000000000008 R15: 0000000000000004
FS:  00007fbf855956c0(0000) GS:ffff8881f7000000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007fbf8562bf58 CR3: 0000000121a56000 CR4: 00000000003506b0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
----------------
Code disassembly (best guess), 4 bytes skipped:
   0:	df 80 3c 08 00 74    	filds  0x7400083c(%rax)
   6:	08 48 89             	or     %cl,-0x77(%rax)
   9:	df e8                	fucomip %st(0),%st
   b:	ee                   	out    %al,(%dx)
   c:	11 8d ff 48 8b 1b    	adc    %ecx,0x1b8b48ff(%rbp)
  12:	4c 01 f3             	add    %r14,%rbx
  15:	48 89 d8             	mov    %rbx,%rax
  18:	48 c1 e8 03          	shr    $0x3,%rax
  1c:	48 b9 00 00 00 00 00 	movabs $0xdffffc0000000000,%rcx
  23:	fc ff df
* 26:	0f b6 04 08          	movzbl (%rax,%rcx,1),%eax <-- trapping instruction
  2a:	84 c0                	test   %al,%al
  2c:	0f 85 55 0f 00 00    	jne    0xf87
  32:	44 0f b6 23          	movzbl (%rbx),%r12d
  36:	44 89 e0             	mov    %r12d,%eax
  39:	44 08 f8             	or     %r15b,%al

Crashes (17):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
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
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.