syzbot


general protection fault in filename_create

Status: upstream: reported C repro on 2023/08/05 10:34
Bug presence: origin:downstream
[Documentation on labels]
Reported-by: syzbot+321e36793059da7b2e86@syzkaller.appspotmail.com
First crash: 474d, last: 10d
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 filename_create (log)
Repro: C syz .config
  
Bug presence (3)
Date Name Commit Repro Result
2023/09/27 android14-6.1 (ToT) ae5ea9043de1 C [report] general protection fault in filename_create
2023/09/27 lts (merge base) b1644a0031cf C Didn't crash
2023/09/27 upstream (ToT) 0e945134b680 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 filename_create origin:downstream C error unreliable 20 10h51m 572d 0/2 upstream: reported C repro on 2023/04/29 15:06
android-5-10 general protection fault in filename_create C 54 1d07h 446d 0/2 upstream: reported C repro on 2023/09/02 15:10
Last patch testing requests (10)
Created Duration User Patch Repo Result
2024/11/07 23:07 5m retest repro android14-6.1 report log
2024/10/24 04:08 18m retest repro android14-6.1 report log
2024/10/08 05:14 54m retest repro android14-6.1 report log
2024/10/08 05:14 7m retest repro android14-6.1 report log
2024/10/08 05:14 10m retest repro android14-6.1 report log
2024/08/29 18:40 5m retest repro android14-6.1 report log
2024/08/09 18:25 15m retest repro android14-6.1 report log
2024/07/26 17:25 19m retest repro android14-6.1 report log
2024/07/26 17:25 11m retest repro android14-6.1 report log
2024/07/26 17:25 8m retest repro android14-6.1 report log
Fix bisection attempts (2)
Created Duration User Patch Repo Result
2024/05/13 01:20 39m bisect fix android14-6.1 OK (0) job log log
2024/01/23 08:21 45m bisect fix android14-6.1 OK (0) job log log

Sample crash report:
general protection fault, probably for non-canonical address 0xdffffc0000000003: 0000 [#1] PREEMPT SMP KASAN
KASAN: null-ptr-deref in range [0x0000000000000018-0x000000000000001f]
CPU: 1 PID: 295 Comm: syz-executor508 Not tainted 6.1.112-syzkaller-00005-geef3d33656ce #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/13/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:d_is_positive include/linux/dcache.h:455 [inline]
RIP: 0010:filename_create+0x2d8/0x530 fs/namei.c:3884
Code: 92 00 00 00 4c 89 7c 24 28 45 84 e4 0f 95 c0 83 7c 24 14 00 0f 94 c3 20 c3 4c 89 f0 48 c1 e8 03 48 b9 00 00 00 00 00 fc ff df <0f> b6 04 08 84 c0 0f 85 1f 02 00 00 45 8b 26 41 bd 00 00 70 00 be
RSP: 0018:ffffc90000ef7cc0 EFLAGS: 00010206
RAX: 0000000000000003 RBX: 1ffff920001def00 RCX: dffffc0000000000
RDX: 0000000000000000 RSI: 0000000000000003 RDI: 0000000000000000
RBP: ffffc90000ef7db0 R08: ffffffff81cc30d8 R09: fffff520001def71
R10: 0000000000000000 R11: dffffc0000000001 R12: 0000000000000000
R13: 0000000000000600 R14: 0000000000000018 R15: ffffc90000ef7e60
FS:  00007fbc3c4106c0(0000) GS:ffff8881f6f00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 000000002000a000 CR3: 000000011fcd8000 CR4: 00000000003506a0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <TASK>
 do_mknodat+0x1a4/0x5c0 fs/namei.c:4023
 __do_sys_mknod fs/namei.c:4069 [inline]
 __se_sys_mknod fs/namei.c:4067 [inline]
 __x64_sys_mknod+0x8e/0xa0 fs/namei.c:4067
 x64_sys_call+0x3cb/0x9a0 arch/x86/include/generated/asm/syscalls_64.h:134
 do_syscall_x64 arch/x86/entry/common.c:51 [inline]
 do_syscall_64+0x3b/0xb0 arch/x86/entry/common.c:81
 entry_SYSCALL_64_after_hwframe+0x68/0xd2
RIP: 0033:0x7fbc3c452869
Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 f1 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:00007fbc3c410218 EFLAGS: 00000246 ORIG_RAX: 0000000000000085
RAX: ffffffffffffffda RBX: 00007fbc3c4dc6c8 RCX: 00007fbc3c452869
RDX: 0000000000000700 RSI: 0000000000000000 RDI: 00000000200002c0
RBP: 00007fbc3c4dc6c0 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 00007fbc3c4a9524
R13: 00007fbc3c4a9540 R14: 00007fbc3c4a7051 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:d_is_positive include/linux/dcache.h:455 [inline]
RIP: 0010:filename_create+0x2d8/0x530 fs/namei.c:3884
Code: 92 00 00 00 4c 89 7c 24 28 45 84 e4 0f 95 c0 83 7c 24 14 00 0f 94 c3 20 c3 4c 89 f0 48 c1 e8 03 48 b9 00 00 00 00 00 fc ff df <0f> b6 04 08 84 c0 0f 85 1f 02 00 00 45 8b 26 41 bd 00 00 70 00 be
RSP: 0018:ffffc90000ef7cc0 EFLAGS: 00010206
RAX: 0000000000000003 RBX: 1ffff920001def00 RCX: dffffc0000000000
RDX: 0000000000000000 RSI: 0000000000000003 RDI: 0000000000000000
RBP: ffffc90000ef7db0 R08: ffffffff81cc30d8 R09: fffff520001def71
R10: 0000000000000000 R11: dffffc0000000001 R12: 0000000000000000
R13: 0000000000000600 R14: 0000000000000018 R15: ffffc90000ef7e60
FS:  00007fbc3c4106c0(0000) GS:ffff8881f6f00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 000000002000a000 CR3: 000000011fcd8000 CR4: 00000000003506a0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
----------------
Code disassembly (best guess):
   0:	92                   	xchg   %eax,%edx
   1:	00 00                	add    %al,(%rax)
   3:	00 4c 89 7c          	add    %cl,0x7c(%rcx,%rcx,4)
   7:	24 28                	and    $0x28,%al
   9:	45 84 e4             	test   %r12b,%r12b
   c:	0f 95 c0             	setne  %al
   f:	83 7c 24 14 00       	cmpl   $0x0,0x14(%rsp)
  14:	0f 94 c3             	sete   %bl
  17:	20 c3                	and    %al,%bl
  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:	0f b6 04 08          	movzbl (%rax,%rcx,1),%eax <-- trapping instruction
  2e:	84 c0                	test   %al,%al
  30:	0f 85 1f 02 00 00    	jne    0x255
  36:	45 8b 26             	mov    (%r14),%r12d
  39:	41 bd 00 00 70 00    	mov    $0x700000,%r13d
  3f:	be                   	.byte 0xbe

Crashes (17):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2024/11/10 19:42 android14-6.1 eef3d33656ce 6b856513 .config strace log report syz / log C [disk image] [vmlinux] [kernel image] [mounted in repro] ci2-android-6-1 general protection fault in filename_create
2024/07/12 17:17 android14-6.1 96d66062d076 eaeb5c15 .config strace log report syz / log C [disk image] [vmlinux] [kernel image] ci2-android-6-1 general protection fault in filename_create
2024/07/12 16:46 android14-6.1 96d66062d076 eaeb5c15 .config strace log report syz / log C [disk image] [vmlinux] [kernel image] ci2-android-6-1 general protection fault in filename_create
2024/02/11 05:49 android14-6.1 d3f73f04529a 77b23aa1 .config strace log report syz C [disk image] [vmlinux] [kernel image] ci2-android-6-1 general protection fault in filename_create
2023/09/27 09:17 android14-6.1 ae5ea9043de1 0b6a67ac .config strace log report syz C [disk image] [vmlinux] [kernel image] ci2-android-6-1 general protection fault in filename_create
2023/08/05 10:28 android14-6.1 5e1d25ac2ab6 cdae481e .config strace log report syz C [disk image] [vmlinux] [kernel image] ci2-android-6-1 general protection fault in filename_create
2024/07/12 16:17 android14-6.1 96d66062d076 eaeb5c15 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-6-1 general protection fault in filename_create
2024/07/12 16:16 android14-6.1 96d66062d076 eaeb5c15 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-6-1 general protection fault in filename_create
2024/03/28 02:32 android14-6.1 eef3b6e52937 120789fd .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-6-1 general protection fault in filename_create
2024/03/19 23:37 android14-6.1 e623dd5ac2ac e104824c .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-6-1 general protection fault in filename_create
2024/03/03 21:20 android14-6.1 09ca5740fbbe 25905f5d .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-6-1 general protection fault in filename_create
2024/02/23 22:21 android14-6.1 8c0f9174731d 8d446f15 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-6-1 general protection fault in filename_create
2024/02/11 05:17 android14-6.1 d3f73f04529a 77b23aa1 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-6-1 general protection fault in filename_create
2023/11/08 02:30 android14-6.1 230d34da33c5 83211397 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-6-1 general protection fault in filename_create
2023/09/25 04:22 android14-6.1 060ebb378d1c 0b6a67ac .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-6-1 general protection fault in filename_create
2023/09/21 22:38 android14-6.1 c6724bfedaad 0b6a67ac .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-6-1 general protection fault in filename_create
2023/08/05 09:46 android14-6.1 5e1d25ac2ab6 cdae481e .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-6-1 general protection fault in filename_create
* Struck through repros no longer work on HEAD.