Warning: Permanently added '10.128.0.38' (ECDSA) to the list of known hosts. [ 33.430418] random: sshd: uninitialized urandom read (32 bytes read, 115 bits of entropy available) executing program [ 33.534203] ================================================================== [ 33.541575] BUG: KASAN: use-after-free in __lock_acquire+0x387e/0x4b50 [ 33.548208] Read of size 8 at addr ffff8800b66a0fb8 by task syzkaller542777/3326 [ 33.555869] [ 33.557478] CPU: 0 PID: 3326 Comm: syzkaller542777 Not tainted 4.4.111-g7902639 #18 [ 33.565248] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 33.574575] 0000000000000000 ed968c9192b170c5 ffff8801d0367850 ffffffff81d0509d [ 33.582530] ffffea0002d9a800 ffff8800b66a0fb8 0000000000000000 ffff8800b66a0fb8 [ 33.590478] 0000000000000000 ffff8801d0367888 ffffffff814fd433 ffff8800b66a0fb8 [ 33.598423] Call Trace: [ 33.600983] [] dump_stack+0xc1/0x124 [ 33.606324] [] print_address_description+0x73/0x260 [ 33.612953] [] kasan_report+0x285/0x370 [ 33.618544] [] ? __lock_acquire+0x387e/0x4b50 [ 33.624658] [] __asan_report_load8_noabort+0x14/0x20 [ 33.631384] [] __lock_acquire+0x387e/0x4b50 [ 33.637319] [] ? __lock_acquire+0xb5f/0x4b50 [ 33.643347] [] ? debug_check_no_locks_freed+0x2c0/0x2c0 [ 33.650326] [] ? trace_hardirqs_on_caller+0x38b/0x590 [ 33.657133] [] ? debug_check_no_locks_freed+0x2c0/0x2c0 [ 33.664112] [] ? debug_check_no_locks_freed+0x2c0/0x2c0 [ 33.671092] [] lock_acquire+0x15e/0x460 [ 33.676693] [] ? remove_wait_queue+0x14/0x40 [ 33.682725] [] _raw_spin_lock_irqsave+0x4e/0x70 [ 33.689016] [] ? remove_wait_queue+0x14/0x40 [ 33.695049] [] remove_wait_queue+0x14/0x40 [ 33.700902] [] ep_unregister_pollwait.isra.6+0xa8/0x220 [ 33.707882] [] ? ep_unregister_pollwait.isra.6+0x114/0x220 [ 33.715128] [] ? ep_free+0x1c0/0x1c0 [ 33.720456] [] ep_free+0x93/0x1c0 [ 33.725526] [] ? ep_free+0x1c0/0x1c0 [ 33.730860] [] ep_eventpoll_release+0x44/0x60 [ 33.736970] [] __fput+0x233/0x6d0 [ 33.742038] [] ____fput+0x15/0x20 [ 33.747108] [] task_work_run+0x104/0x180 [ 33.752783] [] do_exit+0x871/0x2a20 [ 33.758024] [] ? handle_mm_fault+0x192d/0x3190 [ 33.764223] [] ? handle_mm_fault+0x3f2/0x3190 [ 33.770334] [] ? release_task+0x1240/0x1240 [ 33.776272] [] do_group_exit+0x108/0x320 [ 33.781960] [] SyS_exit_group+0x1d/0x20 [ 33.787553] [] ? do_group_exit+0x320/0x320 [ 33.793402] [] do_fast_syscall_32+0x314/0x890 [ 33.799513] [] sysenter_flags_fixed+0xd/0x17 [ 33.805537] [ 33.807131] Allocated by task 3326: [ 33.810725] [] save_stack_trace+0x26/0x50 [ 33.816608] [] save_stack+0x43/0xd0 [ 33.821962] [] kasan_kmalloc+0xad/0xe0 [ 33.827574] [] kmem_cache_alloc_trace+0x100/0x2b0 [ 33.834152] [] binder_get_thread+0x181/0x7a0 [ 33.840286] [] binder_poll+0x4a/0x210 [ 33.845820] [] SyS_epoll_ctl+0x10b1/0x2050 [ 33.851786] [] do_fast_syscall_32+0x314/0x890 [ 33.858006] [] sysenter_flags_fixed+0xd/0x17 [ 33.864140] [ 33.865739] Freed by task 3326: [ 33.868979] [] save_stack_trace+0x26/0x50 [ 33.874858] [] save_stack+0x43/0xd0 [ 33.880211] [] kasan_slab_free+0x72/0xc0 [ 33.885998] [] kfree+0xfc/0x300 [ 33.891019] [] binder_thread_dec_tmpref+0x1c1/0x250 [ 33.897765] [] binder_thread_release+0x27d/0x540 [ 33.904250] [] binder_ioctl+0xb94/0x12e0 [ 33.910042] [] compat_SyS_ioctl+0x28a/0x2540 [ 33.916180] [] do_fast_syscall_32+0x314/0x890 [ 33.922408] [] sysenter_flags_fixed+0xd/0x17 [ 33.928561] [ 33.930221] The buggy address belongs to the object at ffff8800b66a0f00 [ 33.930221] which belongs to the cache kmalloc-512 of size 512 [ 33.942841] The buggy address is located 184 bytes inside of [ 33.942841] 512-byte region [ffff8800b66a0f00, ffff8800b66a1100) [ 33.954678] The buggy address belongs to the page: [ 35.402205] PANIC: double fault, error_code: 0x0 [ 35.407017] CPU: 0 PID: 3326 Comm: syzkaller542777 Not tainted 4.4.111-g7902639 #18 [ 35.414813] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 35.424139] task: ffff8800b4bec740 task.stack: ffff8801d0360000 [ 35.430164] RIP: 0010:[] [] dump_page_badflags+0x1a/0x250 [ 35.439008] RSP: 0018:ffff880100000000 EFLAGS: 00010086 [ 35.444425] RAX: ffff8800b4bec740 RBX: ffffea0002d9a800 RCX: ffffffff8148f980 [ 35.451664] RDX: 0000000000000000 RSI: ffffffff838a8360 RDI: ffffea0002d9a800 [ 35.458913] RBP: ffff880100000030 R08: 0000000000000001 R09: 0000000000000000 [ 35.466148] R10: 0000000000000002 R11: fffffbfff0ad781e R12: 0000000000000000 [ 35.473385] R13: ffffffff838a8360 R14: 0000000000000000 R15: 0000000000000000 [ 35.480623] FS: 0000000000000000(0000) GS:ffff8801db200000(0000) knlGS:0000000000000000 [ 35.488815] CS: 0010 DS: 002b ES: 002b CR0: 0000000080050033 [ 35.494662] CR2: ffff8800fffffff8 CR3: 000000000420c000 CR4: 0000000000160670 [ 35.501906] DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 [ 35.509151] DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 [ 35.516387] Stack: [ 35.518509] [ 35.520100] Call Trace: [ 35.522648] [ 35.523632] ------------[ cut here ]------------ [ 35.523644] WARNING: CPU: 1 PID: 1733 at kernel/locking/lockdep.c:973 __bfs+0x2c4/0x5d0() [ 35.523647] Kernel panic - not syncing: panic_on_warn set ... [ 35.523647] [ 35.523652] CPU: 1 PID: 1733 Comm: udevd Not tainted 4.4.111-g7902639 #18 [ 35.523655] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 35.523657] 0000000000000000 c30029da652fe918 ffff8801d3bf75c8 ffffffff81d0509d [ 35.523662] ffffffff83842f60 ffff8801d3bf76a0 ffffffff83854d40 0000000000000009 [ 35.523667] 00000000000003cd ffff8801d3bf7690 ffffffff81419a3a 0000000041b58ab3 [ 35.523672] Call Trace: [ 35.523679] [] dump_stack+0xc1/0x124 [ 35.523686] [] panic+0x1aa/0x388 [ 35.523690] [] ? percpu_up_read.constprop.45+0xe1/0xe1 [ 35.523694] [] ? pm_qos_get_value.part.4+0xb/0xb [ 35.523699] [] ? warn_slowpath_common+0x10a/0x140 [ 35.523703] [] warn_slowpath_common+0x125/0x140 [ 35.523705] [] ? __bfs+0x2c4/0x5d0 [ 35.523709] [] warn_slowpath_null+0x29/0x30 [ 35.523711] [] __bfs+0x2c4/0x5d0 [ 35.523718] [] ? kasan_kmalloc+0xad/0xe0 [ 35.523721] [] ? kasan_slab_alloc+0x12/0x20 [ 35.523725] [] ? kmem_cache_alloc+0xba/0x290 [ 35.523728] [] ? noop_count+0x40/0x40 [ 35.523731] [] check_usage_backwards+0x171/0x300 [ 35.523735] [] ? check_usage_forwards+0x310/0x310 [ 35.523740] [] ? dump_trace+0x14c/0x350 [ 35.523746] [] ? save_stack_trace+0x26/0x50 [ 35.523749] [] mark_lock+0x8b1/0xfd0 [ 35.523752] [] ? check_usage_forwards+0x310/0x310 [ 35.523756] [] __lock_acquire+0x10f0/0x4b50 [ 35.523759] [] ? mark_held_locks+0xaf/0x100 [ 35.523763] [] ? debug_check_no_locks_freed+0x2c0/0x2c0 [ 35.523767] [] ? _raw_spin_unlock_irqrestore+0x45/0x70 [ 35.523774] [] ? avc_has_perm_noaudit+0x2a0/0x460 [ 35.523777] [] ? __lock_is_held+0xa1/0xf0 [ 35.523780] [] lock_acquire+0x15e/0x460 [ 35.523786] [] ? vma_adjust+0x44b/0x12c0 [ 35.523791] [] down_write+0x41/0xa0 [ 35.523795] [] ? vma_adjust+0x44b/0x12c0 [ 35.523798] [] vma_adjust+0x44b/0x12c0 [ 35.523802] [] ? selinux_ipv4_output+0x150/0x150 [ 35.523805] [] vma_merge+0x704/0xc70 [ 35.523810] [] mmap_region+0x4fc/0x1250 [ 35.523813] [] do_mmap+0x4fd/0x9d0 [ 35.523818] [] vm_mmap_pgoff+0x16e/0x1c0 [ 35.523822] [] ? vma_is_stack_for_task+0xa0/0xa0 [ 35.523826] [] SyS_mmap_pgoff+0xd0/0x560 [ 35.523830] [] ? vm_stat_account+0x130/0x130 [ 35.523833] [] ? trace_hardirqs_on_caller+0x38b/0x590 [ 35.523837] [] ? lockdep_sys_exit_thunk+0x12/0x14 [ 35.523841] [] SyS_mmap+0x16/0x20 [ 35.523845] [] entry_SYSCALL_64_fastpath+0x16/0x92 [ 35.835754] Code: e2 06 00 e9 1d fd ff ff 66 0f 1f 84 00 00 00 00 00 55 48 89 e5 41 57 41 56 41 55 49 89 f5 41 54 49 89 d4 53 48 89 fb 48 83 ec 08 61 06 ed ff 48 8d 7b 10 48 b8 00 00 00 00 00 fc ff df 48 89 [ 36.601829] Shutting down cpus with NMI [ 36.606236] Dumping ftrace buffer: [ 36.609757] (ftrace buffer empty) [ 36.613436] Kernel Offset: disabled [ 36.617035] Rebooting in 86400 seconds..