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-0,10.128.15.218' (ECDSA) to the list of known hosts. 2017/09/28 19:34:31 parsed 1 programs 2017/09/28 19:34:31 executed programs: 0 syzkaller login: [ 42.489460] ================================================================== [ 42.496884] BUG: KASAN: use-after-free in __lock_acquire+0x407b/0x4620 [ 42.503513] Read of size 8 at addr ffff8801cd2ffde8 by task syz-executor7/3581 [ 42.510834] [ 42.512430] CPU: 0 PID: 3581 Comm: syz-executor7 Not tainted 4.14.0-rc2-next-20170928+ #31 [ 42.520794] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 42.530111] Call Trace: [ 42.532664] dump_stack+0x194/0x257 [ 42.536257] ? arch_local_irq_restore+0x53/0x53 [ 42.540892] ? show_regs_print_info+0x65/0x65 [ 42.545355] ? __kernel_text_address+0xd/0x40 [ 42.549814] ? __lock_acquire+0x407b/0x4620 [ 42.554104] print_address_description+0x73/0x250 [ 42.558911] ? __lock_acquire+0x407b/0x4620 [ 42.563197] kasan_report+0x25b/0x340 [ 42.566963] __asan_report_load8_noabort+0x14/0x20 [ 42.571855] __lock_acquire+0x407b/0x4620 [ 42.575969] ? unwind_dump+0x4c0/0x4c0 [ 42.579822] ? __unwind_start+0x169/0x330 [ 42.583935] ? __kernel_text_address+0xd/0x40 [ 42.588398] ? unwind_get_return_address+0x61/0xa0 [ 42.593297] ? debug_check_no_locks_freed+0x3d0/0x3d0 [ 42.598450] ? unwind_get_return_address+0x61/0xa0 [ 42.603349] ? __save_stack_trace+0x61/0xd0 [ 42.607636] ? get_signal+0x73f/0x16d0 [ 42.611496] ? save_stack_trace+0x16/0x20 [ 42.615612] ? __lock_acquire+0x20fd/0x4620 [ 42.619904] ? debug_check_no_locks_freed+0x3d0/0x3d0 [ 42.625063] ? debug_check_no_locks_freed+0x3d0/0x3d0 [ 42.630219] ? save_stack_trace+0x16/0x20 [ 42.634336] ? __lock_acquire+0x20fd/0x4620 [ 42.638624] ? osq_unlock+0x350/0x350 [ 42.642388] ? save_stack_trace+0x16/0x20 [ 42.646504] ? lock_release+0xd70/0xd70 [ 42.650444] ? check_noncircular+0x20/0x20 [ 42.654644] ? debug_check_no_locks_freed+0x3d0/0x3d0 [ 42.659799] ? debug_check_no_locks_freed+0x3d0/0x3d0 [ 42.664956] ? find_held_lock+0x39/0x1d0 [ 42.668984] ? lock_downgrade+0x990/0x990 [ 42.673095] ? check_noncircular+0x20/0x20 [ 42.677300] lock_acquire+0x1d5/0x580 [ 42.681074] ? exit_pi_state_list+0x369/0x7a0 [ 42.685536] ? lock_release+0xd70/0xd70 [ 42.689477] ? do_raw_spin_trylock+0x190/0x190 [ 42.694025] ? find_held_lock+0x39/0x1d0 [ 42.698058] _raw_spin_lock_irq+0x5e/0x80 [ 42.702170] ? exit_pi_state_list+0x369/0x7a0 [ 42.706628] exit_pi_state_list+0x369/0x7a0 [ 42.710920] ? futex_wait_requeue_pi.constprop.19+0x1300/0x1300 [ 42.716944] ? lock_release+0xd70/0xd70 [ 42.720885] ? trace_event_raw_event_sched_switch+0x770/0x770 [ 42.726732] ? _raw_spin_unlock_irqrestore+0x31/0xba [ 42.731801] ? __might_sleep+0x95/0x190 [ 42.735742] ? __might_fault+0x188/0x1d0 [ 42.739776] ? do_raw_spin_trylock+0x190/0x190 [ 42.744327] mm_release+0x46d/0x590 [ 42.747918] ? do_raw_spin_trylock+0x190/0x190 [ 42.752463] ? mm_access+0x140/0x140 [ 42.756143] ? _raw_spin_unlock_irq+0x27/0x70 [ 42.760602] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 42.765585] ? trace_hardirqs_on+0xd/0x10 [ 42.769699] ? _raw_spin_unlock_irq+0x27/0x70 [ 42.774158] ? acct_collect+0x637/0x800 [ 42.778098] do_exit+0x481/0x1b00 [ 42.781521] ? mm_update_next_owner+0x930/0x930 [ 42.786156] ? trace_event_raw_event_sched_switch+0x770/0x770 [ 42.792007] ? find_held_lock+0x39/0x1d0 [ 42.796036] ? refill_pi_state_cache.part.6+0x2f0/0x2f0 [ 42.801364] ? check_noncircular+0x20/0x20 [ 42.805565] ? fault_in_user_writeable+0x90/0x90 [ 42.810286] ? futex_wake+0x680/0x680 [ 42.814050] ? find_held_lock+0x39/0x1d0 [ 42.818080] ? lock_downgrade+0x990/0x990 [ 42.822192] ? recalc_sigpending_tsk+0x117/0x150 [ 42.826912] ? recalc_sigpending+0x103/0x160 [ 42.831284] ? recalc_sigpending_tsk+0x150/0x150 [ 42.836002] ? get_signal+0x2b2/0x16d0 [ 42.839854] do_group_exit+0x149/0x400 [ 42.843704] ? __lock_is_held+0xbc/0x140 [ 42.847730] ? SyS_exit+0x30/0x30 [ 42.851146] ? _raw_spin_unlock_irq+0x27/0x70 [ 42.855605] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 42.860583] get_signal+0x73f/0x16d0 [ 42.864266] ? ptrace_notify+0x130/0x130 [ 42.868295] ? is_bpf_text_address+0xa4/0x120 [ 42.872770] ? kernel_text_address+0x102/0x140 [ 42.877320] ? exit_robust_list+0x240/0x240 [ 42.881608] ? __save_stack_trace+0x7e/0xd0 [ 42.886158] ? depot_save_stack+0x12c/0x490 [ 42.890455] do_signal+0x94/0x1ee0 [ 42.893960] ? save_stack+0xa3/0xd0 [ 42.897552] ? save_stack_trace+0x16/0x20 [ 42.901662] ? save_stack+0x43/0xd0 [ 42.905254] ? kasan_slab_free+0x71/0xc0 [ 42.909281] ? kfree+0xca/0x250 [ 42.912526] ? do_handle_open+0x598/0x8a0 [ 42.916638] ? SyS_open_by_handle_at+0x27/0x30 [ 42.921189] ? entry_SYSCALL_64_fastpath+0x1f/0xbe [ 42.926084] ? setup_sigcontext+0x7d0/0x7d0 [ 42.930374] ? lock_downgrade+0x990/0x990 [ 42.934489] ? __might_fault+0xe0/0x1d0 [ 42.938429] ? __fget_light+0x29d/0x390 [ 42.942369] ? fget_raw+0x20/0x20 [ 42.945790] ? __check_object_size+0x25d/0x4f0 [ 42.950347] ? exit_to_usermode_loop+0x8c/0x310 [ 42.954981] exit_to_usermode_loop+0x214/0x310 [ 42.959532] ? trace_event_raw_event_sys_exit+0x260/0x260 [ 42.965034] ? trace_hardirqs_on+0xd/0x10 [ 42.969165] syscall_return_slowpath+0x42f/0x510 [ 42.973886] ? prepare_exit_to_usermode+0x2d0/0x2d0 [ 42.978869] ? entry_SYSCALL_64_fastpath+0x91/0xbe [ 42.983764] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 42.988744] ? trace_hardirqs_on_thunk+0x1a/0x1c [ 42.993465] entry_SYSCALL_64_fastpath+0xbc/0xbe [ 42.998186] RIP: 0033:0x4520a9 [ 43.001343] RSP: 002b:00007fcd82d28cf8 EFLAGS: 00000246 ORIG_RAX: 00000000000000ca [ 43.009015] RAX: fffffffffffffe00 RBX: 0000000000718028 RCX: 00000000004520a9 [ 43.016249] RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000718028 [ 43.023483] RBP: 0000000000718000 R08: 0000000000000000 R09: 0000000000000000 [ 43.030718] R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 [ 43.037950] R13: 00007ffe689f396f R14: 00007fcd82d299c0 R15: 0000000000000000 [ 43.045190] [ 43.046784] Allocated by task 3606: [ 43.050403] save_stack_trace+0x16/0x20 [ 43.054352] save_stack+0x43/0xd0 [ 43.057770] kasan_kmalloc+0xad/0xe0 [ 43.061449] kmem_cache_alloc_trace+0x136/0x750 [ 43.066084] refill_pi_state_cache.part.6+0xa5/0x2f0 [ 43.071150] futex_requeue+0x1887/0x2370 [ 43.075177] do_futex+0x7f5/0x20d0 [ 43.078680] SyS_futex+0x260/0x390 [ 43.082187] entry_SYSCALL_64_fastpath+0x1f/0xbe [ 43.086903] [ 43.088495] Freed by task 3594: [ 43.091740] save_stack_trace+0x16/0x20 [ 43.095678] save_stack+0x43/0xd0 [ 43.099095] kasan_slab_free+0x71/0xc0 [ 43.102954] kfree+0xca/0x250 [ 43.106024] put_pi_state+0x3f4/0x560 [ 43.109789] unqueue_me_pi+0x4a/0xc0 [ 43.113467] futex_wait_requeue_pi.constprop.19+0xc7f/0x1300 [ 43.119229] do_futex+0x825/0x20d0 [ 43.122732] SyS_futex+0x260/0x390 [ 43.126240] entry_SYSCALL_64_fastpath+0x1f/0xbe [ 43.130957] [ 43.132557] The buggy address belongs to the object at ffff8801cd2ffdc0 [ 43.132557] which belongs to the cache kmalloc-256 of size 256 [ 43.145181] The buggy address is located 40 bytes inside of [ 43.145181] 256-byte region [ffff8801cd2ffdc0, ffff8801cd2ffec0) [ 43.156937] The buggy address belongs to the page: [ 43.161831] page:ffffea000734bfc0 count:1 mapcount:0 mapping:ffff8801cd2ff000 index:0x0 [ 43.169936] flags: 0x200000000000100(slab) [ 43.174137] raw: 0200000000000100 ffff8801cd2ff000 0000000000000000 000000010000000c [ 43.181982] raw: ffffea000732d660 ffffea00072d2f60 ffff8801dac007c0 0000000000000000 [ 43.189823] page dumped because: kasan: bad access detected [ 43.195492] [ 43.197083] Memory state around the buggy address: [ 43.201977] ffff8801cd2ffc80: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 43.209299] ffff8801cd2ffd00: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 43.216621] >ffff8801cd2ffd80: fc fc fc fc fc fc fc fc fb fb fb fb fb fb fb fb [ 43.223943] ^ [ 43.230659] ffff8801cd2ffe00: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 43.237982] ffff8801cd2ffe80: fb fb fb fb fb fb fb fb fc fc fc fc fc fc fc fc [ 43.245303] ================================================================== [ 43.252622] Disabling lock debugging due to kernel taint [ 43.258034] Kernel panic - not syncing: panic_on_warn set ... [ 43.258034] [ 43.265360] CPU: 0 PID: 3581 Comm: syz-executor7 Tainted: G B 4.14.0-rc2-next-20170928+ #31 [ 43.274938] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 43.284255] Call Trace: [ 43.286814] dump_stack+0x194/0x257 [ 43.290408] ? arch_local_irq_restore+0x53/0x53 [ 43.295048] ? vprintk_default+0x28/0x30 [ 43.299078] ? __lock_acquire+0x3f80/0x4620 [ 43.303369] panic+0x1e4/0x417 [ 43.306525] ? __warn+0x1d9/0x1d9 [ 43.309956] ? __lock_acquire+0x407b/0x4620 [ 43.314247] kasan_end_report+0x50/0x50 [ 43.318189] kasan_report+0x144/0x340 [ 43.321955] __asan_report_load8_noabort+0x14/0x20 [ 43.326848] __lock_acquire+0x407b/0x4620 [ 43.330963] ? unwind_dump+0x4c0/0x4c0 [ 43.334815] ? __unwind_start+0x169/0x330 [ 43.338931] ? __kernel_text_address+0xd/0x40 [ 43.343392] ? unwind_get_return_address+0x61/0xa0 [ 43.348291] ? debug_check_no_locks_freed+0x3d0/0x3d0 [ 43.353443] ? unwind_get_return_address+0x61/0xa0 [ 43.358340] ? __save_stack_trace+0x61/0xd0 [ 43.362629] ? get_signal+0x73f/0x16d0 [ 43.366482] ? save_stack_trace+0x16/0x20 [ 43.370595] ? __lock_acquire+0x20fd/0x4620 [ 43.374883] ? debug_check_no_locks_freed+0x3d0/0x3d0 [ 43.380042] ? debug_check_no_locks_freed+0x3d0/0x3d0 [ 43.385199] ? save_stack_trace+0x16/0x20 [ 43.389311] ? __lock_acquire+0x20fd/0x4620 [ 43.393595] ? osq_unlock+0x350/0x350 [ 43.397359] ? save_stack_trace+0x16/0x20 [ 43.401474] ? lock_release+0xd70/0xd70 [ 43.405422] ? check_noncircular+0x20/0x20 [ 43.409623] ? debug_check_no_locks_freed+0x3d0/0x3d0 [ 43.414778] ? debug_check_no_locks_freed+0x3d0/0x3d0 [ 43.419936] ? find_held_lock+0x39/0x1d0 [ 43.423965] ? lock_downgrade+0x990/0x990 [ 43.428076] ? check_noncircular+0x20/0x20 [ 43.432275] lock_acquire+0x1d5/0x580 [ 43.436042] ? exit_pi_state_list+0x369/0x7a0 [ 43.440505] ? lock_release+0xd70/0xd70 [ 43.444442] ? do_raw_spin_trylock+0x190/0x190 [ 43.448990] ? find_held_lock+0x39/0x1d0 [ 43.453024] _raw_spin_lock_irq+0x5e/0x80 [ 43.457140] ? exit_pi_state_list+0x369/0x7a0 [ 43.461601] exit_pi_state_list+0x369/0x7a0 [ 43.465892] ? futex_wait_requeue_pi.constprop.19+0x1300/0x1300 [ 43.471915] ? lock_release+0xd70/0xd70 [ 43.475858] ? trace_event_raw_event_sched_switch+0x770/0x770 [ 43.482288] ? _raw_spin_unlock_irqrestore+0x31/0xba [ 43.487360] ? __might_sleep+0x95/0x190