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: 161d, last: 12h34m
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 3 20d 151d 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 3 5d08h 159d 0/2 upstream: reported C repro on 2023/09/17 05:40
Last patch testing requests (1)
Created Duration User Patch Repo Result
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 0xdffffc0000000002: 0000 [#1] PREEMPT SMP KASAN
KASAN: null-ptr-deref in range [0x0000000000000010-0x0000000000000017]
CPU: 0 PID: 288 Comm: syz-executor140 Not tainted 5.10.194-syzkaller-00508-ga27512601c2d #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/26/2023
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 09 31 ff ff 49 89 c5 48 3d 01 f0 ff ff 72 0d e8 49 a0 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:ffffc9000094fd00 EFLAGS: 00010202
RAX: 0000000000000010 RBX: ffff88811c496110 RCX: ffff88811e4093c0
RDX: 0000000000000000 RSI: 0000000000000004 RDI: 0000000000000000
RBP: ffffc9000094ff08 R08: ffffffff81b62ffb R09: ffffed1023892c2e
R10: 0000000000000000 R11: dffffc0000000001 R12: 0000000000000002
R13: 0000000000000010 R14: 00000000ffffff01 R15: dffffc0000000000
FS:  00007fb43311c6c0(0000) GS:ffff8881f7000000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007fb4330fbd58 CR3: 000000011e3d8000 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:0x7fb43315a2b9
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:00007fb43311c218 EFLAGS: 00000246 ORIG_RAX: 0000000000000052
RAX: ffffffffffffffda RBX: 00007fb4331e3408 RCX: 00007fb43315a2b9
RDX: 00007fb43315a2b9 RSI: 0000000020000140 RDI: 0000000020000100
RBP: 00007fb4331e3400 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 00007fb4331b1018
R13: 0030656c69662f2e R14: 0030656c69662f30 R15: 00007fb4331b100e
Modules linked in:
---[ end trace 3e7f437283b4f10e ]---
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 09 31 ff ff 49 89 c5 48 3d 01 f0 ff ff 72 0d e8 49 a0 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:ffffc9000094fd00 EFLAGS: 00010202
RAX: 0000000000000010 RBX: ffff88811c496110 RCX: ffff88811e4093c0
RDX: 0000000000000000 RSI: 0000000000000004 RDI: 0000000000000000
RBP: ffffc9000094ff08 R08: ffffffff81b62ffb R09: ffffed1023892c2e
R10: 0000000000000000 R11: dffffc0000000001 R12: 0000000000000002
R13: 0000000000000010 R14: 00000000ffffff01 R15: dffffc0000000000
FS:  00007fb43311c6c0(0000) GS:ffff8881f7100000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007fb4331b0e98 CR3: 000000011e3d8000 CR4: 00000000003506a0
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 09 31 ff ff       	call   0xffff3114
   b:	49 89 c5             	mov    %rax,%r13
   e:	48 3d 01 f0 ff ff    	cmp    $0xfffffffffffff001,%rax
  14:	72 0d                	jb     0x23
  16:	e8 49 a0 b6 ff       	call   0xffb6a064
  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 (4):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
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/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.