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: 2959d, last: 2959d
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
* Struck through repros no longer work on HEAD.