syzbot


general protection fault in vfs_rename

Status: upstream: reported C repro on 2023/10/22 15:59
Bug presence: origin:downstream
[Documentation on labels]
Reported-by: syzbot+6322832df18f369c5366@syzkaller.appspotmail.com
First crash: 236d, last: 18d
Cause bisection: introduced by (bisect log) :
commit 57f3ff9648991998d008ecf32f2f9e78a08bfb8b
Author: Daniel Rosenberg <drosen@google.com>
Date: Thu Dec 2 21:50:02 2021 +0000

  ANDROID: fuse-bpf v1.1

Crash: BUG: unable to handle kernel NULL pointer dereference in vfs_rename (log)
Repro: C syz .config
  
Bug presence (3)
Date Name Commit Repro Result
2023/10/22 android14-6.1 (ToT) 53771c1826da C [report] general protection fault in vfs_rename
2023/10/22 lts (merge base) b1644a0031cf C Didn't crash
2023/10/22 upstream (ToT) 1acfd2bd3f0d C Didn't crash
Similar bugs (3)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
android-5-10 general protection fault in vfs_rename C inconclusive 6 18d 243d 0/2 upstream: reported C repro on 2023/10/15 16:27
android-5-15 general protection fault in vfs_rename origin:downstream C 4 18d 243d 0/2 upstream: reported C repro on 2023/10/15 16:52
upstream BUG: unable to handle kernel paging request in vfs_rename overlayfs 6 492d 494d 0/27 auto-obsoleted due to no activity on 2023/06/08 14:12
Last patch testing requests (2)
Created Duration User Patch Repo Result
2024/05/23 05:01 5m retest repro android14-6.1 report log
2024/04/08 12:33 2h24m retest repro android14-6.1 report log
Fix bisection attempts (5)
Created Duration User Patch Repo Result
2024/05/09 03:04 38m bisect fix android14-6.1 job log (0) log
2024/03/01 11:06 39m bisect fix android14-6.1 job log (0) log
2024/01/22 08:50 55m bisect fix android14-6.1 job log (0) log
2023/12/23 04:15 39m bisect fix android14-6.1 job log (0) log
2023/11/23 01:43 40m bisect fix android14-6.1 job log (0) log

Sample crash report:
general protection fault, probably for non-canonical address 0xdffffc0000000008: 0000 [#1] PREEMPT SMP KASAN
KASAN: null-ptr-deref in range [0x0000000000000040-0x0000000000000047]
CPU: 1 PID: 297 Comm: syz-executor223 Not tainted 6.1.68-syzkaller-00072-g3f5807c586a6 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 02/29/2024
RIP: 0010:vfs_rename+0x1a8/0xf90 fs/namei.c:4692
Code: c1 e8 03 42 80 3c 38 00 74 08 48 89 df e8 00 72 f3 ff 48 8b 03 48 89 44 24 58 4c 89 6c 24 18 4d 8d 75 30 4d 89 f5 49 c1 ed 03 <43> 80 7c 3d 00 00 74 08 4c 89 f7 e8 d8 71 f3 ff 49 8b 06 48 89 44
RSP: 0018:ffffc90000f07ae0 EFLAGS: 00010202
RAX: ffff8881121a6ec0 RBX: ffff88811f124690 RCX: ffffc90000f07e80
RDX: ffff8881095f0000 RSI: 0000000000200000 RDI: 0000000000200000
RBP: ffffc90000f07c30 R08: ffffffff81c8d291 R09: fffff520001e0f67
R10: 0000000000000000 R11: dffffc0000000001 R12: ffff8881121a6a80
R13: 0000000000000008 R14: 0000000000000042 R15: dffffc0000000000
FS:  00007f1afffdf6c0(0000) GS:ffff8881f7100000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f1afffdfd58 CR3: 000000012167f000 CR4: 00000000003506a0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <TASK>
 do_renameat2+0xac8/0x1480 fs/namei.c:4935
 __do_sys_rename fs/namei.c:4981 [inline]
 __se_sys_rename fs/namei.c:4979 [inline]
 __x64_sys_rename+0x86/0x90 fs/namei.c:4979
 do_syscall_x64 arch/x86/entry/common.c:51 [inline]
 do_syscall_64+0x3d/0xb0 arch/x86/entry/common.c:81
 entry_SYSCALL_64_after_hwframe+0x63/0xcd
RIP: 0033:0x7f1b00080939
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:00007f1afffdf218 EFLAGS: 00000246 ORIG_RAX: 0000000000000052
RAX: ffffffffffffffda RBX: 00007f1b00111418 RCX: 00007f1b00080939
RDX: 00007f1b0005e096 RSI: 0000000020000140 RDI: 0000000020000100
RBP: 00007f1b00111410 R08: 00007ffedc4fcf97 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 00007f1b000de0a4
R13: 000000000000006e R14: 00007f1b000dc0a0 R15: 0030656c69662f30
 </TASK>
Modules linked in:
---[ end trace 0000000000000000 ]---
RIP: 0010:vfs_rename+0x1a8/0xf90 fs/namei.c:4692
Code: c1 e8 03 42 80 3c 38 00 74 08 48 89 df e8 00 72 f3 ff 48 8b 03 48 89 44 24 58 4c 89 6c 24 18 4d 8d 75 30 4d 89 f5 49 c1 ed 03 <43> 80 7c 3d 00 00 74 08 4c 89 f7 e8 d8 71 f3 ff 49 8b 06 48 89 44
RSP: 0018:ffffc90000f07ae0 EFLAGS: 00010202
RAX: ffff8881121a6ec0 RBX: ffff88811f124690 RCX: ffffc90000f07e80
RDX: ffff8881095f0000 RSI: 0000000000200000 RDI: 0000000000200000
RBP: ffffc90000f07c30 R08: ffffffff81c8d291 R09: fffff520001e0f67
R10: 0000000000000000 R11: dffffc0000000001 R12: ffff8881121a6a80
R13: 0000000000000008 R14: 0000000000000042 R15: dffffc0000000000
FS:  00007f1afffdf6c0(0000) GS:ffff8881f7000000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 000000002000a000 CR3: 000000012167f000 CR4: 00000000003506b0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
----------------
Code disassembly (best guess):
   0:	c1 e8 03             	shr    $0x3,%eax
   3:	42 80 3c 38 00       	cmpb   $0x0,(%rax,%r15,1)
   8:	74 08                	je     0x12
   a:	48 89 df             	mov    %rbx,%rdi
   d:	e8 00 72 f3 ff       	call   0xfff37212
  12:	48 8b 03             	mov    (%rbx),%rax
  15:	48 89 44 24 58       	mov    %rax,0x58(%rsp)
  1a:	4c 89 6c 24 18       	mov    %r13,0x18(%rsp)
  1f:	4d 8d 75 30          	lea    0x30(%r13),%r14
  23:	4d 89 f5             	mov    %r14,%r13
  26:	49 c1 ed 03          	shr    $0x3,%r13
* 2a:	43 80 7c 3d 00 00    	cmpb   $0x0,0x0(%r13,%r15,1) <-- trapping instruction
  30:	74 08                	je     0x3a
  32:	4c 89 f7             	mov    %r14,%rdi
  35:	e8 d8 71 f3 ff       	call   0xfff37212
  3a:	49 8b 06             	mov    (%r14),%rax
  3d:	48                   	rex.W
  3e:	89                   	.byte 0x89
  3f:	44                   	rex.R

Crashes (6):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2024/03/21 04:06 android14-6.1 3f5807c586a6 5b7d42ae .config strace log report syz C [disk image] [vmlinux] [kernel image] ci2-android-6-1 general protection fault in vfs_rename
2023/10/22 15:58 android14-6.1 53771c1826da 361b23dc .config strace log report syz C [disk image] [vmlinux] [kernel image] ci2-android-6-1 general protection fault in vfs_rename
2024/05/27 16:46 android14-6.1 68c821783c76 761766e6 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-6-1 general protection fault in vfs_rename
2024/05/27 16:45 android14-6.1 68c821783c76 761766e6 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-6-1 general protection fault in vfs_rename
2024/03/25 07:06 android14-6.1 d518ca9dbbe9 0ea90952 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-6-1 general protection fault in vfs_rename
2024/03/21 03:43 android14-6.1 3f5807c586a6 5b7d42ae .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-6-1 general protection fault in vfs_rename
* Struck through repros no longer work on HEAD.