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.199' (ECDSA) to the list of known hosts. 2017/10/01 22:22:20 parsed 1 programs 2017/10/01 22:22:20 executed programs: 0 2017/10/01 22:22:25 executed programs: 44 2017/10/01 22:22:30 executed programs: 88 2017/10/01 22:22:35 executed programs: 132 2017/10/01 22:22:40 executed programs: 176 2017/10/01 22:22:46 executed programs: 220 2017/10/01 22:22:51 executed programs: 264 2017/10/01 22:22:56 executed programs: 308 2017/10/01 22:23:01 executed programs: 352 2017/10/01 22:23:06 executed programs: 396 2017/10/01 22:23:11 executed programs: 440 2017/10/01 22:23:16 executed programs: 484 2017/10/01 22:23:21 executed programs: 527 2017/10/01 22:23:26 executed programs: 571 syzkaller login: [ 111.806167] ================================================================== [ 111.807232] BUG: KASAN: use-after-free in __lock_acquire+0x407b/0x4620 [ 111.808107] Read of size 8 at addr ffff8801c5ac5d28 by task syz-executor0/6054 [ 111.809069] [ 111.809300] CPU: 1 PID: 6054 Comm: syz-executor0 Not tainted 4.14.0-rc2-next-20170929+ #32 [ 111.810394] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 111.811612] Call Trace: [ 111.811968] dump_stack+0x194/0x257 [ 111.812456] ? arch_local_irq_restore+0x53/0x53 [ 111.813134] ? show_regs_print_info+0x65/0x65 [ 111.813771] ? __kernel_text_address+0xd/0x40 [ 111.814368] ? __lock_acquire+0x407b/0x4620 [ 111.814945] print_address_description+0x73/0x250 [ 111.815615] ? __lock_acquire+0x407b/0x4620 [ 111.816211] kasan_report+0x25b/0x340 [ 111.816718] __asan_report_load8_noabort+0x14/0x20 [ 111.817372] __lock_acquire+0x407b/0x4620 [ 111.817925] ? unwind_dump+0x4c0/0x4c0 [ 111.818443] ? __unwind_start+0x169/0x330 [ 111.818996] ? __kernel_text_address+0xd/0x40 [ 111.819595] ? unwind_get_return_address+0x61/0xa0 [ 111.820249] ? debug_check_no_locks_freed+0x3d0/0x3d0 [ 111.820934] ? unwind_get_return_address+0x61/0xa0 [ 111.821588] ? __save_stack_trace+0x61/0xd0 [ 111.822165] ? get_signal+0x73f/0x16d0 [ 111.822684] ? save_stack_trace+0x16/0x20 [ 111.823235] ? __lock_acquire+0x20fd/0x4620 [ 111.823812] ? debug_check_no_locks_freed+0x3d0/0x3d0 [ 111.824499] ? debug_check_no_locks_freed+0x3d0/0x3d0 [ 111.825183] ? save_stack_trace+0x16/0x20 [ 111.825750] ? __lock_acquire+0x20fd/0x4620 [ 111.826379] ? osq_unlock+0x350/0x350 [ 111.830141] ? save_stack_trace+0x16/0x20 [ 111.834254] ? lock_release+0xd70/0xd70 [ 111.838210] ? check_noncircular+0x20/0x20 [ 111.842410] ? debug_check_no_locks_freed+0x3d0/0x3d0 [ 111.847565] ? debug_check_no_locks_freed+0x3d0/0x3d0 [ 111.852721] ? find_held_lock+0x39/0x1d0 [ 111.856748] ? lock_downgrade+0x990/0x990 [ 111.860860] ? check_noncircular+0x20/0x20 [ 111.865059] lock_acquire+0x1d5/0x580 [ 111.868824] ? exit_pi_state_list+0x369/0x7a0 [ 111.873311] ? lock_release+0xd70/0xd70 [ 111.877246] ? do_raw_spin_trylock+0x190/0x190 [ 111.881797] ? find_held_lock+0x39/0x1d0 [ 111.885831] _raw_spin_lock_irq+0x5e/0x80 [ 111.889941] ? exit_pi_state_list+0x369/0x7a0 [ 111.894398] exit_pi_state_list+0x369/0x7a0 [ 111.898683] ? futex_wait_requeue_pi.constprop.19+0x1300/0x1300 [ 111.904704] ? lock_release+0xd70/0xd70 [ 111.908643] ? trace_event_raw_event_sched_switch+0x770/0x770 [ 111.914490] ? _raw_spin_unlock_irqrestore+0x31/0xba [ 111.919558] ? __might_sleep+0x95/0x190 [ 111.923498] ? __might_fault+0x188/0x1d0 [ 111.927524] ? do_raw_spin_trylock+0x190/0x190 [ 111.932072] mm_release+0x46d/0x590 [ 111.935663] ? do_raw_spin_trylock+0x190/0x190 [ 111.940208] ? mm_access+0x140/0x140 [ 111.943887] ? _raw_spin_unlock_irq+0x27/0x70 [ 111.948348] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 111.953335] ? trace_hardirqs_on+0xd/0x10 [ 111.957446] ? _raw_spin_unlock_irq+0x27/0x70 [ 111.961902] ? acct_collect+0x637/0x800 [ 111.965841] do_exit+0x481/0x1b00 [ 111.969260] ? mm_update_next_owner+0x930/0x930 [ 111.973892] ? trace_event_raw_event_sched_switch+0x770/0x770 [ 111.979742] ? find_held_lock+0x39/0x1d0 [ 111.983784] ? refill_pi_state_cache.part.6+0x2f0/0x2f0 [ 111.989112] ? check_noncircular+0x20/0x20 [ 111.993313] ? fault_in_user_writeable+0x90/0x90 [ 111.998036] ? futex_wake+0x680/0x680 [ 112.001803] ? find_held_lock+0x39/0x1d0 [ 112.005833] ? lock_downgrade+0x990/0x990 [ 112.009948] ? recalc_sigpending_tsk+0x117/0x150 [ 112.014667] ? recalc_sigpending+0x103/0x160 [ 112.019042] ? recalc_sigpending_tsk+0x150/0x150 [ 112.023761] ? get_signal+0x2b2/0x16d0 [ 112.027615] do_group_exit+0x149/0x400 [ 112.031468] ? __lock_is_held+0xbc/0x140 [ 112.035492] ? SyS_exit+0x30/0x30 [ 112.038911] ? _raw_spin_unlock_irq+0x27/0x70 [ 112.043369] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 112.048350] get_signal+0x73f/0x16d0 [ 112.052034] ? ptrace_notify+0x130/0x130 [ 112.056058] ? vma_wants_writenotify+0x3b0/0x3b0 [ 112.060782] ? exit_robust_list+0x240/0x240 [ 112.065070] ? lock_downgrade+0x990/0x990 [ 112.069182] ? SyS_brk+0x6f0/0x6f0 [ 112.072691] do_signal+0x94/0x1ee0 [ 112.076194] ? arch_get_unmapped_area+0x750/0x750 [ 112.081004] ? lock_acquire+0x1d5/0x580 [ 112.084942] ? vm_mmap_pgoff+0x198/0x280 [ 112.088969] ? userfaultfd_unmap_complete+0x327/0x510 [ 112.094122] ? setup_sigcontext+0x7d0/0x7d0 [ 112.098408] ? userfaultfd_unmap_prep+0x540/0x540 [ 112.103214] ? do_mmap+0x34f/0xd50 [ 112.106727] ? up_write+0x6b/0x120 [ 112.110230] ? down_write+0x120/0x120 [ 112.113994] ? security_mmap_file+0x143/0x180 [ 112.118460] ? vm_mmap_pgoff+0x1fc/0x280 [ 112.122485] ? exit_to_usermode_loop+0x8c/0x310 [ 112.127116] exit_to_usermode_loop+0x214/0x310 [ 112.131663] ? vma_is_stack_for_current+0xa0/0xa0 [ 112.136467] ? trace_event_raw_event_sys_exit+0x260/0x260 [ 112.141969] ? kasan_check_write+0x14/0x20 [ 112.146169] syscall_return_slowpath+0x42f/0x510 [ 112.150890] ? prepare_exit_to_usermode+0x2d0/0x2d0 [ 112.155879] ? entry_SYSCALL_64_fastpath+0x91/0xbe [ 112.160773] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 112.165752] ? trace_hardirqs_on_thunk+0x1a/0x1c [ 112.170472] entry_SYSCALL_64_fastpath+0xbc/0xbe [ 112.175191] RIP: 0033:0x4520a9 [ 112.178345] RSP: 002b:00007f2804209cf8 EFLAGS: 00000246 ORIG_RAX: 00000000000000ca [ 112.186020] RAX: fffffffffffffe00 RBX: 00000000007180d8 RCX: 00000000004520a9 [ 112.193254] RDX: 0000000000000000 RSI: 0000000000000000 RDI: 00000000007180d8 [ 112.200488] RBP: 00000000007180b0 R08: 0000000000000000 R09: 0000000000000000 [ 112.207729] R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 [ 112.214965] R13: 00007ffff94b1e1f R14: 00007f280420a9c0 R15: 0000000000000003 [ 112.222205] [ 112.223797] Allocated by task 6056: [ 112.227389] save_stack_trace+0x16/0x20 [ 112.231325] save_stack+0x43/0xd0 [ 112.234740] kasan_kmalloc+0xad/0xe0 [ 112.238416] kmem_cache_alloc_trace+0x136/0x750 [ 112.243050] refill_pi_state_cache.part.6+0xa5/0x2f0 [ 112.248115] futex_requeue+0x1887/0x2370 [ 112.252136] do_futex+0x7f5/0x20d0 [ 112.255636] SyS_futex+0x260/0x390 [ 112.259137] entry_SYSCALL_64_fastpath+0x1f/0xbe [ 112.263854] [ 112.265444] Freed by task 6055: [ 112.268685] save_stack_trace+0x16/0x20 [ 112.272622] save_stack+0x43/0xd0 [ 112.276036] kasan_slab_free+0x71/0xc0 [ 112.279885] kfree+0xca/0x250 [ 112.282956] put_pi_state+0x3f4/0x560 [ 112.286718] unqueue_me_pi+0x4a/0xc0 [ 112.290394] futex_wait_requeue_pi.constprop.19+0xc7f/0x1300 [ 112.296152] do_futex+0x825/0x20d0 [ 112.299655] SyS_futex+0x260/0x390 [ 112.303162] entry_SYSCALL_64_fastpath+0x1f/0xbe [ 112.307878] [ 112.309472] The buggy address belongs to the object at ffff8801c5ac5d00 [ 112.309472] which belongs to the cache kmalloc-256 of size 256 [ 112.322097] The buggy address is located 40 bytes inside of [ 112.322097] 256-byte region [ffff8801c5ac5d00, ffff8801c5ac5e00) [ 112.333846] The buggy address belongs to the page: [ 112.338738] page:ffffea000716b140 count:1 mapcount:0 mapping:ffff8801c5ac5080 index:0x0 [ 112.346842] flags: 0x200000000000100(slab) [ 112.351042] raw: 0200000000000100 ffff8801c5ac5080 0000000000000000 000000010000000c [ 112.358886] raw: ffffea00071683a0 ffffea000716b820 ffff8801dac007c0 0000000000000000 [ 112.366725] page dumped because: kasan: bad access detected [ 112.372395] [ 112.373986] Memory state around the buggy address: [ 112.378879] ffff8801c5ac5c00: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 112.386198] ffff8801c5ac5c80: fb fb fb fb fb fb fb fb fc fc fc fc fc fc fc fc [ 112.393524] >ffff8801c5ac5d00: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 112.400845] ^ [ 112.405474] ffff8801c5ac5d80: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 112.412794] ffff8801c5ac5e00: fc fc fc fc fc fc fc fc fb fb fb fb fb fb fb fb [ 112.420113] ================================================================== [ 112.427432] Disabling lock debugging due to kernel taint [ 112.432843] Kernel panic - not syncing: panic_on_warn set ... [ 112.432843] [ 112.440168] CPU: 1 PID: 6054 Comm: syz-executor0 Tainted: G B 4.14.0-rc2-next-20170929+ #32 [ 112.449743] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 112.459058] Call Trace: [ 112.461610] dump_stack+0x194/0x257 [ 112.465199] ? arch_local_irq_restore+0x53/0x53 [ 112.469830] ? vprintk_default+0x28/0x30 [ 112.473858] ? __lock_acquire+0x4000/0x4620 [ 112.478146] panic+0x1e4/0x41c [ 112.481302] ? refcount_error_report+0x214/0x214 [ 112.486026] ? __lock_acquire+0x407b/0x4620 [ 112.490310] kasan_end_report+0x50/0x50 [ 112.494246] kasan_report+0x144/0x340 [ 112.498010] __asan_report_load8_noabort+0x14/0x20 [ 112.502901] __lock_acquire+0x407b/0x4620 [ 112.507013] ? unwind_dump+0x4c0/0x4c0 [ 112.510861] ? __unwind_start+0x169/0x330 [ 112.514973] ? __kernel_text_address+0xd/0x40 [ 112.519433] ? unwind_get_return_address+0x61/0xa0 [ 112.524331] ? debug_check_no_locks_freed+0x3d0/0x3d0 [ 112.529482] ? unwind_get_return_address+0x61/0xa0 [ 112.534372] ? __save_stack_trace+0x61/0xd0 [ 112.538657] ? get_signal+0x73f/0x16d0 [ 112.542505] ? save_stack_trace+0x16/0x20 [ 112.546615] ? __lock_acquire+0x20fd/0x4620 [ 112.550902] ? debug_check_no_locks_freed+0x3d0/0x3d0 [ 112.556056] ? debug_check_no_locks_freed+0x3d0/0x3d0 [ 112.561212] ? save_stack_trace+0x16/0x20 [ 112.565324] ? __lock_acquire+0x20fd/0x4620 [ 112.569610] ? osq_unlock+0x350/0x350 [ 112.573374] ? save_stack_trace+0x16/0x20 [ 112.577488] ? lock_release+0xd70/0xd70 [ 112.581426] ? check_noncircular+0x20/0x20 [ 112.585626] ? debug_check_no_locks_freed+0x3d0/0x3d0 [ 112.590782] ? debug_check_no_locks_freed+0x3d0/0x3d0 [ 112.595942] ? find_held_lock+0x39/0x1d0 [ 112.599968] ? lock_downgrade+0x990/0x990 [ 112.604080] ? check_noncircular+0x20/0x20 [ 112.608277] lock_acquire+0x1d5/0x580 [ 112.612041] ? exit_pi_state_list+0x369/0x7a0 [ 112.616502] ? lock_release+0xd70/0xd70 [ 112.620440] ? do_raw_spin_trylock+0x190/0x190 [ 112.624984] ? find_held_lock+0x39/0x1d0 [ 112.629013] _raw_spin_lock_irq+0x5e/0x80 [ 112.633121] ? exit_pi_state_list+0x369/0x7a0 [ 112.637577] exit_pi_state_list+0x369/0x7a0 [ 112.641864] ? futex_wait_requeue_pi.constprop.19+0x1300/0x1300 [ 112.647887] ? lock_release+0xd70/0xd70 [ 112.651825] ? trace_event_raw_event_sched_switch+0x770/0x770 [ 112.657674] ? _raw_spin_unlock_irqrestore+0x31/0xba [ 112.662743] ? __might_sleep+0x95/0x190 [ 112.666684] ? __might_fault+0x188/0x1d0 [ 112.670708] ? do_raw_spin_trylock+0x190/0x190 [ 112.675254] mm_release+0x46d/0x590 [ 112.678845] ? do_raw_spin_trylock+0x190/0x190 [ 112.683388] ? mm_access+0x140/0x140 [ 112.687066] ? _raw_spin_unlock_irq+0x27/0x70 [ 112.691524] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 112.696503] ? trace_hardirqs_on+0xd/0x10 [ 112.700614] ? _raw_spin_unlock_irq+0x27/0x70 [ 112.705077] ? acct_collect+0x637/0x800 [ 112.709019] do_exit+0x481/0x1b00 [ 112.712435] ? mm_update_next_owner+0x930/0x930 [ 112.717070] ? trace_event_raw_event_sched_switch+0x770/0x770 [ 112.722921] ? find_held_lock+0x39/0x1d0 [ 112.726951] ? refill_pi_state_cache.part.6+0x2f0/0x2f0 [ 112.732278] ? check_noncircular+0x20/0x20 [ 112.736479] ? fault_in_user_writeable+0x90/0x90 [ 112.741198] ? futex_wake+0x680/0x680 [ 112.744963] ? find_held_lock+0x39/0x1d0 [ 112.748990] ? lock_downgrade+0x990/0x990 [ 112.753104] ? recalc_sigpending_tsk+0x117/0x150 [ 112.757823] ? recalc_sigpending+0x103/0x160 [ 112.762194] ? recalc_sigpending_tsk+0x150/0x150 [ 112.766910] ? get_signal+0x2b2/0x16d0 [ 112.770769] do_group_exit+0x149/0x400 [ 112.774620] ? __lock_is_held+0xbc/0x140 [ 112.778642] ? SyS_exit+0x30/0x30 [ 112.782066] ? _raw_spin_unlock_irq+0x27/0x70 [ 112.786523] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 112.791503] get_signal+0x73f/0x16d0 [ 112.795182] ? ptrace_notify+0x130/0x130 [ 112.799208] ? vma_wants_writenotify+0x3b0/0x3b0 [ 112.803928] ? exit_robust_list+0x240/0x240