syzbot


general protection fault in ubifs_mount

Status: fixed on 2018/10/11 14:33
Subsystems: mtd fs
[Documentation on labels]
Reported-by: syzbot+38bd0f7865e5c6379280@syzkaller.appspotmail.com
Fix commit: 37f31b6ca431 ubifs: Check for name being NULL while mounting
First crash: 2233d, last: 2211d
Discussions (13)
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.9 00/35] 4.9.133-stable review 46 (46) 2018/11/02 13:56
[PATCH 4.14 00/45] 4.14.76-stable review 54 (54) 2018/10/16 18:46
[PATCH 3.18 000/120] 3.18.124-stable review 134 (134) 2018/10/13 06:42
[PATCH 4.4 00/27] 4.4.161-stable review 33 (33) 2018/10/12 17:07
[PATCH 4.18 00/44] 4.18.14-stable review 49 (49) 2018/10/12 15:43
[PATCH AUTOSEL 3.18 1/6] selftests/efivarfs: add required kernel configs 8 (8) 2018/10/10 15:00
[PATCH AUTOSEL 4.18 01/48] ASoC: dapm: Fix NULL pointer deference on CODEC to CODEC DAIs 52 (52) 2018/10/08 09:37
[PATCH AUTOSEL 4.4 01/11] ASoC: wm8804: Add ACPI support 11 (11) 2018/10/05 16:17
[PATCH AUTOSEL 4.9 01/14] ASoC: wm8804: Add ACPI support 14 (14) 2018/10/05 16:17
[PATCH AUTOSEL 4.14 01/23] ASoC: rt5514: Fix the issue of the delay volume applied again 23 (23) 2018/10/05 16:16
[PATCH] ubifs: Check for name being NULL while mounting 1 (1) 2018/09/03 21:06
general protection fault in ubifs_mount 0 (1) 2018/09/03 20:21

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: 4750 Comm: syz-executor794 Not tainted 4.19.0-rc1-next-20180830+ #52
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
RIP: 0010:open_ubi fs/ubifs/super.c:1964 [inline]
RIP: 0010:ubifs_mount+0x1a0/0x66f0 fs/ubifs/super.c:2152
Code: 49 89 c7 48 89 c6 e8 5f 10 0f ff 49 81 ff 00 f0 ff ff 0f 86 91 03 00 00 e8 1d 0f 0f ff 48 89 d8 48 89 da 48 c1 e8 03 83 e2 07 <42> 0f b6 04 28 38 d0 7f 08 84 c0 0f 85 1e 19 00 00 44 0f b6 2b bf
RSP: 0018:ffff8801d8637660 EFLAGS: 00010246
RAX: 0000000000000000 RBX: 0000000000000000 RCX: ffffffff826db8c1
RDX: 0000000000000000 RSI: ffffffff826db8d3 RDI: 0000000000000007
RBP: ffff8801d8637b88 R08: ffff8801d876c680 R09: ffffed003b6046de
R10: ffffed003b6046de R11: ffff8801db0236f3 R12: ffff8801d8637b60
R13: dffffc0000000000 R14: ffff8801cae55948 R15: ffffffffffffffea
FS:  00000000016fa880(0000) GS:ffff8801db000000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000000020000040 CR3: 00000001b4516000 CR4: 00000000001406f0
Call Trace:
 legacy_get_tree+0x131/0x460 fs/fs_context.c:732
 vfs_get_tree+0x1cb/0x5c0 fs/super.c:1746
 do_new_mount fs/namespace.c:2627 [inline]
 do_mount+0x6f9/0x1e30 fs/namespace.c:2951
 ksys_mount+0x12d/0x140 fs/namespace.c:3167
 __do_sys_mount fs/namespace.c:3181 [inline]
 __se_sys_mount fs/namespace.c:3178 [inline]
 __x64_sys_mount+0xbe/0x150 fs/namespace.c:3178
 do_syscall_64+0x1b9/0x820 arch/x86/entry/common.c:290
 entry_SYSCALL_64_after_hwframe+0x49/0xbe
RIP: 0033:0x440029
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:00007fff912a7cb8 EFLAGS: 00000207 ORIG_RAX: 00000000000000a5
RAX: ffffffffffffffda RBX: 00000000004002c8 RCX: 0000000000440029
RDX: 0000000020000040 RSI: 0000000020d78000 RDI: 0000000020fb6000
RBP: 00000000006ca018 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000207 R12: 00000000004018b0
R13: 0000000000401940 R14: 0000000000000000 R15: 0000000000000000
Modules linked in:
Dumping ftrace buffer:
   (ftrace buffer empty)
---[ end trace 9dcb736f966f3063 ]---
RIP: 0010:open_ubi fs/ubifs/super.c:1964 [inline]
RIP: 0010:ubifs_mount+0x1a0/0x66f0 fs/ubifs/super.c:2152
Code: 49 89 c7 48 89 c6 e8 5f 10 0f ff 49 81 ff 00 f0 ff ff 0f 86 91 03 00 00 e8 1d 0f 0f ff 48 89 d8 48 89 da 48 c1 e8 03 83 e2 07 <42> 0f b6 04 28 38 d0 7f 08 84 c0 0f 85 1e 19 00 00 44 0f b6 2b bf
RSP: 0018:ffff8801d8637660 EFLAGS: 00010246
RAX: 0000000000000000 RBX: 0000000000000000 RCX: ffffffff826db8c1
RDX: 0000000000000000 RSI: ffffffff826db8d3 RDI: 0000000000000007
RBP: ffff8801d8637b88 R08: ffff8801d876c680 R09: ffffed003b6046de
R10: ffffed003b6046de R11: ffff8801db0236f3 R12: ffff8801d8637b60
R13: dffffc0000000000 R14: ffff8801cae55948 R15: ffffffffffffffea
FS:  00000000016fa880(0000) GS:ffff8801db000000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000000020000040 CR3: 00000001b4516000 CR4: 00000000001406f0

Crashes (216):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2018/08/30 21:05 linux-next 3d18c2437944 938220fd .config console log report syz C ci-upstream-linux-next-kasan-gce-root
2018/09/21 02:29 linux-next a0cb0cabe4bb 6cee973c .config console log report ci-upstream-linux-next-kasan-gce-root
2018/09/21 01:23 linux-next a0cb0cabe4bb 6cee973c .config console log report ci-upstream-linux-next-kasan-gce-root
2018/09/20 23:23 linux-next a0cb0cabe4bb 6cee973c .config console log report ci-upstream-linux-next-kasan-gce-root
2018/09/20 15:32 linux-next a0cb0cabe4bb 565a5452 .config console log report ci-upstream-linux-next-kasan-gce-root
2018/09/15 11:30 linux-next f8dcd0279214 a343a400 .config console log report ci-upstream-linux-next-kasan-gce-root
2018/09/13 01:44 linux-next 7c1b097f27bf 71907daf .config console log report ci-upstream-linux-next-kasan-gce-root
2018/09/11 00:36 linux-next f2b6e66e9885 f167cb6b .config console log report ci-upstream-linux-next-kasan-gce-root
2018/09/10 22:41 linux-next f2b6e66e9885 f167cb6b .config console log report ci-upstream-linux-next-kasan-gce-root
2018/09/10 06:41 linux-next f2b6e66e9885 6b5120a4 .config console log report ci-upstream-linux-next-kasan-gce-root
2018/09/10 03:34 linux-next f2b6e66e9885 6b5120a4 .config console log report ci-upstream-linux-next-kasan-gce-root
2018/09/10 01:29 linux-next f2b6e66e9885 6b5120a4 .config console log report ci-upstream-linux-next-kasan-gce-root
2018/09/09 23:56 linux-next f2b6e66e9885 6b5120a4 .config console log report ci-upstream-linux-next-kasan-gce-root
2018/09/09 23:47 linux-next f2b6e66e9885 6b5120a4 .config console log report ci-upstream-linux-next-kasan-gce-root
2018/09/09 20:34 linux-next f2b6e66e9885 6b5120a4 .config console log report ci-upstream-linux-next-kasan-gce-root
2018/09/09 17:55 linux-next f2b6e66e9885 6b5120a4 .config console log report ci-upstream-linux-next-kasan-gce-root
2018/09/09 15:37 linux-next f2b6e66e9885 6b5120a4 .config console log report ci-upstream-linux-next-kasan-gce-root
2018/09/09 11:50 linux-next f2b6e66e9885 6b5120a4 .config console log report ci-upstream-linux-next-kasan-gce-root
2018/09/09 10:22 linux-next f2b6e66e9885 6b5120a4 .config console log report ci-upstream-linux-next-kasan-gce-root
2018/09/09 08:46 linux-next f2b6e66e9885 6b5120a4 .config console log report ci-upstream-linux-next-kasan-gce-root
2018/09/09 07:27 linux-next f2b6e66e9885 6b5120a4 .config console log report ci-upstream-linux-next-kasan-gce-root
2018/09/09 04:50 linux-next f2b6e66e9885 6b5120a4 .config console log report ci-upstream-linux-next-kasan-gce-root
2018/09/09 02:23 linux-next f2b6e66e9885 6b5120a4 .config console log report ci-upstream-linux-next-kasan-gce-root
2018/09/09 00:31 linux-next f2b6e66e9885 6b5120a4 .config console log report ci-upstream-linux-next-kasan-gce-root
2018/09/08 22:28 linux-next f2b6e66e9885 6b5120a4 .config console log report ci-upstream-linux-next-kasan-gce-root
2018/09/08 20:42 linux-next f2b6e66e9885 6b5120a4 .config console log report ci-upstream-linux-next-kasan-gce-root
2018/09/08 20:33 linux-next f2b6e66e9885 6b5120a4 .config console log report ci-upstream-linux-next-kasan-gce-root
2018/09/08 19:24 linux-next f2b6e66e9885 6b5120a4 .config console log report ci-upstream-linux-next-kasan-gce-root
2018/09/08 18:02 linux-next f2b6e66e9885 6b5120a4 .config console log report ci-upstream-linux-next-kasan-gce-root
2018/09/08 15:37 linux-next f2b6e66e9885 6b5120a4 .config console log report ci-upstream-linux-next-kasan-gce-root
2018/09/08 13:41 linux-next f2b6e66e9885 6b5120a4 .config console log report ci-upstream-linux-next-kasan-gce-root
2018/09/08 11:53 linux-next f2b6e66e9885 6b5120a4 .config console log report ci-upstream-linux-next-kasan-gce-root
2018/09/08 07:12 linux-next f2b6e66e9885 6b5120a4 .config console log report ci-upstream-linux-next-kasan-gce-root
2018/09/08 02:39 linux-next f2b6e66e9885 6b5120a4 .config console log report ci-upstream-linux-next-kasan-gce-root
2018/09/07 23:45 linux-next f2b6e66e9885 69cfeb80 .config console log report ci-upstream-linux-next-kasan-gce-root
2018/09/07 19:47 linux-next f2b6e66e9885 69cfeb80 .config console log report ci-upstream-linux-next-kasan-gce-root
2018/09/07 17:49 linux-next f2b6e66e9885 69cfeb80 .config console log report ci-upstream-linux-next-kasan-gce-root
2018/09/07 12:13 linux-next f2b6e66e9885 e30d3b52 .config console log report ci-upstream-linux-next-kasan-gce-root
2018/09/07 09:35 linux-next f2b6e66e9885 e30d3b52 .config console log report ci-upstream-linux-next-kasan-gce-root
2018/09/07 08:00 linux-next f2b6e66e9885 e30d3b52 .config console log report ci-upstream-linux-next-kasan-gce-root
2018/09/07 03:01 linux-next f2b6e66e9885 e30d3b52 .config console log report ci-upstream-linux-next-kasan-gce-root
2018/09/07 01:58 linux-next f2b6e66e9885 e30d3b52 .config console log report ci-upstream-linux-next-kasan-gce-root
2018/09/07 00:45 linux-next f2b6e66e9885 e30d3b52 .config console log report ci-upstream-linux-next-kasan-gce-root
2018/09/06 21:12 linux-next f2b6e66e9885 0bb7a7eb .config console log report ci-upstream-linux-next-kasan-gce-root
2018/09/06 20:06 linux-next f2b6e66e9885 0bb7a7eb .config console log report ci-upstream-linux-next-kasan-gce-root
2018/08/30 19:11 linux-next 3d18c2437944 938220fd .config console log report ci-upstream-linux-next-kasan-gce-root
* Struck through repros no longer work on HEAD.