syzbot


general protection fault in update_sit_entry

Status: upstream: reported C repro on 2024/11/24 02:28
Bug presence: origin:downstream
[Documentation on labels]
Reported-by: syzbot+74f4db0e3f48b4592d48@syzkaller.appspotmail.com
First crash: 213d, last: 2d20h
Bug presence (3)
Date Name Commit Repro Result
2024/11/24 android13-5.15-lts (ToT) 101e665d55a8 C [report] general protection fault in update_sit_entry
2024/11/24 lts (merge base) 584a40a22cb9 C Didn't crash
2024/11/24 upstream (ToT) 9f16d5e6f220 C Didn't crash
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 4d18h 256d 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 843d 955d 0/1 upstream: reported C repro on 2022/11/12 02:17
android-5-10 general protection fault in update_sit_entry C 11 3d18h 207d 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 C done 6 47d 169d 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 17 2d15h 198d 0/2 upstream: reported C repro on 2024/12/08 18:16
Last patch testing requests (10)
Created Duration User Patch Repo Result
2025/05/08 12:39 23m retest repro android13-5.15-lts report log
2025/05/08 12:39 9m retest repro android13-5.15-lts report log
2025/05/08 12:39 12m retest repro android13-5.15-lts report log
2025/04/13 09:28 11m retest repro android13-5.15-lts report log
2025/02/24 03:31 17m retest repro android13-5.15-lts report log
2025/02/24 03:31 17m retest repro android13-5.15-lts report log
2025/02/24 03:31 53m retest repro android13-5.15-lts report log
2025/02/24 03:31 11m retest repro android13-5.15-lts report log
2025/02/02 05:55 9m retest repro android13-5.15-lts report log
2024/12/15 23:41 17m retest repro android13-5.15-lts report log
Fix bisection attempts (1)
Created Duration User Patch Repo Result
2025/03/28 05:10 1h40m bisect fix android13-5.15-lts OK (0) job log log

Sample crash report:
F2FS-fs (loop0): switch discard_unit option is not allowed
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: 301 Comm: syz-executor420 Not tainted 5.15.185-syzkaller-00339-ge678c93d43cc #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:2931 [inline]
RIP: 0010:update_sit_entry+0x5b4/0xf70 fs/f2fs/segment.c:2256
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 0a 59 92 ff 48 8b 1b 48 03 5d b0 48 89 d8 48 c1 e8 03 <42> 0f b6 04 20 84 c0 0f 85 a9 08 00 00 44 0f b6 33 44 89 f0 44 8b
RSP: 0018:ffffc90000ac6f20 EFLAGS: 00010246
RAX: 0000000000000000 RBX: 0000000000000000 RCX: ffff8881071ca780
RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000000
RBP: ffffc90000ac6fa0 R08: ffff8881071ca780 R09: 0000000000000003
R10: 00000000ffffffff R11: 0000000000000000 R12: dffffc0000000000
R13: ffff88810a81c1b8 R14: 0000000000000000 R15: ffff8881019fe000
FS:  00007fe7f97eb6c0(0000) GS:ffff8881f7000000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000200000001740 CR3: 0000000121c2f000 CR4: 00000000003506b0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <TASK>
 f2fs_allocate_data_block+0x15e8/0x3240 fs/f2fs/segment.c:3457
 __allocate_data_block+0x526/0xa00 fs/f2fs/data.c:1404
 f2fs_map_blocks+0xeea/0x38a0 fs/f2fs/data.c:1576
 f2fs_iomap_begin+0x1fc/0x8d0 fs/f2fs/data.c:4191
 iomap_iter+0x57d/0xaf0 fs/iomap/iter.c:74
 __iomap_dio_rw+0xa15/0x19f0 fs/iomap/direct-io.c:597
 f2fs_dio_write_iter fs/f2fs/file.c:4620 [inline]
 f2fs_file_write_iter+0xf96/0x2910 fs/f2fs/file.c:4752
 call_write_iter include/linux/fs.h:2204 [inline]
 new_sync_write fs/read_write.c:507 [inline]
 vfs_write+0x802/0xf70 fs/read_write.c:594
 ksys_write+0x140/0x240 fs/read_write.c:647
 __do_sys_write fs/read_write.c:659 [inline]
 __se_sys_write fs/read_write.c:656 [inline]
 __x64_sys_write+0x7b/0x90 fs/read_write.c:656
 x64_sys_call+0x8ef/0x9a0 arch/x86/include/generated/asm/syscalls_64.h:2
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x4c/0xa0 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x66/0xd0
RIP: 0033:0x7fe7f982f679
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:00007fe7f97eb168 EFLAGS: 00000246 ORIG_RAX: 0000000000000001
RAX: ffffffffffffffda RBX: 00007fe7f98bb6c8 RCX: 00007fe7f982f679
RDX: 000000000000003b RSI: 0000200000000080 RDI: 0000000000000004
RBP: 00007fe7f98bb6c0 R08: 00007fe7f97eaf07 R09: 0000000000000000
R10: 0000000000000014 R11: 0000000000000246 R12: 00007fe7f98bb6cc
R13: 0000000000000006 R14: 00007fff189ce930 R15: 00007fff189cea18
 </TASK>
Modules linked in:
---[ end trace 4cef8471f5e11671 ]---
RIP: 0010:f2fs_test_and_set_bit fs/f2fs/f2fs.h:2931 [inline]
RIP: 0010:update_sit_entry+0x5b4/0xf70 fs/f2fs/segment.c:2256
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 0a 59 92 ff 48 8b 1b 48 03 5d b0 48 89 d8 48 c1 e8 03 <42> 0f b6 04 20 84 c0 0f 85 a9 08 00 00 44 0f b6 33 44 89 f0 44 8b
RSP: 0018:ffffc90000ac6f20 EFLAGS: 00010246
RAX: 0000000000000000 RBX: 0000000000000000 RCX: ffff8881071ca780
RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000000
RBP: ffffc90000ac6fa0 R08: ffff8881071ca780 R09: 0000000000000003
R10: 00000000ffffffff R11: 0000000000000000 R12: dffffc0000000000
R13: ffff88810a81c1b8 R14: 0000000000000000 R15: ffff8881019fe000
FS:  00007fe7f97eb6c0(0000) GS:ffff8881f7100000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007fe7f2788000 CR3: 0000000121c2f000 CR4: 00000000003506a0
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 0a 59 92 ff       	call   0xff925926
  1c:	48 8b 1b             	mov    (%rbx),%rbx
  1f:	48 03 5d b0          	add    -0x50(%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 a9 08 00 00    	jne    0x8e0
  37:	44 0f b6 33          	movzbl (%rbx),%r14d
  3b:	44 89 f0             	mov    %r14d,%eax
  3e:	44                   	rex.R
  3f:	8b                   	.byte 0x8b

Crashes (17):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2025/06/20 22:24 android13-5.15-lts e678c93d43cc 804b3919 .config strace log report syz / log C [disk image] [vmlinux] [kernel image] [mounted in repro (corrupt fs)] ci2-android-5-15 general protection fault in update_sit_entry
2025/06/19 05:46 android13-5.15-lts e678c93d43cc ed3e87f7 .config console log report syz / log C [disk image] [vmlinux] [kernel image] [mounted in repro (corrupt fs)] ci2-android-5-15 general protection fault in update_sit_entry
2025/06/18 11:17 android13-5.15-lts e678c93d43cc e77fae15 .config console log report syz / log C [disk image] [vmlinux] [kernel image] [mounted in repro (corrupt fs)] ci2-android-5-15 general protection fault in update_sit_entry
2025/06/18 08:25 android13-5.15-lts e678c93d43cc e77fae15 .config console log report syz / log C [disk image] [vmlinux] [kernel image] [mounted in repro (corrupt fs)] ci2-android-5-15 general protection fault in update_sit_entry
2025/06/03 07:29 android13-5.15-lts 4032a894ccb2 a30356b7 .config strace log report syz / log C [disk image] [vmlinux] [kernel image] [mounted in repro (corrupt fs)] ci2-android-5-15 general protection fault in update_sit_entry
2025/05/31 17:27 android13-5.15-lts 4032a894ccb2 3d2f584d .config strace log report syz / log C [disk image] [vmlinux] [kernel image] [mounted in repro (corrupt fs)] ci2-android-5-15 general protection fault in update_sit_entry
2024/11/24 08:49 android13-5.15-lts 101e665d55a8 68da6d95 .config strace log report syz / log C [disk image] [vmlinux] [kernel image] [mounted in repro] ci2-android-5-15 general protection fault in update_sit_entry
2024/11/24 06:33 android13-5.15-lts 101e665d55a8 68da6d95 .config strace log report syz / log C [disk image] [vmlinux] [kernel image] [mounted in repro] ci2-android-5-15 general protection fault in update_sit_entry
2024/11/24 04:39 android13-5.15-lts 101e665d55a8 68da6d95 .config console log report syz / log C [disk image] [vmlinux] [kernel image] [mounted in repro] ci2-android-5-15 general protection fault in update_sit_entry
2024/11/24 02:21 android13-5.15-lts 101e665d55a8 68da6d95 .config strace log report syz / log C [disk image] [vmlinux] [kernel image] [mounted in repro] ci2-android-5-15 general protection fault in update_sit_entry
2025/06/22 04:59 android13-5.15-lts e678c93d43cc d6cdfb8a .config console log report syz / log [disk image] [vmlinux] [kernel image] [mounted in repro (corrupt fs)] ci2-android-5-15 general protection fault in update_sit_entry
2025/06/18 06:19 android13-5.15-lts e678c93d43cc e77fae15 .config console log report syz / log [disk image] [vmlinux] [kernel image] [mounted in repro (corrupt fs)] ci2-android-5-15 general protection fault in update_sit_entry
2024/11/24 11:06 android13-5.15-lts 101e665d55a8 68da6d95 .config console log report syz / log [disk image] [vmlinux] [kernel image] [mounted in repro] ci2-android-5-15 general protection fault in update_sit_entry
2025/05/31 16:46 android13-5.15-lts 4032a894ccb2 3d2f584d .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-15 general protection fault in update_sit_entry
2025/01/12 19:06 android13-5.15-lts 19092c8155b4 6dbc6a9b .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-15 general protection fault in update_sit_entry
2024/12/01 14:53 android13-5.15-lts 548ca9fbf844 68914665 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-15 general protection fault in update_sit_entry
2024/11/24 00:35 android13-5.15-lts 101e665d55a8 68da6d95 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-15 general protection fault in update_sit_entry
* Struck through repros no longer work on HEAD.