[....] Starting file context maintaining daemon: restorecond[?25l[?1c7[ ok 8[?25h[?0c. [....] Starting OpenBSD Secure Shell server: sshd[ 16.367365] random: sshd: uninitialized urandom read (32 bytes read, 32 bits of entropy available) [?25l[?1c7[ ok 8[?25h[?0c. Debian GNU/Linux 7 syzkaller ttyS0 syzkaller login: [ 20.944459] random: sshd: uninitialized urandom read (32 bytes read, 36 bits of entropy available) [ 21.348617] random: sshd: uninitialized urandom read (32 bytes read, 36 bits of entropy available) [ 22.245088] random: sshd: uninitialized urandom read (32 bytes read, 95 bits of entropy available) [ 22.426765] random: sshd: uninitialized urandom read (32 bytes read, 100 bits of entropy available) Warning: Permanently added '10.128.15.200' (ECDSA) to the list of known hosts. [ 27.808168] random: sshd: uninitialized urandom read (32 bytes read, 107 bits of entropy available) executing program [ 27.919534] ================================================================== [ 27.926947] BUG: KASAN: use-after-free in __lock_acquire+0x387e/0x4b50 [ 27.933584] Read of size 8 at addr ffff8801d3265738 by task syzkaller948097/3313 [ 27.941084] [ 27.942684] CPU: 0 PID: 3313 Comm: syzkaller948097 Not tainted 4.4.113-g202e079 #1 [ 27.950356] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 27.959678] 0000000000000000 3ab2cb1640639e06 ffff8800b47b78f0 ffffffff81d0278d [ 27.967670] ffffea00074c9900 ffff8801d3265738 0000000000000000 ffff8801d3265738 [ 27.975657] 0000000000000000 ffff8800b47b7928 ffffffff814fd053 ffff8801d3265738 [ 27.983625] Call Trace: [ 27.986188] [] dump_stack+0xc1/0x124 [ 27.991524] [] print_address_description+0x73/0x260 [ 27.998157] [] kasan_report+0x285/0x370 [ 28.003749] [] ? __lock_acquire+0x387e/0x4b50 [ 28.009862] [] __asan_report_load8_noabort+0x14/0x20 [ 28.016583] [] __lock_acquire+0x387e/0x4b50 [ 28.022523] [] ? __lock_acquire+0xb5f/0x4b50 [ 28.028550] [] ? debug_check_no_locks_freed+0x2c0/0x2c0 [ 28.035532] [] ? debug_check_no_locks_freed+0x2c0/0x2c0 [ 28.042514] [] ? mark_held_locks+0xaf/0x100 [ 28.048463] [] lock_acquire+0x15e/0x460 [ 28.054059] [] ? remove_wait_queue+0x14/0x40 [ 28.060089] [] _raw_spin_lock_irqsave+0x4e/0x70 [ 28.066378] [] ? remove_wait_queue+0x14/0x40 [ 28.072403] [] remove_wait_queue+0x14/0x40 [ 28.078260] [] ep_unregister_pollwait.isra.6+0xa8/0x220 [ 28.085242] [] ? ep_unregister_pollwait.isra.6+0x114/0x220 [ 28.092484] [] ? ep_free+0x1c0/0x1c0 [ 28.097817] [] ep_free+0x93/0x1c0 [ 28.102889] [] ? ep_free+0x1c0/0x1c0 [ 28.108223] [] ep_eventpoll_release+0x44/0x60 [ 28.114345] [] __fput+0x233/0x6d0 [ 28.119415] [] ____fput+0x15/0x20 [ 28.124487] [] task_work_run+0x104/0x180 [ 28.130167] [] do_exit+0x82a/0x2a10 [ 28.135417] [] ? binder_ioctl_write_read.isra.55+0xbc0/0xbc0 [ 28.142830] [] ? release_task+0x1240/0x1240 [ 28.148772] [] ? SyS_epoll_create+0x190/0x190 [ 28.154887] [] do_group_exit+0x108/0x320 [ 28.160569] [] ? lockdep_sys_exit_thunk+0x12/0x14 [ 28.167030] [] SyS_exit_group+0x1d/0x20 [ 28.172623] [] entry_SYSCALL_64_fastpath+0x1c/0x98 [ 28.179177] [ 28.180774] Allocated by task 3313: [ 28.184369] [] save_stack_trace+0x26/0x50 [ 28.190260] [] save_stack+0x43/0xd0 [ 28.195624] [] kasan_kmalloc+0xad/0xe0 [ 28.201248] [] kmem_cache_alloc_trace+0x100/0x2b0 [ 28.207827] [] binder_get_thread+0x15d/0x750 [ 28.213973] [] binder_poll+0x4a/0x210 [ 28.219508] [] SyS_epoll_ctl+0x10b1/0x2040 [ 28.225484] [] entry_SYSCALL_64_fastpath+0x1c/0x98 [ 28.232155] [ 28.233753] Freed by task 3313: [ 28.236997] [] save_stack_trace+0x26/0x50 [ 28.242883] [] save_stack+0x43/0xd0 [ 28.248245] [] kasan_slab_free+0x72/0xc0 [ 28.254039] [] kfree+0xfc/0x300 [ 28.259052] [] binder_thread_dec_tmpref+0x1c1/0x250 [ 28.265807] [] binder_thread_release+0x27d/0x540 [ 28.272299] [] binder_ioctl+0xb94/0x12e0 [ 28.278093] [] do_vfs_ioctl+0x7aa/0xee0 [ 28.283803] [] SyS_ioctl+0x8f/0xc0 [ 28.289082] [] entry_SYSCALL_64_fastpath+0x1c/0x98 [ 28.295746] [ 28.297342] The buggy address belongs to the object at ffff8801d3265680 [ 28.297342] which belongs to the cache kmalloc-512 of size 512 [ 28.309964] The buggy address is located 184 bytes inside of [ 28.309964] 512-byte region [ffff8801d3265680, ffff8801d3265880) [ 28.321804] The buggy address belongs to the page: [ 28.335833] kasan: CONFIG_KASAN_INLINE enabled [ 28.340269] kasan: GPF could be caused by NULL-ptr deref or user memory accessgeneral protection fault: 0000 [#1] PREEMPT SMP KASAN [ 28.353217] Dumping ftrace buffer: [ 28.356758] (ftrace buffer empty) [ 28.360457] Modules linked in: [ 28.363784] CPU: 1 PID: 0 Comm: swapper/1 Not tainted 4.4.113-g202e079 #1 [ 28.370699] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 28.380059] task: ffff8801da3a97c0 task.stack: ffff8801da3b8000 [ 28.386119] RIP: 0010:[] [] rb_insert_color+0x9f/0xcb0 [ 28.394769] RSP: 0018:ffff8801db307d18 EFLAGS: 00010003 [ 28.400221] RAX: 0a0508a8e82a0be9 RBX: ffffffff838a8de0 RCX: ffffffff838a8de0 [ 28.407496] RDX: 1ffffffff07151bd RSI: ffff8801db319710 RDI: ffff8801db319c40 [ 28.414770] RBP: ffff8801db307d60 R08: ffffffff857d3748 R09: 0000000000000001 [ 28.422044] R10: 0000000000000000 R11: 1ffff1003b660f62 R12: ffff8800b468fdf8 [ 28.429315] R13: 5028454741505f4e R14: ffff8801db319c40 R15: dffffc0000000000 [ 28.436591] FS: 0000000000000000(0000) GS:ffff8801db300000(0000) knlGS:0000000000000000 [ 28.444820] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 [ 28.450709] CR2: 0000560ae23c1110 CR3: 00000000b6ab6000 CR4: 0000000000160670 [ 28.457984] DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 [ 28.465255] DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 [ 28.472524] Stack: [ 28.474684] ffffffff842bdb20 ffff8801da3aa030 0000000000000000 ffff8801db307d70 [ 28.482737] ffff8801db319c40 dffffc0000000000 0000000000000000 ffff8801db319710 [ 28.490796] ffff8800b468fe00 ffff8801db307db0 ffffffff81d20067 ffff8801db319c58 [ 28.498903] Call Trace: [ 28.501476] [ 28.503540] [] timerqueue_add+0x157/0x2a0 [ 28.509643] [] enqueue_hrtimer+0x168/0x450 [ 28.515539] [] __hrtimer_run_queues+0x732/0xfe0 [ 28.521892] [] ? hrtimer_fixup_init+0x70/0x70 [ 28.528049] [] ? hrtimer_interrupt+0x131/0x440 [ 28.534292] [] hrtimer_interrupt+0x1a6/0x440 [ 28.540359] [] local_apic_timer_interrupt+0x6a/0xb0 [ 28.547034] [] smp_apic_timer_interrupt+0x76/0xa0 [ 28.553533] [] apic_timer_interrupt+0xa0/0xb0 [ 28.559668] [ 28.561738] [] ? native_safe_halt+0x6/0x10 [ 28.567942] [] ? trace_hardirqs_on+0xd/0x10 [ 28.573926] [] default_idle+0x55/0x3c0 [ 28.579478] [] arch_cpu_idle+0xa/0x10 [ 28.584942] [] default_idle_call+0x48/0x70 [ 28.590837] [] cpu_startup_entry+0x5fd/0x8f0 [ 28.596909] [] ? call_cpuidle+0xe0/0xe0 [ 28.602542] [] ? clockevents_register_device+0x122/0x230 [ 28.609659] [] start_secondary+0x304/0x3e0 [ 28.615555] [] ? set_cpu_sibling_map+0x1080/0x1080 [ 28.622128] 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.649813] RIP [] rb_insert_color+0x9f/0xcb0 [ 28.656098] RSP [ 28.659725] ---[ end trace 4b93dcd9f959091e ]--- [ 28.664477] Kernel panic - not syncing: Fatal exception in interrupt [ 29.776539] Shutting down cpus with NMI [ 29.781157] Dumping ftrace buffer: [ 29.784690] (ftrace buffer empty) [ 29.788372] Kernel Offset: disabled [ 29.791972] Rebooting in 86400 seconds..