syzbot


BUG: unable to handle kernel NULL pointer dereference in do_sys_poll

Status: fixed on 2018/07/09 18:05
Subsystems: fs
[Documentation on labels]
Reported-by: syzbot+2c7e8f74f8b2571c87e8@syzkaller.appspotmail.com
Fix commit: e88958e6369a net: handle NULL ->poll gracefully
First crash: 2177d, last: 2176d
Discussions (1)
Title Replies (including bot) Last reply
BUG: unable to handle kernel NULL pointer dereference in do_sys_poll 0 (1) 2018/06/29 05:17

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)
random: sshd: uninitialized urandom read (32 bytes read)
random: sshd: uninitialized urandom read (32 bytes read)
BUG: unable to handle kernel NULL pointer dereference at 0000000000000000
PGD 1ae8ed067 P4D 1ae8ed067 PUD 1ae8ec067 PMD 0 
Oops: 0010 [#1] SMP KASAN
CPU: 0 PID: 4556 Comm: syz-executor460 Not tainted 4.18.0-rc2+ #121
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
RIP: 0010:          (null)
Code: Bad RIP value.
RSP: 0018:ffff8801d909f758 EFLAGS: 00010246
RAX: 0000000000000000 RBX: ffff8801d24c0000 RCX: ffffffff85ec9112
RDX: ffff8801d909fab0 RSI: ffff8801d24c0000 RDI: ffff8801aedf4500
RBP: ffff8801d909f800 R08: ffff8801ae8a2500 R09: ffffed0035ef3808
R10: ffffed0035ef3808 R11: ffff8801af79c043 R12: ffff8801d909fab0
R13: ffff8801aedf4500 R14: ffffffff8818a920 R15: ffff8801d96eb300
FS:  000000000260b880(0000) GS:ffff8801dae00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: ffffffffffffffd6 CR3: 00000001d9761000 CR4: 00000000001406f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 vfs_poll include/linux/poll.h:86 [inline]
 do_pollfd fs/select.c:825 [inline]
 do_poll fs/select.c:873 [inline]
 do_sys_poll+0x74d/0x1180 fs/select.c:967
 __do_sys_poll fs/select.c:1025 [inline]
 __se_sys_poll fs/select.c:1013 [inline]
 __x64_sys_poll+0x197/0x530 fs/select.c:1013
 do_syscall_64+0x1b9/0x820 arch/x86/entry/common.c:290
 entry_SYSCALL_64_after_hwframe+0x49/0xbe
RIP: 0033:0x43fd09
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 6b 45 00 00 c3 66 2e 0f 1f 84 00 00 00 00 
RSP: 002b:00007fff3b68b388 EFLAGS: 00000213 ORIG_RAX: 0000000000000007
RAX: ffffffffffffffda RBX: 00000000004002c8 RCX: 000000000043fd09
RDX: 0000000000000006 RSI: 0000000000000003 RDI: 0000000020003900
RBP: 00000000006ca018 R08: 00000000004002c8 R09: 00000000004002c8
R10: 00000000004002c8 R11: 0000000000000213 R12: 0000000000401630
R13: 00000000004016c0 R14: 0000000000000000 R15: 0000000000000000
Modules linked in:
Dumping ftrace buffer:
   (ftrace buffer empty)
CR2: 0000000000000000
---[ end trace 4e247193d13381fb ]---
RIP: 0010:          (null)
Code: Bad RIP value.
RSP: 0018:ffff8801d909f758 EFLAGS: 00010246
RAX: 0000000000000000 RBX: ffff8801d24c0000 RCX: ffffffff85ec9112
RDX: ffff8801d909fab0 RSI: ffff8801d24c0000 RDI: ffff8801aedf4500
RBP: ffff8801d909f800 R08: ffff8801ae8a2500 R09: ffffed0035ef3808
R10: ffffed0035ef3808 R11: ffff8801af79c043 R12: ffff8801d909fab0
R13: ffff8801aedf4500 R14: ffffffff8818a920 R15: ffff8801d96eb300
FS:  000000000260b880(0000) GS:ffff8801dae00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: ffffffffffffffd6 CR3: 00000001d9761000 CR4: 00000000001406f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400

Crashes (297):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2018/06/29 13:58 upstream 90368a37fbbe dba0b50e .config console log report syz C ci-upstream-kasan-gce-root
2018/06/29 12:35 upstream 90368a37fbbe dba0b50e .config console log report syz C ci-upstream-kasan-gce
2018/06/29 09:43 upstream 90368a37fbbe dba0b50e .config console log report syz C ci-upstream-kasan-gce
2018/06/28 23:42 upstream 90368a37fbbe dba0b50e .config console log report syz C ci-upstream-kasan-gce-root
2018/06/29 09:18 upstream 90368a37fbbe dba0b50e .config console log report syz C ci-upstream-kasan-gce-386
2018/06/29 06:46 upstream 90368a37fbbe dba0b50e .config console log report syz C ci-upstream-kasan-gce-386
2018/06/29 14:05 upstream 90368a37fbbe dba0b50e .config console log report ci-upstream-kasan-gce
2018/06/29 13:26 upstream 90368a37fbbe dba0b50e .config console log report ci-upstream-kasan-gce-root
2018/06/29 12:51 upstream 90368a37fbbe dba0b50e .config console log report ci-upstream-kasan-gce
2018/06/29 12:14 upstream 90368a37fbbe dba0b50e .config console log report ci-upstream-kasan-gce-root
2018/06/29 11:39 upstream 90368a37fbbe dba0b50e .config console log report ci-upstream-kasan-gce
2018/06/29 10:58 upstream 90368a37fbbe dba0b50e .config console log report ci-upstream-kasan-gce-root
2018/06/29 10:10 upstream 90368a37fbbe dba0b50e .config console log report ci-upstream-kasan-gce-root
2018/06/29 09:32 upstream 90368a37fbbe dba0b50e .config console log report ci-upstream-kasan-gce
2018/06/29 08:36 upstream 90368a37fbbe dba0b50e .config console log report ci-upstream-kasan-gce
2018/06/29 08:26 upstream 90368a37fbbe dba0b50e .config console log report ci-upstream-kasan-gce-root
2018/06/29 07:13 upstream 90368a37fbbe dba0b50e .config console log report ci-upstream-kasan-gce
2018/06/29 05:37 upstream 90368a37fbbe dba0b50e .config console log report ci-upstream-kasan-gce-root
2018/06/29 04:59 upstream 90368a37fbbe dba0b50e .config console log report ci-upstream-kasan-gce
2018/06/29 03:54 upstream 90368a37fbbe dba0b50e .config console log report ci-upstream-kasan-gce-root
2018/06/29 03:32 upstream 90368a37fbbe dba0b50e .config console log report ci-upstream-kasan-gce
2018/06/29 02:16 upstream 90368a37fbbe dba0b50e .config console log report ci-upstream-kasan-gce-root
2018/06/29 02:14 upstream 90368a37fbbe dba0b50e .config console log report ci-upstream-kasan-gce
2018/06/29 02:12 upstream 90368a37fbbe dba0b50e .config console log report ci-upstream-kasan-gce-root
2018/06/29 02:11 upstream 90368a37fbbe dba0b50e .config console log report ci-upstream-kasan-gce
2018/06/29 02:04 upstream 90368a37fbbe dba0b50e .config console log report ci-upstream-kasan-gce-root
2018/06/29 01:54 upstream 90368a37fbbe dba0b50e .config console log report ci-upstream-kasan-gce-root
2018/06/29 01:52 upstream 90368a37fbbe dba0b50e .config console log report ci-upstream-kasan-gce-root
2018/06/29 01:43 upstream 90368a37fbbe dba0b50e .config console log report ci-upstream-kasan-gce-root
2018/06/29 01:31 upstream 90368a37fbbe dba0b50e .config console log report ci-upstream-kasan-gce-root
2018/06/29 01:31 upstream 90368a37fbbe dba0b50e .config console log report ci-upstream-kasan-gce
2018/06/29 01:26 upstream 90368a37fbbe dba0b50e .config console log report ci-upstream-kasan-gce
2018/06/29 01:26 upstream 90368a37fbbe dba0b50e .config console log report ci-upstream-kasan-gce
2018/06/29 01:18 upstream 90368a37fbbe dba0b50e .config console log report ci-upstream-kasan-gce-root
2018/06/29 01:13 upstream 90368a37fbbe dba0b50e .config console log report ci-upstream-kasan-gce-root
2018/06/29 01:09 upstream 90368a37fbbe dba0b50e .config console log report ci-upstream-kasan-gce
2018/06/29 01:08 upstream 90368a37fbbe dba0b50e .config console log report ci-upstream-kasan-gce-root
2018/06/29 00:58 upstream 90368a37fbbe dba0b50e .config console log report ci-upstream-kasan-gce-root
2018/06/29 00:55 upstream 90368a37fbbe dba0b50e .config console log report ci-upstream-kasan-gce-root
2018/06/29 00:52 upstream 90368a37fbbe dba0b50e .config console log report ci-upstream-kasan-gce-root
2018/06/29 00:52 upstream 90368a37fbbe dba0b50e .config console log report ci-upstream-kasan-gce-root
2018/06/29 00:38 upstream 90368a37fbbe dba0b50e .config console log report ci-upstream-kasan-gce-root
2018/06/29 00:31 upstream 90368a37fbbe dba0b50e .config console log report ci-upstream-kasan-gce-root
2018/06/29 00:26 upstream 90368a37fbbe dba0b50e .config console log report ci-upstream-kasan-gce-root
2018/06/28 22:27 upstream 90368a37fbbe dba0b50e .config console log report ci-upstream-kasan-gce
2018/06/29 14:05 upstream 90368a37fbbe dba0b50e .config console log report ci-upstream-kasan-gce-386
2018/06/29 02:23 upstream 90368a37fbbe dba0b50e .config console log report ci-upstream-kasan-gce-386
2018/06/29 01:06 upstream 90368a37fbbe dba0b50e .config console log report ci-upstream-kasan-gce-386
* Struck through repros no longer work on HEAD.