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-4,10.128.0.17' (ECDSA) to the list of known hosts. 2017/10/04 10:32:08 parsed 1 programs 2017/10/04 10:32:08 executed programs: 0 syzkaller login: [ 45.102302] ================================================================== [ 45.109726] BUG: KASAN: use-after-free in __lock_acquire+0x407b/0x4620 [ 45.116359] Read of size 8 at addr ffff8801ce0bc428 by task syz-executor6/3132 [ 45.123682] [ 45.125281] CPU: 1 PID: 3132 Comm: syz-executor6 Not tainted 4.14.0-rc3+ #24 [ 45.132430] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 45.141750] Call Trace: [ 45.144310] dump_stack+0x194/0x257 [ 45.147907] ? arch_local_irq_restore+0x53/0x53 [ 45.152542] ? show_regs_print_info+0x65/0x65 [ 45.157004] ? __kernel_text_address+0xd/0x40 [ 45.161557] ? __lock_acquire+0x407b/0x4620 [ 45.165850] print_address_description+0x73/0x250 [ 45.170658] ? __lock_acquire+0x407b/0x4620 [ 45.174945] kasan_report+0x25b/0x340 [ 45.178714] __asan_report_load8_noabort+0x14/0x20 [ 45.183613] __lock_acquire+0x407b/0x4620 [ 45.187732] ? unwind_dump+0x4c0/0x4c0 [ 45.191586] ? __kernel_text_address+0xd/0x40 [ 45.196048] ? unwind_get_return_address+0x61/0xa0 [ 45.201033] ? debug_check_no_locks_freed+0x3d0/0x3d0 [ 45.206190] ? __save_stack_trace+0x61/0xd0 [ 45.210484] ? get_signal+0x73f/0x16d0 [ 45.214338] ? save_stack_trace+0x16/0x20 [ 45.218455] ? __lock_acquire+0x20fd/0x4620 [ 45.223498] ? debug_check_no_locks_freed+0x3d0/0x3d0 [ 45.228660] ? debug_check_no_locks_freed+0x3d0/0x3d0 [ 45.233820] ? save_stack_trace+0x16/0x20 [ 45.237935] ? __lock_acquire+0x20fd/0x4620 [ 45.242224] ? osq_unlock+0x350/0x350 [ 45.245999] ? perf_trace_lock+0xf1/0x860 [ 45.250114] ? check_noncircular+0x20/0x20 [ 45.254314] ? debug_check_no_locks_freed+0x3d0/0x3d0 [ 45.259469] ? debug_check_no_locks_freed+0x3d0/0x3d0 [ 45.264622] ? perf_trace_lock+0xf1/0x860 [ 45.268740] ? find_held_lock+0x39/0x1d0 [ 45.272767] ? lock_downgrade+0x990/0x990 [ 45.276879] ? check_noncircular+0x20/0x20 [ 45.281078] lock_acquire+0x1d5/0x580 [ 45.284848] ? exit_pi_state_list+0x369/0x7a0 [ 45.289309] ? lock_release+0xd70/0xd70 [ 45.293247] ? do_raw_spin_trylock+0x190/0x190 [ 45.297790] ? find_held_lock+0x39/0x1d0 [ 45.301822] _raw_spin_lock_irq+0x5e/0x80 [ 45.305933] ? exit_pi_state_list+0x369/0x7a0 [ 45.310392] exit_pi_state_list+0x369/0x7a0 [ 45.314684] ? futex_wait_requeue_pi.constprop.19+0x1300/0x1300 [ 45.320706] ? lock_release+0xd70/0xd70 [ 45.324646] ? check_same_owner+0x320/0x320 [ 45.328930] ? _raw_spin_unlock_irqrestore+0x31/0xba [ 45.333998] ? __might_sleep+0x95/0x190 [ 45.337940] ? __might_fault+0x188/0x1d0 [ 45.341966] ? do_raw_spin_trylock+0x190/0x190 [ 45.346514] mm_release+0x46d/0x590 [ 45.350104] ? do_raw_spin_trylock+0x190/0x190 [ 45.354650] ? mm_access+0x140/0x140 [ 45.358325] ? _raw_spin_unlock_irq+0x27/0x70 [ 45.362784] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 45.367764] ? trace_hardirqs_on+0xd/0x10 [ 45.371875] ? _raw_spin_unlock_irq+0x27/0x70 [ 45.376332] ? acct_collect+0x637/0x800 [ 45.380269] do_exit+0x481/0x1af0 [ 45.383688] ? mm_update_next_owner+0x930/0x930 [ 45.388319] ? lock_downgrade+0x990/0x990 [ 45.392429] ? refill_pi_state_cache.part.6+0x2f0/0x2f0 [ 45.397756] ? futex_wait+0x3ad/0x990 [ 45.401521] ? do_raw_spin_trylock+0x190/0x190 [ 45.406068] ? perf_trace_lock+0xf1/0x860 [ 45.410179] ? futex_wake+0x680/0x680 [ 45.413943] ? check_noncircular+0x20/0x20 [ 45.418142] ? drop_futex_key_refs.isra.13+0x63/0xb0 [ 45.423208] ? futex_wait+0x69e/0x990 [ 45.426973] ? futex_wait_setup+0x3d0/0x3d0 [ 45.431258] ? find_held_lock+0x39/0x1d0 [ 45.435287] ? lock_downgrade+0x990/0x990 [ 45.439401] ? recalc_sigpending_tsk+0x117/0x150 [ 45.444122] ? recalc_sigpending+0x103/0x160 [ 45.448494] ? recalc_sigpending_tsk+0x150/0x150 [ 45.453212] ? get_signal+0x2b2/0x16d0 [ 45.457065] do_group_exit+0x149/0x400 [ 45.460917] ? __lock_is_held+0xbc/0x140 [ 45.464943] ? SyS_exit+0x30/0x30 [ 45.468361] ? _raw_spin_unlock_irq+0x27/0x70 [ 45.472820] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 45.477800] get_signal+0x73f/0x16d0 [ 45.481478] ? ptrace_notify+0x130/0x130 [ 45.485512] do_signal+0x94/0x1ee0 [ 45.489014] ? perf_trace_lock+0xf1/0x860 [ 45.493127] ? setup_sigcontext+0x7d0/0x7d0 [ 45.497417] ? find_held_lock+0x39/0x1d0 [ 45.501443] ? __compat_get_timespec+0xd9/0x120 [ 45.506080] ? exit_to_usermode_loop+0x8c/0x310 [ 45.510714] exit_to_usermode_loop+0x214/0x310 [ 45.515262] ? trace_event_raw_event_sys_exit+0x260/0x260 [ 45.520763] ? lock_acquire+0x1d5/0x580 [ 45.524701] ? do_fast_syscall_32+0x158/0xf05 [ 45.529162] do_fast_syscall_32+0x83e/0xf05 [ 45.533447] ? compat_start_thread+0x80/0x80 [ 45.537821] ? do_int80_syscall_32+0x940/0x940 [ 45.542369] ? lockdep_sys_exit+0x47/0xf0 [ 45.546482] ? syscall_return_slowpath+0x2b3/0x510 [ 45.551376] ? finish_task_switch+0x1aa/0x740 [ 45.555837] ? prepare_exit_to_usermode+0x2d0/0x2d0 [ 45.560816] ? sysret32_from_system_call+0x5/0x3b [ 45.565621] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 45.570428] entry_SYSENTER_compat+0x51/0x60 [ 45.574799] RIP: 0023:0xf7f2ec79 [ 45.578129] RSP: 002b:00000000f7ee812c EFLAGS: 00000292 ORIG_RAX: 00000000000000f0 [ 45.585801] RAX: fffffffffffffe00 RBX: 00000000081280f8 RCX: 0000000000000000 [ 45.593035] RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000000 [ 45.600267] RBP: 0000000000000000 R08: 0000000000000000 R09: 0000000000000000 [ 45.607501] R10: 0000000000000000 R11: 0000000000000000 R12: 0000000000000000 [ 45.614734] R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000 [ 45.621973] [ 45.623566] Allocated by task 3143: [ 45.627160] save_stack_trace+0x16/0x20 [ 45.631098] save_stack+0x43/0xd0 [ 45.634538] kasan_kmalloc+0xad/0xe0 [ 45.638215] kmem_cache_alloc_trace+0x136/0x750 [ 45.642849] refill_pi_state_cache.part.6+0xa5/0x2f0 [ 45.647913] futex_requeue+0x1887/0x2370 [ 45.651935] do_futex+0x7f5/0x20d0 [ 45.655437] compat_SyS_futex+0x27f/0x380 [ 45.659549] do_fast_syscall_32+0x3f2/0xf05 [ 45.663833] entry_SYSENTER_compat+0x51/0x60 [ 45.668201] [ 45.669792] Freed by task 3123: [ 45.673034] save_stack_trace+0x16/0x20 [ 45.676971] save_stack+0x43/0xd0 [ 45.680387] kasan_slab_free+0x71/0xc0 [ 45.684236] kfree+0xca/0x250 [ 45.687304] put_pi_state+0x3f4/0x560 [ 45.691066] unqueue_me_pi+0x4a/0xc0 [ 45.694744] futex_wait_requeue_pi.constprop.19+0xc7f/0x1300 [ 45.700504] do_futex+0x825/0x20d0 [ 45.704007] compat_SyS_futex+0x27f/0x380 [ 45.708116] do_fast_syscall_32+0x3f2/0xf05 [ 45.712401] entry_SYSENTER_compat+0x51/0x60 [ 45.716769] [ 45.718361] The buggy address belongs to the object at ffff8801ce0bc400 [ 45.718361] which belongs to the cache kmalloc-256 of size 256 [ 45.730980] The buggy address is located 40 bytes inside of [ 45.730980] 256-byte region [ffff8801ce0bc400, ffff8801ce0bc500) [ 45.742727] The buggy address belongs to the page: [ 45.747620] page:ffffea0007382f00 count:1 mapcount:0 mapping:ffff8801ce0bc040 index:0x0 [ 45.755724] flags: 0x200000000000100(slab) [ 45.759923] raw: 0200000000000100 ffff8801ce0bc040 0000000000000000 000000010000000c [ 45.767767] raw: ffffea0007393460 ffffea00073866e0 ffff8801dac007c0 0000000000000000 [ 45.775610] page dumped because: kasan: bad access detected [ 45.781280] [ 45.782871] Memory state around the buggy address: [ 45.787763] ffff8801ce0bc300: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 45.795083] ffff8801ce0bc380: fb fb fb fb fb fb fb fb fc fc fc fc fc fc fc fc [ 45.802409] >ffff8801ce0bc400: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 45.809729] ^ [ 45.814362] ffff8801ce0bc480: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 45.821684] ffff8801ce0bc500: fc fc fc fc fc fc fc fc fb fb fb fb fb fb fb fb [ 45.829005] ================================================================== [ 45.836323] Disabling lock debugging due to kernel taint [ 45.841735] Kernel panic - not syncing: panic_on_warn set ... [ 45.841735] [ 45.849060] CPU: 1 PID: 3132 Comm: syz-executor6 Tainted: G B 4.14.0-rc3+ #24 [ 45.857422] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 45.866738] Call Trace: [ 45.869292] dump_stack+0x194/0x257 [ 45.872885] ? arch_local_irq_restore+0x53/0x53 [ 45.877517] ? vprintk_default+0x28/0x30 [ 45.881545] ? __lock_acquire+0x3ff0/0x4620 [ 45.885831] panic+0x1e4/0x417 [ 45.888990] ? __warn+0x1d9/0x1d9 [ 45.892411] ? __lock_acquire+0x407b/0x4620 [ 45.896694] kasan_end_report+0x50/0x50 [ 45.900632] kasan_report+0x144/0x340 [ 45.904397] __asan_report_load8_noabort+0x14/0x20 [ 45.909288] __lock_acquire+0x407b/0x4620 [ 45.913399] ? unwind_dump+0x4c0/0x4c0 [ 45.917252] ? __kernel_text_address+0xd/0x40 [ 45.921711] ? unwind_get_return_address+0x61/0xa0 [ 45.926607] ? debug_check_no_locks_freed+0x3d0/0x3d0 [ 45.931759] ? __save_stack_trace+0x61/0xd0 [ 45.936046] ? get_signal+0x73f/0x16d0 [ 45.939895] ? save_stack_trace+0x16/0x20 [ 45.944005] ? __lock_acquire+0x20fd/0x4620 [ 45.948290] ? debug_check_no_locks_freed+0x3d0/0x3d0 [ 45.953445] ? debug_check_no_locks_freed+0x3d0/0x3d0 [ 45.958597] ? save_stack_trace+0x16/0x20 [ 45.962711] ? __lock_acquire+0x20fd/0x4620 [ 45.966994] ? osq_unlock+0x350/0x350 [ 45.970758] ? perf_trace_lock+0xf1/0x860 [ 45.974870] ? check_noncircular+0x20/0x20 [ 45.979071] ? debug_check_no_locks_freed+0x3d0/0x3d0 [ 45.984226] ? debug_check_no_locks_freed+0x3d0/0x3d0 [ 45.989385] ? perf_trace_lock+0xf1/0x860 [ 45.993498] ? find_held_lock+0x39/0x1d0 [ 45.997524] ? lock_downgrade+0x990/0x990 [ 46.001635] ? check_noncircular+0x20/0x20 [ 46.005834] lock_acquire+0x1d5/0x580 [ 46.009601] ? exit_pi_state_list+0x369/0x7a0 [ 46.014061] ? lock_release+0xd70/0xd70 [ 46.017997] ? do_raw_spin_trylock+0x190/0x190 [ 46.022541] ? find_held_lock+0x39/0x1d0 [ 46.026574] _raw_spin_lock_irq+0x5e/0x80 [ 46.030683] ? exit_pi_state_list+0x369/0x7a0 [ 46.035141] exit_pi_state_list+0x369/0x7a0 [ 46.039429] ? futex_wait_requeue_pi.constprop.19+0x1300/0x1300 [ 46.045449] ? lock_release+0xd70/0xd70 [ 46.049387] ? check_same_owner+0x320/0x320 [ 46.053682] ? _raw_spin_unlock_irqrestore+0x31/0xba [ 46.058763] ? __might_sleep+0x95/0x190 [ 46.062704] ? __might_fault+0x188/0x1d0 [ 46.066730] ? do_raw_spin_trylock+0x190/0x190 [ 46.071277] mm_release+0x46d/0x590 [ 46.074868] ? do_raw_spin_trylock+0x190/0x190 [ 46.079414] ? mm_access+0x140/0x140 [ 46.083094] ? _raw_spin_unlock_irq+0x27/0x70 [ 46.087554] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 46.092535] ? trace_hardirqs_on+0xd/0x10 [ 46.096646] ? _raw_spin_unlock_irq+0x27/0x70 [ 46.101105] ? acct_collect+0x637/0x800