syzbot


general protection fault in filename_create

Status: upstream: reported C repro on 2023/09/02 15:10
Reported-by: syzbot+de3a4eb8ab7419d55ee5@syzkaller.appspotmail.com
First crash: 179d, last: 5d15h
Similar bugs (2)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
android-6-1 general protection fault in filename_create origin:downstream C done 9 5d03h 207d 0/2 upstream: reported C repro on 2023/08/05 10:34
android-5-15 general protection fault in filename_create origin:downstream C error unreliable 7 5d02h 305d 0/2 upstream: reported C repro on 2023/04/29 15:06
Last patch testing requests (4)
Created Duration User Patch Repo Result
2024/02/14 12:57 8m retest repro android13-5.10-lts report log
2023/12/06 11:12 28m retest repro android13-5.10-lts report log
2023/10/17 08:48 8m retest repro android13-5.10-lts report log
2023/09/16 15:08 9m retest repro android13-5.10-lts report log
Fix bisection attempts (2)
Created Duration User Patch Repo Result
2024/01/14 16:40 52m bisect fix android13-5.10-lts job log (0) log
2023/11/22 09:01 35m bisect fix android13-5.10-lts job log (0) 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: 1 PID: 289 Comm: syz-executor216 Not tainted 5.10.209-syzkaller-00435-gdd976ecce2ce #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/25/2024
RIP: 0010:__d_entry_type include/linux/dcache.h:400 [inline]
RIP: 0010:d_is_miss include/linux/dcache.h:405 [inline]
RIP: 0010:d_is_negative include/linux/dcache.h:451 [inline]
RIP: 0010:d_is_positive include/linux/dcache.h:461 [inline]
RIP: 0010:filename_create+0x225/0x750 fs/namei.c:3619
Code: 89 e2 e8 ee 96 ff ff 49 89 c4 48 3d 01 f0 ff ff 72 07 e8 de e1 b6 ff eb 5f 4c 89 e0 48 c1 e8 03 48 b9 00 00 00 00 00 fc ff df <0f> b6 04 08 84 c0 0f 85 70 04 00 00 4c 89 64 24 30 45 8b 24 24 bb
RSP: 0018:ffffc90000b47d20 EFLAGS: 00010202
RAX: 0000000000000001 RBX: ffff88811c4eae00 RCX: dffffc0000000000
RDX: 0000000000000000 RSI: 0000000000000004 RDI: 0000000000000000
RBP: ffffc90000b47e10 R08: ffffffff81b65c1b R09: ffffed102389d5c6
R10: 0000000000000000 R11: dffffc0000000001 R12: 0000000000000008
R13: 1ffff92000168fd1 R14: ffffc90000b47e88 R15: 1ffff92000168fd0
FS:  00007ff70c2186c0(0000) GS:ffff8881f7100000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000000020007000 CR3: 000000011ebac000 CR4: 00000000003506a0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 user_path_create fs/namei.c:3671 [inline]
 do_mkdirat+0xcc/0x2c0 fs/namei.c:3811
 __do_sys_mkdirat fs/namei.c:3829 [inline]
 __se_sys_mkdirat fs/namei.c:3827 [inline]
 __x64_sys_mkdirat+0x7b/0x90 fs/namei.c:3827
 do_syscall_64+0x34/0x70
 entry_SYSCALL_64_after_hwframe+0x61/0xc6
RIP: 0033:0x7ff70c27a4a9
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:00007ff70c218218 EFLAGS: 00000246 ORIG_RAX: 0000000000000102
RAX: ffffffffffffffda RBX: 00007ff70c306418 RCX: 00007ff70c27a4a9
RDX: 0000000000000100 RSI: 0000000020000000 RDI: 0000000000000004
RBP: 00007ff70c306410 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 00007ff70c2d30dc
R13: 000000000000006e R14: 0030656c69662f2e R15: 7fffffffffffffff
Modules linked in:
---[ end trace 5456b54a45434785 ]---
RIP: 0010:__d_entry_type include/linux/dcache.h:400 [inline]
RIP: 0010:d_is_miss include/linux/dcache.h:405 [inline]
RIP: 0010:d_is_negative include/linux/dcache.h:451 [inline]
RIP: 0010:d_is_positive include/linux/dcache.h:461 [inline]
RIP: 0010:filename_create+0x225/0x750 fs/namei.c:3619
Code: 89 e2 e8 ee 96 ff ff 49 89 c4 48 3d 01 f0 ff ff 72 07 e8 de e1 b6 ff eb 5f 4c 89 e0 48 c1 e8 03 48 b9 00 00 00 00 00 fc ff df <0f> b6 04 08 84 c0 0f 85 70 04 00 00 4c 89 64 24 30 45 8b 24 24 bb
RSP: 0018:ffffc90000b47d20 EFLAGS: 00010202
RAX: 0000000000000001 RBX: ffff88811c4eae00 RCX: dffffc0000000000
RDX: 0000000000000000 RSI: 0000000000000004 RDI: 0000000000000000
RBP: ffffc90000b47e10 R08: ffffffff81b65c1b R09: ffffed102389d5c6
R10: 0000000000000000 R11: dffffc0000000001 R12: 0000000000000008
R13: 1ffff92000168fd1 R14: ffffc90000b47e88 R15: 1ffff92000168fd0
FS:  00007ff70c2186c0(0000) GS:ffff8881f7000000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 000055c59ff24210 CR3: 000000011ebac000 CR4: 00000000003506b0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
----------------
Code disassembly (best guess):
   0:	89 e2                	mov    %esp,%edx
   2:	e8 ee 96 ff ff       	call   0xffff96f5
   7:	49 89 c4             	mov    %rax,%r12
   a:	48 3d 01 f0 ff ff    	cmp    $0xfffffffffffff001,%rax
  10:	72 07                	jb     0x19
  12:	e8 de e1 b6 ff       	call   0xffb6e1f5
  17:	eb 5f                	jmp    0x78
  19:	4c 89 e0             	mov    %r12,%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 70 04 00 00    	jne    0x4a6
  36:	4c 89 64 24 30       	mov    %r12,0x30(%rsp)
  3b:	45 8b 24 24          	mov    (%r12),%r12d
  3f:	bb                   	.byte 0xbb

Crashes (6):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2024/02/23 10:16 android13-5.10-lts dd976ecce2ce 8d446f15 .config strace log report syz C [disk image] [vmlinux] [kernel image] ci2-android-5-10 general protection fault in filename_create
2023/10/03 08:29 android13-5.10-lts a27512601c2d 65faba36 .config strace log report syz C [disk image] [vmlinux] [kernel image] ci2-android-5-10 general protection fault in filename_create
2023/09/02 15:08 android13-5.10-lts c8ca447a86a2 696ea0d2 .config strace log report syz C [disk image] [vmlinux] [kernel image] ci2-android-5-10 general protection fault in filename_create
2023/12/14 17:31 android13-5.10-lts f722f6ad16cf 3222d10c .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-10 general protection fault in filename_create
2023/10/22 05:56 android13-5.10-lts a27512601c2d 361b23dc .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-10 general protection fault in filename_create
2023/09/19 06:14 android13-5.10-lts a27512601c2d 0b6a67ac .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-10 general protection fault in filename_create
* Struck through repros no longer work on HEAD.