syzbot


general protection fault in update_sit_entry

Status: upstream: reported C repro on 2024/11/29 11:40
Reported-by: syzbot+163873d140f6bf1d2e0e@syzkaller.appspotmail.com
First crash: 241d, last: 6d20h
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 36d 287d 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 874d 987d 0/1 upstream: reported C repro on 2022/11/12 02:17
linux-6.1 general protection fault in update_sit_entry origin:lts-only 8 C done 10 2d10h 200d 0/3 upstream: reported C repro on 2025/01/07 01:40
android-6-1 general protection fault in update_sit_entry origin:downstream 2 C 17 5d00h 229d 0/2 upstream: reported C repro on 2024/12/08 18:16
android-5-15 general protection fault in update_sit_entry origin:downstream 2 C 17 3d19h 244d 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/06 19:51 11m retest repro android13-5.10-lts report log
2025/06/21 06:02 13m retest repro android13-5.10-lts report log
2025/06/21 06:02 1h06m retest repro android13-5.10-lts report log
2025/06/06 16:55 6m retest repro android13-5.10-lts report log
2025/06/06 16:55 6m retest repro android13-5.10-lts report log
2025/05/12 04:49 1h08m retest repro android13-5.10-lts report log
2025/04/23 00:02 55m retest repro android13-5.10-lts report log
2025/03/28 16:17 22m retest repro android13-5.10-lts report log
2025/03/28 16:17 1h06m retest repro android13-5.10-lts report log
2025/03/28 16:17 18m retest repro android13-5.10-lts report log
Fix bisection attempts (1)
Created Duration User Patch Repo Result
2025/02/11 14:47 2h46m bisect fix android13-5.10-lts 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: 2376 Comm: syz-executor173 Not tainted 5.10.239-syzkaller #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:2914 [inline]
RIP: 0010:update_sit_entry+0x58e/0xf50 fs/f2fs/segment.c:2339
Code: 00 00 49 8d 5d 18 48 89 d8 48 c1 e8 03 42 80 3c 20 00 74 08 48 89 df e8 10 19 94 ff 48 8b 1b 48 03 5d a8 48 89 d8 48 c1 e8 03 <42> 0f b6 04 20 84 c0 0f 85 ab 08 00 00 44 0f b6 33 44 89 f0 44 8b
RSP: 0018:ffffc90005766e10 EFLAGS: 00010246
RAX: 0000000000000000 RBX: 0000000000000000 RCX: 0000000000000000
RDX: ffff88810af3bb40 RSI: 0000000000000000 RDI: 0000000000000000
RBP: ffffc90005766e90 R08: ffff88810af3bb40 R09: 0000000000000003
R10: 00000000ffffffff R11: 0000000000000000 R12: dffffc0000000000
R13: ffff88811163e878 R14: ffff888111f180c0 R15: ffff888111f18000
FS:  00007fb743ef56c0(0000) GS:ffff8881f7000000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 000020000000b000 CR3: 0000000111d19000 CR4: 00000000003506b0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 f2fs_allocate_data_block+0x156b/0x3a10 fs/f2fs/segment.c:3481
 do_write_page+0x2bb/0x810 fs/f2fs/segment.c:3569
 f2fs_outplace_write_data+0xf6/0x240 fs/f2fs/segment.c:3635
 f2fs_do_write_data_page+0xad4/0x11d0 fs/f2fs/data.c:2710
 f2fs_write_single_data_page+0xde2/0x1650 fs/f2fs/data.c:2833
 f2fs_write_cache_pages fs/f2fs/data.c:3084 [inline]
 __f2fs_write_data_pages fs/f2fs/data.c:3234 [inline]
 f2fs_write_data_pages+0x193c/0x28f0 fs/f2fs/data.c:3261
 do_writepages+0x12a/0x270 mm/page-writeback.c:2380
 __filemap_fdatawrite_range+0x2bc/0x360 mm/filemap.c:427
 filemap_write_and_wait_range+0x65/0x290 mm/filemap.c:660
 f2fs_symlink+0x6c5/0x950 fs/f2fs/namei.c:734
 vfs_symlink+0x380/0x520 fs/namei.c:4099
 do_symlinkat+0x103/0x3b0 fs/namei.c:4126
 __do_sys_symlink fs/namei.c:4145 [inline]
 __se_sys_symlink fs/namei.c:4143 [inline]
 __x64_sys_symlink+0x60/0x70 fs/namei.c:4143
 do_syscall_64+0x31/0x40 arch/x86/entry/common.c:46
 entry_SYSCALL_64_after_hwframe+0x61/0xcb
RIP: 0033:0x7fb743f59e09
Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 b1 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:00007fb743ef5218 EFLAGS: 00000246 ORIG_RAX: 0000000000000058
RAX: ffffffffffffffda RBX: 00007fb743fe76b8 RCX: 00007fb743f59e09
RDX: 0000000000000000 RSI: 0000200000000cc0 RDI: 000020000000a900
RBP: 00007fb743fe76b0 R08: 00007ffc1c77f827 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 000020000000a900
R13: 0000200000000cc0 R14: 00007ffc1c77f740 R15: 0000200000000100
Modules linked in:
---[ end trace e59c9341bf8f40f2 ]---
RIP: 0010:f2fs_test_and_set_bit fs/f2fs/f2fs.h:2914 [inline]
RIP: 0010:update_sit_entry+0x58e/0xf50 fs/f2fs/segment.c:2339
Code: 00 00 49 8d 5d 18 48 89 d8 48 c1 e8 03 42 80 3c 20 00 74 08 48 89 df e8 10 19 94 ff 48 8b 1b 48 03 5d a8 48 89 d8 48 c1 e8 03 <42> 0f b6 04 20 84 c0 0f 85 ab 08 00 00 44 0f b6 33 44 89 f0 44 8b
RSP: 0018:ffffc90005766e10 EFLAGS: 00010246
RAX: 0000000000000000 RBX: 0000000000000000 RCX: 0000000000000000
RDX: ffff88810af3bb40 RSI: 0000000000000000 RDI: 0000000000000000
RBP: ffffc90005766e90 R08: ffff88810af3bb40 R09: 0000000000000003
R10: 00000000ffffffff R11: 0000000000000000 R12: dffffc0000000000
R13: ffff88811163e878 R14: ffff888111f180c0 R15: ffff888111f18000
FS:  00007fb743ef56c0(0000) GS:ffff8881f7000000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007fb743f17000 CR3: 0000000111d19000 CR4: 00000000003506b0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
----------------
Code disassembly (best guess):
   0:	00 00                	add    %al,(%rax)
   2:	49 8d 5d 18          	lea    0x18(%r13),%rbx
   6:	48 89 d8             	mov    %rbx,%rax
   9:	48 c1 e8 03          	shr    $0x3,%rax
   d:	42 80 3c 20 00       	cmpb   $0x0,(%rax,%r12,1)
  12:	74 08                	je     0x1c
  14:	48 89 df             	mov    %rbx,%rdi
  17:	e8 10 19 94 ff       	call   0xff94192c
  1c:	48 8b 1b             	mov    (%rbx),%rbx
  1f:	48 03 5d a8          	add    -0x58(%rbp),%rbx
  23:	48 89 d8             	mov    %rbx,%rax
  26:	48 c1 e8 03          	shr    $0x3,%rax
* 2a:	42 0f b6 04 20       	movzbl (%rax,%r12,1),%eax <-- trapping instruction
  2f:	84 c0                	test   %al,%al
  31:	0f 85 ab 08 00 00    	jne    0x8e2
  37:	44 0f b6 33          	movzbl (%rbx),%r14d
  3b:	44 89 f0             	mov    %r14d,%eax
  3e:	44                   	rex.R
  3f:	8b                   	.byte 0x8b

Crashes (13):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2025/07/19 18:25 android13-5.10-lts 6de38b5f6c2b 7117feec .config strace log report syz / log C [disk image] [vmlinux] [kernel image] [mounted in repro (corrupt fs)] ci2-android-5-10 general protection fault in update_sit_entry
2025/07/07 00:30 android13-5.10-lts 59e9a7228857 4f67c4ae .config strace log report syz / log C [disk image] [vmlinux] [kernel image] [mounted in repro (corrupt fs)] ci2-android-5-10 general protection fault in update_sit_entry
2025/03/14 15:24 android13-5.10-lts fc9aa81462ee e2826670 .config console log report syz / log C [disk image] [vmlinux] [kernel image] [mounted in repro (corrupt fs)] ci2-android-5-10 general protection fault in update_sit_entry
2025/03/14 08:47 android13-5.10-lts 3f5f2283d684 e2826670 .config console log report syz / log C [disk image] [vmlinux] [kernel image] [mounted in repro (corrupt fs)] ci2-android-5-10 general protection fault in update_sit_entry
2025/03/14 05:17 android13-5.10-lts 3f5f2283d684 e2826670 .config console log report syz / log C [disk image] [vmlinux] [kernel image] [mounted in repro (corrupt fs)] ci2-android-5-10 general protection fault in update_sit_entry
2025/03/02 05:15 android13-5.10-lts 3f5f2283d684 c3901742 .config strace log report syz / log C [disk image] [vmlinux] [kernel image] [mounted in repro (corrupt fs)] ci2-android-5-10 general protection fault in update_sit_entry
2024/11/29 11:28 android13-5.10-lts 139a6bb26d9d 5df23865 .config console log report syz / log C [disk image] [vmlinux] [kernel image] [mounted in repro] ci2-android-5-10 general protection fault in update_sit_entry
2024/11/27 06:45 android13-5.10-lts 139a6bb26d9d 52b38cc1 .config console log report syz / log [disk image] [vmlinux] [kernel image] [mounted in repro] ci2-android-5-10 general protection fault in update_sit_entry
2025/01/08 23:49 android13-5.10-lts 49e8ba0a684f f3558dbf .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-10 general protection fault in update_sit_entry
2025/01/08 20:57 android13-5.10-lts 49e8ba0a684f f3558dbf .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-10 general protection fault in update_sit_entry
2025/01/06 14:02 android13-5.10-lts 49e8ba0a684f f3558dbf .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-10 general protection fault in update_sit_entry
2024/11/29 11:13 android13-5.10-lts 139a6bb26d9d 5df23865 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-10 general protection fault in update_sit_entry
2024/11/27 04:51 android13-5.10-lts 139a6bb26d9d 52b38cc1 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-10 general protection fault in update_sit_entry
* Struck through repros no longer work on HEAD.