syzbot
general protection fault in binder_poll
Status:
fixed on 2018/02/26 20:04
Subsystems:
kernel
[Documentation on labels]
Reported-by: syzbot+d9d0c0e13eca79eb9ddb8d7e67aba5c63acc83a4@syzkaller.appspotmail.com
Fix commit:
f88982679f54
binder: check for binder_thread allocation failure in binder_poll()
First crash: 3163d, last: 3075d
Sample crash report:
RBP: 0000000000000005 R08: 0000000000000001 R09: 0000000000000032
R10: 0000000020336ff4 R11: 0000000000000246 R12: 0000000000401ef0
R13: 0000000000401f80 R14: 0000000000000000 R15: 0000000000000000
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
Dumping ftrace buffer:
(ftrace buffer empty)
Modules linked in:
CPU: 1 PID: 3085 Comm: syzkaller719598 Not tainted 4.15.0-rc1-next-20171201+ #57
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
task: 00000000d96cbce2 task.stack: 00000000f9bba1e1
RIP: 0010:binder_poll+0xa0/0x390 drivers/android/binder.c:4373
RSP: 0018:ffff8801d86c74c8 EFLAGS: 00010246
RAX: dffffc0000000000 RBX: 0000000000000000 RCX: ffffffff840282e0
RDX: 0000000000000000 RSI: ffffffff85f44b80 RDI: 0000000000000282
RBP: ffff8801d86c7570 R08: 1ffff1003b0d8dc6 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000000 R12: 1ffff1003b0d8e9d
R13: ffff8801d86c7b00 R14: ffff8801cc3b92c0 R15: ffff8801d86c7548
FS: 0000000002678880(0000) GS:ffff8801db500000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000000020336ff4 CR3: 00000001cdd84000 CR4: 00000000001406e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
ep_item_poll.isra.10+0xec/0x320 fs/eventpoll.c:884
ep_insert+0x6a3/0x1b10 fs/eventpoll.c:1455
SYSC_epoll_ctl fs/eventpoll.c:2106 [inline]
SyS_epoll_ctl+0x12e4/0x1ab0 fs/eventpoll.c:1992
entry_SYSCALL_64_fastpath+0x1f/0x96
RIP: 0033:0x4441a9
RSP: 002b:00007ffd023fc108 EFLAGS: 00000246 ORIG_RAX: 00000000000000e9
RAX: ffffffffffffffda RBX: 0000000000000001 RCX: 00000000004441a9
RDX: 0000000000000003 RSI: 0000000000000001 RDI: 0000000000000004
RBP: 0000000000000005 R08: 0000000000000001 R09: 0000000000000032
R10: 0000000020336ff4 R11: 0000000000000246 R12: 0000000000401ef0
R13: 0000000000401f80 R14: 0000000000000000 R15: 0000000000000000
Code: 03 80 3c 18 00 0f 85 3c 02 00 00 49 8b be b0 01 00 00 e8 04 f7 ff ff 48 89 c2 48 89 c3 48 b8 00 00 00 00 00 fc ff df 48 c1 ea 03 <80> 3c 02 00 0f 85 ca 02 00 00 48 8b 3b be 15 11 00 00 e8 b9 8b
RIP: binder_poll+0xa0/0x390 drivers/android/binder.c:4373 RSP: ffff8801d86c74c8
---[ end trace fc2a9656b3c84773 ]---
Kernel panic - not syncing: Fatal exception
Dumping ftrace buffer:
(ftrace buffer empty)
Kernel Offset: disabled
Rebooting in 86400 seconds..
* Struck through repros no longer work on HEAD.