syzbot


general protection fault in kstrtouint (2)

Status: fixed on 2019/10/15 23:40
Subsystems: fuse
[Documentation on labels]
Reported-by: syzbot+398343b7c1b1b989228d@syzkaller.appspotmail.com
Fix commit: 74983ac20aea vfs: Make fs_parse() handle fs_param_is_fd-type params better
First crash: 1738d, last: 1694d
Cause bisection: introduced by (bisect log) :
commit 71cbb7570a9a0b830125163c20125a8b5e65ac45
Author: David Howells <dhowells@redhat.com>
Date: Mon Mar 25 16:38:31 2019 +0000

  vfs: Move the subtype parameter into fuse

Crash: general protection fault in kstrtouint (log)
Repro: C syz .config
  
Discussions (3)
Title Replies (including bot) Last reply
[PATCH v2] fs: fs_parser: avoid NULL param->string to kstrtouint 4 (4) 2019/08/22 05:33
[PATCH] fs: fs_parser: avoid NULL param->string to kstrtouint 5 (5) 2019/07/19 23:29
general protection fault in kstrtouint (2) 1 (2) 2019/07/19 12:16
Similar bugs (1)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream general protection fault in kstrtouint isofs C 2 2081d 2077d 0/26 closed as invalid on 2019/06/10 22:05

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: 9017 Comm: syz-executor410 Not tainted 5.2.0-next-20190717 #40
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
RIP: 0010:kstrtoull lib/kstrtox.c:123 [inline]
RIP: 0010:kstrtouint+0x85/0x1a0 lib/kstrtox.c:222
Code: 04 00 f3 f3 f3 65 48 8b 04 25 28 00 00 00 48 89 45 d0 31 c0 e8 6c 35 35 fe 4c 89 e2 48 b8 00 00 00 00 00 fc ff df 48 c1 ea 03 <0f> b6 04 02 4c 89 e2 83 e2 07 38 d0 7f 08 84 c0 0f 85 db 00 00 00
RSP: 0018:ffff8880997a79e0 EFLAGS: 00010246
RAX: dffffc0000000000 RBX: ffff8880997a7b38 RCX: ffffffff81c482dc
RDX: 0000000000000000 RSI: ffffffff833d4f84 RDI: 0000000000000000
RBP: ffff8880997a7a70 R08: ffff8880a17ce100 R09: ffffed1015d06c84
R10: ffffed1015d06c83 R11: ffff8880ae83641b R12: 0000000000000000
R13: 1ffff110132f4f3d R14: ffff8880997a7a48 R15: 0000000000000000
FS:  0000555556585880(0000) GS:ffff8880ae800000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000000000455340 CR3: 0000000095a49000 CR4: 00000000001406f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 fs_parse+0xde1/0x1080 fs/fs_parser.c:209
 fuse_parse_param+0xac/0x750 fs/fuse/inode.c:491
 vfs_parse_fs_param+0x2ca/0x540 fs/fs_context.c:145
 vfs_parse_fs_string+0x105/0x170 fs/fs_context.c:188
 generic_parse_monolithic+0x181/0x200 fs/fs_context.c:228
 parse_monolithic_mount_data+0x69/0x90 fs/fs_context.c:708
 do_new_mount fs/namespace.c:2779 [inline]
 do_mount+0x1369/0x1c30 fs/namespace.c:3103
 ksys_mount+0xdb/0x150 fs/namespace.c:3312
 __do_sys_mount fs/namespace.c:3326 [inline]
 __se_sys_mount fs/namespace.c:3323 [inline]
 __x64_sys_mount+0xbe/0x150 fs/namespace.c:3323
 do_syscall_64+0xfd/0x6a0 arch/x86/entry/common.c:296
 entry_SYSCALL_64_after_hwframe+0x49/0xbe
RIP: 0033:0x440299
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 5b 14 fc ff c3 66 2e 0f 1f 84 00 00 00 00
RSP: 002b:00007fff19b997e8 EFLAGS: 00000246 ORIG_RAX: 00000000000000a5
RAX: ffffffffffffffda RBX: 00007fff19b997f0 RCX: 0000000000440299
RDX: 0000000020000080 RSI: 00000000200000c0 RDI: 0000000000000000
RBP: 00000000006cb018 R08: 00000000200002c0 R09: 65732f636f72702f
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000401b80
R13: 0000000000401c10 R14: 0000000000000000 R15: 0000000000000000
Modules linked in:
---[ end trace 8c219e63b0160ea4 ]---
RIP: 0010:kstrtoull lib/kstrtox.c:123 [inline]
RIP: 0010:kstrtouint+0x85/0x1a0 lib/kstrtox.c:222
Code: 04 00 f3 f3 f3 65 48 8b 04 25 28 00 00 00 48 89 45 d0 31 c0 e8 6c 35 35 fe 4c 89 e2 48 b8 00 00 00 00 00 fc ff df 48 c1 ea 03 <0f> b6 04 02 4c 89 e2 83 e2 07 38 d0 7f 08 84 c0 0f 85 db 00 00 00
RSP: 0018:ffff8880997a79e0 EFLAGS: 00010246
RAX: dffffc0000000000 RBX: ffff8880997a7b38 RCX: ffffffff81c482dc
RDX: 0000000000000000 RSI: ffffffff833d4f84 RDI: 0000000000000000
RBP: ffff8880997a7a70 R08: ffff8880a17ce100 R09: ffffed1015d06c84
R10: ffffed1015d06c83 R11: ffff8880ae83641b R12: 0000000000000000
R13: 1ffff110132f4f3d R14: ffff8880997a7a48 R15: 0000000000000000
FS:  0000555556585880(0000) GS:ffff8880ae800000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000000000455340 CR3: 0000000095a49000 CR4: 00000000001406f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400

Crashes (40):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2019/07/17 14:16 linux-next e40115c06b1d 0d10349c .config console log report syz C ci-upstream-linux-next-kasan-gce-root
2019/08/30 09:07 linux-next ed2393ca0910 fd37b39e .config console log report ci-upstream-linux-next-kasan-gce-root
2019/08/29 22:26 linux-next ed2393ca0910 fd37b39e .config console log report ci-upstream-linux-next-kasan-gce-root
2019/08/29 15:00 linux-next ed2393ca0910 fd37b39e .config console log report ci-upstream-linux-next-kasan-gce-root
2019/08/28 23:34 linux-next ed2393ca0910 fd37b39e .config console log report ci-upstream-linux-next-kasan-gce-root
2019/08/28 11:57 linux-next ed2393ca0910 fd37b39e .config console log report ci-upstream-linux-next-kasan-gce-root
2019/08/24 06:43 linux-next 9733a7c62c66 78ded196 .config console log report ci-upstream-linux-next-kasan-gce-root
2019/08/24 03:25 linux-next 9733a7c62c66 78ded196 .config console log report ci-upstream-linux-next-kasan-gce-root
2019/08/23 23:16 linux-next 9733a7c62c66 78ded196 .config console log report ci-upstream-linux-next-kasan-gce-root
2019/08/23 21:54 linux-next 9733a7c62c66 78ded196 .config console log report ci-upstream-linux-next-kasan-gce-root
2019/08/23 03:00 linux-next b5835edc8dd4 d003d6d0 .config console log report ci-upstream-linux-next-kasan-gce-root
2019/08/20 04:20 linux-next da6570438d9b ee12860b .config console log report ci-upstream-linux-next-kasan-gce-root
2019/08/15 14:30 linux-next 17da61ae48ec 0d298d6b .config console log report ci-upstream-linux-next-kasan-gce-root
2019/08/14 10:35 linux-next 0b821f0a8339 5576551b .config console log report ci-upstream-linux-next-kasan-gce-root
2019/08/13 10:15 linux-next 8e72ac275c63 8620c2c2 .config console log report ci-upstream-linux-next-kasan-gce-root
2019/08/10 12:04 linux-next 87b983f55b8c acb51638 .config console log report ci-upstream-linux-next-kasan-gce-root
2019/08/10 12:03 linux-next 87b983f55b8c acb51638 .config console log report ci-upstream-linux-next-kasan-gce-root
2019/08/10 12:03 linux-next 87b983f55b8c acb51638 .config console log report ci-upstream-linux-next-kasan-gce-root
2019/08/10 11:58 linux-next 87b983f55b8c acb51638 .config console log report ci-upstream-linux-next-kasan-gce-root
2019/08/10 04:46 linux-next 87b983f55b8c acb51638 .config console log report ci-upstream-linux-next-kasan-gce-root
2019/08/09 05:45 linux-next 2ae256317763 ede31a9b .config console log report ci-upstream-linux-next-kasan-gce-root
2019/08/07 19:45 linux-next 3880be629e26 e6ebef88 .config console log report ci-upstream-linux-next-kasan-gce-root
2019/08/07 02:00 linux-next 958eb4327c17 c6f01e54 .config console log report ci-upstream-linux-next-kasan-gce-root
2019/08/07 01:14 linux-next 958eb4327c17 c6f01e54 .config console log report ci-upstream-linux-next-kasan-gce-root
2019/08/05 13:13 linux-next b1645c0cbd48 6affd8e8 .config console log report ci-upstream-linux-next-kasan-gce-root
2019/08/05 05:28 linux-next 7b4980e0bcf4 6affd8e8 .config console log report ci-upstream-linux-next-kasan-gce-root
2019/08/05 05:25 linux-next 7b4980e0bcf4 6affd8e8 .config console log report ci-upstream-linux-next-kasan-gce-root
2019/08/05 05:22 linux-next 7b4980e0bcf4 6affd8e8 .config console log report ci-upstream-linux-next-kasan-gce-root
2019/08/04 07:39 linux-next 7b4980e0bcf4 6affd8e8 .config console log report ci-upstream-linux-next-kasan-gce-root
2019/08/03 18:04 linux-next 7b4980e0bcf4 6affd8e8 .config console log report ci-upstream-linux-next-kasan-gce-root
2019/07/31 23:51 linux-next ce96e791d6a7 c692b5bd .config console log report ci-upstream-linux-next-kasan-gce-root
2019/07/29 03:36 linux-next fde50b96be82 c85e1c5b .config console log report ci-upstream-linux-next-kasan-gce-root
2019/07/24 22:53 linux-next 9e6dfe8045f8 32329ceb .config console log report ci-upstream-linux-next-kasan-gce-root
2019/07/24 05:52 linux-next 6d21a41b7b1f de453f34 .config console log report ci-upstream-linux-next-kasan-gce-root
2019/07/24 00:13 linux-next 6d21a41b7b1f de453f34 .config console log report ci-upstream-linux-next-kasan-gce-root
2019/07/22 01:22 linux-next 6d21a41b7b1f 1656845f .config console log report ci-upstream-linux-next-kasan-gce-root
2019/07/21 11:27 linux-next 6d21a41b7b1f 1656845f .config console log report ci-upstream-linux-next-kasan-gce-root
2019/07/21 10:07 linux-next 6d21a41b7b1f 1656845f .config console log report ci-upstream-linux-next-kasan-gce-root
2019/07/19 00:14 linux-next 6d21a41b7b1f 7bb222f7 .config console log report ci-upstream-linux-next-kasan-gce-root
2019/07/17 13:46 linux-next e40115c06b1d 0d10349c .config console log report ci-upstream-linux-next-kasan-gce-root
* Struck through repros no longer work on HEAD.