syzbot


general protection fault in dir_rename_wrap

Status: upstream: reported C repro on 2024/05/25 07:40
Bug presence: origin:downstream
[Documentation on labels]
Reported-by: syzbot+20aaf59fe73fa0b87e67@syzkaller.appspotmail.com
First crash: 461d, last: 13d
Fix bisection: failed (error log, bisect log)
  
Bug presence (3)
Date Name Commit Repro Result
2024/05/25 android14-6.1 (ToT) 68c821783c76 C [report] general protection fault in dir_rename_wrap
2024/05/25 lts (merge base) 883d1a956208 C Didn't crash
2024/05/25 upstream (ToT) 56fb6f92854f C Didn't crash
Similar bugs (3)
Kernel Title Rank 🛈 Repro Cause bisect Fix bisect Count Last Reported Patched Status
android-5-15 general protection fault in dir_rename_wrap origin:downstream 2 C error 3 13d 397d 0/2 upstream: reported C repro on 2024/07/27 08:56
android-54 general protection fault in dir_rename_wrap 2 C 1 165d 465d 0/2 upstream: reported C repro on 2024/05/20 23:47
android-5-10 general protection fault in dir_rename_wrap 2 C error 4 22d 466d 0/2 upstream: reported C repro on 2024/05/19 11:46
Last patch testing requests (3)
Created Duration User Patch Repo Result
2025/08/16 02:17 6m retest repro android14-6.1 report log
2025/08/16 02:17 13m retest repro android14-6.1 report log
2025/07/26 12:51 1h14m retest repro android14-6.1 report log
Fix bisection attempts (10)
Created Duration User Patch Repo Result
2025/05/17 00:07 7m bisect fix android14-6.1 error job log
2025/04/15 02:34 41m bisect fix android14-6.1 OK (0) job log log
2025/03/13 06:32 1h23m bisect fix android14-6.1 OK (0) job log log
2025/02/09 19:33 1h48m bisect fix android14-6.1 OK (0) job log log
2025/01/10 02:09 2h02m bisect fix android14-6.1 OK (0) job log log
2024/11/20 01:34 39m bisect fix android14-6.1 OK (0) job log log
2024/10/18 23:44 1h54m bisect fix android14-6.1 OK (0) job log log
2024/09/17 09:51 59m bisect fix android14-6.1 OK (0) job log log
2024/08/13 04:23 1h25m bisect fix android14-6.1 OK (0) job log log
2024/07/03 05:10 1h51m bisect fix android14-6.1 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-executor184 Not tainted 6.1.145-syzkaller-00023-g2245c50c5f5f #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/12/2025
RIP: 0010:dir_rename fs/incfs/vfs.c:1410 [inline]
RIP: 0010:dir_rename_wrap+0x167/0x6a0 fs/incfs/vfs.c:91
Code: 89 e7 e8 6c 12 a1 ff 4d 8b 34 24 eb 08 e8 71 b5 5c ff 45 31 f6 49 83 c6 08 4c 89 f0 48 c1 e8 03 48 b9 00 00 00 00 00 fc ff df <80> 3c 08 00 74 08 4c 89 f7 e8 3b 12 a1 ff 4d 8b 36 4d 85 f6 0f 84
RSP: 0018:ffffc90000e77a40 EFLAGS: 00010202
RAX: 0000000000000001 RBX: ffff88810de4e060 RCX: dffffc0000000000
RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000000
RBP: ffffc90000e77b70 R08: dffffc0000000000 R09: fffff520001cef39
R10: fffff520001cef39 R11: 1ffff920001cef38 R12: ffff8881162d7d38
R13: 1ffff920001cef54 R14: 0000000000000008 R15: ffff88810de4e000
FS:  0000555594765480(0000) GS:ffff8881f7000000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000200000000000 CR3: 0000000121eb9000 CR4: 00000000003506b0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <TASK>
 vfs_rename+0xbc4/0x10d0 fs/namei.c:4873
 do_renameat2+0x7ed/0xf60 fs/namei.c:5026
 __do_sys_rename fs/namei.c:5072 [inline]
 __se_sys_rename fs/namei.c:5070 [inline]
 __x64_sys_rename+0x86/0x90 fs/namei.c:5070
 x64_sys_call+0x300/0x9a0 arch/x86/include/generated/asm/syscalls_64.h:83
 do_syscall_x64 arch/x86/entry/common.c:51 [inline]
 do_syscall_64+0x4c/0xa0 arch/x86/entry/common.c:81
 entry_SYSCALL_64_after_hwframe+0x68/0xd2
RIP: 0033:0x7f458f582c49
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:00007ffdc8243c48 EFLAGS: 00000246 ORIG_RAX: 0000000000000052
RAX: ffffffffffffffda RBX: 0073646165725f67 RCX: 00007f458f582c49
RDX: 0000000000000000 RSI: 0000200000000000 RDI: 0000200000000040
RBP: 00007ffdc8243c58 R08: 00007ffdc8243c58 R09: 00007f458f54fbf0
R10: 00007ffdc8243c50 R11: 0000000000000246 R12: 0000000000000000
R13: 00007ffdc8243eb8 R14: 0000000000000001 R15: 0000000000000001
 </TASK>
Modules linked in:
---[ end trace 0000000000000000 ]---
RIP: 0010:dir_rename fs/incfs/vfs.c:1410 [inline]
RIP: 0010:dir_rename_wrap+0x167/0x6a0 fs/incfs/vfs.c:91
Code: 89 e7 e8 6c 12 a1 ff 4d 8b 34 24 eb 08 e8 71 b5 5c ff 45 31 f6 49 83 c6 08 4c 89 f0 48 c1 e8 03 48 b9 00 00 00 00 00 fc ff df <80> 3c 08 00 74 08 4c 89 f7 e8 3b 12 a1 ff 4d 8b 36 4d 85 f6 0f 84
RSP: 0018:ffffc90000e77a40 EFLAGS: 00010202
RAX: 0000000000000001 RBX: ffff88810de4e060 RCX: dffffc0000000000
RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000000
RBP: ffffc90000e77b70 R08: dffffc0000000000 R09: fffff520001cef39
R10: fffff520001cef39 R11: 1ffff920001cef38 R12: ffff8881162d7d38
R13: 1ffff920001cef54 R14: 0000000000000008 R15: ffff88810de4e000
FS:  0000555594765480(0000) GS:ffff8881f7000000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000200000000000 CR3: 0000000121eb9000 CR4: 00000000003506b0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
----------------
Code disassembly (best guess):
   0:	89 e7                	mov    %esp,%edi
   2:	e8 6c 12 a1 ff       	call   0xffa11273
   7:	4d 8b 34 24          	mov    (%r12),%r14
   b:	eb 08                	jmp    0x15
   d:	e8 71 b5 5c ff       	call   0xff5cb583
  12:	45 31 f6             	xor    %r14d,%r14d
  15:	49 83 c6 08          	add    $0x8,%r14
  19:	4c 89 f0             	mov    %r14,%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:	4c 89 f7             	mov    %r14,%rdi
  33:	e8 3b 12 a1 ff       	call   0xffa11273
  38:	4d 8b 36             	mov    (%r14),%r14
  3b:	4d 85 f6             	test   %r14,%r14
  3e:	0f                   	.byte 0xf
  3f:	84                   	.byte 0x84

Crashes (3):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2025/07/31 10:02 android14-6.1 2245c50c5f5f f8f2b4da .config strace log report syz / log C [disk image] [vmlinux] [kernel image] ci2-android-6-1 general protection fault in dir_rename_wrap
2025/07/31 09:32 android14-6.1 2245c50c5f5f f8f2b4da .config strace log report syz / log C [disk image] [vmlinux] [kernel image] ci2-android-6-1 general protection fault in dir_rename_wrap
2024/05/25 07:39 android14-6.1 68c821783c76 a10a183e .config strace log report syz C [disk image] [vmlinux] [kernel image] ci2-android-6-1 general protection fault in dir_rename_wrap
* Struck through repros no longer work on HEAD.