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: 2427d, last: 2340d
Duplicate bugs (1)
duplicates (1):
Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
BUG: unable to handle kernel NULL pointer dereference in binder_poll kernel C 4 2405d 2406d 0/27 closed as dup on 2018/01/31 06:57

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..

Crashes (159):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2017/12/03 13:22 linux-next fb20eb9d798d 16668351 .config console log report syz C ci-upstream-next-kasan-gce
2018/02/20 11:47 upstream 79c0ef3e85c0 5abac192 .config console log report ci-upstream-kasan-gce
2018/02/17 07:40 upstream 1e3510b2b053 c8b3f7c1 .config console log report ci-upstream-kasan-gce
2018/02/16 18:03 upstream 1a2a7d3ee659 c8b3f7c1 .config console log report ci-upstream-kasan-gce
2018/02/12 11:01 upstream 7928b2cbe55b 88bc17df .config console log report ci-upstream-kasan-gce
2018/02/11 01:40 upstream d48fcbd864a0 4e9b726d .config console log report ci-upstream-kasan-gce
2018/02/07 13:52 upstream a2e5790d8416 9fb5ec43 .config console log report ci-upstream-kasan-gce
2018/02/06 15:16 upstream e237f98a9c13 66c15deb .config console log report ci-upstream-kasan-gce
2018/02/03 12:46 upstream b89e32ccd1be 632a8c2c .config console log report ci-upstream-kasan-gce
2018/02/02 16:44 upstream 4bf772b14675 632a8c2c .config console log report ci-upstream-kasan-gce
2018/02/01 16:23 upstream 255442c93843 67bd3383 .config console log report ci-upstream-kasan-gce
2018/01/31 14:09 upstream 3da90b159b14 02553e22 .config console log report ci-upstream-kasan-gce
2018/01/30 21:52 upstream 72906f38934a a899be78 .config console log report ci-upstream-kasan-gce
2018/01/29 10:42 upstream d8a5b80568a9 08d47756 .config console log report ci-upstream-kasan-gce
2018/01/28 21:24 upstream 24b1cccf9229 08d47756 .config console log report ci-upstream-kasan-gce
2018/01/28 02:26 upstream c4e0ca7fa241 08146b1a .config console log report ci-upstream-kasan-gce
2018/01/26 10:32 upstream 993ca2068b04 1d18b112 .config console log report ci-upstream-kasan-gce
2018/01/25 21:02 upstream 6e20630e3004 1d18b112 .config console log report ci-upstream-kasan-gce
2018/01/24 18:35 upstream 5132ede0fe80 a5b7566c .config console log report ci-upstream-kasan-gce
2018/01/20 10:29 upstream 8dd903d2cf7b fbbdcd92 .config console log report ci-upstream-kasan-gce
2018/01/17 20:24 upstream 8cbab92dff77 b8970f31 .config console log report ci-upstream-kasan-gce
2018/01/13 13:24 upstream c92a9a461dff c9e7aeae .config console log report ci-upstream-kasan-gce
2018/01/11 12:21 upstream 5f615b97cdea 9dc808a6 .config console log report ci-upstream-kasan-gce
2018/01/10 00:49 upstream d476c5334f1d 1f60c828 .config console log report ci-upstream-kasan-gce
2017/12/30 05:31 upstream 61233580f1f3 bb6384b8 .config console log report ci-upstream-kasan-gce
2017/12/29 08:14 upstream 2758b3e3e630 7d240098 .config console log report ci-upstream-kasan-gce
2017/12/28 00:35 upstream 5f520fc31876 7d240098 .config console log report ci-upstream-kasan-gce
2017/12/27 20:45 upstream beacbc68ac3e 7d240098 .config console log report ci-upstream-kasan-gce
2018/02/22 22:47 upstream af3e79d29555 8d8e2494 .config console log report ci-upstream-kasan-gce-386
2018/02/22 18:00 upstream af3e79d29555 02fb4232 .config console log report ci-upstream-kasan-gce-386
2018/02/20 11:46 upstream 79c0ef3e85c0 5abac192 .config console log report ci-upstream-kasan-gce-386
2018/02/20 11:37 upstream 79c0ef3e85c0 5abac192 .config console log report ci-upstream-kasan-gce-386
2018/02/19 12:13 upstream 91ab883eb213 833f78c7 .config console log report ci-upstream-kasan-gce-386
2018/02/19 00:45 upstream 0e06fb5b9ac8 833f78c7 .config console log report ci-upstream-kasan-gce-386
2018/02/14 20:36 upstream 6556677a8040 17061fc0 .config console log report ci-upstream-kasan-gce-386
2018/02/14 19:26 upstream 6556677a8040 17061fc0 .config console log report ci-upstream-kasan-gce-386
2018/02/12 20:51 upstream 178e834c47b0 88bc17df .config console log report ci-upstream-kasan-gce-386
2018/02/12 00:01 upstream 7928b2cbe55b 4e9b726d .config console log report ci-upstream-kasan-gce-386
2018/02/10 14:10 upstream 9a61df9e5f74 e67d44e0 .config console log report ci-upstream-kasan-gce-386
2018/02/03 22:03 upstream 23c35f48f5fb 632a8c2c .config console log report ci-upstream-kasan-gce-386
2018/02/01 20:47 upstream 7109a04eae81 67bd3383 .config console log report ci-upstream-kasan-gce-386
* Struck through repros no longer work on HEAD.