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-1,10.128.0.57' (ECDSA) to the list of known hosts. 2017/10/01 10:01:09 parsed 1 programs 2017/10/01 10:01:09 executed programs: 0 2017/10/01 10:01:14 executed programs: 333 2017/10/01 10:01:19 executed programs: 661 syzkaller login: [ 52.383138] ================================================================== [ 52.384243] BUG: KASAN: use-after-free in __lock_acquire+0x407b/0x4620 [ 52.385166] Read of size 8 at addr ffff8801c1aeb7e8 by task syz-executor4/7291 [ 52.386154] [ 52.386400] CPU: 0 PID: 7291 Comm: syz-executor4 Not tainted 4.14.0-rc2-next-20170929+ #32 [ 52.387524] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 52.388788] Call Trace: [ 52.389156] dump_stack+0x194/0x257 [ 52.389661] ? arch_local_irq_restore+0x53/0x53 [ 52.390298] ? show_regs_print_info+0x65/0x65 [ 52.390988] ? __kernel_text_address+0xd/0x40 [ 52.391703] ? __lock_acquire+0x407b/0x4620 [ 52.392304] print_address_description+0x73/0x250 [ 52.392959] ? __lock_acquire+0x407b/0x4620 [ 52.393587] kasan_report+0x25b/0x340 [ 52.394337] __asan_report_load8_noabort+0x14/0x20 [ 52.395018] __lock_acquire+0x407b/0x4620 [ 52.395585] ? unwind_dump+0x4c0/0x4c0 [ 52.396116] ? __unwind_start+0x169/0x330 [ 52.396680] ? __kernel_text_address+0xd/0x40 [ 52.397290] ? unwind_get_return_address+0x61/0xa0 [ 52.397992] ? debug_check_no_locks_freed+0x3d0/0x3d0 [ 52.398719] ? unwind_get_return_address+0x61/0xa0 [ 52.399388] ? __save_stack_trace+0x61/0xd0 [ 52.400026] ? get_signal+0x73f/0x16d0 [ 52.400579] ? save_stack_trace+0x16/0x20 [ 52.401142] ? __lock_acquire+0x20fd/0x4620 [ 52.401768] ? debug_check_no_locks_freed+0x3d0/0x3d0 [ 52.402473] ? debug_check_no_locks_freed+0x3d0/0x3d0 [ 52.403173] ? save_stack_trace+0x16/0x20 [ 52.406941] ? __lock_acquire+0x20fd/0x4620 [ 52.411242] ? osq_unlock+0x350/0x350 [ 52.415017] ? perf_trace_lock+0xf1/0x860 [ 52.419149] ? pvclock_read_flags+0x160/0x160 [ 52.423629] ? check_noncircular+0x20/0x20 [ 52.427847] ? debug_check_no_locks_freed+0x3d0/0x3d0 [ 52.433017] ? debug_check_no_locks_freed+0x3d0/0x3d0 [ 52.438192] ? perf_trace_lock+0xf1/0x860 [ 52.442322] ? find_held_lock+0x39/0x1d0 [ 52.446368] ? lock_downgrade+0x990/0x990 [ 52.450516] ? check_noncircular+0x20/0x20 [ 52.454725] lock_acquire+0x1d5/0x580 [ 52.458506] ? exit_pi_state_list+0x369/0x7a0 [ 52.462978] ? lock_release+0xd70/0xd70 [ 52.466925] ? do_raw_spin_trylock+0x190/0x190 [ 52.471477] ? find_held_lock+0x39/0x1d0 [ 52.475531] _raw_spin_lock_irq+0x5e/0x80 [ 52.479658] ? exit_pi_state_list+0x369/0x7a0 [ 52.484132] exit_pi_state_list+0x369/0x7a0 [ 52.488440] ? futex_wait_requeue_pi.constprop.19+0x1300/0x1300 [ 52.494473] ? lock_release+0xd70/0xd70 [ 52.498419] ? trace_event_raw_event_sched_switch+0x770/0x770 [ 52.504572] ? _raw_spin_unlock_irqrestore+0x31/0xba [ 52.509651] ? __might_sleep+0x95/0x190 [ 52.513610] ? __might_fault+0x188/0x1d0 [ 52.517654] ? do_raw_spin_trylock+0x190/0x190 [ 52.522219] mm_release+0x46d/0x590 [ 52.525824] ? do_raw_spin_trylock+0x190/0x190 [ 52.530390] ? mm_access+0x140/0x140 [ 52.534085] ? _raw_spin_unlock_irq+0x27/0x70 [ 52.538560] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 52.543551] ? trace_hardirqs_on+0xd/0x10 [ 52.547667] ? _raw_spin_unlock_irq+0x27/0x70 [ 52.552138] ? acct_collect+0x637/0x800 [ 52.556095] do_exit+0x481/0x1b00 [ 52.559532] ? mm_update_next_owner+0x930/0x930 [ 52.564181] ? trace_event_raw_event_sched_switch+0x770/0x770 [ 52.570047] ? rcu_note_context_switch+0x710/0x710 [ 52.574957] ? futex_wait_setup+0x14a/0x3d0 [ 52.579263] ? __might_sleep+0x95/0x190 [ 52.583217] ? _cond_resched+0x14/0x30 [ 52.587085] ? perf_trace_lock+0xf1/0x860 [ 52.591207] ? refill_pi_state_cache.part.6+0x2f0/0x2f0 [ 52.596552] ? memset+0x31/0x40 [ 52.599815] ? check_noncircular+0x20/0x20 [ 52.604035] ? futex_wait_setup+0x22e/0x3d0 [ 52.608339] ? futex_wake+0x680/0x680 [ 52.612121] ? find_held_lock+0x39/0x1d0 [ 52.616167] ? lock_downgrade+0x990/0x990 [ 52.620294] ? recalc_sigpending_tsk+0x117/0x150 [ 52.625022] ? recalc_sigpending+0x103/0x160 [ 52.629410] ? recalc_sigpending_tsk+0x150/0x150 [ 52.634146] ? get_signal+0x2b2/0x16d0 [ 52.638017] do_group_exit+0x149/0x400 [ 52.641887] ? __lock_is_held+0xbc/0x140 [ 52.645925] ? SyS_exit+0x30/0x30 [ 52.649358] ? _raw_spin_unlock_irq+0x27/0x70 [ 52.653834] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 52.658830] get_signal+0x73f/0x16d0 [ 52.662521] ? ptrace_notify+0x130/0x130 [ 52.666548] ? vma_wants_writenotify+0x3b0/0x3b0 [ 52.671280] ? perf_trace_lock+0xf1/0x860 [ 52.675412] ? exit_robust_list+0x240/0x240 [ 52.679718] ? lock_downgrade+0x990/0x990 [ 52.683845] ? SyS_brk+0x6f0/0x6f0 [ 52.687368] do_signal+0x94/0x1ee0 [ 52.690890] ? arch_get_unmapped_area+0x750/0x750 [ 52.695710] ? lock_acquire+0x1d5/0x580 [ 52.699658] ? find_held_lock+0x39/0x1d0 [ 52.703685] ? setup_sigcontext+0x7d0/0x7d0 [ 52.707981] ? lock_downgrade+0x990/0x990 [ 52.712111] ? down_write+0x120/0x120 [ 52.715891] ? lock_release+0xd70/0xd70 [ 52.719846] ? trace_event_raw_event_sched_switch+0x770/0x770 [ 52.725707] ? vm_mmap_pgoff+0x1fc/0x280 [ 52.729736] ? exit_to_usermode_loop+0x8c/0x310 [ 52.734370] exit_to_usermode_loop+0x214/0x310 [ 52.738920] ? trace_event_raw_event_sys_exit+0x260/0x260 [ 52.744422] ? kasan_check_write+0x14/0x20 [ 52.748625] syscall_return_slowpath+0x42f/0x510 [ 52.753354] ? prepare_exit_to_usermode+0x2d0/0x2d0 [ 52.758338] ? entry_SYSCALL_64_fastpath+0x91/0xbe [ 52.763235] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 52.768216] ? trace_hardirqs_on_thunk+0x1a/0x1c [ 52.772938] entry_SYSCALL_64_fastpath+0xbc/0xbe [ 52.777659] RIP: 0033:0x4520a9 [ 52.780814] RSP: 002b:00007f44040a6cf8 EFLAGS: 00000246 ORIG_RAX: 00000000000000ca [ 52.788485] RAX: 0000000000000000 RBX: 0000000000718188 RCX: 00000000004520a9 [ 52.795725] RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000718188 [ 52.802964] RBP: 0000000000718160 R08: 0000000000000000 R09: 0000000000000000 [ 52.810197] R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 [ 52.817432] R13: 00007ffd6fec3dbf R14: 00007f44040a79c0 R15: 0000000000000015 [ 52.824671] [ 52.826265] Allocated by task 7310: [ 52.829859] save_stack_trace+0x16/0x20 [ 52.833804] save_stack+0x43/0xd0 [ 52.837222] kasan_kmalloc+0xad/0xe0 [ 52.840901] kmem_cache_alloc_trace+0x136/0x750 [ 52.845540] refill_pi_state_cache.part.6+0xa5/0x2f0 [ 52.850606] futex_requeue+0x1887/0x2370 [ 52.854631] do_futex+0x7f5/0x20d0 [ 52.858137] SyS_futex+0x260/0x390 [ 52.861641] entry_SYSCALL_64_fastpath+0x1f/0xbe [ 52.866356] [ 52.867946] Freed by task 7288: [ 52.871192] save_stack_trace+0x16/0x20 [ 52.875145] save_stack+0x43/0xd0 [ 52.878571] kasan_slab_free+0x71/0xc0 [ 52.882423] kfree+0xca/0x250 [ 52.885494] put_pi_state+0x3f4/0x560 [ 52.889261] unqueue_me_pi+0x4a/0xc0 [ 52.892936] futex_wait_requeue_pi.constprop.19+0xc7f/0x1300 [ 52.898695] do_futex+0x825/0x20d0 [ 52.902199] SyS_futex+0x260/0x390 [ 52.905702] entry_SYSCALL_64_fastpath+0x1f/0xbe [ 52.910417] [ 52.912010] The buggy address belongs to the object at ffff8801c1aeb7c0 [ 52.912010] which belongs to the cache kmalloc-256 of size 256 [ 52.924635] The buggy address is located 40 bytes inside of [ 52.924635] 256-byte region [ffff8801c1aeb7c0, ffff8801c1aeb8c0) [ 52.936386] The buggy address belongs to the page: [ 52.941279] page:ffffea000706bac0 count:1 mapcount:0 mapping:ffff8801c1aeb040 index:0x0 [ 52.949383] flags: 0x200000000000100(slab) [ 52.953582] raw: 0200000000000100 ffff8801c1aeb040 0000000000000000 000000010000000c [ 52.961425] raw: ffffea000706bba0 ffffea000710d760 ffff8801dac007c0 0000000000000000 [ 52.969266] page dumped because: kasan: bad access detected [ 52.974939] [ 52.976533] Memory state around the buggy address: [ 52.981437] ffff8801c1aeb680: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 52.988763] ffff8801c1aeb700: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 52.996083] >ffff8801c1aeb780: fc fc fc fc fc fc fc fc fb fb fb fb fb fb fb fb [ 53.003403] ^ [ 53.010118] ffff8801c1aeb800: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 53.017445] ffff8801c1aeb880: fb fb fb fb fb fb fb fb fc fc fc fc fc fc fc fc [ 53.024765] ================================================================== [ 53.032084] Disabling lock debugging due to kernel taint [ 53.037497] Kernel panic - not syncing: panic_on_warn set ... [ 53.037497] [ 53.044821] CPU: 0 PID: 7291 Comm: syz-executor4 Tainted: G B 4.14.0-rc2-next-20170929+ #32 [ 53.054405] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 53.063723] Call Trace: [ 53.066277] dump_stack+0x194/0x257 [ 53.069867] ? arch_local_irq_restore+0x53/0x53 [ 53.074498] ? vprintk_default+0x28/0x30 [ 53.078525] ? __lock_acquire+0x4000/0x4620 [ 53.082810] panic+0x1e4/0x41c [ 53.085967] ? refcount_error_report+0x214/0x214 [ 53.090690] ? __lock_acquire+0x407b/0x4620 [ 53.094973] kasan_end_report+0x50/0x50 [ 53.098912] kasan_report+0x144/0x340 [ 53.102685] __asan_report_load8_noabort+0x14/0x20 [ 53.107583] __lock_acquire+0x407b/0x4620 [ 53.111695] ? unwind_dump+0x4c0/0x4c0 [ 53.115543] ? __unwind_start+0x169/0x330 [ 53.119655] ? __kernel_text_address+0xd/0x40 [ 53.124116] ? unwind_get_return_address+0x61/0xa0 [ 53.129022] ? debug_check_no_locks_freed+0x3d0/0x3d0 [ 53.134180] ? unwind_get_return_address+0x61/0xa0 [ 53.139075] ? __save_stack_trace+0x61/0xd0 [ 53.143362] ? get_signal+0x73f/0x16d0 [ 53.147213] ? save_stack_trace+0x16/0x20 [ 53.151326] ? __lock_acquire+0x20fd/0x4620 [ 53.155612] ? debug_check_no_locks_freed+0x3d0/0x3d0 [ 53.160766] ? debug_check_no_locks_freed+0x3d0/0x3d0 [ 53.165918] ? save_stack_trace+0x16/0x20 [ 53.170033] ? __lock_acquire+0x20fd/0x4620 [ 53.174317] ? osq_unlock+0x350/0x350 [ 53.178081] ? perf_trace_lock+0xf1/0x860 [ 53.182195] ? pvclock_read_flags+0x160/0x160 [ 53.186654] ? check_noncircular+0x20/0x20 [ 53.190854] ? debug_check_no_locks_freed+0x3d0/0x3d0 [ 53.196014] ? debug_check_no_locks_freed+0x3d0/0x3d0 [ 53.201176] ? perf_trace_lock+0xf1/0x860 [ 53.205288] ? find_held_lock+0x39/0x1d0 [ 53.209315] ? lock_downgrade+0x990/0x990 [ 53.213431] ? check_noncircular+0x20/0x20 [ 53.217629] lock_acquire+0x1d5/0x580 [ 53.221394] ? exit_pi_state_list+0x369/0x7a0 [ 53.225854] ? lock_release+0xd70/0xd70 [ 53.229790] ? do_raw_spin_trylock+0x190/0x190 [ 53.234333] ? find_held_lock+0x39/0x1d0 [ 53.238362] _raw_spin_lock_irq+0x5e/0x80 [ 53.242473] ? exit_pi_state_list+0x369/0x7a0 [ 53.246930] exit_pi_state_list+0x369/0x7a0 [ 53.251220] ? futex_wait_requeue_pi.constprop.19+0x1300/0x1300 [ 53.257241] ? lock_release+0xd70/0xd70 [ 53.261178] ? trace_event_raw_event_sched_switch+0x770/0x770 [ 53.267028] ? _raw_spin_unlock_irqrestore+0x31/0xba [ 53.272095] ? __might_sleep+0x95/0x190 [ 53.276036] ? __might_fault+0x188/0x1d0 [ 53.280071] ? do_raw_spin_trylock+0x190/0x190 [ 53.284617] mm_release+0x46d/0x590 [ 53.288206] ? do_raw_spin_trylock+0x190/0x190 [ 53.292753] ? mm_access+0x140/0x140 [ 53.296431] ? _raw_spin_unlock_irq+0x27/0x70 [ 53.300898] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 53.305877] ? trace_hardirqs_on+0xd/0x10 [ 53.309988] ? _raw_spin_unlock_irq+0x27/0x70 [ 53.314454] ? acct_collect+0x637/0x800 [ 53.318397] do_exit+0x481/0x1b00 [ 53.321813] ? mm_update_next_owner+0x930/0x930 [ 53.326446] ? trace_event_raw_event_sched_switch+0x770/0x770 [ 53.332298] ? rcu_note_context_switch+0x710/0x710 [ 53.337189] ? futex_wait_setup+0x14a/0x3d0 [ 53.341477] ? __might_sleep+0x95/0x190 [ 53.345427] ? _cond_resched+0x14/0x30 [ 53.349282] ? perf_trace_lock+0xf1/0x860 [ 53.353397] ? refill_pi_state_cache.part.6+0x2f0/0x2f0 [ 53.358725] ? memset+0x31/0x40 [ 53.361970] ? check_noncircular+0x20/0x20 [ 53.366169] ? futex_wait_setup+0x22e/0x3d0 [ 53.370456] ? futex_wake+0x680/0x680 [ 53.374223] ? find_held_lock+0x39/0x1d0 [ 53.378251] ? lock_downgrade+0x990/0x990 [ 53.382365] ? recalc_sigpending_tsk+0x117/0x150