syzbot


general protection fault in do_renameat2

Status: upstream: reported C repro on 2023/09/17 05:40
Bug presence: origin:downstream
[Documentation on labels]
Reported-by: syzbot+0440f4da8a24a4698145@syzkaller.appspotmail.com
First crash: 210d, last: 6h12m
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 do_renameat2 (log)
Repro: C syz .config
  
Bug presence (3)
Date Name Commit Repro Result
2023/09/17 android14-6.1 (ToT) d3212c2dbaba C [report] general protection fault in do_renameat2
2023/09/17 lts (merge base) b1644a0031cf C Didn't crash
2023/09/17 upstream (ToT) f0b0d403eabb C Didn't crash
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 14d 202d 0/2 upstream: reported C repro on 2023/09/24 22:41
android-5-10 general protection fault in do_renameat2 C 12 1h30m 212d 0/2 upstream: reported C repro on 2023/09/15 06:30
Last patch testing requests (2)
Created Duration User Patch Repo Result
2024/04/14 15:28 6m retest repro android14-6.1 report log
2024/03/03 01:04 6m retest repro android14-6.1 report log
Fix bisection attempts (4)
Created Duration User Patch Repo Result
2024/01/20 12:34 46m bisect fix android14-6.1 job log (0) log
2023/12/20 19:01 53m bisect fix android14-6.1 job log (0) log
2023/11/20 16:39 1h04m bisect fix android14-6.1 job log (0) log
2023/10/19 18:06 39m bisect fix android14-6.1 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: 1 PID: 296 Comm: syz-executor221 Not tainted 6.1.68-syzkaller-00023-g92432f07d663 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/25/2024
RIP: 0010:__d_entry_type include/linux/dcache.h:394 [inline]
RIP: 0010:d_is_miss include/linux/dcache.h:399 [inline]
RIP: 0010:d_is_negative include/linux/dcache.h:445 [inline]
RIP: 0010:do_renameat2+0x62e/0x1480 fs/namei.c:4884
Code: 08 9c ac ff 41 89 de 4c 8b 64 24 40 e9 0f 06 00 00 4c 89 b4 24 f0 00 00 00 49 89 de 49 c1 ee 03 48 b8 00 00 00 00 00 fc ff df <41> 0f b6 04 06 84 c0 4c 8b 64 24 40 0f 85 2d 08 00 00 48 89 1c 24
RSP: 0018:ffffc90000e67c40 EFLAGS: 00010246
RAX: dffffc0000000000 RBX: 0000000000000001 RCX: ffff88810961d100
RDX: 0000000000000000 RSI: 0000000000000004 RDI: 0000000000000000
RBP: ffffc90000e67ef8 R08: ffffffff81caef3b R09: fffff520001ccf67
R10: 0000000000000000 R11: dffffc0000000001 R12: 0000000000000000
R13: ffff888120cf3dd0 R14: 0000000000000000 R15: ffff8881002a2c60
FS:  00007fb3c5ff96c0(0000) GS:ffff8881f7100000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 000055b49938e438 CR3: 0000000121568000 CR4: 00000000003506a0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <TASK>
 __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:0x7fb3c6058479
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:00007fb3c5ff9218 EFLAGS: 00000246 ORIG_RAX: 0000000000000052
RAX: ffffffffffffffda RBX: 00007fb3c60e53f8 RCX: 00007fb3c6058479
RDX: 00007fb3c6058479 RSI: 0000000020000140 RDI: 0000000020000100
RBP: 00007fb3c60e53f0 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 00007fb3c60b201c
R13: 00007fb3c60b2038 R14: 00007ffc2c53eda0 R15: 0030656c69662f30
 </TASK>
Modules linked in:
---[ end trace 0000000000000000 ]---
RIP: 0010:__d_entry_type include/linux/dcache.h:394 [inline]
RIP: 0010:d_is_miss include/linux/dcache.h:399 [inline]
RIP: 0010:d_is_negative include/linux/dcache.h:445 [inline]
RIP: 0010:do_renameat2+0x62e/0x1480 fs/namei.c:4884
Code: 08 9c ac ff 41 89 de 4c 8b 64 24 40 e9 0f 06 00 00 4c 89 b4 24 f0 00 00 00 49 89 de 49 c1 ee 03 48 b8 00 00 00 00 00 fc ff df <41> 0f b6 04 06 84 c0 4c 8b 64 24 40 0f 85 2d 08 00 00 48 89 1c 24
RSP: 0018:ffffc90000e67c40 EFLAGS: 00010246
RAX: dffffc0000000000 RBX: 0000000000000001 RCX: ffff88810961d100
RDX: 0000000000000000 RSI: 0000000000000004 RDI: 0000000000000000
RBP: ffffc90000e67ef8 R08: ffffffff81caef3b R09: fffff520001ccf67
R10: 0000000000000000 R11: dffffc0000000001 R12: 0000000000000000
R13: ffff888120cf3dd0 R14: 0000000000000000 R15: ffff8881002a2c60
FS:  00007fb3c5ff96c0(0000) GS:ffff8881f7100000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 000055b49938e438 CR3: 0000000121568000 CR4: 00000000003506a0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
----------------
Code disassembly (best guess):
   0:	08 9c ac ff 41 89 de 	or     %bl,-0x2176be01(%rsp,%rbp,4)
   7:	4c 8b 64 24 40       	mov    0x40(%rsp),%r12
   c:	e9 0f 06 00 00       	jmp    0x620
  11:	4c 89 b4 24 f0 00 00 	mov    %r14,0xf0(%rsp)
  18:	00
  19:	49 89 de             	mov    %rbx,%r14
  1c:	49 c1 ee 03          	shr    $0x3,%r14
  20:	48 b8 00 00 00 00 00 	movabs $0xdffffc0000000000,%rax
  27:	fc ff df
* 2a:	41 0f b6 04 06       	movzbl (%r14,%rax,1),%eax <-- trapping instruction
  2f:	84 c0                	test   %al,%al
  31:	4c 8b 64 24 40       	mov    0x40(%rsp),%r12
  36:	0f 85 2d 08 00 00    	jne    0x869
  3c:	48 89 1c 24          	mov    %rbx,(%rsp)

Crashes (6):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2024/02/18 00:54 android14-6.1 92432f07d663 578f7538 .config strace log report syz C [disk image] [vmlinux] [kernel image] ci2-android-6-1 general protection fault in do_renameat2
2023/09/17 05:38 android14-6.1 d3212c2dbaba 0b6a67ac .config strace log report syz C [disk image] [vmlinux] [kernel image] ci2-android-6-1 general protection fault in do_renameat2
2024/03/31 15:11 android14-6.1 5b8114ec3c92 6baf5069 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-6-1 general protection fault in do_renameat2
2024/03/24 09:18 android14-6.1 d518ca9dbbe9 0ea90952 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-6-1 general protection fault in do_renameat2
2024/03/16 10:56 android14-6.1 ef39f76e4d24 d615901c .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-6-1 general protection fault in do_renameat2
2024/02/18 00:34 android14-6.1 92432f07d663 578f7538 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-6-1 general protection fault in do_renameat2
* Struck through repros no longer work on HEAD.