syzbot


general protection fault in update_sit_entry

Status: upstream: reported C repro on 2025/01/07 01:40
Bug presence: origin:lts-only
[Documentation on labels]
Reported-by: syzbot+fd9d30bfbd5d4a966056@syzkaller.appspotmail.com
First crash: 370d, last: 8d21h
Fix commit to backport (bisect log) :
tree: upstream
commit 458c15dfbce62c35fefd9ca637b20a051309c9f1
Author: Chao Yu <chao@kernel.org>
Date: Tue May 23 03:58:22 2023 +0000

  f2fs: don't reset unchangable mount option in f2fs_remount()

  
Bug presence (2)
Date Name Commit Repro Result
2025/01/07 linux-6.1.y (ToT) 7dc732d24ff7 C [report] general protection fault in update_sit_entry
2025/01/07 upstream (ToT) fbfd64d25c7a 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 12d 457d 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 1044d 1157d 0/1 upstream: reported C repro on 2022/11/12 02:17
android-5-10 general protection fault in update_sit_entry 2 C 23 10d 408d 0/2 upstream: reported C repro on 2024/11/29 11:40
android-6-1 general protection fault in update_sit_entry origin:downstream 2 C 24 5d13h 399d 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 46 4d00h 414d 0/2 upstream: reported C repro on 2024/11/24 02:28
Fix bisection attempts (1)
Created Duration User Patch Repo Result
2025/01/27 12:16 8h40m fix candidate upstream OK (1) job log

Sample crash report:
F2FS-fs (loop0): Found nat_bits in checkpoint
F2FS-fs (loop0): Start checkpoint disabled!
F2FS-fs (loop0): Mounted with checkpoint version = 48b305e6
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: 4426 Comm: syz.0.17 Not tainted syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/25/2025
RIP: 0010:f2fs_test_and_set_bit fs/f2fs/f2fs.h:2932 [inline]
RIP: 0010:update_sit_entry+0x626/0xf30 fs/f2fs/segment.c:2227
Code: 01 00 00 48 8d 5d 20 48 89 d8 48 c1 e8 03 42 80 3c 38 00 74 08 48 89 df e8 27 aa 2a fe 48 8b 1b 4c 01 e3 48 89 d8 48 c1 e8 03 <42> 0f b6 04 38 84 c0 0f 85 ae 07 00 00 0f b6 2b 89 e8 44 8b 74 24
RSP: 0018:ffffc900035372f0 EFLAGS: 00010247
RAX: 0000000000000000 RBX: 0000000000000006 RCX: 0000000000000000
RDX: ffff88807c990000 RSI: 0000000000000000 RDI: 0000000000000000
RBP: ffff8880798f0240 R08: ffff88807c990000 R09: 0000000000000003
R10: 00000000ffffffff R11: 0000000000000000 R12: 0000000000000006
R13: ffff888019288000 R14: ffff88801928c906 R15: dffffc0000000000
FS:  00007fb2d1b476c0(0000) GS:ffff8880b8e00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007fb2d03fdf98 CR3: 0000000078a79000 CR4: 00000000003506f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <TASK>
 f2fs_allocate_data_block+0x13f8/0x35e0 fs/f2fs/segment.c:3275
 __allocate_data_block+0x519/0x9f0 fs/f2fs/data.c:1424
 f2fs_map_blocks+0x1007/0x33d0 fs/f2fs/data.c:1608
 expand_inode_data+0x4a1/0x860 fs/f2fs/file.c:1803
 f2fs_fallocate+0x4c3/0x950 fs/f2fs/file.c:1906
 vfs_fallocate+0x584/0x6f0 fs/open.c:323
 ioctl_preallocate fs/ioctl.c:290 [inline]
 file_ioctl fs/ioctl.c:-1 [inline]
 do_vfs_ioctl+0x1a9d/0x1d10 fs/ioctl.c:849
 __do_sys_ioctl fs/ioctl.c:868 [inline]
 __se_sys_ioctl+0x83/0x170 fs/ioctl.c:856
 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:0x7fb2d0d8f749
Code: ff ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 00 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 a8 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007fb2d1b47038 EFLAGS: 00000246 ORIG_RAX: 0000000000000010
RAX: ffffffffffffffda RBX: 00007fb2d0fe5fa0 RCX: 00007fb2d0d8f749
RDX: 00002000000000c0 RSI: 0000000040305828 RDI: 0000000000000004
RBP: 00007fb2d0e13f91 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 00007fb2d0fe6038 R14: 00007fb2d0fe5fa0 R15: 00007ffcfb9165c8
 </TASK>
Modules linked in:
---[ end trace 0000000000000000 ]---
RIP: 0010:f2fs_test_and_set_bit fs/f2fs/f2fs.h:2932 [inline]
RIP: 0010:update_sit_entry+0x626/0xf30 fs/f2fs/segment.c:2227
Code: 01 00 00 48 8d 5d 20 48 89 d8 48 c1 e8 03 42 80 3c 38 00 74 08 48 89 df e8 27 aa 2a fe 48 8b 1b 4c 01 e3 48 89 d8 48 c1 e8 03 <42> 0f b6 04 38 84 c0 0f 85 ae 07 00 00 0f b6 2b 89 e8 44 8b 74 24
RSP: 0018:ffffc900035372f0 EFLAGS: 00010247
RAX: 0000000000000000 RBX: 0000000000000006 RCX: 0000000000000000
RDX: ffff88807c990000 RSI: 0000000000000000 RDI: 0000000000000000
RBP: ffff8880798f0240 R08: ffff88807c990000 R09: 0000000000000003
R10: 00000000ffffffff R11: 0000000000000000 R12: 0000000000000006
R13: ffff888019288000 R14: ffff88801928c906 R15: dffffc0000000000
FS:  00007fb2d1b476c0(0000) GS:ffff8880b8f00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000557e98b36980 CR3: 0000000078a79000 CR4: 00000000003506e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
----------------
Code disassembly (best guess):
   0:	01 00                	add    %eax,(%rax)
   2:	00 48 8d             	add    %cl,-0x73(%rax)
   5:	5d                   	pop    %rbp
   6:	20 48 89             	and    %cl,-0x77(%rax)
   9:	d8 48 c1             	fmuls  -0x3f(%rax)
   c:	e8 03 42 80 3c       	call   0x3c804214
  11:	38 00                	cmp    %al,(%rax)
  13:	74 08                	je     0x1d
  15:	48 89 df             	mov    %rbx,%rdi
  18:	e8 27 aa 2a fe       	call   0xfe2aaa44
  1d:	48 8b 1b             	mov    (%rbx),%rbx
  20:	4c 01 e3             	add    %r12,%rbx
  23:	48 89 d8             	mov    %rbx,%rax
  26:	48 c1 e8 03          	shr    $0x3,%rax
* 2a:	42 0f b6 04 38       	movzbl (%rax,%r15,1),%eax <-- trapping instruction
  2f:	84 c0                	test   %al,%al
  31:	0f 85 ae 07 00 00    	jne    0x7e5
  37:	0f b6 2b             	movzbl (%rbx),%ebp
  3a:	89 e8                	mov    %ebp,%eax
  3c:	44                   	rex.R
  3d:	8b                   	.byte 0x8b
  3e:	74 24                	je     0x64

Crashes (16):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2025/12/27 14:35 linux-6.1.y 50cbba13faa2 d6526ea3 .config console log report syz / log C [disk image] [vmlinux] [kernel image] [mounted in repro (corrupt fs)] ci2-linux-6-1-kasan general protection fault in update_sit_entry
2025/05/08 14:54 linux-6.1.y ac7079a42ea5 dbf35fa1 .config console log report syz / log C [disk image] [vmlinux] [kernel image] [mounted in repro (corrupt fs)] ci2-linux-6-1-kasan general protection fault in update_sit_entry
2025/01/07 07:01 linux-6.1.y 7dc732d24ff7 f3558dbf .config console log report syz / log C [disk image] [vmlinux] [kernel image] [mounted in repro] ci2-linux-6-1-kasan general protection fault in update_sit_entry
2025/01/07 06:14 linux-6.1.y 7dc732d24ff7 f3558dbf .config console log report syz / log C [disk image] [vmlinux] [kernel image] [mounted in repro] ci2-linux-6-1-kasan general protection fault in update_sit_entry
2025/08/27 09:52 linux-6.1.y 0bc96de781b4 e12e5ba4 .config console log report syz / log C [disk image] [vmlinux] [kernel image] [mounted in repro (corrupt fs)] ci2-linux-6-1-kasan-arm64 BUG: unable to handle kernel paging request in update_sit_entry
2025/01/07 03:56 linux-6.1.y 7dc732d24ff7 f3558dbf .config console log report syz / log [disk image] [vmlinux] [kernel image] [mounted in repro] ci2-linux-6-1-kasan general protection fault in update_sit_entry
2026/01/03 05:11 linux-6.1.y 50cbba13faa2 d6526ea3 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan general protection fault in update_sit_entry
2025/12/27 13:49 linux-6.1.y 50cbba13faa2 d6526ea3 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan general protection fault in update_sit_entry
2025/07/24 04:49 linux-6.1.y 3369c6df2fae 0c1d6ded .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan general protection fault in update_sit_entry
2025/07/24 04:48 linux-6.1.y 3369c6df2fae 0c1d6ded .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan general protection fault in update_sit_entry
2025/07/24 04:43 linux-6.1.y 3369c6df2fae 0c1d6ded .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan general protection fault in update_sit_entry
2025/05/08 14:19 linux-6.1.y ac7079a42ea5 dbf35fa1 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan general protection fault in update_sit_entry
2025/01/07 01:40 linux-6.1.y 7dc732d24ff7 f3558dbf .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan general protection fault in update_sit_entry
2025/11/27 10:48 linux-6.1.y f6e38ae624cf d6526ea3 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan-arm64 BUG: unable to handle kernel paging request in update_sit_entry
2025/08/27 08:46 linux-6.1.y 0bc96de781b4 e12e5ba4 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan-arm64 BUG: unable to handle kernel paging request in update_sit_entry
2025/07/13 15:05 linux-6.1.y dfc486ec9cce 3cda49cf .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan-arm64 BUG: unable to handle kernel paging request in update_sit_entry
* Struck through repros no longer work on HEAD.