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-3,10.128.15.234' (ECDSA) to the list of known hosts. 2017/09/30 19:46:15 parsed 1 programs 2017/09/30 19:46:15 executed programs: 0 syzkaller login: [ 33.421344] ================================================================== [ 33.422450] BUG: KASAN: use-after-free in __lock_acquire+0x407b/0x4620 [ 33.423333] Read of size 8 at addr ffff8801cafec968 by task syz-executor6/3903 [ 33.424344] [ 33.424587] CPU: 0 PID: 3903 Comm: syz-executor6 Not tainted 4.14.0-rc2-next-20170929+ #32 [ 33.425691] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 33.426951] Call Trace: [ 33.427318] dump_stack+0x194/0x257 [ 33.427820] ? arch_local_irq_restore+0x53/0x53 [ 33.428453] ? show_regs_print_info+0x65/0x65 [ 33.429077] ? __kernel_text_address+0xd/0x40 [ 33.429708] ? __lock_acquire+0x407b/0x4620 [ 33.430334] print_address_description+0x73/0x250 [ 33.431008] ? __lock_acquire+0x407b/0x4620 [ 33.431614] kasan_report+0x25b/0x340 [ 33.432160] __asan_report_load8_noabort+0x14/0x20 [ 33.432844] __lock_acquire+0x407b/0x4620 [ 33.433411] ? unwind_dump+0x4c0/0x4c0 [ 33.433942] ? __unwind_start+0x169/0x330 [ 33.434503] ? __kernel_text_address+0xd/0x40 [ 33.435122] ? unwind_get_return_address+0x61/0xa0 [ 33.435785] ? debug_check_no_locks_freed+0x3d0/0x3d0 [ 33.436481] ? unwind_get_return_address+0x61/0xa0 [ 33.437199] ? __save_stack_trace+0x61/0xd0 [ 33.437786] ? get_signal+0x73f/0x16d0 [ 33.438309] ? save_stack_trace+0x16/0x20 [ 33.438882] ? __lock_acquire+0x20fd/0x4620 [ 33.439462] ? debug_check_no_locks_freed+0x3d0/0x3d0 [ 33.440162] ? debug_check_no_locks_freed+0x3d0/0x3d0 [ 33.440860] ? save_stack_trace+0x16/0x20 [ 33.441413] ? __lock_acquire+0x20fd/0x4620 [ 33.445495] ? osq_unlock+0x350/0x350 [ 33.449277] ? perf_trace_lock+0xf1/0x860 [ 33.453405] ? check_noncircular+0x20/0x20 [ 33.457614] ? check_noncircular+0x20/0x20 [ 33.461819] ? debug_check_no_locks_freed+0x3d0/0x3d0 [ 33.466976] ? debug_check_no_locks_freed+0x3d0/0x3d0 [ 33.472142] ? perf_trace_lock+0xf1/0x860 [ 33.476276] ? find_held_lock+0x39/0x1d0 [ 33.480318] ? lock_downgrade+0x990/0x990 [ 33.484434] ? check_noncircular+0x20/0x20 [ 33.488633] lock_acquire+0x1d5/0x580 [ 33.492401] ? exit_pi_state_list+0x369/0x7a0 [ 33.496867] ? lock_release+0xd70/0xd70 [ 33.500817] ? do_raw_spin_trylock+0x190/0x190 [ 33.505379] ? find_held_lock+0x39/0x1d0 [ 33.509422] _raw_spin_lock_irq+0x5e/0x80 [ 33.513538] ? exit_pi_state_list+0x369/0x7a0 [ 33.518001] exit_pi_state_list+0x369/0x7a0 [ 33.522298] ? futex_wait_requeue_pi.constprop.19+0x1300/0x1300 [ 33.528330] ? lock_release+0xd70/0xd70 [ 33.532279] ? trace_event_raw_event_sched_switch+0x770/0x770 [ 33.538135] ? _raw_spin_unlock_irqrestore+0x31/0xba [ 33.543212] ? __might_sleep+0x95/0x190 [ 33.547154] ? __might_fault+0x188/0x1d0 [ 33.551181] ? do_raw_spin_trylock+0x190/0x190 [ 33.555735] mm_release+0x46d/0x590 [ 33.559333] ? do_raw_spin_trylock+0x190/0x190 [ 33.563886] ? mm_access+0x140/0x140 [ 33.567568] ? _raw_spin_unlock_irq+0x27/0x70 [ 33.572032] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 33.577021] ? trace_hardirqs_on+0xd/0x10 [ 33.581141] ? _raw_spin_unlock_irq+0x27/0x70 [ 33.585614] ? acct_collect+0x637/0x800 [ 33.589553] do_exit+0x481/0x1b00 [ 33.592971] ? mm_update_next_owner+0x930/0x930 [ 33.597613] ? trace_event_raw_event_sched_switch+0x770/0x770 [ 33.603477] ? rcu_note_context_switch+0x710/0x710 [ 33.608377] ? futex_wait_setup+0x14a/0x3d0 [ 33.612664] ? __might_sleep+0x95/0x190 [ 33.616612] ? _cond_resched+0x14/0x30 [ 33.620468] ? perf_trace_lock+0xf1/0x860 [ 33.624587] ? refill_pi_state_cache.part.6+0x2f0/0x2f0 [ 33.629915] ? memset+0x31/0x40 [ 33.633161] ? check_noncircular+0x20/0x20 [ 33.637364] ? futex_wait_setup+0x22e/0x3d0 [ 33.641660] ? futex_wake+0x680/0x680 [ 33.645431] ? find_held_lock+0x39/0x1d0 [ 33.649468] ? lock_downgrade+0x990/0x990 [ 33.653588] ? recalc_sigpending_tsk+0x117/0x150 [ 33.658308] ? recalc_sigpending+0x103/0x160 [ 33.662693] ? recalc_sigpending_tsk+0x150/0x150 [ 33.667422] ? get_signal+0x2b2/0x16d0 [ 33.671281] do_group_exit+0x149/0x400 [ 33.675137] ? __lock_is_held+0xbc/0x140 [ 33.679164] ? SyS_exit+0x30/0x30 [ 33.682585] ? _raw_spin_unlock_irq+0x27/0x70 [ 33.687044] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 33.692028] get_signal+0x73f/0x16d0 [ 33.695709] ? ptrace_notify+0x130/0x130 [ 33.699735] ? vma_wants_writenotify+0x3b0/0x3b0 [ 33.704464] ? perf_trace_lock+0xf1/0x860 [ 33.708582] ? exit_robust_list+0x240/0x240 [ 33.712869] ? lock_downgrade+0x990/0x990 [ 33.716984] ? SyS_brk+0x6f0/0x6f0 [ 33.720494] do_signal+0x94/0x1ee0 [ 33.724003] ? arch_get_unmapped_area+0x750/0x750 [ 33.728813] ? lock_acquire+0x1d5/0x580 [ 33.732754] ? find_held_lock+0x39/0x1d0 [ 33.736793] ? setup_sigcontext+0x7d0/0x7d0 [ 33.741082] ? lock_downgrade+0x990/0x990 [ 33.745199] ? down_write+0x120/0x120 [ 33.748964] ? lock_release+0xd70/0xd70 [ 33.752904] ? trace_event_raw_event_sched_switch+0x770/0x770 [ 33.758753] ? vm_mmap_pgoff+0x1fc/0x280 [ 33.762778] ? exit_to_usermode_loop+0x8c/0x310 [ 33.767414] exit_to_usermode_loop+0x214/0x310 [ 33.771961] ? trace_event_raw_event_sys_exit+0x260/0x260 [ 33.777461] ? kasan_check_write+0x14/0x20 [ 33.781662] syscall_return_slowpath+0x42f/0x510 [ 33.786387] ? prepare_exit_to_usermode+0x2d0/0x2d0 [ 33.791371] ? entry_SYSCALL_64_fastpath+0x91/0xbe [ 33.796266] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 33.801245] ? trace_hardirqs_on_thunk+0x1a/0x1c [ 33.805966] entry_SYSCALL_64_fastpath+0xbc/0xbe [ 33.810686] RIP: 0033:0x4520a9 [ 33.813842] RSP: 002b:00007f1a73d11cf8 EFLAGS: 00000246 ORIG_RAX: 00000000000000ca [ 33.821518] RAX: 0000000000000000 RBX: 0000000000718188 RCX: 00000000004520a9 [ 33.828751] RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000718188 [ 33.835986] RBP: 0000000000718160 R08: 0000000000000000 R09: 0000000000000000 [ 33.843221] R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 [ 33.850456] R13: 00007fff30b565ff R14: 00007f1a73d129c0 R15: 0000000000000013 [ 33.857697] [ 33.859292] Allocated by task 3920: [ 33.862887] save_stack_trace+0x16/0x20 [ 33.866824] save_stack+0x43/0xd0 [ 33.870240] kasan_kmalloc+0xad/0xe0 [ 33.873916] kmem_cache_alloc_trace+0x136/0x750 [ 33.878552] refill_pi_state_cache.part.6+0xa5/0x2f0 [ 33.883618] futex_requeue+0x1887/0x2370 [ 33.887643] do_futex+0x7f5/0x20d0 [ 33.891147] SyS_futex+0x260/0x390 [ 33.894650] entry_SYSCALL_64_fastpath+0x1f/0xbe [ 33.899366] [ 33.900957] Freed by task 3896: [ 33.904201] save_stack_trace+0x16/0x20 [ 33.908138] save_stack+0x43/0xd0 [ 33.911555] kasan_slab_free+0x71/0xc0 [ 33.915406] kfree+0xca/0x250 [ 33.918478] put_pi_state+0x3f4/0x560 [ 33.922240] unqueue_me_pi+0x4a/0xc0 [ 33.925918] futex_wait_requeue_pi.constprop.19+0xc7f/0x1300 [ 33.931677] do_futex+0x825/0x20d0 [ 33.935180] SyS_futex+0x260/0x390 [ 33.938684] entry_SYSCALL_64_fastpath+0x1f/0xbe [ 33.943399] [ 33.944994] The buggy address belongs to the object at ffff8801cafec940 [ 33.944994] which belongs to the cache kmalloc-256 of size 256 [ 33.957616] The buggy address is located 40 bytes inside of [ 33.957616] 256-byte region [ffff8801cafec940, ffff8801cafeca40) [ 33.969366] The buggy address belongs to the page: [ 33.974258] page:ffffea00072bfb00 count:1 mapcount:0 mapping:ffff8801cafec080 index:0x0 [ 33.982362] flags: 0x200000000000100(slab) [ 33.986568] raw: 0200000000000100 ffff8801cafec080 0000000000000000 000000010000000c [ 33.994415] raw: ffffea00072bfee0 ffffea00072f4f20 ffff8801dac007c0 0000000000000000 [ 34.002257] page dumped because: kasan: bad access detected [ 34.007927] [ 34.009518] Memory state around the buggy address: [ 34.014410] ffff8801cafec800: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 34.021735] ffff8801cafec880: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 34.029057] >ffff8801cafec900: fc fc fc fc fc fc fc fc fb fb fb fb fb fb fb fb [ 34.036378] ^ [ 34.043092] ffff8801cafec980: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 34.050416] ffff8801cafeca00: fb fb fb fb fb fb fb fb fc fc fc fc fc fc fc fc [ 34.057735] ================================================================== [ 34.065054] Disabling lock debugging due to kernel taint [ 34.070468] Kernel panic - not syncing: panic_on_warn set ... [ 34.070468] [ 34.077799] CPU: 0 PID: 3903 Comm: syz-executor6 Tainted: G B 4.14.0-rc2-next-20170929+ #32 [ 34.087378] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 34.096694] Call Trace: [ 34.099254] dump_stack+0x194/0x257 [ 34.102846] ? arch_local_irq_restore+0x53/0x53 [ 34.107479] ? vprintk_default+0x28/0x30 [ 34.111510] ? __lock_acquire+0x4000/0x4620 [ 34.115797] panic+0x1e4/0x41c [ 34.118953] ? refcount_error_report+0x214/0x214 [ 34.123676] ? __lock_acquire+0x407b/0x4620 [ 34.127961] kasan_end_report+0x50/0x50 [ 34.131901] kasan_report+0x144/0x340 [ 34.135668] __asan_report_load8_noabort+0x14/0x20 [ 34.140563] __lock_acquire+0x407b/0x4620 [ 34.144678] ? unwind_dump+0x4c0/0x4c0 [ 34.148529] ? __unwind_start+0x169/0x330 [ 34.152641] ? __kernel_text_address+0xd/0x40 [ 34.157103] ? unwind_get_return_address+0x61/0xa0 [ 34.161999] ? debug_check_no_locks_freed+0x3d0/0x3d0 [ 34.167156] ? unwind_get_return_address+0x61/0xa0 [ 34.172050] ? __save_stack_trace+0x61/0xd0 [ 34.176339] ? get_signal+0x73f/0x16d0 [ 34.180190] ? save_stack_trace+0x16/0x20 [ 34.184304] ? __lock_acquire+0x20fd/0x4620 [ 34.188591] ? debug_check_no_locks_freed+0x3d0/0x3d0 [ 34.193750] ? debug_check_no_locks_freed+0x3d0/0x3d0 [ 34.198903] ? save_stack_trace+0x16/0x20 [ 34.203016] ? __lock_acquire+0x20fd/0x4620 [ 34.207304] ? osq_unlock+0x350/0x350 [ 34.211070] ? perf_trace_lock+0xf1/0x860 [ 34.215181] ? check_noncircular+0x20/0x20 [ 34.219380] ? check_noncircular+0x20/0x20 [ 34.223581] ? debug_check_no_locks_freed+0x3d0/0x3d0 [ 34.228735] ? debug_check_no_locks_freed+0x3d0/0x3d0 [ 34.233892] ? perf_trace_lock+0xf1/0x860 [ 34.238007] ? find_held_lock+0x39/0x1d0 [ 34.242037] ? lock_downgrade+0x990/0x990 [ 34.246150] ? check_noncircular+0x20/0x20 [ 34.250352] lock_acquire+0x1d5/0x580 [ 34.254116] ? exit_pi_state_list+0x369/0x7a0 [ 34.258578] ? lock_release+0xd70/0xd70 [ 34.262514] ? do_raw_spin_trylock+0x190/0x190 [ 34.267059] ? find_held_lock+0x39/0x1d0 [ 34.271089] _raw_spin_lock_irq+0x5e/0x80 [ 34.275202] ? exit_pi_state_list+0x369/0x7a0 [ 34.279662] exit_pi_state_list+0x369/0x7a0 [ 34.283952] ? futex_wait_requeue_pi.constprop.19+0x1300/0x1300 [ 34.289975] ? lock_release+0xd70/0xd70 [ 34.293914] ? trace_event_raw_event_sched_switch+0x770/0x770 [ 34.299761] ? _raw_spin_unlock_irqrestore+0x31/0xba [ 34.304831] ? __might_sleep+0x95/0x190 [ 34.308770] ? __might_fault+0x188/0x1d0 [ 34.312799] ? do_raw_spin_trylock+0x190/0x190 [ 34.317349] mm_release+0x46d/0x590 [ 34.320941] ? do_raw_spin_trylock+0x190/0x190 [ 34.325486] ? mm_access+0x140/0x140 [ 34.329163] ? _raw_spin_unlock_irq+0x27/0x70 [ 34.333624] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 34.338608] ? trace_hardirqs_on+0xd/0x10 [ 34.342718] ? _raw_spin_unlock_irq+0x27/0x70 [ 34.347177] ? acct_collect+0x637/0x800 [ 34.351114] do_exit+0x481/0x1b00 [ 34.354536] ? mm_update_next_owner+0x930/0x930 [ 34.359172] ? trace_event_raw_event_sched_switch+0x770/0x770 [ 34.365024] ? rcu_note_context_switch+0x710/0x710 [ 34.369919] ? futex_wait_setup+0x14a/0x3d0 [ 34.374203] ? __might_sleep+0x95/0x190 [ 34.378142] ? _cond_resched+0x14/0x30 [ 34.381993] ? perf_trace_lock+0xf1/0x860 [ 34.386107] ? refill_pi_state_cache.part.6+0x2f0/0x2f0 [ 34.391434] ? memset+0x31/0x40 [ 34.394678] ? check_noncircular+0x20/0x20 [ 34.398879] ? futex_wait_setup+0x22e/0x3d0 [ 34.403165] ? futex_wake+0x680/0x680 [ 34.406930] ? find_held_lock+0x39/0x1d0 [ 34.410959] ? lock_downgrade+0x990/0x990 [ 34.415072] ? recalc_sigpending_tsk+0x117/0x150 [ 34.419794] ? recalc_sigpending+0x103/0x160