syzbot


general protection fault in getname_kernel

Status: fixed on 2018/11/12 21:25
Subsystems: gfs2
[Documentation on labels]
Reported-by: syzbot+c54f8e94e6bba03b04e9@syzkaller.appspotmail.com
Fix commit: 3df629d873f8 gfs2_meta: ->mount() can get NULL dev_name
First crash: 2056d, last: 2047d
Discussions (8)
Title Replies (including bot) Last reply
[PATCH 3.16 000/305] 3.16.63-rc1 review 313 (313) 2019/06/07 15:34
[PATCH 4.19 000/361] 4.19.2-stable review 384 (384) 2018/12/17 17:52
[PATCH 3.18 00/90] 3.18.126-stable review 102 (102) 2018/11/22 06:30
[PATCH 4.4 000/160] 4.4.164-stable review 169 (169) 2018/11/21 07:59
[PATCH 4.14 000/222] 4.14.81-stable review 231 (231) 2018/11/13 19:11
[PATCH 4.9 000/141] 4.9.137-stable review 148 (148) 2018/11/13 19:11
[PATCH 4.18 000/350] 4.18.19-stable review 354 (354) 2018/11/13 00:57
general protection fault in getname_kernel 1 (2) 2018/10/08 00:07

Sample crash report:
kasan: CONFIG_KASAN_INLINE enabled
kasan: GPF could be caused by NULL-ptr deref or user memory access
general protection fault: 0000 [#1] PREEMPT SMP KASAN
CPU: 0 PID: 5778 Comm: syz-executor142 Not tainted 4.19.0-rc6+ #48
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 89 e5 48 c1 ea 03 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:ffff8801bb29f9b0 EFLAGS: 00010282
RAX: dffffc0000000000 RBX: 0000000000000001 RCX: ffff8801bb0de880
RDX: 0000000000000000 RSI: ffffffff81d2cccc RDI: 0000000000000000
RBP: ffff8801bb29f9c8 R08: ffff8801d86181c0 R09: ffffed0037b4b800
R10: 0000000000000000 R11: ffffffff8b04dd6b R12: 0000000000000000
R13: 0000000000000000 R14: ffffffff89f3ee98 R15: 0000000000000000
FS:  00000000018dc880(0000) GS:ffff8801dae00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000000020000000 CR3: 00000001d5501000 CR4: 00000000001406f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 strlen include/linux/string.h:267 [inline]
 getname_kernel+0x24/0x370 fs/namei.c:218
 kern_path+0x1e/0x40 fs/namei.c:2434
 gfs2_mount_meta+0x85/0x2a0 fs/gfs2/ops_fstype.c:1336
 mount_fs+0xae/0x31d fs/super.c:1261
 vfs_kern_mount.part.35+0xdc/0x4f0 fs/namespace.c:961
 vfs_kern_mount fs/namespace.c:951 [inline]
 do_new_mount fs/namespace.c:2457 [inline]
 do_mount+0x581/0x31f0 fs/namespace.c:2787
 ksys_mount+0x12d/0x140 fs/namespace.c:3003
 __do_sys_mount fs/namespace.c:3017 [inline]
 __se_sys_mount fs/namespace.c:3014 [inline]
 __x64_sys_mount+0xbe/0x150 fs/namespace.c:3014
 do_syscall_64+0x1b9/0x820 arch/x86/entry/common.c:290
 entry_SYSCALL_64_after_hwframe+0x49/0xbe
RIP: 0033:0x440059
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:00007ffd881923a8 EFLAGS: 00000217 ORIG_RAX: 00000000000000a5
RAX: ffffffffffffffda RBX: 0030656c69662f2e RCX: 0000000000440059
RDX: 0000000020000040 RSI: 0000000020000080 RDI: 0000000000000000
RBP: 00000000006ca018 R08: 00000000200000c0 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000217 R12: 00000000004018e0
R13: 0000000000401970 R14: 0000000000000000 R15: 0000000000000000
Modules linked in:
---[ end trace 2d6afb1cf0821a3e ]---
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 89 e5 48 c1 ea 03 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:ffff8801bb29f9b0 EFLAGS: 00010282
RAX: dffffc0000000000 RBX: 0000000000000001 RCX: ffff8801bb0de880
RDX: 0000000000000000 RSI: ffffffff81d2cccc RDI: 0000000000000000
RBP: ffff8801bb29f9c8 R08: ffff8801d86181c0 R09: ffffed0037b4b800
R10: 0000000000000000 R11: ffffffff8b04dd6b R12: 0000000000000000
R13: 0000000000000000 R14: ffffffff89f3ee98 R15: 0000000000000000
FS:  00000000018dc880(0000) GS:ffff8801dae00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000000020000000 CR3: 00000001d5501000 CR4: 00000000001406f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400

Crashes (10):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2018/10/07 07:26 upstream c1d84a1b42ef 8b311eaf .config console log report syz C ci-upstream-kasan-gce-smack-root
2018/10/07 06:16 upstream c1d84a1b42ef 8b311eaf .config console log report syz C ci-upstream-kasan-gce-root
2018/10/07 06:06 upstream c1d84a1b42ef 8b311eaf .config console log report syz C ci-upstream-kasan-gce-selinux-root
2018/10/07 05:22 upstream c1d84a1b42ef 8b311eaf .config console log report syz C ci-upstream-kasan-gce
2018/10/07 05:38 upstream c1d84a1b42ef 8b311eaf .config console log report syz C ci-upstream-kasan-gce-386
2018/10/16 05:27 upstream f0a7d1883d9f 8cd30605 .config console log report ci-upstream-kasan-gce-smack-root
2018/10/14 19:34 upstream 3a27203102eb caf12900 .config console log report ci-upstream-kasan-gce
2018/10/12 03:43 upstream 9dcd936c5312 ba6ddb43 .config console log report ci-upstream-kasan-gce
2018/10/07 14:08 upstream fb1c592cf4c9 8b311eaf .config console log report ci-upstream-kasan-gce
2018/10/07 05:05 upstream c1d84a1b42ef 8b311eaf .config console log report ci-upstream-kasan-gce
* Struck through repros no longer work on HEAD.