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-4,10.128.0.3' (ECDSA) to the list of known hosts. 2017/09/30 01:32:53 parsed 1 programs 2017/09/30 01:32:53 executed programs: 0 syzkaller login: [ 32.920830] ================================================================== [ 32.928274] BUG: KASAN: use-after-free in __lock_acquire+0x407b/0x4620 [ 32.934915] Read of size 8 at addr ffff8801cc24d168 by task syz-executor6/3654 [ 32.942233] [ 32.943829] CPU: 1 PID: 3654 Comm: syz-executor6 Not tainted 4.14.0-rc2-next-20170929+ #32 [ 32.952190] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 32.961507] Call Trace: [ 32.964065] dump_stack+0x194/0x257 [ 32.967657] ? arch_local_irq_restore+0x53/0x53 [ 32.972290] ? show_regs_print_info+0x65/0x65 [ 32.976753] ? __kernel_text_address+0xd/0x40 [ 32.981212] ? __lock_acquire+0x407b/0x4620 [ 32.985498] print_address_description+0x73/0x250 [ 32.990304] ? __lock_acquire+0x407b/0x4620 [ 32.994589] kasan_report+0x25b/0x340 [ 32.998353] __asan_report_load8_noabort+0x14/0x20 [ 33.003246] __lock_acquire+0x407b/0x4620 [ 33.007360] ? unwind_dump+0x4c0/0x4c0 [ 33.011210] ? __unwind_start+0x169/0x330 [ 33.015321] ? __kernel_text_address+0xd/0x40 [ 33.019785] ? unwind_get_return_address+0x61/0xa0 [ 33.024682] ? debug_check_no_locks_freed+0x3d0/0x3d0 [ 33.029849] ? unwind_get_return_address+0x61/0xa0 [ 33.034756] ? __save_stack_trace+0x61/0xd0 [ 33.039062] ? get_signal+0x73f/0x16d0 [ 33.042913] ? save_stack_trace+0x16/0x20 [ 33.047025] ? __lock_acquire+0x20fd/0x4620 [ 33.051312] ? debug_check_no_locks_freed+0x3d0/0x3d0 [ 33.056468] ? debug_check_no_locks_freed+0x3d0/0x3d0 [ 33.061622] ? save_stack_trace+0x16/0x20 [ 33.065735] ? __lock_acquire+0x20fd/0x4620 [ 33.070030] ? osq_unlock+0x350/0x350 [ 33.073795] ? save_stack_trace+0x16/0x20 [ 33.077908] ? lock_release+0xd70/0xd70 [ 33.081859] ? check_noncircular+0x20/0x20 [ 33.086059] ? debug_check_no_locks_freed+0x3d0/0x3d0 [ 33.091215] ? debug_check_no_locks_freed+0x3d0/0x3d0 [ 33.096371] ? find_held_lock+0x39/0x1d0 [ 33.100400] ? lock_downgrade+0x990/0x990 [ 33.104510] ? check_noncircular+0x20/0x20 [ 33.108710] lock_acquire+0x1d5/0x580 [ 33.112478] ? exit_pi_state_list+0x369/0x7a0 [ 33.116938] ? lock_release+0xd70/0xd70 [ 33.120877] ? do_raw_spin_trylock+0x190/0x190 [ 33.125421] ? find_held_lock+0x39/0x1d0 [ 33.129451] _raw_spin_lock_irq+0x5e/0x80 [ 33.133562] ? exit_pi_state_list+0x369/0x7a0 [ 33.138021] exit_pi_state_list+0x369/0x7a0 [ 33.142308] ? futex_wait_requeue_pi.constprop.19+0x1300/0x1300 [ 33.148329] ? lock_release+0xd70/0xd70 [ 33.152269] ? trace_event_raw_event_sched_switch+0x770/0x770 [ 33.158118] ? _raw_spin_unlock_irqrestore+0x31/0xba [ 33.163186] ? __might_sleep+0x95/0x190 [ 33.167124] ? __might_fault+0x188/0x1d0 [ 33.171150] ? do_raw_spin_trylock+0x190/0x190 [ 33.175709] mm_release+0x46d/0x590 [ 33.179298] ? do_raw_spin_trylock+0x190/0x190 [ 33.183845] ? mm_access+0x140/0x140 [ 33.187536] ? _raw_spin_unlock_irq+0x27/0x70 [ 33.191997] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 33.196977] ? trace_hardirqs_on+0xd/0x10 [ 33.201088] ? _raw_spin_unlock_irq+0x27/0x70 [ 33.205545] ? acct_collect+0x637/0x800 [ 33.209482] do_exit+0x481/0x1b00 [ 33.212904] ? mm_update_next_owner+0x930/0x930 [ 33.217537] ? trace_event_raw_event_sched_switch+0x770/0x770 [ 33.223388] ? find_held_lock+0x39/0x1d0 [ 33.227428] ? refill_pi_state_cache.part.6+0x2f0/0x2f0 [ 33.232758] ? check_noncircular+0x20/0x20 [ 33.236960] ? fault_in_user_writeable+0x90/0x90 [ 33.241679] ? futex_wake+0x680/0x680 [ 33.245445] ? find_held_lock+0x39/0x1d0 [ 33.249474] ? lock_downgrade+0x990/0x990 [ 33.253588] ? recalc_sigpending_tsk+0x117/0x150 [ 33.258307] ? recalc_sigpending+0x103/0x160 [ 33.262680] ? recalc_sigpending_tsk+0x150/0x150 [ 33.267399] ? get_signal+0x2b2/0x16d0 [ 33.271252] do_group_exit+0x149/0x400 [ 33.275102] ? __lock_is_held+0xbc/0x140 [ 33.279126] ? SyS_exit+0x30/0x30 [ 33.282545] ? _raw_spin_unlock_irq+0x27/0x70 [ 33.287005] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 33.291987] get_signal+0x73f/0x16d0 [ 33.295667] ? ptrace_notify+0x130/0x130 [ 33.299695] ? vma_wants_writenotify+0x3b0/0x3b0 [ 33.304420] ? exit_robust_list+0x240/0x240 [ 33.308706] ? lock_downgrade+0x990/0x990 [ 33.312822] ? SyS_brk+0x6f0/0x6f0 [ 33.316329] do_signal+0x94/0x1ee0 [ 33.319836] ? arch_get_unmapped_area+0x750/0x750 [ 33.324639] ? lock_acquire+0x1d5/0x580 [ 33.328588] ? find_held_lock+0x39/0x1d0 [ 33.332612] ? setup_sigcontext+0x7d0/0x7d0 [ 33.336902] ? lock_downgrade+0x990/0x990 [ 33.341016] ? down_write+0x120/0x120 [ 33.344791] ? lock_release+0xd70/0xd70 [ 33.348737] ? trace_event_raw_event_sched_switch+0x770/0x770 [ 33.354594] ? vm_mmap_pgoff+0x1fc/0x280 [ 33.358622] ? exit_to_usermode_loop+0x8c/0x310 [ 33.363256] exit_to_usermode_loop+0x214/0x310 [ 33.367804] ? trace_event_raw_event_sys_exit+0x260/0x260 [ 33.373305] ? kasan_check_write+0x14/0x20 [ 33.377505] syscall_return_slowpath+0x42f/0x510 [ 33.382225] ? prepare_exit_to_usermode+0x2d0/0x2d0 [ 33.387205] ? entry_SYSCALL_64_fastpath+0x91/0xbe [ 33.392099] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 33.397077] ? trace_hardirqs_on_thunk+0x1a/0x1c [ 33.401799] entry_SYSCALL_64_fastpath+0xbc/0xbe [ 33.406517] RIP: 0033:0x4520a9 [ 33.409673] RSP: 002b:00007fbaed455cf8 EFLAGS: 00000246 ORIG_RAX: 00000000000000ca [ 33.417353] RAX: fffffffffffffe00 RBX: 0000000000718028 RCX: 00000000004520a9 [ 33.424598] RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000718028 [ 33.431833] RBP: 0000000000718000 R08: 0000000000000000 R09: 0000000000000000 [ 33.439069] R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 [ 33.446305] R13: 00007ffd80f90d4f R14: 00007fbaed4569c0 R15: 0000000000000000 [ 33.453543] [ 33.455135] Allocated by task 3680: [ 33.458729] save_stack_trace+0x16/0x20 [ 33.462667] save_stack+0x43/0xd0 [ 33.466083] kasan_kmalloc+0xad/0xe0 [ 33.469774] kmem_cache_alloc_trace+0x136/0x750 [ 33.474405] refill_pi_state_cache.part.6+0xa5/0x2f0 [ 33.479471] futex_requeue+0x1887/0x2370 [ 33.483494] do_futex+0x7f5/0x20d0 [ 33.486996] SyS_futex+0x260/0x390 [ 33.490500] entry_SYSCALL_64_fastpath+0x1f/0xbe [ 33.495216] [ 33.496808] Freed by task 3669: [ 33.500050] save_stack_trace+0x16/0x20 [ 33.503987] save_stack+0x43/0xd0 [ 33.507404] kasan_slab_free+0x71/0xc0 [ 33.511254] kfree+0xca/0x250 [ 33.514322] put_pi_state+0x3f4/0x560 [ 33.518084] unqueue_me_pi+0x4a/0xc0 [ 33.521761] futex_wait_requeue_pi.constprop.19+0xc7f/0x1300 [ 33.527520] do_futex+0x825/0x20d0 [ 33.531023] SyS_futex+0x260/0x390 [ 33.534526] entry_SYSCALL_64_fastpath+0x1f/0xbe [ 33.539240] [ 33.540834] The buggy address belongs to the object at ffff8801cc24d140 [ 33.540834] which belongs to the cache kmalloc-256 of size 256 [ 33.553462] The buggy address is located 40 bytes inside of [ 33.553462] 256-byte region [ffff8801cc24d140, ffff8801cc24d240) [ 33.565209] The buggy address belongs to the page: [ 33.570101] page:ffffea0007309340 count:1 mapcount:0 mapping:ffff8801cc24d000 index:0x0 [ 33.578204] flags: 0x200000000000100(slab) [ 33.582403] raw: 0200000000000100 ffff8801cc24d000 0000000000000000 000000010000000c [ 33.590247] raw: ffffea00072fc6a0 ffffea00073046e0 ffff8801dac007c0 0000000000000000 [ 33.598088] page dumped because: kasan: bad access detected [ 33.603757] [ 33.605348] Memory state around the buggy address: [ 33.610240] ffff8801cc24d000: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 33.617562] ffff8801cc24d080: 00 00 00 00 00 00 00 00 00 00 00 00 fc fc fc fc [ 33.624882] >ffff8801cc24d100: fc fc fc fc fc fc fc fc fb fb fb fb fb fb fb fb [ 33.632200] ^ [ 33.638914] ffff8801cc24d180: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 33.646235] ffff8801cc24d200: fb fb fb fb fb fb fb fb fc fc fc fc fc fc fc fc [ 33.653556] ================================================================== [ 33.660885] Disabling lock debugging due to kernel taint [ 33.666299] Kernel panic - not syncing: panic_on_warn set ... [ 33.666299] [ 33.673625] CPU: 1 PID: 3654 Comm: syz-executor6 Tainted: G B 4.14.0-rc2-next-20170929+ #32 [ 33.683202] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 33.692520] Call Trace: [ 33.695080] dump_stack+0x194/0x257 [ 33.698671] ? arch_local_irq_restore+0x53/0x53 [ 33.703305] ? vprintk_default+0x28/0x30 [ 33.707332] ? __lock_acquire+0x4000/0x4620 [ 33.711619] panic+0x1e4/0x41c [ 33.714779] ? refcount_error_report+0x214/0x214 [ 33.719499] ? __lock_acquire+0x407b/0x4620 [ 33.723796] kasan_end_report+0x50/0x50 [ 33.727736] kasan_report+0x144/0x340 [ 33.731499] __asan_report_load8_noabort+0x14/0x20 [ 33.736392] __lock_acquire+0x407b/0x4620 [ 33.740522] ? unwind_dump+0x4c0/0x4c0 [ 33.744382] ? __unwind_start+0x169/0x330 [ 33.748494] ? __kernel_text_address+0xd/0x40 [ 33.752952] ? unwind_get_return_address+0x61/0xa0 [ 33.757848] ? debug_check_no_locks_freed+0x3d0/0x3d0 [ 33.763001] ? unwind_get_return_address+0x61/0xa0 [ 33.767894] ? __save_stack_trace+0x61/0xd0 [ 33.772181] ? get_signal+0x73f/0x16d0 [ 33.776031] ? save_stack_trace+0x16/0x20 [ 33.780143] ? __lock_acquire+0x20fd/0x4620 [ 33.784429] ? debug_check_no_locks_freed+0x3d0/0x3d0 [ 33.789584] ? debug_check_no_locks_freed+0x3d0/0x3d0 [ 33.794737] ? save_stack_trace+0x16/0x20 [ 33.798846] ? __lock_acquire+0x20fd/0x4620 [ 33.803133] ? osq_unlock+0x350/0x350 [ 33.806896] ? save_stack_trace+0x16/0x20 [ 33.811009] ? lock_release+0xd70/0xd70 [ 33.814947] ? check_noncircular+0x20/0x20 [ 33.819145] ? debug_check_no_locks_freed+0x3d0/0x3d0 [ 33.824300] ? debug_check_no_locks_freed+0x3d0/0x3d0 [ 33.829457] ? find_held_lock+0x39/0x1d0 [ 33.833485] ? lock_downgrade+0x990/0x990 [ 33.837597] ? check_noncircular+0x20/0x20 [ 33.841795] lock_acquire+0x1d5/0x580 [ 33.845561] ? exit_pi_state_list+0x369/0x7a0 [ 33.850021] ? lock_release+0xd70/0xd70 [ 33.853968] ? do_raw_spin_trylock+0x190/0x190 [ 33.858525] ? find_held_lock+0x39/0x1d0 [ 33.862556] _raw_spin_lock_irq+0x5e/0x80 [ 33.866670] ? exit_pi_state_list+0x369/0x7a0 [ 33.871127] exit_pi_state_list+0x369/0x7a0 [ 33.875414] ? futex_wait_requeue_pi.constprop.19+0x1300/0x1300 [ 33.881435] ? lock_release+0xd70/0xd70 [ 33.885374] ? trace_event_raw_event_sched_switch+0x770/0x770 [ 33.891220] ? _raw_spin_unlock_irqrestore+0x31/0xba [ 33.896286] ? __might_sleep+0x95/0x190 [ 33.900227] ? __might_fault+0x188/0x1d0 [ 33.904250] ? do_raw_spin_trylock+0x190/0x190 [ 33.908807] mm_release+0x46d/0x590 [ 33.912397] ? do_raw_spin_trylock+0x190/0x190 [ 33.916970] ? mm_access+0x140/0x140 [ 33.920665] ? _raw_spin_unlock_irq+0x27/0x70