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: 192d, last: 1d00h
Similar bugs (5)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
linux-5.15 general protection fault in update_sit_entry origin:lts-only C error 18 7d02h 239d 0/3 upstream: reported C repro on 2024/10/11 17:04
linux-4.14 general protection fault in update_sit_entry f2fs C 9 825d 938d 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 C done 6 30d 151d 0/3 upstream: reported C repro on 2025/01/07 01:40
android-6-1 general protection fault in update_sit_entry origin:downstream C 8 12d 180d 0/2 upstream: reported C repro on 2024/12/08 18:16
android-5-15 general protection fault in update_sit_entry origin:downstream C 11 4d09h 195d 0/2 upstream: reported C repro on 2024/11/24 02:28
Last patch testing requests (10)
Created Duration User Patch Repo Result
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
2025/03/28 16:17 16m retest repro android13-5.10-lts report log
2025/02/26 00:52 9m retest repro android13-5.10-lts report log
2024/12/13 22:06 15m 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: 333 Comm: syz-executor138 Not tainted 5.10.234-syzkaller-00031-gfc9aa81462ee #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 02/12/2025
RIP: 0010:f2fs_test_and_set_bit fs/f2fs/f2fs.h:2908 [inline]
RIP: 0010:update_sit_entry+0x5df/0x1050 fs/f2fs/segment.c:2339
Code: 4d 90 48 8d 5c c8 18 48 89 d8 48 c1 e8 03 42 80 3c 28 00 74 08 48 89 df e8 ee 93 88 ff 4c 8b 33 4d 01 fe 4d 89 f4 49 c1 ec 03 <43> 0f b6 04 2c 84 c0 0f 85 21 09 00 00 41 0f b6 1e 41 89 df 8b 45
RSP: 0018:ffffc90000e86b58 EFLAGS: 00010246
RAX: 1ffff1102193c43a RBX: ffff88810c9e21d0 RCX: 0000000000000037
RDX: ffff88810d08bb40 RSI: 0000000000000000 RDI: 0000000000000000
RBP: ffffc90000e86bf0 R08: ffffffff821fc9b0 R09: ffffffff821fc50d
R10: 0000000000000003 R11: ffff88810d08bb40 R12: 0000000000000000
R13: dffffc0000000000 R14: 0000000000000000 R15: 0000000000000000
FS:  00007f2799e576c0(0000) GS:ffff8881f7000000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007ffdb4a5a0b4 CR3: 00000001206c4000 CR4: 00000000003506b0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 f2fs_allocate_data_block+0x1512/0x3680 fs/f2fs/segment.c:3481
 __allocate_data_block+0x5a7/0xb10 fs/f2fs/data.c:1407
 f2fs_map_blocks+0x18ef/0x3e50 fs/f2fs/data.c:1575
 f2fs_iomap_begin+0x270/0x980 fs/f2fs/data.c:4118
 iomap_apply+0x116/0x8a0 fs/iomap/apply.c:46
 __iomap_dio_rw+0x767/0x10f0 fs/iomap/direct-io.c:527
 f2fs_dio_write_iter fs/f2fs/file.c:4743 [inline]
 f2fs_file_write_iter+0x12b1/0x2570 fs/f2fs/file.c:4858
 do_iter_readv_writev+0x58e/0x790
 do_iter_write+0x183/0x640 fs/read_write.c:866
 vfs_writev+0x26e/0x510 fs/read_write.c:939
 do_pwritev fs/read_write.c:1036 [inline]
 __do_sys_pwritev2 fs/read_write.c:1095 [inline]
 __se_sys_pwritev2+0x1c6/0x2c0 fs/read_write.c:1086
 __x64_sys_pwritev2+0xe5/0x100 fs/read_write.c:1086
 do_syscall_64+0x34/0x70
 entry_SYSCALL_64_after_hwframe+0x61/0xcb
RIP: 0033:0x7f2799ebbdb9
Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 81 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:00007f2799e57158 EFLAGS: 00000212 ORIG_RAX: 0000000000000148
RAX: ffffffffffffffda RBX: 00007f2799f48618 RCX: 00007f2799ebbdb9
RDX: 0000000000000001 RSI: 0000400000000240 RDI: 0000000000000005
RBP: 00007f2799f48610 R08: 0000000000000007 R09: 0000000000000003
R10: 0000000000002000 R11: 0000000000000212 R12: 00007f2799f4861c
R13: 000000000000006e R14: 00007ffdb4a59ed0 R15: 00007ffdb4a59fb8
Modules linked in:
---[ end trace 392219312cfed31d ]---
RIP: 0010:f2fs_test_and_set_bit fs/f2fs/f2fs.h:2908 [inline]
RIP: 0010:update_sit_entry+0x5df/0x1050 fs/f2fs/segment.c:2339
Code: 4d 90 48 8d 5c c8 18 48 89 d8 48 c1 e8 03 42 80 3c 28 00 74 08 48 89 df e8 ee 93 88 ff 4c 8b 33 4d 01 fe 4d 89 f4 49 c1 ec 03 <43> 0f b6 04 2c 84 c0 0f 85 21 09 00 00 41 0f b6 1e 41 89 df 8b 45
RSP: 0018:ffffc90000e86b58 EFLAGS: 00010246
RAX: 1ffff1102193c43a RBX: ffff88810c9e21d0 RCX: 0000000000000037
RDX: ffff88810d08bb40 RSI: 0000000000000000 RDI: 0000000000000000
RBP: ffffc90000e86bf0 R08: ffffffff821fc9b0 R09: ffffffff821fc50d
R10: 0000000000000003 R11: ffff88810d08bb40 R12: 0000000000000000
R13: dffffc0000000000 R14: 0000000000000000 R15: 0000000000000000
FS:  00007f2799e576c0(0000) GS:ffff8881f7000000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f27929f5000 CR3: 00000001206c4000 CR4: 00000000003506b0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
----------------
Code disassembly (best guess):
   0:	4d 90                	rex.WRB xchg %rax,%r8
   2:	48 8d 5c c8 18       	lea    0x18(%rax,%rcx,8),%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 ee 93 88 ff       	call   0xff88940b
  1d:	4c 8b 33             	mov    (%rbx),%r14
  20:	4d 01 fe             	add    %r15,%r14
  23:	4d 89 f4             	mov    %r14,%r12
  26:	49 c1 ec 03          	shr    $0x3,%r12
* 2a:	43 0f b6 04 2c       	movzbl (%r12,%r13,1),%eax <-- trapping instruction
  2f:	84 c0                	test   %al,%al
  31:	0f 85 21 09 00 00    	jne    0x958
  37:	41 0f b6 1e          	movzbl (%r14),%ebx
  3b:	41 89 df             	mov    %ebx,%r15d
  3e:	8b                   	.byte 0x8b
  3f:	45                   	rex.RB

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