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.15.203' (ECDSA) to the list of known hosts. 2017/09/30 01:59:03 parsed 1 programs 2017/09/30 01:59:03 executed programs: 0 2017/09/30 01:59:08 executed programs: 307 syzkaller login: [ 30.993292] ================================================================== [ 30.994829] BUG: KASAN: use-after-free in __lock_acquire+0x407b/0x4620 [ 30.995717] Read of size 8 at addr ffff8801cc02b0a8 by task syz-executor2/4820 [ 30.996681] [ 30.996916] CPU: 1 PID: 4820 Comm: syz-executor2 Not tainted 4.14.0-rc2-next-20170929+ #32 [ 30.998096] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 30.999320] Call Trace: [ 30.999709] dump_stack+0x194/0x257 [ 31.000200] ? arch_local_irq_restore+0x53/0x53 [ 31.000857] ? show_regs_print_info+0x65/0x65 [ 31.001483] ? __kernel_text_address+0xd/0x40 [ 31.002086] ? __lock_acquire+0x407b/0x4620 [ 31.002664] print_address_description+0x73/0x250 [ 31.003308] ? __lock_acquire+0x407b/0x4620 [ 31.003888] kasan_report+0x25b/0x340 [ 31.004423] __asan_report_load8_noabort+0x14/0x20 [ 31.005099] __lock_acquire+0x407b/0x4620 [ 31.005656] ? unwind_dump+0x4c0/0x4c0 [ 31.006179] ? __unwind_start+0x169/0x330 [ 31.006755] ? __kernel_text_address+0xd/0x40 [ 31.007372] ? unwind_get_return_address+0x61/0xa0 [ 31.008040] ? debug_check_no_locks_freed+0x3d0/0x3d0 [ 31.008733] ? unwind_get_return_address+0x61/0xa0 [ 31.009395] ? __save_stack_trace+0x61/0xd0 [ 31.009979] ? get_signal+0x73f/0x16d0 [ 31.010508] ? save_stack_trace+0x16/0x20 [ 31.011071] ? __lock_acquire+0x20fd/0x4620 [ 31.011656] ? debug_check_no_locks_freed+0x3d0/0x3d0 [ 31.012580] ? debug_check_no_locks_freed+0x3d0/0x3d0 [ 31.013568] ? save_stack_trace+0x16/0x20 [ 31.017702] ? __lock_acquire+0x20fd/0x4620 [ 31.022012] ? osq_unlock+0x350/0x350 [ 31.025798] ? save_stack_trace+0x16/0x20 [ 31.029939] ? lock_release+0xd70/0xd70 [ 31.033909] ? check_noncircular+0x20/0x20 [ 31.038132] ? debug_check_no_locks_freed+0x3d0/0x3d0 [ 31.043306] ? debug_check_no_locks_freed+0x3d0/0x3d0 [ 31.048477] ? find_held_lock+0x39/0x1d0 [ 31.052526] ? lock_downgrade+0x990/0x990 [ 31.056667] ? check_noncircular+0x20/0x20 [ 31.060889] lock_acquire+0x1d5/0x580 [ 31.064675] ? exit_pi_state_list+0x369/0x7a0 [ 31.069158] ? lock_release+0xd70/0xd70 [ 31.073107] ? do_raw_spin_trylock+0x190/0x190 [ 31.077675] ? find_held_lock+0x39/0x1d0 [ 31.081736] _raw_spin_lock_irq+0x5e/0x80 [ 31.085868] ? exit_pi_state_list+0x369/0x7a0 [ 31.090348] exit_pi_state_list+0x369/0x7a0 [ 31.094654] ? futex_wait_requeue_pi.constprop.19+0x1300/0x1300 [ 31.100688] ? lock_release+0xd70/0xd70 [ 31.104645] ? trace_event_raw_event_sched_switch+0x770/0x770 [ 31.110524] ? _raw_spin_unlock_irqrestore+0x31/0xba [ 31.115629] ? __might_sleep+0x95/0x190 [ 31.119596] ? __might_fault+0x188/0x1d0 [ 31.123646] ? do_raw_spin_trylock+0x190/0x190 [ 31.128232] mm_release+0x46d/0x590 [ 31.131847] ? do_raw_spin_trylock+0x190/0x190 [ 31.136410] ? mm_access+0x140/0x140 [ 31.140111] ? _raw_spin_unlock_irq+0x27/0x70 [ 31.144603] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 31.149615] ? trace_hardirqs_on+0xd/0x10 [ 31.153760] ? _raw_spin_unlock_irq+0x27/0x70 [ 31.158249] ? acct_collect+0x637/0x800 [ 31.162232] do_exit+0x481/0x1b00 [ 31.165690] ? mm_update_next_owner+0x930/0x930 [ 31.170359] ? trace_event_raw_event_sched_switch+0x770/0x770 [ 31.176249] ? find_held_lock+0x39/0x1d0 [ 31.180318] ? refill_pi_state_cache.part.6+0x2f0/0x2f0 [ 31.185677] ? check_noncircular+0x20/0x20 [ 31.189904] ? fault_in_user_writeable+0x90/0x90 [ 31.194657] ? futex_wake+0x680/0x680 [ 31.198447] ? find_held_lock+0x39/0x1d0 [ 31.202490] ? lock_downgrade+0x990/0x990 [ 31.206630] ? recalc_sigpending_tsk+0x117/0x150 [ 31.211385] ? recalc_sigpending+0x103/0x160 [ 31.215781] ? recalc_sigpending_tsk+0x150/0x150 [ 31.220520] ? get_signal+0x2b2/0x16d0 [ 31.224406] do_group_exit+0x149/0x400 [ 31.228279] ? __lock_is_held+0xbc/0x140 [ 31.232324] ? SyS_exit+0x30/0x30 [ 31.235769] ? _raw_spin_unlock_irq+0x27/0x70 [ 31.240259] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 31.245273] get_signal+0x73f/0x16d0 [ 31.248983] ? ptrace_notify+0x130/0x130 [ 31.253032] ? find_held_lock+0x39/0x1d0 [ 31.257085] ? exit_robust_list+0x240/0x240 [ 31.261398] ? __fget+0xbb/0x580 [ 31.264761] do_signal+0x94/0x1ee0 [ 31.268285] ? lock_release+0xd70/0xd70 [ 31.272247] ? find_held_lock+0x39/0x1d0 [ 31.276295] ? setup_sigcontext+0x7d0/0x7d0 [ 31.280605] ? lock_downgrade+0x990/0x990 [ 31.284755] ? lock_release+0xd70/0xd70 [ 31.288722] ? trace_event_raw_event_sched_switch+0x770/0x770 [ 31.294594] ? lock_acquire+0x1d5/0x580 [ 31.298557] ? finish_task_switch+0x1aa/0x740 [ 31.303034] ? exit_to_usermode_loop+0x8c/0x310 [ 31.307681] exit_to_usermode_loop+0x214/0x310 [ 31.312237] ? trace_event_raw_event_sys_exit+0x260/0x260 [ 31.317747] ? kasan_check_write+0x14/0x20 [ 31.321954] syscall_return_slowpath+0x42f/0x510 [ 31.326680] ? prepare_exit_to_usermode+0x2d0/0x2d0 [ 31.331671] ? entry_SYSCALL_64_fastpath+0x91/0xbe [ 31.336579] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 31.341571] ? trace_hardirqs_on_thunk+0x1a/0x1c [ 31.346298] entry_SYSCALL_64_fastpath+0xbc/0xbe [ 31.351026] RIP: 0033:0x4520a9 [ 31.354188] RSP: 002b:00007f1afae77cf8 EFLAGS: 00000246 ORIG_RAX: 00000000000000ca [ 31.361865] RAX: fffffffffffffe00 RBX: 0000000000718188 RCX: 00000000004520a9 [ 31.369104] RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000718188 [ 31.376348] RBP: 0000000000718160 R08: 0000000000000000 R09: 0000000000000000 [ 31.383589] R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 [ 31.390827] R13: 00007ffef042305f R14: 00007f1afae789c0 R15: 0000000000000006 [ 31.398077] [ 31.399680] Allocated by task 4832: [ 31.403280] save_stack_trace+0x16/0x20 [ 31.407223] save_stack+0x43/0xd0 [ 31.410644] kasan_kmalloc+0xad/0xe0 [ 31.414324] kmem_cache_alloc_trace+0x136/0x750 [ 31.418962] refill_pi_state_cache.part.6+0xa5/0x2f0 [ 31.424036] futex_requeue+0x1887/0x2370 [ 31.428072] do_futex+0x7f5/0x20d0 [ 31.431584] SyS_futex+0x260/0x390 [ 31.435092] entry_SYSCALL_64_fastpath+0x1f/0xbe [ 31.439811] [ 31.441404] Freed by task 4812: [ 31.444654] save_stack_trace+0x16/0x20 [ 31.448598] save_stack+0x43/0xd0 [ 31.452034] kasan_slab_free+0x71/0xc0 [ 31.455899] kfree+0xca/0x250 [ 31.458976] put_pi_state+0x3f4/0x560 [ 31.462747] unqueue_me_pi+0x4a/0xc0 [ 31.466435] futex_wait_requeue_pi.constprop.19+0xc7f/0x1300 [ 31.472215] do_futex+0x825/0x20d0 [ 31.475734] SyS_futex+0x260/0x390 [ 31.479257] entry_SYSCALL_64_fastpath+0x1f/0xbe [ 31.484005] [ 31.485609] The buggy address belongs to the object at ffff8801cc02b080 [ 31.485609] which belongs to the cache kmalloc-256 of size 256 [ 31.498229] The buggy address is located 40 bytes inside of [ 31.498229] 256-byte region [ffff8801cc02b080, ffff8801cc02b180) [ 31.509978] The buggy address belongs to the page: [ 31.514874] page:ffffea0007300ac0 count:1 mapcount:0 mapping:ffff8801cc02b080 index:0x0 [ 31.522980] flags: 0x200000000000100(slab) [ 31.527181] raw: 0200000000000100 ffff8801cc02b080 0000000000000000 000000010000000c [ 31.535036] raw: ffffea0007349ba0 ffffea0007231960 ffff8801dac007c0 0000000000000000 [ 31.542882] page dumped because: kasan: bad access detected [ 31.548553] [ 31.550148] Memory state around the buggy address: [ 31.555045] ffff8801cc02af80: fb fb fb fb fc fc fc fc fc fc fc fc fc fc fc fc [ 31.562367] ffff8801cc02b000: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 31.569689] >ffff8801cc02b080: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 31.577012] ^ [ 31.581649] ffff8801cc02b100: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 31.588971] ffff8801cc02b180: fc fc fc fc fc fc fc fc fb fb fb fb fb fb fb fb [ 31.596291] ================================================================== [ 31.603613] Disabling lock debugging due to kernel taint [ 31.609027] Kernel panic - not syncing: panic_on_warn set ... [ 31.609027] [ 31.616355] CPU: 1 PID: 4820 Comm: syz-executor2 Tainted: G B 4.14.0-rc2-next-20170929+ #32 [ 31.625934] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 31.635253] Call Trace: [ 31.637819] dump_stack+0x194/0x257 [ 31.641415] ? arch_local_irq_restore+0x53/0x53 [ 31.646051] ? vprintk_default+0x28/0x30 [ 31.650081] ? __lock_acquire+0x4000/0x4620 [ 31.654372] panic+0x1e4/0x41c [ 31.657528] ? refcount_error_report+0x214/0x214 [ 31.662251] ? __lock_acquire+0x407b/0x4620 [ 31.666539] kasan_end_report+0x50/0x50 [ 31.670477] kasan_report+0x144/0x340 [ 31.674244] __asan_report_load8_noabort+0x14/0x20 [ 31.679139] __lock_acquire+0x407b/0x4620 [ 31.683255] ? unwind_dump+0x4c0/0x4c0 [ 31.687105] ? __unwind_start+0x169/0x330 [ 31.691219] ? __kernel_text_address+0xd/0x40 [ 31.695679] ? unwind_get_return_address+0x61/0xa0 [ 31.700575] ? debug_check_no_locks_freed+0x3d0/0x3d0 [ 31.705729] ? unwind_get_return_address+0x61/0xa0 [ 31.710624] ? __save_stack_trace+0x61/0xd0 [ 31.714912] ? get_signal+0x73f/0x16d0 [ 31.718763] ? save_stack_trace+0x16/0x20 [ 31.722877] ? __lock_acquire+0x20fd/0x4620 [ 31.727163] ? debug_check_no_locks_freed+0x3d0/0x3d0 [ 31.732318] ? debug_check_no_locks_freed+0x3d0/0x3d0 [ 31.737472] ? save_stack_trace+0x16/0x20 [ 31.741584] ? __lock_acquire+0x20fd/0x4620 [ 31.745870] ? osq_unlock+0x350/0x350 [ 31.749632] ? save_stack_trace+0x16/0x20 [ 31.753746] ? lock_release+0xd70/0xd70 [ 31.757686] ? check_noncircular+0x20/0x20 [ 31.761884] ? debug_check_no_locks_freed+0x3d0/0x3d0 [ 31.767041] ? debug_check_no_locks_freed+0x3d0/0x3d0 [ 31.772202] ? find_held_lock+0x39/0x1d0 [ 31.776230] ? lock_downgrade+0x990/0x990 [ 31.780342] ? check_noncircular+0x20/0x20 [ 31.784540] lock_acquire+0x1d5/0x580 [ 31.788306] ? exit_pi_state_list+0x369/0x7a0 [ 31.792769] ? lock_release+0xd70/0xd70 [ 31.796706] ? do_raw_spin_trylock+0x190/0x190 [ 31.801251] ? find_held_lock+0x39/0x1d0 [ 31.805292] _raw_spin_lock_irq+0x5e/0x80 [ 31.809404] ? exit_pi_state_list+0x369/0x7a0 [ 31.813864] exit_pi_state_list+0x369/0x7a0 [ 31.818154] ? futex_wait_requeue_pi.constprop.19+0x1300/0x1300 [ 31.824177] ? lock_release+0xd70/0xd70 [ 31.828126] ? trace_event_raw_event_sched_switch+0x770/0x770 [ 31.833974] ? _raw_spin_unlock_irqrestore+0x31/0xba [ 31.839044] ? __might_sleep+0x95/0x190 [ 31.842984] ? __might_fault+0x188/0x1d0 [ 31.847016] ? do_raw_spin_trylock+0x190/0x190 [ 31.851566] mm_release+0x46d/0x590 [ 31.855158] ? do_raw_spin_trylock+0x190/0x190 [ 31.859704] ? mm_access+0x140/0x140 [ 31.863382] ? _raw_spin_unlock_irq+0x27/0x70 [ 31.867842] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 31.872822] ? trace_hardirqs_on+0xd/0x10 [ 31.876933] ? _raw_spin_unlock_irq+0x27/0x70 [ 31.881394] ? acct_collect+0x637/0x800 [ 31.885333] do_exit+0x481/0x1b00 [ 31.888753] ? mm_update_next_owner+0x930/0x930 [ 31.893387] ? trace_event_raw_event_sched_switch+0x770/0x770 [ 31.899237] ? find_held_lock+0x39/0x1d0 [ 31.903266] ? refill_pi_state_cache.part.6+0x2f0/0x2f0 [ 31.908593] ? check_noncircular+0x20/0x20 [ 31.912795] ? fault_in_user_writeable+0x90/0x90 [ 31.917518] ? futex_wake+0x680/0x680 [ 31.921282] ? find_held_lock+0x39/0x1d0 [ 31.925308] ? lock_downgrade+0x990/0x990 [ 31.929419] ? recalc_sigpending_tsk+0x117/0x150 [ 31.934138] ? recalc_sigpending+0x103/0x160 [ 31.938509] ? recalc_sigpending_tsk+0x150/0x150 [ 31.943227] ? get_signal+0x2b2/0x16d0 [ 31.947083] do_group_exit+0x149/0x400 [ 31.950936] ? __lock_is_held+0xbc/0x140 [ 31.954959] ? SyS_exit+0x30/0x30 [ 31.958377] ? _raw_spin_unlock_irq+0x27/0x70 [ 31.962836] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 31.967819] get_signal+0x73f/0x16d0 [ 31.971497] ? ptrace_notify+0x130/0x130 [ 31.975524] ? find_held_lock+0x39/0x1d0 [ 31.979553] ? exit_robust_list+0x240/0x240 [ 31.983840] ? __fget+0xbb/0x580 [ 31.987176] do_signal+0x94/0x1ee0 [ 31.990684] ? lock_release+0xd70/0xd70