syzbot


general protection fault in filename_create

Status: upstream: reported C repro on 2023/04/29 15:06
Bug presence: origin:downstream
[Documentation on labels]
Reported-by: syzbot+109482120fd91264a45b@syzkaller.appspotmail.com
First crash: 353d, last: 39d
Cause bisection: failed (error log, bisect log)
  
Fix bisection: fixed by (bisect log) [merge commit]:
commit 23818c192b1564bae833256324cbc7c451dc7087
Author: Greg Kroah-Hartman <gregkh@google.com>
Date: Fri May 26 15:15:14 2023 +0000

  Merge tag 'android13-5.15.104_r00' into android13-5.15

  
Bug presence (3)
Date Name Commit Repro Result
2023/09/27 android13-5.15-lts (ToT) ea586874d2f9 C [report] general protection fault in filename_create
2023/09/27 lts (merge base) aff03380bda4 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-6-1 general protection fault in filename_create origin:downstream C done 12 6d07h 256d 0/2 upstream: reported C repro on 2023/08/05 10:34
android-5-10 general protection fault in filename_create C 13 52m 227d 0/2 upstream: reported C repro on 2023/09/02 15:10
Last patch testing requests (4)
Created Duration User Patch Repo Result
2024/03/09 00:10 8m retest repro android13-5.15-lts report log
2024/02/14 12:38 11m retest repro android13-5.15-lts report log
2023/12/06 09:50 5m retest repro android13-5.15-lts report log
2023/08/22 05:00 15m retest repro android13-5.15-lts OK log
Fix bisection attempts (2)
Created Duration User Patch Repo Result
2023/09/25 02:11 2h56m bisect fix android13-5.15-lts job log (1)
2023/06/05 04:43 20m bisect fix android13-5.15-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: 296 Comm: syz-executor795 Not tainted 5.15.148-syzkaller-00718-g993bed180178 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/25/2024
RIP: 0010:__d_entry_type include/linux/dcache.h:404 [inline]
RIP: 0010:d_is_miss include/linux/dcache.h:409 [inline]
RIP: 0010:d_is_negative include/linux/dcache.h:455 [inline]
RIP: 0010:d_is_positive include/linux/dcache.h:465 [inline]
RIP: 0010:filename_create+0x2d8/0x530 fs/namei.c:3848
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:ffffc900009f7d20 EFLAGS: 00010202
RAX: 0000000000000001 RBX: 1ffff9200013ef00 RCX: dffffc0000000000
RDX: 0000000000000000 RSI: 0000000000000004 RDI: 0000000000000000
RBP: ffffc900009f7e10 R08: ffffffff81c04f00 R09: ffffed102389a53e
R10: 0000000000000000 R11: dffffc0000000001 R12: 0000000000000000
R13: 0000000000000600 R14: 0000000000000008 R15: ffffc900009f7e80
FS:  00007fa99030f6c0(0000) GS:ffff8881f7100000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000000020002e80 CR3: 000000011ee66000 CR4: 00000000003506a0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <TASK>
 do_mkdirat+0xbd/0x450 fs/namei.c:4086
 __do_sys_mkdirat fs/namei.c:4111 [inline]
 __se_sys_mkdirat fs/namei.c:4109 [inline]
 __x64_sys_mkdirat+0x89/0xa0 fs/namei.c:4109
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x3d/0xb0 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x61/0xcb
RIP: 0033:0x7fa9903714a9
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:00007fa99030f218 EFLAGS: 00000246 ORIG_RAX: 0000000000000102
RAX: ffffffffffffffda RBX: 00007fa9903fd418 RCX: 00007fa9903714a9
RDX: 0000000000000100 RSI: 0000000020000000 RDI: 0000000000000004
RBP: 00007fa9903fd410 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 00007fa9903ca0dc
R13: 000000000000006e R14: 0030656c69662f2e R15: 7fffffffffffffff
 </TASK>
Modules linked in:
---[ end trace 82ad322080a93dc4 ]---
RIP: 0010:__d_entry_type include/linux/dcache.h:404 [inline]
RIP: 0010:d_is_miss include/linux/dcache.h:409 [inline]
RIP: 0010:d_is_negative include/linux/dcache.h:455 [inline]
RIP: 0010:d_is_positive include/linux/dcache.h:465 [inline]
RIP: 0010:filename_create+0x2d8/0x530 fs/namei.c:3848
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:ffffc900009f7d20 EFLAGS: 00010202
RAX: 0000000000000001 RBX: 1ffff9200013ef00 RCX: dffffc0000000000
RDX: 0000000000000000 RSI: 0000000000000004 RDI: 0000000000000000
RBP: ffffc900009f7e10 R08: ffffffff81c04f00 R09: ffffed102389a53e
R10: 0000000000000000 R11: dffffc0000000001 R12: 0000000000000000
R13: 0000000000000600 R14: 0000000000000008 R15: ffffc900009f7e80
FS:  00007fa99030f6c0(0000) GS:ffff8881f7000000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000000020007000 CR3: 000000011ee66000 CR4: 00000000003506b0
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 (7):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2024/02/23 23:41 android13-5.15-lts 993bed180178 8d446f15 .config strace log report syz C [disk image] [vmlinux] [kernel image] ci2-android-5-15 general protection fault in filename_create
2023/09/27 08:31 android13-5.15-lts ea586874d2f9 0b6a67ac .config strace log report syz C [disk image] [vmlinux] [kernel image] ci2-android-5-15 general protection fault in filename_create
2023/04/29 15:01 android13-5.15-lts 6d40cb68a657 62df2017 .config strace log report syz C [disk image] [vmlinux] [kernel image] ci2-android-5-15 general protection fault in filename_create
2023/09/27 08:08 android13-5.15-lts ea586874d2f9 0b6a67ac .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-15 general protection fault in filename_create
2023/08/05 09:25 android13-5.15-lts 748fd0d9ca0f cdae481e .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-15 general protection fault in filename_create
2023/06/23 13:46 android13-5.15-lts 565c3abfa129 79782afc .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-15 general protection fault in filename_create
2023/04/29 14:45 android13-5.15-lts 6d40cb68a657 62df2017 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-15 general protection fault in filename_create
* Struck through repros no longer work on HEAD.