syzbot


general protection fault in do_unlinkat

Status: upstream: reported C repro on 2023/07/01 21:31
Reported-by: syzbot+d2f9d314d09d40e0ea57@syzkaller.appspotmail.com
First crash: 527d, last: 2d04h
Cause bisection: introduced by (bisect log) :
commit 6be5b06e4195b002c52a1c2c82573ea7a76ce111
Author: Daniel Rosenberg <drosen@google.com>
Date: Thu Dec 2 22:38:56 2021 +0000

  ANDROID: fuse-bpf v1

Crash: general protection fault in do_unlinkat (log)
Repro: C syz .config
  
Similar bugs (2)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
android-5-15 general protection fault in do_unlinkat origin:downstream C done 7 1d17h 527d 0/2 upstream: reported C repro on 2023/07/01 22:19
android-6-1 general protection fault in do_unlinkat origin:downstream C done 4 35d 527d 0/2 upstream: reported C repro on 2023/07/01 22:19
Last patch testing requests (5)
Created Duration User Patch Repo Result
2024/08/13 08:38 28m retest repro android13-5.10-lts report log
2024/07/18 14:51 14m retest repro android13-5.10-lts report log
2024/05/09 14:17 5m retest repro android13-5.10-lts error
2024/05/05 13:20 1m retest repro android13-5.10-lts error
2023/08/25 19:06 12m retest repro android13-5.10-lts report log
Fix bisection attempts (7)
Created Duration User Patch Repo Result
2024/06/12 14:45 59m bisect fix android13-5.10-lts OK (0) job log log
2024/02/29 12:45 1h22m bisect fix android13-5.10-lts OK (0) job log log
2024/01/27 20:45 45m bisect fix android13-5.10-lts OK (0) job log log
2023/12/27 19:32 34m bisect fix android13-5.10-lts OK (0) job log log
2023/11/27 01:20 40m bisect fix android13-5.10-lts OK (0) job log log
2023/10/27 05:13 45m bisect fix android13-5.10-lts OK (0) job log log
2023/09/26 05:00 39m bisect fix android13-5.10-lts OK (0) job log log

Sample crash report:
general protection fault, probably for non-canonical address 0xdffffc0000000007: 0000 [#1] PREEMPT SMP KASAN
KASAN: null-ptr-deref in range [0x0000000000000038-0x000000000000003f]
CPU: 0 PID: 292 Comm: syz-executor251 Not tainted 5.10.226-syzkaller-00709-ge5e5644ea27f #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/13/2024
RIP: 0010:do_unlinkat+0x3b2/0x8b0 fs/namei.c:4029
Code: de e8 02 8a b6 ff 31 c0 81 fb 00 00 20 00 0f 94 c0 41 bf ec ff ff ff 41 29 c7 e9 99 00 00 00 49 8d 7d 30 48 89 f8 48 c1 e8 03 <42> 80 3c 20 00 74 05 e8 02 20 f4 ff 49 8b 45 30 48 89 44 24 28 4c
RSP: 0018:ffffc90000b47da0 EFLAGS: 00010202
RAX: 0000000000000007 RBX: 0000000000000000 RCX: ffff888121514f00
RDX: ffff888121514f00 RSI: 0000000000000000 RDI: 000000000000003a
RBP: ffffc90000b47f18 R08: ffffffff81b42643 R09: ffffed10239522b6
R10: 0000000000000000 R11: dffffc0000000001 R12: dffffc0000000000
R13: 000000000000000a R14: 1ffff110239522b0 R15: dffffc0000000000
FS:  00007f2d5f3f26c0(0000) GS:ffff8881f7000000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f2d5f3f2d58 CR3: 0000000120559000 CR4: 00000000003506b0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 __do_sys_unlink fs/namei.c:4082 [inline]
 __se_sys_unlink fs/namei.c:4080 [inline]
 __x64_sys_unlink+0x49/0x50 fs/namei.c:4080
 do_syscall_64+0x34/0x70
 entry_SYSCALL_64_after_hwframe+0x61/0xcb
RIP: 0033:0x7f2d5f4514b9
Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 c1 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:00007f2d5f3f2218 EFLAGS: 00000246 ORIG_RAX: 0000000000000057
RAX: ffffffffffffffda RBX: 00007f2d5f4de3f8 RCX: 00007f2d5f4514b9
RDX: 00007f2d5f4514b9 RSI: 00000000000f4240 RDI: 0000000020000100
RBP: 00007f2d5f4de3f0 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 00007f2d5f4ab034
R13: 000000000000006e R14: 0030656c69662f30 R15: 2f30656c69662f2e
Modules linked in:
---[ end trace dd7dfff6b96375dc ]---
RIP: 0010:do_unlinkat+0x3b2/0x8b0 fs/namei.c:4029
Code: de e8 02 8a b6 ff 31 c0 81 fb 00 00 20 00 0f 94 c0 41 bf ec ff ff ff 41 29 c7 e9 99 00 00 00 49 8d 7d 30 48 89 f8 48 c1 e8 03 <42> 80 3c 20 00 74 05 e8 02 20 f4 ff 49 8b 45 30 48 89 44 24 28 4c
RSP: 0018:ffffc90000b47da0 EFLAGS: 00010202
RAX: 0000000000000007 RBX: 0000000000000000 RCX: ffff888121514f00
RDX: ffff888121514f00 RSI: 0000000000000000 RDI: 000000000000003a
RBP: ffffc90000b47f18 R08: ffffffff81b42643 R09: ffffed10239522b6
R10: 0000000000000000 R11: dffffc0000000001 R12: dffffc0000000000
R13: 000000000000000a R14: 1ffff110239522b0 R15: dffffc0000000000
FS:  00007f2d5f3f26c0(0000) GS:ffff8881f7000000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f2d5f3f2d58 CR3: 0000000120559000 CR4: 00000000003506b0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
----------------
Code disassembly (best guess):
   0:	de e8                	fsubrp %st,%st(0)
   2:	02 8a b6 ff 31 c0    	add    -0x3fce004a(%rdx),%cl
   8:	81 fb 00 00 20 00    	cmp    $0x200000,%ebx
   e:	0f 94 c0             	sete   %al
  11:	41 bf ec ff ff ff    	mov    $0xffffffec,%r15d
  17:	41 29 c7             	sub    %eax,%r15d
  1a:	e9 99 00 00 00       	jmp    0xb8
  1f:	49 8d 7d 30          	lea    0x30(%r13),%rdi
  23:	48 89 f8             	mov    %rdi,%rax
  26:	48 c1 e8 03          	shr    $0x3,%rax
* 2a:	42 80 3c 20 00       	cmpb   $0x0,(%rax,%r12,1) <-- trapping instruction
  2f:	74 05                	je     0x36
  31:	e8 02 20 f4 ff       	call   0xfff42038
  36:	49 8b 45 30          	mov    0x30(%r13),%rax
  3a:	48 89 44 24 28       	mov    %rax,0x28(%rsp)
  3f:	4c                   	rex.WR

Crashes (37):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2024/10/24 21:40 android13-5.10-lts e5e5644ea27f 0d144d1a .config strace log report syz / log C [disk image] [vmlinux] [kernel image] ci2-android-5-10 general protection fault in do_unlinkat
2024/10/13 06:55 android13-5.10-lts e5e5644ea27f 084d8178 .config strace log report syz / log C [disk image] [vmlinux] [kernel image] ci2-android-5-10 general protection fault in do_unlinkat
2024/07/29 02:00 android13-5.10-lts fd58936f3c1f 46eb10b7 .config strace log report syz / log C [disk image] [vmlinux] [kernel image] ci2-android-5-10 general protection fault in do_unlinkat
2024/03/30 11:31 android13-5.10-lts e7daca75b4c3 6baf5069 .config strace log report syz C [disk image] [vmlinux] [kernel image] ci2-android-5-10 general protection fault in do_unlinkat
2023/07/01 21:23 android13-5.10-lts 28cc6246b5e7 bfc47836 .config strace log report syz C [disk image] [vmlinux] [kernel image] ci2-android-5-10 general protection fault in do_unlinkat
2024/12/08 02:22 android13-5.10-lts 550d1177dc67 9ac0fdc6 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-10 general protection fault in do_unlinkat
2024/11/27 02:41 android13-5.10-lts 139a6bb26d9d e9a9a9f2 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-10 general protection fault in do_unlinkat
2024/11/25 11:04 android13-5.10-lts b14940b90491 68da6d95 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-10 general protection fault in do_unlinkat
2024/11/24 09:51 android13-5.10-lts b14940b90491 68da6d95 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-10 general protection fault in do_unlinkat
2024/11/18 04:20 android13-5.10-lts 6a01908517df cfe3a04a .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-10 general protection fault in do_unlinkat
2024/11/10 14:55 android13-5.10-lts 6a01908517df 6b856513 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-10 general protection fault in do_unlinkat
2024/11/04 13:13 android13-5.10-lts e5e5644ea27f f00eed24 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-10 general protection fault in do_unlinkat
2024/11/02 14:57 android13-5.10-lts e5e5644ea27f f00eed24 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-10 general protection fault in do_unlinkat
2024/11/01 01:08 android13-5.10-lts e5e5644ea27f 96eb609f .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-10 general protection fault in do_unlinkat
2024/10/30 09:44 android13-5.10-lts e5e5644ea27f 66aeb999 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-10 general protection fault in do_unlinkat
2024/10/18 11:54 android13-5.10-lts e5e5644ea27f 666f77ed .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-10 general protection fault in do_unlinkat
2024/10/08 17:29 android13-5.10-lts e5e5644ea27f 402f1df0 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-10 general protection fault in do_unlinkat
2024/10/04 11:27 android13-5.10-lts e5e5644ea27f d7906eff .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-10 general protection fault in do_unlinkat
2024/09/18 17:22 android13-5.10-lts 8d23314f588a c673ca06 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-10 general protection fault in do_unlinkat
2024/09/15 02:42 android13-5.10-lts 8d23314f588a 08d8a733 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-10 general protection fault in do_unlinkat
2024/09/08 08:29 android13-5.10-lts 1c5354a314ea 9750182a .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-10 general protection fault in do_unlinkat
2024/09/02 01:35 android13-5.10-lts 1c5354a314ea 1eda0d14 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-10 general protection fault in do_unlinkat
2024/08/28 06:02 android13-5.10-lts 0890c03b8b7d 6c853ff9 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-10 general protection fault in do_unlinkat
2024/08/23 07:45 android13-5.10-lts 0890c03b8b7d ce8a9099 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-10 general protection fault in do_unlinkat
2024/07/30 08:22 android13-5.10-lts fd58936f3c1f 5187fc86 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-10 general protection fault in do_unlinkat
2024/07/29 05:08 android13-5.10-lts fd58936f3c1f 46eb10b7 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-10 general protection fault in do_unlinkat
2024/07/29 01:07 android13-5.10-lts fd58936f3c1f 46eb10b7 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-10 general protection fault in do_unlinkat
2024/06/28 09:44 android13-5.10-lts a4a2b7a82ee4 6ef39602 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-10 general protection fault in do_unlinkat
2024/05/13 12:31 android13-5.10-lts 70b6ab09a34b 9026e142 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-10 general protection fault in do_unlinkat
2024/04/21 12:55 android13-5.10-lts 8d3bb9cb3b7d af24b050 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-10 general protection fault in do_unlinkat
2024/04/14 19:53 android13-5.10-lts 4e1bc8d8e8ae c8349e48 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-10 general protection fault in do_unlinkat
2024/04/14 17:16 android13-5.10-lts 4e1bc8d8e8ae c8349e48 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-10 general protection fault in do_unlinkat
2024/04/08 11:45 android13-5.10-lts e7daca75b4c3 ca620dd8 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-10 general protection fault in do_unlinkat
2024/03/30 11:11 android13-5.10-lts e7daca75b4c3 6baf5069 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-10 general protection fault in do_unlinkat
2023/07/18 11:23 android13-5.10-lts 59b65efafe20 20f8b3c2 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-10 general protection fault in do_unlinkat
2023/07/05 04:06 android13-5.10-lts e07da8ef0aeb 80298b6f .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-10 general protection fault in do_unlinkat
2023/07/01 21:06 android13-5.10-lts 28cc6246b5e7 bfc47836 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-10 general protection fault in do_unlinkat
* Struck through repros no longer work on HEAD.