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: 199d, last: 8d07h
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 11d 242d 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 829d 942d 0/1 upstream: reported C repro on 2022/11/12 02:17
android-5-10 general protection fault in update_sit_entry C 11 4d22h 194d 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 34d 155d 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 11 16h30m 184d 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:
general protection fault, probably for non-canonical address 0xdffffc0000000003: 0000 [#1] PREEMPT SMP KASAN
KASAN: null-ptr-deref in range [0x0000000000000018-0x000000000000001f]
CPU: 1 PID: 305 Comm: syz-executor349 Not tainted 5.15.184-syzkaller-00129-g4032a894ccb2 #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 9a 58 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:ffffc90000b47280 EFLAGS: 00010206
RAX: 0000000000000003 RBX: 000000000000001b RCX: ffff8881049f13c0
RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000000
RBP: ffffc90000b47300 R08: ffff8881049f13c0 R09: 0000000000000003
R10: 00000000ffffffff R11: 0000000000000000 R12: dffffc0000000000
R13: ffff88810a914168 R14: 0000000000000000 R15: ffff88810a88e000
FS:  00007f1a1ed446c0(0000) GS:ffff8881f7100000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f1a1eddad18 CR3: 00000001227e6000 CR4: 00000000003506a0
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
 expand_inode_data+0x4a1/0x870 fs/f2fs/file.c:1735
 f2fs_fallocate+0x41c/0x880 fs/f2fs/file.c:1838
 vfs_fallocate+0x4b4/0x590 fs/open.c:309
 ioctl_preallocate fs/ioctl.c:294 [inline]
 file_ioctl fs/ioctl.c:-1 [inline]
 do_vfs_ioctl+0x1a96/0x1d00 fs/ioctl.c:853
 __do_sys_ioctl fs/ioctl.c:872 [inline]
 __se_sys_ioctl+0x9f/0x1a0 fs/ioctl.c:860
 __x64_sys_ioctl+0x7b/0x90 fs/ioctl.c:860
 x64_sys_call+0x2f/0x9a0 arch/x86/include/generated/asm/syscalls_64.h:17
 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:0x7f1a1ed87739
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:00007f1a1ed44218 EFLAGS: 00000246 ORIG_RAX: 0000000000000010
RAX: ffffffffffffffda RBX: 00007f1a1ee13608 RCX: 00007f1a1ed87739
RDX: 00002000000000c0 RSI: 0000000040305828 RDI: 0000000000000004
RBP: 00007f1a1ee13600 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 00007f1a1ede05f0
R13: 00002000000000c0 R14: 00002000000000e0 R15: 0000200000000000
 </TASK>
Modules linked in:
---[ end trace 897f891574e313f4 ]---
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 9a 58 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:ffffc90000b47280 EFLAGS: 00010206
RAX: 0000000000000003 RBX: 000000000000001b RCX: ffff8881049f13c0
RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000000
RBP: ffffc90000b47300 R08: ffff8881049f13c0 R09: 0000000000000003
R10: 00000000ffffffff R11: 0000000000000000 R12: dffffc0000000000
R13: ffff88810a914168 R14: 0000000000000000 R15: ffff88810a88e000
FS:  00007f1a1ed446c0(0000) GS:ffff8881f7000000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f1a17173000 CR3: 00000001227e6000 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 9a 58 92 ff       	call   0xff9258b6
  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 (11):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
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
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.