syzbot


general protection fault in p9_fd_create_unix

Status: fixed on 2018/08/28 17:48
Subsystems: v9fs
[Documentation on labels]
Reported-by: syzbot+1a262da37d3bead15c39@syzkaller.appspotmail.com
Fix commit: 10aa14527f45 9p: fix multiple NULL-pointer-dereferences
First crash: 2114d, last: 2110d
Duplicate bugs (1)
duplicates (1):
Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
general protection fault in in_aton net C 5 2083d 2113d 0/26 closed as dup on 2018/08/08 18:58
Discussions (12)
Title Replies (including bot) Last reply
[PATCH 3.16 000/328] 3.16.62-rc1 review 338 (338) 2018/12/16 22:01
[PATCH 4.18 000/145] 4.18.7-stable review 145 (145) 2018/09/10 15:56
[PATCH 4.14 00/89] 4.14.69-stable review 93 (93) 2018/09/10 15:42
[PATCH 4.9 00/63] 4.9.126-stable review 76 (76) 2018/09/10 15:03
[PATCH 4.4 00/47] 4.4.155-stable review 59 (59) 2018/09/10 15:01
[PATCH 3.18 00/29] 3.18.122-stable review 38 (38) 2018/09/10 15:00
[PATCH] 9p: fix NULL pointer dereferences 13 (13) 2018/08/08 22:41
Re: general protection fault in in_aton 1 (1) 2018/08/08 18:58
Re: general protection fault in in_aton 1 (1) 2018/08/08 15:56
[PATCH] 9p: fix multiple NULL-pointer-dereferences 3 (3) 2018/07/28 00:58
[PATCH] 9p: fix multiple NULL-pointer-dereferences 2 (2) 2018/07/27 10:56
general protection fault in p9_fd_create_unix 0 (1) 2018/07/10 08:09
Similar bugs (1)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
android-49 general protection fault in p9_fd_create_unix C 4 2068d 1836d 0/3 public: reported C repro on 2019/04/14 00:00

Sample crash report:
random: sshd: uninitialized urandom read (32 bytes read)
random: sshd: uninitialized urandom read (32 bytes read)
random: sshd: uninitialized urandom read (32 bytes read)
kasan: CONFIG_KASAN_INLINE enabled
kasan: GPF could be caused by NULL-ptr deref or user memory access
general protection fault: 0000 [#1] SMP KASAN
CPU: 0 PID: 4535 Comm: syz-executor419 Not tainted 4.18.0-rc4+ #141
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
RIP: 0010:strlen+0x1f/0xa0 lib/string.c:479
Code: ff ff ff 0f 1f 84 00 00 00 00 00 48 b8 00 00 00 00 00 fc ff df 55 48 89 fa 48 c1 ea 03 48 89 e5 41 54 49 89 fc 53 48 83 ec 08 <0f> b6 04 02 48 89 fa 83 e2 07 38 d0 7f 04 84 c0 75 4d 41 80 3c 24 
RSP: 0018:ffff8801af2df3d8 EFLAGS: 00010296
RAX: dffffc0000000000 RBX: 1ffff10035e5be83 RCX: ffffffff8766d02b
RDX: 0000000000000000 RSI: ffffffff87679de2 RDI: 0000000000000000
RBP: ffff8801af2df3f0 R08: ffff8801aee4a240 R09: 0000000000000000
R10: ffffed003b5c46d6 R11: ffff8801dae236b3 R12: 0000000000000000
R13: dffffc0000000000 R14: 0000000000000000 R15: 1ffff10035e5beba
FS:  0000000001e72880(0000) GS:ffff8801dae00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00000000200003c0 CR3: 00000001aeec6000 CR4: 00000000001406f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 strlen include/linux/string.h:267 [inline]
 p9_fd_create_unix+0xbf/0x370 net/9p/trans_fd.c:993
 p9_client_create+0x915/0x16c9 net/9p/client.c:1062
 v9fs_session_init+0x21a/0x1a80 fs/9p/v9fs.c:400
 v9fs_mount+0x7c/0x900 fs/9p/vfs_super.c:135
 mount_fs+0xae/0x328 fs/super.c:1277
 vfs_kern_mount.part.34+0xdc/0x4e0 fs/namespace.c:1037
 vfs_kern_mount fs/namespace.c:1027 [inline]
 do_new_mount fs/namespace.c:2518 [inline]
 do_mount+0x581/0x30e0 fs/namespace.c:2848
 ksys_mount+0x12d/0x140 fs/namespace.c:3064
 __do_sys_mount fs/namespace.c:3078 [inline]
 __se_sys_mount fs/namespace.c:3075 [inline]
 __x64_sys_mount+0xbe/0x150 fs/namespace.c:3075
 do_syscall_64+0x1b9/0x820 arch/x86/entry/common.c:290
 entry_SYSCALL_64_after_hwframe+0x49/0xbe
RIP: 0033:0x440159
Code: 18 89 d0 c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 00 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 0f 83 fb 13 fc ff c3 66 2e 0f 1f 84 00 00 00 00 
RSP: 002b:00007fffa01e83a8 EFLAGS: 00000217 ORIG_RAX: 00000000000000a5
RAX: ffffffffffffffda RBX: 0030656c69662f2e RCX: 0000000000440159
RDX: 0000000020000340 RSI: 00000000200000c0 RDI: 0000000000000000
RBP: 00000000006ca018 R08: 00000000200006c0 R09: 00000000004002c8
R10: 0000000000000000 R11: 0000000000000217 R12: 00000000004019e0
R13: 0000000000401a70 R14: 0000000000000000 R15: 0000000000000000
Modules linked in:
Dumping ftrace buffer:
   (ftrace buffer empty)
---[ end trace fcc1910ad3a9d968 ]---
RIP: 0010:strlen+0x1f/0xa0 lib/string.c:479
Code: ff ff ff 0f 1f 84 00 00 00 00 00 48 b8 00 00 00 00 00 fc ff df 55 48 89 fa 48 c1 ea 03 48 89 e5 41 54 49 89 fc 53 48 83 ec 08 <0f> b6 04 02 48 89 fa 83 e2 07 38 d0 7f 04 84 c0 75 4d 41 80 3c 24 
RSP: 0018:ffff8801af2df3d8 EFLAGS: 00010296
RAX: dffffc0000000000 RBX: 1ffff10035e5be83 RCX: ffffffff8766d02b
RDX: 0000000000000000 RSI: ffffffff87679de2 RDI: 0000000000000000
RBP: ffff8801af2df3f0 R08: ffff8801aee4a240 R09: 0000000000000000
R10: ffffed003b5c46d6 R11: ffff8801dae236b3 R12: 0000000000000000
R13: dffffc0000000000 R14: 0000000000000000 R15: 1ffff10035e5beba
FS:  0000000001e72880(0000) GS:ffff8801dae00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00000000200003c0 CR3: 00000001aeec6000 CR4: 00000000001406f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400

Crashes (4):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2018/07/11 10:35 upstream 1e09177acae3 2e0e3130 .config console log report syz C ci-upstream-kasan-gce-root
2018/07/10 18:41 upstream 092150a25cb7 9fa03fa5 .config console log report syz C ci-upstream-kasan-gce
2018/07/10 05:39 upstream 092150a25cb7 f25e5770 .config console log report syz C ci-upstream-kasan-gce-386
2018/07/13 15:56 linux-next 483d835c8189 92a49505 .config console log report syz C ci-upstream-linux-next-kasan-gce-root
* Struck through repros no longer work on HEAD.