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.50' (ECDSA) to the list of known hosts. 2017/10/04 16:50:21 parsed 1 programs 2017/10/04 16:50:21 executed programs: 0 syzkaller login: [ 47.881324] ================================================================== [ 47.888723] BUG: KASAN: use-after-free in __lock_acquire+0x407b/0x4620 [ 47.895356] Read of size 8 at addr ffff8801c6066968 by task syz-executor5/4020 [ 47.902678] [ 47.904279] CPU: 0 PID: 4020 Comm: syz-executor5 Not tainted 4.14.0-rc3+ #24 [ 47.911428] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 47.920746] Call Trace: [ 47.923301] dump_stack+0x194/0x257 [ 47.926895] ? arch_local_irq_restore+0x53/0x53 [ 47.931527] ? show_regs_print_info+0x65/0x65 [ 47.935989] ? __kernel_text_address+0xd/0x40 [ 47.940451] ? __lock_acquire+0x407b/0x4620 [ 47.944739] print_address_description+0x73/0x250 [ 47.949546] ? __lock_acquire+0x407b/0x4620 [ 47.953836] kasan_report+0x25b/0x340 [ 47.957606] __asan_report_load8_noabort+0x14/0x20 [ 47.962503] __lock_acquire+0x407b/0x4620 [ 47.966616] ? unwind_dump+0x4c0/0x4c0 [ 47.970470] ? __kernel_text_address+0xd/0x40 [ 47.974932] ? unwind_get_return_address+0x61/0xa0 [ 47.979832] ? debug_check_no_locks_freed+0x3d0/0x3d0 [ 47.984989] ? __save_stack_trace+0x61/0xd0 [ 47.989279] ? get_signal+0x73f/0x16d0 [ 47.993133] ? save_stack_trace+0x16/0x20 [ 47.997245] ? __lock_acquire+0x20fd/0x4620 [ 48.001539] ? debug_check_no_locks_freed+0x3d0/0x3d0 [ 48.006699] ? debug_check_no_locks_freed+0x3d0/0x3d0 [ 48.011855] ? save_stack_trace+0x16/0x20 [ 48.015967] ? __lock_acquire+0x20fd/0x4620 [ 48.020252] ? osq_unlock+0x350/0x350 [ 48.024024] ? save_stack_trace+0x16/0x20 [ 48.028144] ? check_noncircular+0x20/0x20 [ 48.032347] ? debug_check_no_locks_freed+0x3d0/0x3d0 [ 48.037504] ? debug_check_no_locks_freed+0x3d0/0x3d0 [ 48.042659] ? __unwind_start+0x169/0x330 [ 48.046774] ? find_held_lock+0x39/0x1d0 [ 48.050803] ? lock_downgrade+0x990/0x990 [ 48.054916] ? check_noncircular+0x20/0x20 [ 48.059120] lock_acquire+0x1d5/0x580 [ 48.062888] ? exit_pi_state_list+0x369/0x7a0 [ 48.067351] ? lock_release+0xd70/0xd70 [ 48.071289] ? do_raw_spin_trylock+0x190/0x190 [ 48.075836] ? find_held_lock+0x39/0x1d0 [ 48.079869] _raw_spin_lock_irq+0x5e/0x80 [ 48.083982] ? exit_pi_state_list+0x369/0x7a0 [ 48.088441] exit_pi_state_list+0x369/0x7a0 [ 48.092733] ? futex_wait_requeue_pi.constprop.19+0x1300/0x1300 [ 48.098756] ? lock_release+0xd70/0xd70 [ 48.102695] ? check_same_owner+0x320/0x320 [ 48.106983] ? _raw_spin_unlock_irqrestore+0x31/0xba [ 48.112054] ? __might_sleep+0x95/0x190 [ 48.115998] ? __might_fault+0x188/0x1d0 [ 48.120035] ? do_raw_spin_trylock+0x190/0x190 [ 48.124586] mm_release+0x46d/0x590 [ 48.128184] ? do_raw_spin_trylock+0x190/0x190 [ 48.132733] ? mm_access+0x140/0x140 [ 48.136412] ? _raw_spin_unlock_irq+0x27/0x70 [ 48.140877] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 48.145858] ? trace_hardirqs_on+0xd/0x10 [ 48.149970] ? _raw_spin_unlock_irq+0x27/0x70 [ 48.154429] ? acct_collect+0x637/0x800 [ 48.158368] do_exit+0x481/0x1af0 [ 48.162136] ? mm_update_next_owner+0x930/0x930 [ 48.166768] ? lock_downgrade+0x990/0x990 [ 48.170883] ? refill_pi_state_cache.part.6+0x2f0/0x2f0 [ 48.176647] ? futex_wait+0x3ad/0x990 [ 48.180416] ? do_raw_spin_trylock+0x190/0x190 [ 48.184963] ? fault_in_user_writeable+0x90/0x90 [ 48.189685] ? futex_wake+0x680/0x680 [ 48.193450] ? fault_in_user_writeable+0x90/0x90 [ 48.198172] ? check_noncircular+0x20/0x20 [ 48.202373] ? drop_futex_key_refs.isra.13+0x63/0xb0 [ 48.207439] ? futex_wait+0x69e/0x990 [ 48.211208] ? futex_wait_setup+0x3d0/0x3d0 [ 48.215494] ? find_held_lock+0x39/0x1d0 [ 48.219523] ? lock_downgrade+0x990/0x990 [ 48.223637] ? recalc_sigpending_tsk+0x117/0x150 [ 48.228360] ? recalc_sigpending+0x103/0x160 [ 48.232734] ? recalc_sigpending_tsk+0x150/0x150 [ 48.237458] ? get_signal+0x2b2/0x16d0 [ 48.241315] do_group_exit+0x149/0x400 [ 48.245171] ? __lock_is_held+0xbc/0x140 [ 48.249197] ? SyS_exit+0x30/0x30 [ 48.252616] ? _raw_spin_unlock_irq+0x27/0x70 [ 48.257077] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 48.262060] get_signal+0x73f/0x16d0 [ 48.265743] ? ptrace_notify+0x130/0x130 [ 48.269772] ? depot_save_stack+0x12c/0x490 [ 48.274059] ? putname+0xee/0x130 [ 48.277479] ? save_stack+0xa3/0xd0 [ 48.281070] ? save_stack_trace+0x16/0x20 [ 48.285183] ? save_stack+0x43/0xd0 [ 48.288774] ? kasan_slab_free+0x71/0xc0 [ 48.292801] ? kmem_cache_free+0x77/0x280 [ 48.296912] ? putname+0xee/0x130 [ 48.300332] ? do_sys_open+0x31b/0x6d0 [ 48.304185] ? compat_SyS_open+0x2a/0x40 [ 48.308211] ? do_fast_syscall_32+0x3f2/0xf05 [ 48.312672] ? __lock_is_held+0xbc/0x140 [ 48.316701] do_signal+0x94/0x1ee0 [ 48.320210] ? __fd_install+0x2f7/0x6a0 [ 48.324149] ? do_filp_open+0x27d/0x3b0 [ 48.328090] ? setup_sigcontext+0x7d0/0x7d0 [ 48.332376] ? get_unused_fd_flags+0x190/0x190 [ 48.336929] ? rcu_pm_notify+0xc0/0xc0 [ 48.340790] ? putname+0xee/0x130 [ 48.344210] ? putname+0xee/0x130 [ 48.347718] ? rcu_read_lock_sched_held+0x108/0x120 [ 48.352701] ? __compat_get_timespec+0xd9/0x120 [ 48.357337] ? exit_to_usermode_loop+0x8c/0x310 [ 48.361978] exit_to_usermode_loop+0x214/0x310 [ 48.366525] ? filp_open+0x70/0x70 [ 48.370036] ? trace_event_raw_event_sys_exit+0x260/0x260 [ 48.375539] ? do_fast_syscall_32+0x158/0xf05 [ 48.380002] do_fast_syscall_32+0x83e/0xf05 [ 48.384295] ? do_int80_syscall_32+0x940/0x940 [ 48.388844] ? lockdep_sys_exit+0x47/0xf0 [ 48.392957] ? syscall_return_slowpath+0x2b3/0x510 [ 48.397853] ? finish_task_switch+0x1aa/0x740 [ 48.402317] ? sysret32_from_system_call+0x5/0x3b [ 48.407214] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 48.412033] entry_SYSENTER_compat+0x51/0x60 [ 48.416408] RIP: 0023:0xf7f60c79 [ 48.419738] RSP: 002b:00000000f7ef912c EFLAGS: 00000292 ORIG_RAX: 00000000000000f0 [ 48.427413] RAX: fffffffffffffe00 RBX: 0000000008128168 RCX: 0000000000000000 [ 48.434649] RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000000 [ 48.441885] RBP: 0000000000000000 R08: 0000000000000000 R09: 0000000000000000 [ 48.449120] R10: 0000000000000000 R11: 0000000000000000 R12: 0000000000000000 [ 48.456356] R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000 [ 48.463597] [ 48.465190] Allocated by task 4052: [ 48.468787] save_stack_trace+0x16/0x20 [ 48.472734] save_stack+0x43/0xd0 [ 48.476153] kasan_kmalloc+0xad/0xe0 [ 48.479833] kmem_cache_alloc_trace+0x136/0x750 [ 48.484466] refill_pi_state_cache.part.6+0xa5/0x2f0 [ 48.489533] futex_requeue+0x1887/0x2370 [ 48.493558] do_futex+0x7f5/0x20d0 [ 48.497065] compat_SyS_futex+0x27f/0x380 [ 48.501178] do_fast_syscall_32+0x3f2/0xf05 [ 48.505467] entry_SYSENTER_compat+0x51/0x60 [ 48.509837] [ 48.511430] Freed by task 4015: [ 48.514675] save_stack_trace+0x16/0x20 [ 48.518617] save_stack+0x43/0xd0 [ 48.522038] kasan_slab_free+0x71/0xc0 [ 48.525889] kfree+0xca/0x250 [ 48.528962] put_pi_state+0x3f4/0x560 [ 48.532726] unqueue_me_pi+0x4a/0xc0 [ 48.536404] futex_wait_requeue_pi.constprop.19+0xc7f/0x1300 [ 48.542164] do_futex+0x825/0x20d0 [ 48.545668] compat_SyS_futex+0x27f/0x380 [ 48.549782] do_fast_syscall_32+0x3f2/0xf05 [ 48.554069] entry_SYSENTER_compat+0x51/0x60 [ 48.558439] [ 48.560036] The buggy address belongs to the object at ffff8801c6066940 [ 48.560036] which belongs to the cache kmalloc-256 of size 256 [ 48.572657] The buggy address is located 40 bytes inside of [ 48.572657] 256-byte region [ffff8801c6066940, ffff8801c6066a40) [ 48.584408] The buggy address belongs to the page: [ 48.589304] page:ffffea0007181980 count:1 mapcount:0 mapping:ffff8801c6066080 index:0x0 [ 48.597411] flags: 0x200000000000100(slab) [ 48.601615] raw: 0200000000000100 ffff8801c6066080 0000000000000000 000000010000000c [ 48.609464] raw: ffffea0007184aa0 ffffea00071aa820 ffff8801dac007c0 0000000000000000 [ 48.617307] page dumped because: kasan: bad access detected [ 48.622984] [ 48.624577] Memory state around the buggy address: [ 48.629470] ffff8801c6066800: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 48.636794] ffff8801c6066880: 00 00 00 00 00 00 00 00 00 00 00 00 fc fc fc fc [ 48.644118] >ffff8801c6066900: fc fc fc fc fc fc fc fc fb fb fb fb fb fb fb fb [ 48.651440] ^ [ 48.658155] ffff8801c6066980: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 48.665478] ffff8801c6066a00: fb fb fb fb fb fb fb fb fc fc fc fc fc fc fc fc [ 48.672807] ================================================================== [ 48.680129] Disabling lock debugging due to kernel taint [ 48.685541] Kernel panic - not syncing: panic_on_warn set ... [ 48.685541] [ 48.692870] CPU: 0 PID: 4020 Comm: syz-executor5 Tainted: G B 4.14.0-rc3+ #24 [ 48.701235] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 48.710552] Call Trace: [ 48.713105] dump_stack+0x194/0x257 [ 48.716700] ? arch_local_irq_restore+0x53/0x53 [ 48.721337] ? vprintk_default+0x28/0x30 [ 48.725366] ? __lock_acquire+0x3ff0/0x4620 [ 48.729653] panic+0x1e4/0x417 [ 48.732812] ? __warn+0x1d9/0x1d9 [ 48.736234] ? __lock_acquire+0x407b/0x4620 [ 48.740520] kasan_end_report+0x50/0x50 [ 48.744459] kasan_report+0x144/0x340 [ 48.748225] __asan_report_load8_noabort+0x14/0x20 [ 48.753120] __lock_acquire+0x407b/0x4620 [ 48.757329] ? unwind_dump+0x4c0/0x4c0 [ 48.761186] ? __kernel_text_address+0xd/0x40 [ 48.765648] ? unwind_get_return_address+0x61/0xa0 [ 48.770549] ? debug_check_no_locks_freed+0x3d0/0x3d0 [ 48.775707] ? __save_stack_trace+0x61/0xd0 [ 48.779994] ? get_signal+0x73f/0x16d0 [ 48.783849] ? save_stack_trace+0x16/0x20 [ 48.787964] ? __lock_acquire+0x20fd/0x4620 [ 48.792254] ? debug_check_no_locks_freed+0x3d0/0x3d0 [ 48.797410] ? debug_check_no_locks_freed+0x3d0/0x3d0 [ 48.802565] ? save_stack_trace+0x16/0x20 [ 48.806678] ? __lock_acquire+0x20fd/0x4620 [ 48.810965] ? osq_unlock+0x350/0x350 [ 48.814729] ? save_stack_trace+0x16/0x20 [ 48.818845] ? check_noncircular+0x20/0x20 [ 48.823048] ? debug_check_no_locks_freed+0x3d0/0x3d0 [ 48.828206] ? debug_check_no_locks_freed+0x3d0/0x3d0 [ 48.833362] ? __unwind_start+0x169/0x330 [ 48.837476] ? find_held_lock+0x39/0x1d0 [ 48.841506] ? lock_downgrade+0x990/0x990 [ 48.845619] ? check_noncircular+0x20/0x20 [ 48.849822] lock_acquire+0x1d5/0x580 [ 48.853588] ? exit_pi_state_list+0x369/0x7a0 [ 48.858053] ? lock_release+0xd70/0xd70 [ 48.861991] ? do_raw_spin_trylock+0x190/0x190 [ 48.866540] ? find_held_lock+0x39/0x1d0 [ 48.870573] _raw_spin_lock_irq+0x5e/0x80 [ 48.874687] ? exit_pi_state_list+0x369/0x7a0 [ 48.879148] exit_pi_state_list+0x369/0x7a0