syzbot


general protection fault in send_sigio_to_task

Status: fixed on 2018/08/28 17:48
Subsystems: fs
[Documentation on labels]
Reported-by: syzbot+854a638985e121990c4c@syzkaller.appspotmail.com
Fix commit: 84fe4cc09abc signal: Don't send signals to tasks that don't exist
First crash: 2071d, last: 2067d
Discussions (1)
Title Replies (including bot) Last reply
general protection fault in send_sigio_to_task 1 (2) 2018/08/17 17:37

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: 1 PID: 4500 Comm: syz-executor081 Not tainted 4.18.0-next-20180813+ #37
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
RIP: 0010:__read_once_size include/linux/compiler.h:188 [inline]
RIP: 0010:sigio_perm fs/fcntl.c:715 [inline]
RIP: 0010:send_sigio_to_task+0x1ad/0x910 fs/fcntl.c:734
Code: 4c 8d b3 00 ff ff ff 48 b8 00 00 00 00 00 fc ff df 49 8d bf 58 06 00 00 4c 89 f2 48 c1 ea 03 c6 04 02 00 48 89 fa 48 c1 ea 03 <80> 3c 02 00 0f 85 1a 07 00 00 49 8b 87 58 06 00 00 4c 89 f2 48 c1
RSP: 0018:ffff8801d9b5f878 EFLAGS: 00010202
RAX: dffffc0000000000 RBX: ffff8801d9b5f9f8 RCX: ffffffff81caeb13
RDX: 00000000000000cb RSI: ffffffff81cae4e3 RDI: 0000000000000658
RBP: ffff8801d9b5fa20 R08: ffff8801acfee500 R09: ffffed003b6246d6
R10: ffffed003b6246d6 R11: ffff8801db1236b3 R12: ffff8801d98e3bc8
R13: 0000000000000000 R14: ffff8801d9b5f8f8 R15: 0000000000000000
FS:  00007fcc7bf1e700(0000) GS:ffff8801db100000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007fcc7bf1de78 CR3: 00000001acdbc000 CR4: 00000000001406e0
Call Trace:
 send_sigio+0x36f/0x4a0 fs/fcntl.c:794
 dnotify_handle_event+0x213/0x360 fs/notify/dnotify/dnotify.c:111
 send_to_group fs/notify/fsnotify.c:234 [inline]
 fsnotify+0x97d/0x14e0 fs/notify/fsnotify.c:374
 fsnotify_access include/linux/fsnotify.h:185 [inline]
 iterate_dir+0x4e3/0x5d0 fs/readdir.c:55
 ksys_getdents64+0x228/0x450 fs/readdir.c:314
 __do_sys_getdents64 fs/readdir.c:333 [inline]
 __se_sys_getdents64 fs/readdir.c:330 [inline]
 __x64_sys_getdents64+0x73/0xb0 fs/readdir.c:330
 do_syscall_64+0x1b9/0x820 arch/x86/entry/common.c:290
 entry_SYSCALL_64_after_hwframe+0x49/0xbe
RIP: 0033:0x4456b9
Code: e8 ec b8 02 00 48 83 c4 18 c3 0f 1f 80 00 00 00 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 8b 12 fc ff c3 66 2e 0f 1f 84 00 00 00 00
RSP: 002b:00007fcc7bf1dd18 EFLAGS: 00000246 ORIG_RAX: 00000000000000d9
RAX: ffffffffffffffda RBX: 00000000006dac48 RCX: 00000000004456b9
RDX: 0000000000001000 RSI: 0000000020001380 RDI: 0000000000000003
RBP: 00000000006dac40 R08: 00007fcc7bf1e700 R09: 0000000000000000
R10: 00007fcc7bf1e700 R11: 0000000000000246 R12: 00000000006dac4c
R13: 00007fcc7bf1dd20 R14: 0000000020000180 R15: 00000000006dad2c
Modules linked in:
Dumping ftrace buffer:
   (ftrace buffer empty)
---[ end trace 9542b2f908ce9cfa ]---
RIP: 0010:__read_once_size include/linux/compiler.h:188 [inline]
RIP: 0010:sigio_perm fs/fcntl.c:715 [inline]
RIP: 0010:send_sigio_to_task+0x1ad/0x910 fs/fcntl.c:734
Code: 4c 8d b3 00 ff ff ff 48 b8 00 00 00 00 00 fc ff df 49 8d bf 58 06 00 00 4c 89 f2 48 c1 ea 03 c6 04 02 00 48 89 fa 48 c1 ea 03 <80> 3c 02 00 0f 85 1a 07 00 00 49 8b 87 58 06 00 00 4c 89 f2 48 c1
RSP: 0018:ffff8801d9b5f878 EFLAGS: 00010202
RAX: dffffc0000000000 RBX: ffff8801d9b5f9f8 RCX: ffffffff81caeb13
RDX: 00000000000000cb RSI: ffffffff81cae4e3 RDI: 0000000000000658
RBP: ffff8801d9b5fa20 R08: ffff8801acfee500 R09: ffffed003b6246d6
R10: ffffed003b6246d6 R11: ffff8801db1236b3 R12: ffff8801d98e3bc8
R13: 0000000000000000 R14: ffff8801d9b5f8f8 R15: 0000000000000000
FS:  00007fcc7bf1e700(0000) GS:ffff8801db100000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007fcc7bf1de78 CR3: 00000001acdbc000 CR4: 00000000001406e0

Crashes (176):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2018/08/13 12:25 linux-next 5ed5da74de9e 7a88b141 .config console log report syz C ci-upstream-linux-next-kasan-gce-root
2018/08/17 04:55 linux-next 3070c752f222 9ccc1d45 .config console log report ci-upstream-linux-next-kasan-gce-root
2018/08/17 03:28 linux-next 3070c752f222 9ccc1d45 .config console log report ci-upstream-linux-next-kasan-gce-root
2018/08/17 01:59 linux-next 3070c752f222 9ccc1d45 .config console log report ci-upstream-linux-next-kasan-gce-root
2018/08/17 00:58 linux-next 3070c752f222 9ccc1d45 .config console log report ci-upstream-linux-next-kasan-gce-root
2018/08/16 23:53 linux-next 3070c752f222 9ccc1d45 .config console log report ci-upstream-linux-next-kasan-gce-root
2018/08/16 20:19 linux-next 3070c752f222 9ccc1d45 .config console log report ci-upstream-linux-next-kasan-gce-root
2018/08/16 20:03 linux-next 3070c752f222 9ccc1d45 .config console log report ci-upstream-linux-next-kasan-gce-root
2018/08/16 18:59 linux-next 3070c752f222 9ccc1d45 .config console log report ci-upstream-linux-next-kasan-gce-root
2018/08/16 16:18 linux-next 3070c752f222 9ccc1d45 .config console log report ci-upstream-linux-next-kasan-gce-root
2018/08/16 15:00 linux-next 3070c752f222 9ccc1d45 .config console log report ci-upstream-linux-next-kasan-gce-root
2018/08/16 13:05 linux-next 3070c752f222 9ccc1d45 .config console log report ci-upstream-linux-next-kasan-gce-root
2018/08/16 10:57 linux-next 3070c752f222 9ccc1d45 .config console log report ci-upstream-linux-next-kasan-gce-root
2018/08/16 09:25 linux-next 3070c752f222 9ccc1d45 .config console log report ci-upstream-linux-next-kasan-gce-root
2018/08/16 07:58 linux-next 3070c752f222 9ccc1d45 .config console log report ci-upstream-linux-next-kasan-gce-root
2018/08/16 06:10 linux-next 3070c752f222 9ccc1d45 .config console log report ci-upstream-linux-next-kasan-gce-root
2018/08/16 04:55 linux-next e5a7da82ad77 9ccc1d45 .config console log report ci-upstream-linux-next-kasan-gce-root
2018/08/16 03:49 linux-next e5a7da82ad77 9ccc1d45 .config console log report ci-upstream-linux-next-kasan-gce-root
2018/08/16 02:33 linux-next e5a7da82ad77 9ccc1d45 .config console log report ci-upstream-linux-next-kasan-gce-root
2018/08/16 02:32 linux-next e5a7da82ad77 9ccc1d45 .config console log report ci-upstream-linux-next-kasan-gce-root
2018/08/16 00:57 linux-next e5a7da82ad77 9ccc1d45 .config console log report ci-upstream-linux-next-kasan-gce-root
2018/08/15 23:31 linux-next e5a7da82ad77 9ccc1d45 .config console log report ci-upstream-linux-next-kasan-gce-root
2018/08/15 21:58 linux-next e5a7da82ad77 9ccc1d45 .config console log report ci-upstream-linux-next-kasan-gce-root
2018/08/15 20:41 linux-next e5a7da82ad77 9ccc1d45 .config console log report ci-upstream-linux-next-kasan-gce-root
2018/08/15 18:29 linux-next e5a7da82ad77 9ccc1d45 .config console log report ci-upstream-linux-next-kasan-gce-root
2018/08/15 15:50 linux-next e5a7da82ad77 9ccc1d45 .config console log report ci-upstream-linux-next-kasan-gce-root
2018/08/15 12:08 linux-next e5a7da82ad77 9ccc1d45 .config console log report ci-upstream-linux-next-kasan-gce-root
2018/08/15 11:06 linux-next 4e8b38549b50 9ccc1d45 .config console log report ci-upstream-linux-next-kasan-gce-root
2018/08/15 10:01 linux-next 4e8b38549b50 0e6dcb88 .config console log report ci-upstream-linux-next-kasan-gce-root
2018/08/15 09:20 linux-next 4e8b38549b50 0e6dcb88 .config console log report ci-upstream-linux-next-kasan-gce-root
2018/08/15 08:15 linux-next 4e8b38549b50 0e6dcb88 .config console log report ci-upstream-linux-next-kasan-gce-root
2018/08/15 07:09 linux-next 4e8b38549b50 0e6dcb88 .config console log report ci-upstream-linux-next-kasan-gce-root
2018/08/15 04:58 linux-next 4e8b38549b50 0e6dcb88 .config console log report ci-upstream-linux-next-kasan-gce-root
2018/08/15 01:09 linux-next 4e8b38549b50 0e6dcb88 .config console log report ci-upstream-linux-next-kasan-gce-root
2018/08/14 23:54 linux-next 4e8b38549b50 0e6dcb88 .config console log report ci-upstream-linux-next-kasan-gce-root
2018/08/14 23:08 linux-next 4e8b38549b50 0e6dcb88 .config console log report ci-upstream-linux-next-kasan-gce-root
2018/08/14 21:00 linux-next 4e8b38549b50 5084a625 .config console log report ci-upstream-linux-next-kasan-gce-root
2018/08/14 19:52 linux-next 4e8b38549b50 5084a625 .config console log report ci-upstream-linux-next-kasan-gce-root
2018/08/14 17:28 linux-next 4e8b38549b50 5084a625 .config console log report ci-upstream-linux-next-kasan-gce-root
2018/08/14 16:27 linux-next 4e8b38549b50 7a88b141 .config console log report ci-upstream-linux-next-kasan-gce-root
2018/08/14 15:16 linux-next 4e8b38549b50 7a88b141 .config console log report ci-upstream-linux-next-kasan-gce-root
2018/08/14 13:27 linux-next 4e8b38549b50 7a88b141 .config console log report ci-upstream-linux-next-kasan-gce-root
2018/08/13 10:56 linux-next 5ed5da74de9e 7a88b141 .config console log report ci-upstream-linux-next-kasan-gce-root
* Struck through repros no longer work on HEAD.