[....] Starting OpenBSD Secure Shell server: sshd[ 16.780038] random: sshd: uninitialized urandom read (32 bytes read, 33 bits of entropy available) [?25l[?1c7[ ok 8[?25h[?0c. Debian GNU/Linux 7 syzkaller ttyS0 syzkaller login: [ 20.425265] random: sshd: uninitialized urandom read (32 bytes read, 38 bits of entropy available) [ 20.858624] random: sshd: uninitialized urandom read (32 bytes read, 38 bits of entropy available) [ 21.866790] random: sshd: uninitialized urandom read (32 bytes read, 121 bits of entropy available) [ 22.042624] random: sshd: uninitialized urandom read (32 bytes read, 127 bits of entropy available) [ 22.153237] random: nonblocking pool is initialized Warning: Permanently added '10.128.15.205' (ECDSA) to the list of known hosts. executing program [ 27.513618] ================================================================== [ 27.521047] BUG: KASAN: use-after-free in __lock_acquire+0x387e/0x4b50 [ 27.527690] Read of size 8 at addr ffff8800b463fc38 by task syzkaller511679/3327 [ 27.535191] [ 27.536791] CPU: 0 PID: 3327 Comm: syzkaller511679 Not tainted 4.4.113-g202e079 #1 [ 27.544466] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 27.553806] 0000000000000000 fcc7675e79f36e21 ffff8801d0c47870 ffffffff81d0278d [ 27.561810] ffffea0002d18f80 ffff8800b463fc38 0000000000000000 ffff8800b463fc38 [ 27.569776] 0000000000000000 ffff8801d0c478a8 ffffffff814fd053 ffff8800b463fc38 [ 27.577745] Call Trace: [ 27.580309] [] dump_stack+0xc1/0x124 [ 27.585659] [] print_address_description+0x73/0x260 [ 27.593422] [] kasan_report+0x285/0x370 [ 27.599027] [] ? __lock_acquire+0x387e/0x4b50 [ 27.605140] [] __asan_report_load8_noabort+0x14/0x20 [ 27.611872] [] __lock_acquire+0x387e/0x4b50 [ 27.617814] [] ? __lock_acquire+0xb5f/0x4b50 [ 27.623845] [] ? debug_check_no_locks_freed+0x2c0/0x2c0 [ 27.630835] [] ? trace_hardirqs_on_caller+0x38b/0x590 [ 27.637643] [] ? debug_check_no_locks_freed+0x2c0/0x2c0 [ 27.644625] [] ? debug_check_no_locks_freed+0x2c0/0x2c0 [ 27.651608] [] lock_acquire+0x15e/0x460 [ 27.657202] [] ? remove_wait_queue+0x14/0x40 [ 27.663233] [] _raw_spin_lock_irqsave+0x4e/0x70 [ 27.669525] [] ? remove_wait_queue+0x14/0x40 [ 27.675561] [] remove_wait_queue+0x14/0x40 [ 27.681419] [] ep_unregister_pollwait.isra.6+0xa8/0x220 [ 27.688401] [] ? ep_unregister_pollwait.isra.6+0x114/0x220 [ 27.695644] [] ? ep_free+0x1c0/0x1c0 [ 27.700976] [] ep_free+0x93/0x1c0 [ 27.706048] [] ? ep_free+0x1c0/0x1c0 [ 27.711387] [] ep_eventpoll_release+0x44/0x60 [ 27.717503] [] __fput+0x233/0x6d0 [ 27.722592] [] ____fput+0x15/0x20 [ 27.727668] [] task_work_run+0x104/0x180 [ 27.733351] [] do_exit+0x82a/0x2a10 [ 27.738597] [] ? release_task+0x1240/0x1240 [ 27.744540] [] do_group_exit+0x108/0x320 [ 27.750220] [] SyS_exit_group+0x1d/0x20 [ 27.755813] [] ? do_group_exit+0x320/0x320 [ 27.761671] [] do_fast_syscall_32+0x314/0x890 [ 27.767794] [] sysenter_flags_fixed+0xd/0x17 [ 27.773821] [ 27.775422] Allocated by task 3327: [ 27.779014] [] save_stack_trace+0x26/0x50 [ 27.784903] [] save_stack+0x43/0xd0 [ 27.790284] [] kasan_kmalloc+0xad/0xe0 [ 27.795906] [] kmem_cache_alloc_trace+0x100/0x2b0 [ 27.802485] [] binder_get_thread+0x15d/0x750 [ 27.808634] [] binder_poll+0x4a/0x210 [ 27.814176] [] SyS_epoll_ctl+0x10b1/0x2040 [ 27.820150] [] do_fast_syscall_32+0x314/0x890 [ 27.826380] [] sysenter_flags_fixed+0xd/0x17 [ 27.832526] [ 27.834123] Freed by task 3327: [ 27.837366] [] save_stack_trace+0x26/0x50 [ 27.843251] [] save_stack+0x43/0xd0 [ 27.848627] [] kasan_slab_free+0x72/0xc0 [ 27.854424] [] kfree+0xfc/0x300 [ 27.859449] [] binder_thread_dec_tmpref+0x1c1/0x250 [ 27.866208] [] binder_thread_release+0x27d/0x540 [ 27.872702] [] binder_ioctl+0xb94/0x12e0 [ 27.878520] [] compat_SyS_ioctl+0x28a/0x2540 [ 27.884838] [] do_fast_syscall_32+0x314/0x890 [ 27.891069] [] sysenter_flags_fixed+0xd/0x17 [ 27.897222] [ 27.898822] The buggy address belongs to the object at ffff8800b463fb80 [ 27.898822] which belongs to the cache kmalloc-512 of size 512 [ 27.911456] The buggy address is located 184 bytes inside of [ 27.911456] 512-byte region [ffff8800b463fb80, ffff8800b463fd80) [ 27.923299] The buggy address belongs to the page: [ 27.938297] kasan: CONFIG_KASAN_INLINE enabled [ 27.942748] kasan: GPF could be caused by NULL-ptr deref or user memory accessgeneral protection fault: 0000 [#1] PREEMPT SMP KASAN [ 27.955698] Dumping ftrace buffer: [ 27.959231] (ftrace buffer empty) [ 27.962941] Modules linked in: [ 27.966277] CPU: 1 PID: 0 Comm: swapper/1 Not tainted 4.4.113-g202e079 #1 [ 27.973194] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 27.982555] task: ffff8801da3a97c0 task.stack: ffff8801da3b8000 [ 27.988616] RIP: 0010:[] [] rb_insert_color+0x9f/0xcb0 [ 27.997267] RSP: 0018:ffff8801db307d18 EFLAGS: 00010003 [ 28.002712] RAX: 0a0508a8e82a0be9 RBX: ffffffff838a8de0 RCX: ffffffff838a8de0 [ 28.009986] RDX: 1ffffffff07151bd RSI: ffff8801db319710 RDI: ffff8801db319c40 [ 28.017264] RBP: ffff8801db307d60 R08: ffffffff857d3748 R09: 0000000000000001 [ 28.024540] R10: 0000000000000000 R11: 1ffff1003b660f62 R12: ffff8801d0b47df8 [ 28.031814] R13: 5028454741505f4e R14: ffff8801db319c40 R15: dffffc0000000000 [ 28.040390] FS: 0000000000000000(0000) GS:ffff8801db300000(0000) knlGS:0000000000000000 [ 28.048618] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 [ 28.054499] CR2: 000055e7af973100 CR3: 00000001d0eb2000 CR4: 0000000000160670 [ 28.061775] DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 [ 28.069050] DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 [ 28.076320] Stack: [ 28.078467] ffffffff842bdb20 ffff8801da3aa030 0000000000000000 ffff8801db307d70 [ 28.086542] ffff8801db319c40 dffffc0000000000 0000000000000000 ffff8801db319710 [ 28.094707] ffff8801d0b47e00 ffff8801db307db0 ffffffff81d20067 ffff8801db319c58 [ 28.102768] Call Trace: [ 28.105344] [ 28.107411] [] timerqueue_add+0x157/0x2a0 [ 28.113524] [] enqueue_hrtimer+0x168/0x450 [ 28.119427] [] __hrtimer_run_queues+0x732/0xfe0 [ 28.125760] [] ? hrtimer_fixup_init+0x70/0x70 [ 28.131924] [] ? hrtimer_interrupt+0x131/0x440 [ 28.138172] [] hrtimer_interrupt+0x1a6/0x440 [ 28.144254] [] local_apic_timer_interrupt+0x6a/0xb0 [ 28.150935] [] smp_apic_timer_interrupt+0x76/0xa0 [ 28.157441] [] apic_timer_interrupt+0xa0/0xb0 [ 28.163589] [ 28.165664] [] ? native_safe_halt+0x6/0x10 [ 28.171864] [] ? trace_hardirqs_on+0xd/0x10 [ 28.177856] [] default_idle+0x55/0x3c0 [ 28.183409] [] arch_cpu_idle+0xa/0x10 [ 28.188879] [] default_idle_call+0x48/0x70 [ 28.194782] [] cpu_startup_entry+0x5fd/0x8f0 [ 28.200858] [] ? call_cpuidle+0xe0/0xe0 [ 28.206502] [] ? clockevents_register_device+0x122/0x230 [ 28.213613] [] start_secondary+0x304/0x3e0 [ 28.219513] [] ? set_cpu_sibling_map+0x1080/0x1080 [ 28.226092] Code: 48 89 c2 48 c1 ea 03 42 80 3c 3a 00 0f 85 94 09 00 00 4c 8b 6b 08 4d 39 e5 0f 84 b0 01 00 00 4d 85 ed 74 1d 4c 89 e8 48 c1 e8 03 <42> 80 3c 38 00 0f 85 95 09 00 00 41 f6 45 00 01 0f 84 20 03 00 [ 28.253563] RIP [] rb_insert_color+0x9f/0xcb0 [ 28.259847] RSP [ 28.263480] ---[ end trace 80f6f3f3a4e7c91b ]--- [ 28.268244] Kernel panic - not syncing: Fatal exception in interrupt [ 29.382414] Shutting down cpus with NMI [ 29.386900] Dumping ftrace buffer: [ 29.390427] (ftrace buffer empty) [ 29.394107] Kernel Offset: disabled [ 29.397704] Rebooting in 86400 seconds..