syzbot


general protection fault in dir_rename_wrap

Status: upstream: reported C repro on 2024/05/19 11:46
Reported-by: syzbot+fb05fedef83641091a1e@syzkaller.appspotmail.com
First crash: 386d, last: 14d
Fix bisection: failed (error log, bisect log)
  
Similar bugs (3)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
android-5-15 general protection fault in dir_rename_wrap origin:downstream C error 1 26d 318d 0/2 upstream: reported C repro on 2024/07/27 08:56
android-54 general protection fault in dir_rename_wrap C 1 85d 385d 0/2 upstream: reported C repro on 2024/05/20 23:47
android-6-1 general protection fault in dir_rename_wrap origin:downstream C error 1 56d 381d 0/2 upstream: reported C repro on 2024/05/25 07:40
Last patch testing requests (7)
Created Duration User Patch Repo Result
2025/05/26 19:06 5m retest repro android13-5.10-lts report log
2025/04/26 02:17 12m retest repro android13-5.10-lts report log
2025/04/26 02:17 11m retest repro android13-5.10-lts report log
2025/03/16 11:38 11m retest repro android13-5.10-lts report log
2025/01/05 00:57 5m retest repro android13-5.10-lts report log
2024/10/26 08:57 13m retest repro android13-5.10-lts report log
2024/06/02 12:00 12m retest repro android13-5.10-lts report log
Fix bisection attempts (2)
Created Duration User Patch Repo Result
2024/08/14 23:11 1m bisect fix android13-5.10-lts error job log
2024/07/08 23:30 50m bisect fix android13-5.10-lts OK (0) job log log

Sample crash report:
general protection fault, probably for non-canonical address 0xdffffc0000000001: 0000 [#1] PREEMPT SMP KASAN
KASAN: null-ptr-deref in range [0x0000000000000008-0x000000000000000f]
CPU: 0 PID: 289 Comm: syz-executor840 Not tainted 5.10.234-syzkaller-00157-ge0b88ee5f09c #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 02/12/2025
RIP: 0010:dir_rename fs/incfs/vfs.c:1394 [inline]
RIP: 0010:dir_rename_wrap+0xf7/0x570 fs/incfs/vfs.c:85
Code: 4c 89 e7 e8 1b 1d 9d ff 49 8b 1c 24 eb 07 e8 a0 7d 5f ff 31 db 48 83 c3 08 48 89 d8 48 c1 e8 03 48 b9 00 00 00 00 00 fc ff df <80> 3c 08 00 74 08 48 89 df e8 eb 1c 9d ff 48 8b 1b 48 85 db 0f 84
RSP: 0018:ffffc90000b07b20 EFLAGS: 00010202
RAX: 0000000000000001 RBX: 0000000000000008 RCX: dffffc0000000000
RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000000
RBP: ffffc90000b07b90 R08: ffffffff820b418a R09: fffff52000160f55
R10: 0000000000000000 R11: dffffc0000000001 R12: ffff88810cd87298
R13: ffff88810cd87550 R14: ffff88811ad40860 R15: ffff88811ad40800
FS:  000055557bad6480(0000) GS:ffff8881f7000000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000200000000000 CR3: 000000011c2b7000 CR4: 00000000003506b0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 vfs_rename+0x9fb/0xeb0 fs/namei.c:4474
 do_renameat2+0xa56/0x1240 fs/namei.c:4619
 __do_sys_rename fs/namei.c:4670 [inline]
 __se_sys_rename fs/namei.c:4668 [inline]
 __x64_sys_rename+0x86/0x90 fs/namei.c:4668
 do_syscall_64+0x34/0x70 arch/x86/entry/common.c:-1
 entry_SYSCALL_64_after_hwframe+0x61/0xcb
RIP: 0033:0x7f7f37870bc9
Code: 48 83 c4 28 c3 e8 67 17 00 00 0f 1f 80 00 00 00 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 b8 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007fff9c17cf48 EFLAGS: 00000246 ORIG_RAX: 0000000000000052
RAX: ffffffffffffffda RBX: 0073646165725f67 RCX: 00007f7f37870bc9
RDX: 0000000000000000 RSI: 0000200000000000 RDI: 0000200000000040
RBP: 00007fff9c17cf58 R08: 00007fff9c17cf58 R09: 00007f7f3783dbe0
R10: 00007fff9c17cf50 R11: 0000000000000246 R12: 0000000000000000
R13: 00007fff9c17d1b8 R14: 0000000000000001 R15: 0000000000000001
Modules linked in:
---[ end trace bb7d646a8180b957 ]---
RIP: 0010:dir_rename fs/incfs/vfs.c:1394 [inline]
RIP: 0010:dir_rename_wrap+0xf7/0x570 fs/incfs/vfs.c:85
Code: 4c 89 e7 e8 1b 1d 9d ff 49 8b 1c 24 eb 07 e8 a0 7d 5f ff 31 db 48 83 c3 08 48 89 d8 48 c1 e8 03 48 b9 00 00 00 00 00 fc ff df <80> 3c 08 00 74 08 48 89 df e8 eb 1c 9d ff 48 8b 1b 48 85 db 0f 84
RSP: 0018:ffffc90000b07b20 EFLAGS: 00010202
RAX: 0000000000000001 RBX: 0000000000000008 RCX: dffffc0000000000
RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000000
RBP: ffffc90000b07b90 R08: ffffffff820b418a R09: fffff52000160f55
R10: 0000000000000000 R11: dffffc0000000001 R12: ffff88810cd87298
R13: ffff88810cd87550 R14: ffff88811ad40860 R15: ffff88811ad40800
FS:  000055557bad6480(0000) GS:ffff8881f7000000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000200000000000 CR3: 000000011c2b7000 CR4: 00000000003506b0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
----------------
Code disassembly (best guess):
   0:	4c 89 e7             	mov    %r12,%rdi
   3:	e8 1b 1d 9d ff       	call   0xff9d1d23
   8:	49 8b 1c 24          	mov    (%r12),%rbx
   c:	eb 07                	jmp    0x15
   e:	e8 a0 7d 5f ff       	call   0xff5f7db3
  13:	31 db                	xor    %ebx,%ebx
  15:	48 83 c3 08          	add    $0x8,%rbx
  19:	48 89 d8             	mov    %rbx,%rax
  1c:	48 c1 e8 03          	shr    $0x3,%rax
  20:	48 b9 00 00 00 00 00 	movabs $0xdffffc0000000000,%rcx
  27:	fc ff df
* 2a:	80 3c 08 00          	cmpb   $0x0,(%rax,%rcx,1) <-- trapping instruction
  2e:	74 08                	je     0x38
  30:	48 89 df             	mov    %rbx,%rdi
  33:	e8 eb 1c 9d ff       	call   0xff9d1d23
  38:	48 8b 1b             	mov    (%rbx),%rbx
  3b:	48 85 db             	test   %rbx,%rbx
  3e:	0f                   	.byte 0xf
  3f:	84                   	.byte 0x84

Crashes (4):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2025/04/11 01:47 android13-5.10-lts e0b88ee5f09c 1ef3ab4d .config strace log report syz / log C [disk image] [vmlinux] [kernel image] ci2-android-5-10 general protection fault in dir_rename_wrap
2025/04/11 01:18 android13-5.10-lts e0b88ee5f09c 1ef3ab4d .config strace log report syz / log C [disk image] [vmlinux] [kernel image] ci2-android-5-10 general protection fault in dir_rename_wrap
2024/05/19 11:40 android13-5.10-lts 70b6ab09a34b c0f1611a .config strace log report syz C [disk image] [vmlinux] [kernel image] ci2-android-5-10 general protection fault in dir_rename_wrap
2024/05/19 11:00 android13-5.10-lts 70b6ab09a34b c0f1611a .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-10 general protection fault in dir_rename_wrap
* Struck through repros no longer work on HEAD.