INIT: Entering runlevel: 2 [info] Using makefile-style concurrent boot in runlevel 2. [....] Starting enhanced syslogd: rsyslogd[?25l[?1c7[ ok 8[?25h[?0c. [....] Starting periodic command scheduler: cron[?25l[?1c7[ ok 8[?25h[?0c. [....] Starting OpenBSD Secure Shell server: sshd[?25l[?1c7[ ok 8[?25h[?0c. Debian GNU/Linux 7 syzkaller ttyS0 Warning: Permanently added 'ci-upstream-next-kasan-gce-5,10.128.0.11' (ECDSA) to the list of known hosts. executing program syzkaller login: [ 34.610300] ================================================================== [ 34.611402] BUG: KASAN: use-after-free in __lock_acquire+0x465e/0x47f0 [ 34.612277] Read of size 8 at addr ffff8801cc649d78 by task syzkaller686201/3081 [ 34.613259] [ 34.613513] CPU: 1 PID: 3081 Comm: syzkaller686201 Not tainted 4.15.0-rc2-next-20171205+ #59 [ 34.614629] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 34.615846] Call Trace: [ 34.616202] dump_stack+0x194/0x257 [ 34.616689] ? arch_local_irq_restore+0x53/0x53 [ 34.617309] ? show_regs_print_info+0x65/0x65 [ 34.617924] ? debug_check_no_locks_freed+0x3d0/0x3d0 [ 34.618609] ? __lock_acquire+0x6e9/0x47f0 [ 34.619172] ? __lock_acquire+0x465e/0x47f0 [ 34.619747] print_address_description+0x73/0x250 [ 34.620387] ? __lock_acquire+0x465e/0x47f0 [ 34.620983] kasan_report+0x25b/0x340 [ 34.621492] __asan_report_load8_noabort+0x14/0x20 [ 34.622144] __lock_acquire+0x465e/0x47f0 [ 34.622697] ? __lock_acquire+0x6e9/0x47f0 [ 34.623261] ? update_cfs_rq_load_avg.part.70+0x2d0/0x2d0 [ 34.623995] ? debug_check_no_locks_freed+0x3d0/0x3d0 [ 34.624679] ? __lock_acquire+0x6e9/0x47f0 [ 34.625241] ? debug_check_no_locks_freed+0x3d0/0x3d0 [ 34.625926] ? update_cfs_rq_load_avg.part.70+0x2d0/0x2d0 [ 34.626656] ? _raw_spin_unlock_irqrestore+0xa6/0xba [ 34.627336] ? debug_check_no_locks_freed+0x3d0/0x3d0 [ 34.628021] ? lock_acquire+0x1d5/0x580 [ 34.628551] ? ep_free+0xf4/0x320 [ 34.629016] ? lock_release+0xda0/0xda0 [ 34.629545] ? print_usage_bug+0x3f0/0x3f0 [ 34.630110] ? rcu_note_context_switch+0x710/0x710 [ 34.633063] ? __might_sleep+0x95/0x190 [ 34.636999] ? ep_free+0xf4/0x320 [ 34.640416] ? __mutex_lock+0x16f/0x1a80 [ 34.644438] ? ep_free+0xf4/0x320 [ 34.647856] ? ep_free+0xf4/0x320 [ 34.651275] lock_acquire+0x1d5/0x580 [ 34.655040] ? remove_wait_queue+0x81/0x350 [ 34.659327] ? __lock_acquire+0x6e9/0x47f0 [ 34.663524] ? lock_release+0xda0/0xda0 [ 34.667468] ? __lock_acquire+0x6e9/0x47f0 [ 34.671667] ? lock_acquire+0x1d5/0x580 [ 34.675604] ? ep_unregister_pollwait.isra.7+0x323/0x590 [ 34.681018] _raw_spin_lock_irqsave+0x96/0xc0 [ 34.685476] ? remove_wait_queue+0x81/0x350 [ 34.689762] remove_wait_queue+0x81/0x350 [ 34.693871] ? prepare_to_wait+0x4d0/0x4d0 [ 34.698073] ? rcutorture_record_progress+0x10/0x10 [ 34.703055] ep_unregister_pollwait.isra.7+0x18c/0x590 [ 34.708299] ? __kernel_text_address+0xd/0x40 [ 34.712762] ? clear_tfile_check_list+0x370/0x370 [ 34.717570] ? check_noncircular+0x20/0x20 [ 34.721768] ? free_fs_struct+0x52/0x60 [ 34.725705] ? locks_remove_file+0x3fa/0x5a0 [ 34.730079] ep_free+0x13f/0x320 [ 34.733407] ? ep_remove+0x800/0x800 [ 34.737088] ? fsnotify_first_mark+0x2b0/0x2b0 [ 34.741637] ? ep_free+0x320/0x320 [ 34.745141] ep_eventpoll_release+0x44/0x60 [ 34.749428] __fput+0x333/0x7f0 [ 34.752671] ? fput+0x140/0x140 [ 34.755916] ? _raw_spin_unlock_irq+0x27/0x70 [ 34.760373] ____fput+0x15/0x20 [ 34.763619] task_work_run+0x199/0x270 [ 34.767470] ? task_work_cancel+0x210/0x210 [ 34.771758] ? _raw_spin_unlock+0x22/0x30 [ 34.775874] ? switch_task_namespaces+0x87/0xc0 [ 34.780508] do_exit+0x9bb/0x1ae0 [ 34.783930] ? binder_ioctl+0x551/0x141a [ 34.787958] ? mm_update_next_owner+0x930/0x930 [ 34.792598] ? binder_ioctl_write_read.isra.41+0xcb0/0xcb0 [ 34.798194] ? avc_ss_reset+0x110/0x110 [ 34.802135] ? mutex_unlock+0xd/0x10 [ 34.805811] ? SyS_epoll_ctl+0x30a/0x1a80 [ 34.809926] ? down_read_trylock+0xdb/0x170 [ 34.814215] ? trace_event_raw_event_sched_switch+0x800/0x800 [ 34.820065] ? up_read+0x1a/0x40 [ 34.823400] ? rcu_note_context_switch+0x710/0x710 [ 34.828295] ? __fd_install+0x288/0x740 [ 34.832237] ? binder_ioctl_write_read.isra.41+0xcb0/0xcb0 [ 34.837827] ? do_vfs_ioctl+0x492/0x1530 [ 34.841855] ? _cond_resched+0x14/0x30 [ 34.845707] ? ioctl_preallocate+0x2b0/0x2b0 [ 34.850082] ? selinux_capable+0x40/0x40 [ 34.854109] ? __alloc_fd+0x750/0x750 [ 34.857880] do_group_exit+0x149/0x400 [ 34.861740] ? SyS_exit+0x30/0x30 [ 34.865163] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 34.870144] ? trace_hardirqs_on_thunk+0x1a/0x1c [ 34.874864] SyS_exit_group+0x1d/0x20 [ 34.878634] entry_SYSCALL_64_fastpath+0x1f/0x96 [ 34.883353] RIP: 0033:0x442a38 [ 34.886507] RSP: 002b:00007ffc8858f988 EFLAGS: 00000246 ORIG_RAX: 00000000000000e7 [ 34.894178] RAX: ffffffffffffffda RBX: 00000000004002e0 RCX: 0000000000442a38 [ 34.901410] RDX: 0000000000000000 RSI: 000000000000003c RDI: 0000000000000000 [ 34.908643] RBP: 00000000006ce018 R08: 00000000000000e7 R09: ffffffffffffffd0 [ 34.915877] R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000401a80 [ 34.923111] R13: 0000000000401b10 R14: 0000000000000000 R15: 0000000000000000 [ 34.930347] [ 34.931937] Allocated by task 3081: [ 34.935530] save_stack+0x43/0xd0 [ 34.938944] kasan_kmalloc+0xad/0xe0 [ 34.942622] kmem_cache_alloc_trace+0x136/0x750 [ 34.947255] binder_get_thread+0x1cf/0x870 [ 34.951451] binder_poll+0x8c/0x390 [ 34.955040] ep_item_poll.isra.10+0xf2/0x320 [ 34.959411] ep_insert+0x6a2/0x1ac0 [ 34.963001] SyS_epoll_ctl+0x12bf/0x1a80 [ 34.967024] entry_SYSCALL_64_fastpath+0x1f/0x96 [ 34.971740] [ 34.973332] Freed by task 3081: [ 34.976575] save_stack+0x43/0xd0 [ 34.979990] kasan_slab_free+0x71/0xc0 [ 34.983840] kfree+0xca/0x250 [ 34.986916] binder_thread_dec_tmpref+0x27f/0x310 [ 34.991722] binder_thread_release+0x27d/0x540 [ 34.996268] binder_ioctl+0xc05/0x141a [ 35.000119] do_vfs_ioctl+0x1b1/0x1530 [ 35.003970] SyS_ioctl+0x8f/0xc0 [ 35.007298] entry_SYSCALL_64_fastpath+0x1f/0x96 [ 35.012012] [ 35.013604] The buggy address belongs to the object at ffff8801cc649cc0 [ 35.013604] which belongs to the cache kmalloc-512 of size 512 [ 35.026221] The buggy address is located 184 bytes inside of [ 35.026221] 512-byte region [ffff8801cc649cc0, ffff8801cc649ec0) [ 35.038056] The buggy address belongs to the page: [ 35.042949] page:00000000e56948c0 count:1 mapcount:0 mapping:00000000d66a77be index:0x0 [ 35.051055] flags: 0x2fffc0000000100(slab) [ 35.055255] raw: 02fffc0000000100 ffff8801cc649040 0000000000000000 0000000100000006 [ 35.063100] raw: ffffea00073459a0 ffffea0007332de0 ffff8801db000940 0000000000000000 [ 35.070941] page dumped because: kasan: bad access detected [ 35.076612] [ 35.078201] Memory state around the buggy address: [ 35.083094] ffff8801cc649c00: fb fb fb fb fb fb fb fb fc fc fc fc fc fc fc fc [ 35.090418] ffff8801cc649c80: fc fc fc fc fc fc fc fc fb fb fb fb fb fb fb fb [ 35.097740] >ffff8801cc649d00: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 35.105060] ^ [ 35.112293] ffff8801cc649d80: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 35.119614] ffff8801cc649e00: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 35.126932] ================================================================== [ 35.134253] Disabling lock debugging due to kernel taint [ 35.139663] Kernel panic - not syncing: panic_on_warn set ... [ 35.139663] [ 35.146987] CPU: 1 PID: 3081 Comm: syzkaller686201 Tainted: G B 4.15.0-rc2-next-20171205+ #59 [ 35.156825] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 35.166142] Call Trace: [ 35.168696] dump_stack+0x194/0x257 [ 35.172288] ? arch_local_irq_restore+0x53/0x53 [ 35.176924] ? vprintk_default+0x28/0x30 [ 35.180949] ? vsnprintf+0x1ed/0x1900 [ 35.184715] ? __lock_acquire+0x4590/0x47f0 [ 35.188998] panic+0x1e4/0x41c [ 35.192152] ? refcount_error_report+0x214/0x214 [ 35.196871] ? add_taint+0x40/0x50 [ 35.200374] ? add_taint+0x1c/0x50 [ 35.203878] ? __lock_acquire+0x465e/0x47f0 [ 35.208160] kasan_end_report+0x50/0x50 [ 35.212096] kasan_report+0x144/0x340 [ 35.215862] __asan_report_load8_noabort+0x14/0x20 [ 35.220754] __lock_acquire+0x465e/0x47f0 [ 35.224865] ? __lock_acquire+0x6e9/0x47f0 [ 35.229064] ? update_cfs_rq_load_avg.part.70+0x2d0/0x2d0 [ 35.234567] ? debug_check_no_locks_freed+0x3d0/0x3d0 [ 35.239718] ? __lock_acquire+0x6e9/0x47f0 [ 35.243914] ? debug_check_no_locks_freed+0x3d0/0x3d0 [ 35.249067] ? update_cfs_rq_load_avg.part.70+0x2d0/0x2d0 [ 35.254565] ? _raw_spin_unlock_irqrestore+0xa6/0xba [ 35.259638] ? debug_check_no_locks_freed+0x3d0/0x3d0 [ 35.264791] ? lock_acquire+0x1d5/0x580 [ 35.268729] ? ep_free+0xf4/0x320 [ 35.272147] ? lock_release+0xda0/0xda0 [ 35.276083] ? print_usage_bug+0x3f0/0x3f0 [ 35.280283] ? rcu_note_context_switch+0x710/0x710 [ 35.285178] ? __might_sleep+0x95/0x190 [ 35.289115] ? ep_free+0xf4/0x320 [ 35.292534] ? __mutex_lock+0x16f/0x1a80 [ 35.296556] ? ep_free+0xf4/0x320 [ 35.299973] ? ep_free+0xf4/0x320 [ 35.303392] lock_acquire+0x1d5/0x580 [ 35.307190] ? remove_wait_queue+0x81/0x350 [ 35.311473] ? __lock_acquire+0x6e9/0x47f0 [ 35.315672] ? lock_release+0xda0/0xda0 [ 35.319610] ? __lock_acquire+0x6e9/0x47f0 [ 35.323810] ? lock_acquire+0x1d5/0x580 [ 35.327750] ? ep_unregister_pollwait.isra.7+0x323/0x590 [ 35.333166] _raw_spin_lock_irqsave+0x96/0xc0 [ 35.337625] ? remove_wait_queue+0x81/0x350 [ 35.341908] remove_wait_queue+0x81/0x350 [ 35.346020] ? prepare_to_wait+0x4d0/0x4d0 [ 35.350216] ? rcutorture_record_progress+0x10/0x10 [ 35.355195] ep_unregister_pollwait.isra.7+0x18c/0x590 [ 35.360437] ? __kernel_text_address+0xd/0x40 [ 35.364895] ? clear_tfile_check_list+0x370/0x370 [ 35.369702] ? check_noncircular+0x20/0x20 [ 35.373902] ? free_fs_struct+0x52/0x60 [ 35.377841] ? locks_remove_file+0x3fa/0x5a0 [ 35.382212] ep_free+0x13f/0x320 [ 35.385541] ? ep_remove+0x800/0x800 [ 35.389219] ? fsnotify_first_mark+0x2b0/0x2b0 [ 35.393765] ? ep_free+0x320/0x320 [ 35.397269] ep_eventpoll_release+0x44/0x60 [ 35.401556] __fput+0x333/0x7f0 [ 35.404801] ? fput+0x140/0x140 [ 35.408045] ? _raw_spin_unlock_irq+0x27/0x70 [ 35.412516] ____fput+0x15/0x20 [ 35.415761] task_work_run+0x199/0x270 [ 35.419613] ? task_work_cancel+0x210/0x210 [ 35.423898] ? _raw_spin_unlock+0x22/0x30 [ 35.428011] ? switch_task_namespaces+0x87/0xc0 [ 35.432646] do_exit+0x9bb/0x1ae0 [ 35.436067] ? binder_ioctl+0x551/0x141a [ 35.440092] ? mm_update_next_owner+0x930/0x930 [ 35.444725] ? binder_ioctl_write_read.isra.41+0xcb0/0xcb0 [ 35.450314] ? avc_ss_reset+0x110/0x110 [ 35.454253] ? mutex_unlock+0xd/0x10 [ 35.457927] ? SyS_epoll_ctl+0x30a/0x1a80 [ 35.462043] ? down_read_trylock+0xdb/0x170 [ 35.466328] ? trace_event_raw_event_sched_switch+0x800/0x800 [ 35.472176] ? up_read+0x1a/0x40 [ 35.475508] ? rcu_note_context_switch+0x710/0x710 [ 35.480406] ? __fd_install+0x288/0x740 [ 35.484345] ? binder_ioctl_write_read.isra.41+0xcb0/0xcb0 [ 35.489933] ? do_vfs_ioctl+0x492/0x1530 [ 35.493958] ? _cond_resched+0x14/0x30 [ 35.497809] ? ioctl_preallocate+0x2b0/0x2b0 [ 35.502185] ? selinux_capable+0x40/0x40 [ 35.506208] ? __alloc_fd+0x750/0x750 [ 35.509976] do_group_exit+0x149/0x400 [ 35.513828] ? SyS_exit+0x30/0x30 [ 35.517251] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 35.522230] ? trace_hardirqs_on_thunk+0x1a/0x1c [ 35.526951] SyS_exit_group+0x1d/0x20 [ 35.530716] entry_SYSCALL_64_fastpath+0x1f/0x96 [ 35.535437] RIP: 0033:0x442a38 [ 35.538593] RSP: 002b:00007ffc8858f988 EFLAGS: 00000246 ORIG_RAX: 00000000000000e7 [ 35.546263] RAX: ffffffffffffffda RBX: 00000000004002e0 RCX: 0000000000442a38 [ 35.553499] RDX: 0000000000000000 RSI: 000000000000003c RDI: 0000000000000000 [ 35.560734] RBP: 00000000006ce018 R08: 00000000000000e7 R09: ffffffffffffffd0 [ 35.567966] R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000401a80 [ 35.575197] R13: 0000000000401b10 R14: 0000000000000000 R15: 0000000000000000 [ 35.582471] Dumping ftrace buffer: [ 35.585978] (ftrace buffer empty) [ 35.589652] Kernel Offset: disabled [ 35.593247] Rebooting in 86400 seconds..