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-kasan-gce-386-2,10.128.0.15' (ECDSA) to the list of known hosts. 2017/10/04 13:00:29 parsed 1 programs 2017/10/04 13:00:29 executed programs: 0 syzkaller login: [ 136.322407] ================================================================== [ 136.323557] BUG: KASAN: use-after-free in __lock_acquire+0x407b/0x4620 [ 136.324432] Read of size 8 at addr ffff8801cb8ff7e8 by task syz-executor1/3761 [ 136.325420] [ 136.325653] CPU: 1 PID: 3761 Comm: syz-executor1 Not tainted 4.14.0-rc3+ #24 [ 136.326614] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 136.327861] Call Trace: [ 136.328217] dump_stack+0x194/0x257 [ 136.328704] ? arch_local_irq_restore+0x53/0x53 [ 136.329338] ? show_regs_print_info+0x65/0x65 [ 136.329937] ? __kernel_text_address+0xd/0x40 [ 136.330534] ? __lock_acquire+0x407b/0x4620 [ 136.331146] print_address_description+0x73/0x250 [ 136.331787] ? __lock_acquire+0x407b/0x4620 [ 136.332377] kasan_report+0x25b/0x340 [ 136.332884] __asan_report_load8_noabort+0x14/0x20 [ 136.333536] __lock_acquire+0x407b/0x4620 [ 136.334089] ? unwind_dump+0x4c0/0x4c0 [ 136.334609] ? __kernel_text_address+0xd/0x40 [ 136.335204] ? unwind_get_return_address+0x61/0xa0 [ 136.335859] ? debug_check_no_locks_freed+0x3d0/0x3d0 [ 136.336544] ? __save_stack_trace+0x61/0xd0 [ 136.337118] ? get_signal+0x73f/0x16d0 [ 136.337636] ? save_stack_trace+0x16/0x20 [ 136.338188] ? __lock_acquire+0x20fd/0x4620 [ 136.338763] ? debug_check_no_locks_freed+0x3d0/0x3d0 [ 136.339450] ? debug_check_no_locks_freed+0x3d0/0x3d0 [ 136.340136] ? save_stack_trace+0x16/0x20 [ 136.340688] ? __lock_acquire+0x20fd/0x4620 [ 136.341263] ? osq_unlock+0x350/0x350 [ 136.341775] ? save_stack_trace+0x16/0x20 [ 136.342343] ? check_noncircular+0x20/0x20 [ 136.345430] ? debug_check_no_locks_freed+0x3d0/0x3d0 [ 136.350584] ? debug_check_no_locks_freed+0x3d0/0x3d0 [ 136.355746] ? __unwind_start+0x169/0x330 [ 136.359859] ? find_held_lock+0x39/0x1d0 [ 136.363883] ? lock_downgrade+0x990/0x990 [ 136.367996] ? check_noncircular+0x20/0x20 [ 136.372196] lock_acquire+0x1d5/0x580 [ 136.375961] ? exit_pi_state_list+0x369/0x7a0 [ 136.380422] ? lock_release+0xd70/0xd70 [ 136.384361] ? do_raw_spin_trylock+0x190/0x190 [ 136.388907] ? find_held_lock+0x39/0x1d0 [ 136.392937] _raw_spin_lock_irq+0x5e/0x80 [ 136.397049] ? exit_pi_state_list+0x369/0x7a0 [ 136.401505] exit_pi_state_list+0x369/0x7a0 [ 136.405792] ? futex_wait_requeue_pi.constprop.19+0x1300/0x1300 [ 136.411812] ? lock_release+0xd70/0xd70 [ 136.415748] ? check_same_owner+0x320/0x320 [ 136.420032] ? _raw_spin_unlock_irqrestore+0x31/0xba [ 136.425099] ? __might_sleep+0x95/0x190 [ 136.429038] ? __might_fault+0x188/0x1d0 [ 136.433061] ? do_raw_spin_trylock+0x190/0x190 [ 136.437607] mm_release+0x46d/0x590 [ 136.441196] ? do_raw_spin_trylock+0x190/0x190 [ 136.445740] ? mm_access+0x140/0x140 [ 136.449416] ? _raw_spin_unlock_irq+0x27/0x70 [ 136.453874] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 136.458856] ? trace_hardirqs_on+0xd/0x10 [ 136.462970] ? _raw_spin_unlock_irq+0x27/0x70 [ 136.467428] ? acct_collect+0x637/0x800 [ 136.471366] do_exit+0x481/0x1af0 [ 136.474782] ? mm_update_next_owner+0x930/0x930 [ 136.479414] ? lock_downgrade+0x990/0x990 [ 136.483526] ? refill_pi_state_cache.part.6+0x2f0/0x2f0 [ 136.488852] ? futex_wait+0x3ad/0x990 [ 136.492616] ? do_raw_spin_trylock+0x190/0x190 [ 136.497164] ? fault_in_user_writeable+0x90/0x90 [ 136.501883] ? futex_wake+0x680/0x680 [ 136.505647] ? fault_in_user_writeable+0x90/0x90 [ 136.510366] ? check_noncircular+0x20/0x20 [ 136.514564] ? drop_futex_key_refs.isra.13+0x63/0xb0 [ 136.519630] ? futex_wait+0x69e/0x990 [ 136.523397] ? futex_wait_setup+0x3d0/0x3d0 [ 136.527681] ? find_held_lock+0x39/0x1d0 [ 136.531706] ? lock_downgrade+0x990/0x990 [ 136.535818] ? recalc_sigpending_tsk+0x117/0x150 [ 136.540537] ? recalc_sigpending+0x103/0x160 [ 136.544906] ? recalc_sigpending_tsk+0x150/0x150 [ 136.549624] ? get_signal+0x2b2/0x16d0 [ 136.553475] do_group_exit+0x149/0x400 [ 136.557325] ? __lock_is_held+0xbc/0x140 [ 136.561352] ? SyS_exit+0x30/0x30 [ 136.564771] ? _raw_spin_unlock_irq+0x27/0x70 [ 136.569230] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 136.574210] get_signal+0x73f/0x16d0 [ 136.577891] ? ptrace_notify+0x130/0x130 [ 136.581916] ? __schedule+0x8f3/0x2080 [ 136.585769] ? __sched_text_start+0x8/0x8 [ 136.589885] do_signal+0x94/0x1ee0 [ 136.593389] ? setup_sigcontext+0x7d0/0x7d0 [ 136.597676] ? schedule+0xf5/0x430 [ 136.601181] ? __schedule+0x2080/0x2080 [ 136.605123] ? find_held_lock+0x39/0x1d0 [ 136.609146] ? __compat_get_timespec+0xd9/0x120 [ 136.613780] ? exit_to_usermode_loop+0x8c/0x310 [ 136.618414] exit_to_usermode_loop+0x214/0x310 [ 136.622964] ? trace_event_raw_event_sys_exit+0x260/0x260 [ 136.628464] ? lock_acquire+0x1d5/0x580 [ 136.632403] ? do_fast_syscall_32+0x158/0xf05 [ 136.636864] do_fast_syscall_32+0x83e/0xf05 [ 136.641160] ? compat_start_thread+0x80/0x80 [ 136.645533] ? do_int80_syscall_32+0x940/0x940 [ 136.650078] ? lockdep_sys_exit+0x47/0xf0 [ 136.654192] ? syscall_return_slowpath+0x2b3/0x510 [ 136.659089] ? finish_task_switch+0x1aa/0x740 [ 136.663547] ? prepare_exit_to_usermode+0x2d0/0x2d0 [ 136.668527] ? sysret32_from_system_call+0x5/0x3b [ 136.673334] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 136.678142] entry_SYSENTER_compat+0x51/0x60 [ 136.682512] RIP: 0023:0xf7f50c79 [ 136.685839] RSP: 002b:00000000f7f0a12c EFLAGS: 00000292 ORIG_RAX: 00000000000000f0 [ 136.693510] RAX: fffffffffffffe00 RBX: 00000000081280f8 RCX: 0000000000000000 [ 136.700745] RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000000 [ 136.707978] RBP: 0000000000000000 R08: 0000000000000000 R09: 0000000000000000 [ 136.715211] R10: 0000000000000000 R11: 0000000000000000 R12: 0000000000000000 [ 136.722444] R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000 [ 136.729684] [ 136.731279] Allocated by task 3782: [ 136.734871] save_stack_trace+0x16/0x20 [ 136.738811] save_stack+0x43/0xd0 [ 136.742227] kasan_kmalloc+0xad/0xe0 [ 136.745905] kmem_cache_alloc_trace+0x136/0x750 [ 136.750538] refill_pi_state_cache.part.6+0xa5/0x2f0 [ 136.755602] futex_requeue+0x1887/0x2370 [ 136.759625] do_futex+0x7f5/0x20d0 [ 136.763127] compat_SyS_futex+0x27f/0x380 [ 136.767241] do_fast_syscall_32+0x3f2/0xf05 [ 136.771524] entry_SYSENTER_compat+0x51/0x60 [ 136.775891] [ 136.777480] Freed by task 3754: [ 136.780722] save_stack_trace+0x16/0x20 [ 136.784657] save_stack+0x43/0xd0 [ 136.788072] kasan_slab_free+0x71/0xc0 [ 136.791922] kfree+0xca/0x250 [ 136.794991] put_pi_state+0x3f4/0x560 [ 136.798750] unqueue_me_pi+0x4a/0xc0 [ 136.802426] futex_wait_requeue_pi.constprop.19+0xc7f/0x1300 [ 136.808182] do_futex+0x825/0x20d0 [ 136.811684] compat_SyS_futex+0x27f/0x380 [ 136.815792] do_fast_syscall_32+0x3f2/0xf05 [ 136.820073] entry_SYSENTER_compat+0x51/0x60 [ 136.824440] [ 136.826031] The buggy address belongs to the object at ffff8801cb8ff7c0 [ 136.826031] which belongs to the cache kmalloc-256 of size 256 [ 136.838649] The buggy address is located 40 bytes inside of [ 136.838649] 256-byte region [ffff8801cb8ff7c0, ffff8801cb8ff8c0) [ 136.850396] The buggy address belongs to the page: [ 136.855288] page:ffffea00072e3fc0 count:1 mapcount:0 mapping:ffff8801cb8ff040 index:0x0 [ 136.863390] flags: 0x200000000000100(slab) [ 136.867942] raw: 0200000000000100 ffff8801cb8ff040 0000000000000000 000000010000000c [ 136.875786] raw: ffffea00072fd360 ffffea000731d1e0 ffff8801dac007c0 0000000000000000 [ 136.883625] page dumped because: kasan: bad access detected [ 136.889295] [ 136.890885] Memory state around the buggy address: [ 136.895775] ffff8801cb8ff680: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 136.903096] ffff8801cb8ff700: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 136.910417] >ffff8801cb8ff780: fc fc fc fc fc fc fc fc fb fb fb fb fb fb fb fb [ 136.917736] ^ [ 136.924452] ffff8801cb8ff800: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 136.931773] ffff8801cb8ff880: fb fb fb fb fb fb fb fb fc fc fc fc fc fc fc fc [ 136.939095] ================================================================== [ 136.946415] Disabling lock debugging due to kernel taint [ 136.951824] Kernel panic - not syncing: panic_on_warn set ... [ 136.951824] [ 136.959149] CPU: 1 PID: 3761 Comm: syz-executor1 Tainted: G B 4.14.0-rc3+ #24 [ 136.967511] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 136.976825] Call Trace: [ 136.979382] dump_stack+0x194/0x257 [ 136.982975] ? arch_local_irq_restore+0x53/0x53 [ 136.987607] ? vprintk_default+0x28/0x30 [ 136.991635] ? __lock_acquire+0x3ff0/0x4620 [ 136.995920] panic+0x1e4/0x417 [ 136.999076] ? __warn+0x1d9/0x1d9 [ 137.002497] ? __lock_acquire+0x407b/0x4620 [ 137.006782] kasan_end_report+0x50/0x50 [ 137.010718] kasan_report+0x144/0x340 [ 137.014481] __asan_report_load8_noabort+0x14/0x20 [ 137.019372] __lock_acquire+0x407b/0x4620 [ 137.023483] ? unwind_dump+0x4c0/0x4c0 [ 137.027333] ? __kernel_text_address+0xd/0x40 [ 137.031790] ? unwind_get_return_address+0x61/0xa0 [ 137.036684] ? debug_check_no_locks_freed+0x3d0/0x3d0 [ 137.041836] ? __save_stack_trace+0x61/0xd0 [ 137.046122] ? get_signal+0x73f/0x16d0 [ 137.049971] ? save_stack_trace+0x16/0x20 [ 137.054082] ? __lock_acquire+0x20fd/0x4620 [ 137.058374] ? debug_check_no_locks_freed+0x3d0/0x3d0 [ 137.063530] ? debug_check_no_locks_freed+0x3d0/0x3d0 [ 137.068683] ? save_stack_trace+0x16/0x20 [ 137.072793] ? __lock_acquire+0x20fd/0x4620 [ 137.077079] ? osq_unlock+0x350/0x350 [ 137.080841] ? save_stack_trace+0x16/0x20 [ 137.084953] ? check_noncircular+0x20/0x20 [ 137.089151] ? debug_check_no_locks_freed+0x3d0/0x3d0 [ 137.094303] ? debug_check_no_locks_freed+0x3d0/0x3d0 [ 137.099455] ? __unwind_start+0x169/0x330 [ 137.103567] ? find_held_lock+0x39/0x1d0 [ 137.107591] ? lock_downgrade+0x990/0x990 [ 137.111700] ? check_noncircular+0x20/0x20 [ 137.115897] lock_acquire+0x1d5/0x580 [ 137.119662] ? exit_pi_state_list+0x369/0x7a0 [ 137.124119] ? lock_release+0xd70/0xd70 [ 137.128057] ? do_raw_spin_trylock+0x190/0x190 [ 137.132599] ? find_held_lock+0x39/0x1d0 [ 137.136630] _raw_spin_lock_irq+0x5e/0x80 [ 137.140738] ? exit_pi_state_list+0x369/0x7a0 [ 137.145195] exit_pi_state_list+0x369/0x7a0 [ 137.149483] ? futex_wait_requeue_pi.constprop.19+0x1300/0x1300 [ 137.155501] ? lock_release+0xd70/0xd70 [ 137.159438] ? check_same_owner+0x320/0x320 [ 137.163723] ? _raw_spin_unlock_irqrestore+0x31/0xba [ 137.168790] ? __might_sleep+0x95/0x190 [ 137.172732] ? __might_fault+0x188/0x1d0 [ 137.176758] ? do_raw_spin_trylock+0x190/0x190 [ 137.181303] mm_release+0x46d/0x590 [ 137.184895] ? do_raw_spin_trylock+0x190/0x190 [ 137.189441] ? mm_access+0x140/0x140 [ 137.193117] ? _raw_spin_unlock_irq+0x27/0x70 [ 137.197578] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 137.202556] ? trace_hardirqs_on+0xd/0x10 [ 137.206665] ? _raw_spin_unlock_irq+0x27/0x70 [ 137.211121] ? acct_collect+0x637/0x800 [ 137.215059] do_exit+0x481/0x1af0 [ 137.218477] ? mm_update_next_owner+0x930/0x930 [ 137.223107] ? lock_downgrade+0x990/0x990 [ 137.227217] ? refill_pi_state_cache.part.6+0x2f0/0x2f0 [ 137.232541] ? futex_wait+0x3ad/0x990 [ 137.236304] ? do_raw_spin_trylock+0x190/0x190 [ 137.240847] ? fault_in_user_writeable+0x90/0x90 [ 137.245565] ? futex_wake+0x680/0x680 [ 137.249326] ? fault_in_user_writeable+0x90/0x90 [ 137.254047] ? check_noncircular+0x20/0x20 [ 137.258247] ? drop_futex_key_refs.isra.13+0x63/0xb0 [ 137.263311] ? futex_wait+0x69e/0x990 [ 137.267078] ? futex_wait_setup+0x3d0/0x3d0 [ 137.271364] ? find_held_lock+0x39/0x1d0 [ 137.275388] ? lock_downgrade+0x990/0x990 [ 137.279500] ? recalc_sigpending_tsk+0x117/0x150 [ 137.284218] ? recalc_sigpending+0x103/0x160 [ 137.288587] ? recalc_sigpending_tsk+0x150/0x150 [ 137.293304] ? get_signal+0x2b2/0x16d0 [ 137.297155] do_group_exit+0x149/0x400 [ 137.301004] ? __lock_is_held+0xbc/0x140 [ 137.305025] ? SyS_exit+0x30/0x30 [ 137.308441] ? _raw_spin_unlock_irq+0x27/0x70 [ 137.312900] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 137.317880] get_signal+0x73f/0x16d0 [ 137.321557] ? ptrace_notify+0x130/0x130