syzbot


general protection fault in do_renameat2

Status: upstream: reported C repro on 2023/09/15 06:30
Reported-by: syzbot+1073bb7aa0d1b919f9a7@syzkaller.appspotmail.com
First crash: 225d, last: 1d14h
Similar bugs (2)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
android-5-15 general protection fault in do_renameat2 origin:downstream C 8 12d 216d 0/2 upstream: reported C repro on 2023/09/24 22:41
android-6-1 general protection fault in do_renameat2 origin:downstream C done 6 13d 223d 0/2 upstream: reported C repro on 2023/09/17 05:40
Last patch testing requests (2)
Created Duration User Patch Repo Result
2024/03/11 13:21 5m retest repro android13-5.10-lts report log
2023/09/29 06:41 6m retest repro android13-5.10-lts report log
Fix bisection attempts (4)
Created Duration User Patch Repo Result
2024/02/11 23:05 1h21m bisect fix android13-5.10-lts job log (0) log
2024/01/05 03:49 37m bisect fix android13-5.10-lts job log (0) log
2023/12/05 22:27 32m bisect fix android13-5.10-lts job log (0) log
2023/10/30 01:23 41m bisect fix android13-5.10-lts job log (0) 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: 0 PID: 298 Comm: syz-executor593 Not tainted 5.10.209-syzkaller-00435-gdd976ecce2ce #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/25/2024
RIP: 0010:__d_entry_type include/linux/dcache.h:400 [inline]
RIP: 0010:d_is_miss include/linux/dcache.h:405 [inline]
RIP: 0010:d_is_negative include/linux/dcache.h:451 [inline]
RIP: 0010:do_renameat2+0x5e6/0x1130 fs/namei.c:4563
Code: 89 de 8b 54 24 3c e8 f9 30 ff ff 49 89 c5 48 3d 01 f0 ff ff 72 0d e8 e9 7b b6 ff 44 89 eb e9 d7 03 00 00 4d 89 ec 49 c1 ec 03 <43> 0f b6 04 3c 84 c0 0f 85 d6 05 00 00 41 8b 5d 00 be 00 00 70 00
RSP: 0018:ffffc90000b37d00 EFLAGS: 00010246
RAX: 0000000000000001 RBX: ffff88811d07e660 RCX: ffff88811f2862c0
RDX: 0000000000000000 RSI: 0000000000000004 RDI: 0000000000000000
RBP: ffffc90000b37f08 R08: ffffffff81b65c1b R09: ffffed1023a0fcd8
R10: 0000000000000000 R11: dffffc0000000001 R12: 0000000000000000
R13: 0000000000000001 R14: 00000000ffffff01 R15: dffffc0000000000
FS:  00007fc5178dc6c0(0000) GS:ffff8881f7000000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007fbb22730304 CR3: 000000011e1f9000 CR4: 00000000003506b0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 __do_sys_rename fs/namei.c:4656 [inline]
 __se_sys_rename fs/namei.c:4654 [inline]
 __x64_sys_rename+0x86/0x90 fs/namei.c:4654
 do_syscall_64+0x34/0x70
 entry_SYSCALL_64_after_hwframe+0x61/0xc6
RIP: 0033:0x7fc51793b479
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:00007fc5178dc218 EFLAGS: 00000246 ORIG_RAX: 0000000000000052
RAX: ffffffffffffffda RBX: 00007fc5179c83f8 RCX: 00007fc51793b479
RDX: 00007fc51793b479 RSI: 0000000020000140 RDI: 0000000020000100
RBP: 00007fc5179c83f0 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 00007fc51799501c
R13: 00007fc517995038 R14: 00007ffebd3c7cc0 R15: 0030656c69662f30
Modules linked in:
---[ end trace 4b638cde25adcd1c ]---
RIP: 0010:__d_entry_type include/linux/dcache.h:400 [inline]
RIP: 0010:d_is_miss include/linux/dcache.h:405 [inline]
RIP: 0010:d_is_negative include/linux/dcache.h:451 [inline]
RIP: 0010:do_renameat2+0x5e6/0x1130 fs/namei.c:4563
Code: 89 de 8b 54 24 3c e8 f9 30 ff ff 49 89 c5 48 3d 01 f0 ff ff 72 0d e8 e9 7b b6 ff 44 89 eb e9 d7 03 00 00 4d 89 ec 49 c1 ec 03 <43> 0f b6 04 3c 84 c0 0f 85 d6 05 00 00 41 8b 5d 00 be 00 00 70 00
RSP: 0018:ffffc90000b37d00 EFLAGS: 00010246
RAX: 0000000000000001 RBX: ffff88811d07e660 RCX: ffff88811f2862c0
RDX: 0000000000000000 RSI: 0000000000000004 RDI: 0000000000000000
RBP: ffffc90000b37f08 R08: ffffffff81b65c1b R09: ffffed1023a0fcd8
R10: 0000000000000000 R11: dffffc0000000001 R12: 0000000000000000
R13: 0000000000000001 R14: 00000000ffffff01 R15: dffffc0000000000
FS:  00007fc5178dc6c0(0000) GS:ffff8881f7000000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007fbb22730304 CR3: 000000011e1f9000 CR4: 00000000003506b0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
----------------
Code disassembly (best guess):
   0:	89 de                	mov    %ebx,%esi
   2:	8b 54 24 3c          	mov    0x3c(%rsp),%edx
   6:	e8 f9 30 ff ff       	call   0xffff3104
   b:	49 89 c5             	mov    %rax,%r13
   e:	48 3d 01 f0 ff ff    	cmp    $0xfffffffffffff001,%rax
  14:	72 0d                	jb     0x23
  16:	e8 e9 7b b6 ff       	call   0xffb67c04
  1b:	44 89 eb             	mov    %r13d,%ebx
  1e:	e9 d7 03 00 00       	jmp    0x3fa
  23:	4d 89 ec             	mov    %r13,%r12
  26:	49 c1 ec 03          	shr    $0x3,%r12
* 2a:	43 0f b6 04 3c       	movzbl (%r12,%r15,1),%eax <-- trapping instruction
  2f:	84 c0                	test   %al,%al
  31:	0f 85 d6 05 00 00    	jne    0x60d
  37:	41 8b 5d 00          	mov    0x0(%r13),%ebx
  3b:	be 00 00 70 00       	mov    $0x700000,%esi

Crashes (16):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2024/02/25 15:27 android13-5.10-lts dd976ecce2ce 8d446f15 .config strace log report syz C [disk image] [vmlinux] [kernel image] ci2-android-5-10 general protection fault in do_renameat2
2023/09/15 06:28 android13-5.10-lts a27512601c2d 0b6a67ac .config strace log report syz C [disk image] [vmlinux] [kernel image] ci2-android-5-10 general protection fault in do_renameat2
2024/04/26 08:53 android13-5.10-lts 70b6ab09a34b 8bdc0f22 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-10 general protection fault in do_renameat2
2024/04/20 19:25 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_renameat2
2024/04/20 07:39 android13-5.10-lts c449d2a618ef af24b050 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-10 general protection fault in do_renameat2
2024/04/16 14:10 android13-5.10-lts 4e1bc8d8e8ae 0d592ce4 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-10 general protection fault in do_renameat2
2024/04/14 20:17 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_renameat2
2024/04/14 01:32 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_renameat2
2024/03/31 15:05 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_renameat2
2024/03/28 10:36 android13-5.10-lts e7daca75b4c3 120789fd .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-10 general protection fault in do_renameat2
2024/03/23 09:59 android13-5.10-lts e7daca75b4c3 0ea90952 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-10 general protection fault in do_renameat2
2024/03/23 01:03 android13-5.10-lts e7daca75b4c3 4b6cdce6 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-10 general protection fault in do_renameat2
2024/02/26 13:18 android13-5.10-lts dd976ecce2ce 8d446f15 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-10 general protection fault in do_renameat2
2024/02/22 21:12 android13-5.10-lts dd976ecce2ce 8d446f15 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-10 general protection fault in do_renameat2
2023/11/05 06:22 android13-5.10-lts d30b996835c0 500bfdc4 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-10 general protection fault in do_renameat2
2023/09/15 06:00 android13-5.10-lts a27512601c2d 0b6a67ac .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-10 general protection fault in do_renameat2
* Struck through repros no longer work on HEAD.