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: 24d, last: 7d17h
Similar bugs (4)
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 16 12d 70d 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 657d 770d 0/1 upstream: reported C repro on 2022/11/12 02:17
android-6-1 general protection fault in update_sit_entry origin:downstream C 5 12d 12d 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 7 5d15h 27d 0/2 upstream: reported C repro on 2024/11/24 02:28
Last patch testing requests (2)
Created Duration User Patch Repo Result
2024/12/13 22:06 15m retest repro android13-5.10-lts report log
2024/12/13 22:06 12m retest repro android13-5.10-lts report 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: 1 PID: 289 Comm: syz-executor313 Not tainted 5.10.226-syzkaller-00184-g139a6bb26d9d #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/13/2024
RIP: 0010:f2fs_test_and_set_bit fs/f2fs/f2fs.h:2905 [inline]
RIP: 0010:update_sit_entry+0x5e0/0x1060 fs/f2fs/segment.c:2330
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 ad c8 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:ffffc90000b96cf8 EFLAGS: 00010246
RAX: 1ffff1102388e03a RBX: ffff88811c4701d0 RCX: 0000000000000037
RDX: ffff88810cab93c0 RSI: 0000000000000000 RDI: 0000000000000000
RBP: ffffc90000b96d90 R08: ffffffff821f8cf1 R09: ffffffff821f884d
R10: 0000000000000003 R11: ffff88810cab93c0 R12: 0000000000000000
R13: dffffc0000000000 R14: 0000000000000000 R15: 0000000000000000
FS:  00007f775aad76c0(0000) GS:ffff8881f7100000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f775aad6ff8 CR3: 000000010c295000 CR4: 00000000003506a0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 f2fs_allocate_data_block+0x18ee/0x3150 fs/f2fs/segment.c:3487
 __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:525
 f2fs_dio_write_iter fs/f2fs/file.c:4710 [inline]
 f2fs_file_write_iter+0x12b1/0x2570 fs/f2fs/file.c:4825
 call_write_iter include/linux/fs.h:2023 [inline]
 new_sync_write fs/read_write.c:518 [inline]
 vfs_write+0xb4c/0xe70 fs/read_write.c:605
 ksys_write+0x199/0x2c0 fs/read_write.c:658
 __do_sys_write fs/read_write.c:670 [inline]
 __se_sys_write fs/read_write.c:667 [inline]
 __x64_sys_write+0x7b/0x90 fs/read_write.c:667
 do_syscall_64+0x34/0x70
 entry_SYSCALL_64_after_hwframe+0x61/0xcb
RIP: 0033:0x7f775ab3a2e9
Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 f1 17 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:00007f775aad7218 EFLAGS: 00000246 ORIG_RAX: 0000000000000001
RAX: ffffffffffffffda RBX: 00007f775abc66d8 RCX: 00007f775ab3a2e9
RDX: 000000000000003b RSI: 0000000020000080 RDI: 0000000000000004
RBP: 00007f775abc66d0 R08: 00007f775aad6fb7 R09: 0000000000000000
R10: 0000000000000014 R11: 0000000000000246 R12: 0034656c69662f2e
R13: 6e6f697463656a6e R14: 6e695f746c756166 R15: 00007f775ab8e047
Modules linked in:
---[ end trace 5d70ae71844c212e ]---
RIP: 0010:f2fs_test_and_set_bit fs/f2fs/f2fs.h:2905 [inline]
RIP: 0010:update_sit_entry+0x5e0/0x1060 fs/f2fs/segment.c:2330
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 ad c8 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:ffffc90000b96cf8 EFLAGS: 00010246
RAX: 1ffff1102388e03a RBX: ffff88811c4701d0 RCX: 0000000000000037
RDX: ffff88810cab93c0 RSI: 0000000000000000 RDI: 0000000000000000
RBP: ffffc90000b96d90 R08: ffffffff821f8cf1 R09: ffffffff821f884d
R10: 0000000000000003 R11: ffff88810cab93c0 R12: 0000000000000000
R13: dffffc0000000000 R14: 0000000000000000 R15: 0000000000000000
FS:  00007f775aad76c0(0000) GS:ffff8881f7000000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f775ab8db68 CR3: 000000010c295000 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 ad c8 88 ff       	call   0xff88c8ca
  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 (4):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
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
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.