syzbot


BUG: unable to handle kernel NULL pointer dereference in do_select

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

Sample crash report:
BUG: unable to handle kernel NULL pointer dereference at 0000000000000000
PGD 1af1fc067 P4D 1af1fc067 PUD 1cef00067 PMD 0 
Oops: 0010 [#1] SMP KASAN
CPU: 0 PID: 9135 Comm: syz-executor6 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:ffff880193807438 EFLAGS: 00010246
RAX: 0000000000000000 RBX: ffff8801c90964c0 RCX: ffffc90008861000
RDX: ffff8801938076f0 RSI: ffff8801c90964c0 RDI: ffff88019bdfc800
ntfs: (device loop1): parse_options(): Unrecognized mount option erFφ‡Ϊ•rors.
RBP: ffff8801938074e0 R08: ffff8801974240c0 R09: ffffed003b5c46d6
R10: 0000000000000003 R11: 0000000000000000 R12: ffff8801938076f0
R13: ffff88019bdfc800 R14: ffffffff8818a920 R15: ffff8801cfcb6c00
FS:  00007f18f6f1a700(0000) GS:ffff8801dae00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: ffffffffffffffd6 CR3: 00000001bfd1f000 CR4: 00000000001406f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
ntfs: (device loop1): parse_options(): The fmask option requires an argument.
Call Trace:
 vfs_poll include/linux/poll.h:86 [inline]
 do_select+0xac4/0x1b00 fs/select.c:507
 core_sys_select+0x78a/0xb80 fs/select.c:650
 do_pselect+0x241/0x4e0 fs/select.c:731
 __do_sys_pselect6 fs/select.c:772 [inline]
 __se_sys_pselect6 fs/select.c:757 [inline]
 __x64_sys_pselect6+0x1f7/0x280 fs/select.c:757
 do_syscall_64+0x1b9/0x820 arch/x86/entry/common.c:290
 entry_SYSCALL_64_after_hwframe+0x49/0xbe
RIP: 0033:0x455a99
Code: 1d ba fb ff c3 66 2e 0f 1f 84 00 00 00 00 00 66 90 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 eb b9 fb ff c3 66 2e 0f 1f 84 00 00 00 00 
RSP: 002b:00007f18f6f19c68 EFLAGS: 00000246 ORIG_RAX: 000000000000010e
RAX: ffffffffffffffda RBX: 00007f18f6f1a6d4 RCX: 0000000000455a99
RDX: 0000000020768000 RSI: 0000000020f33fc0 RDI: 0000000000000040
RBP: 000000000072bea0 R08: 0000000020349000 R09: 0000000020f14000
R10: 0000000020086000 R11: 0000000000000246 R12: 00000000ffffffff
R13: 00000000004c0708 R14: 00000000004d0140 R15: 0000000000000000
Modules linked in:
Dumping ftrace buffer:
   (ftrace buffer empty)
CR2: 0000000000000000
---[ end trace 3107a2424d00cca9 ]---
RIP: 0010:          (null)
Code: Bad RIP value.
RSP: 0018:ffff880193807438 EFLAGS: 00010246
RAX: 0000000000000000 RBX: ffff8801c90964c0 RCX: ffffc90008861000
RDX: ffff8801938076f0 RSI: ffff8801c90964c0 RDI: ffff88019bdfc800
RBP: ffff8801938074e0 R08: ffff8801974240c0 R09: ffffed003b5c46d6
R10: 0000000000000003 R11: 0000000000000000 R12: ffff8801938076f0
R13: ffff88019bdfc800 R14: ffffffff8818a920 R15: ffff8801cfcb6c00
FS:  00007f18f6f1a700(0000) GS:ffff8801dae00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: ffffffffffffffd6 CR3: 00000001bfd1f000 CR4: 00000000001406f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400

Crashes (45):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2018/06/29 13:24 upstream 90368a37fbbe dba0b50e .config console log report ci-upstream-kasan-gce-root
2018/06/29 10:55 upstream 90368a37fbbe dba0b50e .config console log report ci-upstream-kasan-gce-root
2018/06/29 10:43 upstream 90368a37fbbe dba0b50e .config console log report ci-upstream-kasan-gce
2018/06/29 09:18 upstream 90368a37fbbe dba0b50e .config console log report ci-upstream-kasan-gce-root
2018/06/29 09:05 upstream 90368a37fbbe dba0b50e .config console log report ci-upstream-kasan-gce
2018/06/29 09:01 upstream 90368a37fbbe dba0b50e .config console log report ci-upstream-kasan-gce
2018/06/29 08:38 upstream 90368a37fbbe dba0b50e .config console log report ci-upstream-kasan-gce-root
2018/06/29 08:32 upstream 90368a37fbbe dba0b50e .config console log report ci-upstream-kasan-gce-root
2018/06/29 07:51 upstream 90368a37fbbe dba0b50e .config console log report ci-upstream-kasan-gce-root
2018/06/29 07:03 upstream 90368a37fbbe dba0b50e .config console log report ci-upstream-kasan-gce
2018/06/29 06:17 upstream 90368a37fbbe dba0b50e .config console log report ci-upstream-kasan-gce
2018/06/29 06:16 upstream 90368a37fbbe dba0b50e .config console log report ci-upstream-kasan-gce-root
2018/06/29 05:27 upstream 90368a37fbbe dba0b50e .config console log report ci-upstream-kasan-gce-root
2018/06/29 04:56 upstream 90368a37fbbe dba0b50e .config console log report ci-upstream-kasan-gce-root
2018/06/29 03:08 upstream 90368a37fbbe dba0b50e .config console log report ci-upstream-kasan-gce-root
2018/06/29 03:00 upstream 90368a37fbbe dba0b50e .config console log report ci-upstream-kasan-gce-root
2018/06/29 02:55 upstream 90368a37fbbe dba0b50e .config console log report ci-upstream-kasan-gce
2018/06/29 02:41 upstream 90368a37fbbe dba0b50e .config console log report ci-upstream-kasan-gce
2018/06/29 02:40 upstream 90368a37fbbe dba0b50e .config console log report ci-upstream-kasan-gce-root
2018/06/29 02:36 upstream 90368a37fbbe dba0b50e .config console log report ci-upstream-kasan-gce-root
2018/06/29 01:37 upstream 90368a37fbbe dba0b50e .config console log report ci-upstream-kasan-gce-root
2018/06/29 01:22 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
2018/06/29 00:51 upstream 90368a37fbbe dba0b50e .config console log report ci-upstream-kasan-gce-root
2018/06/29 00:46 upstream 90368a37fbbe dba0b50e .config console log report ci-upstream-kasan-gce-root
2018/06/29 00:43 upstream 90368a37fbbe dba0b50e .config console log report ci-upstream-kasan-gce-root
2018/06/29 00:36 upstream 90368a37fbbe dba0b50e .config console log report ci-upstream-kasan-gce-root
2018/06/29 00:29 upstream 90368a37fbbe dba0b50e .config console log report ci-upstream-kasan-gce
2018/06/29 00:04 upstream 90368a37fbbe dba0b50e .config console log report ci-upstream-kasan-gce
2018/06/28 22:21 upstream 90368a37fbbe dba0b50e .config console log report ci-upstream-kasan-gce
2018/06/28 21:57 upstream 90368a37fbbe dba0b50e .config console log report ci-upstream-kasan-gce-root
2018/06/28 21:52 upstream 90368a37fbbe dba0b50e .config console log report ci-upstream-kasan-gce
2018/06/28 21:51 upstream 90368a37fbbe dba0b50e .config console log report ci-upstream-kasan-gce-root
2018/06/29 07:48 upstream 90368a37fbbe dba0b50e .config console log report ci-upstream-kasan-gce-386
2018/06/29 07:39 upstream 90368a37fbbe dba0b50e .config console log report ci-upstream-kasan-gce-386
2018/06/29 02:46 upstream 90368a37fbbe dba0b50e .config console log report ci-upstream-kasan-gce-386
2018/06/29 00:57 upstream 90368a37fbbe dba0b50e .config console log report ci-upstream-kasan-gce-386
2018/06/29 00:44 upstream 90368a37fbbe dba0b50e .config console log report ci-upstream-kasan-gce-386
2018/06/29 00:36 upstream 90368a37fbbe dba0b50e .config console log report ci-upstream-kasan-gce-386
2018/06/29 00:05 upstream 90368a37fbbe dba0b50e .config console log report ci-upstream-kasan-gce-386
2018/06/28 22:03 upstream 90368a37fbbe dba0b50e .config console log report ci-upstream-kasan-gce-386
2018/06/28 21:50 upstream 90368a37fbbe dba0b50e .config console log report ci-upstream-kasan-gce-386
* Struck through repros no longer work on HEAD.