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-0,10.128.15.232' (ECDSA) to the list of known hosts. 2017/10/01 22:36:03 parsed 1 programs 2017/10/01 22:36:03 executed programs: 0 2017/10/01 22:36:08 executed programs: 38 2017/10/01 22:36:13 executed programs: 76 syzkaller login: [ 52.422160] ================================================================== [ 52.423198] BUG: KASAN: use-after-free in __lock_acquire+0x407b/0x4620 [ 52.424086] Read of size 8 at addr ffff8801cccc1be8 by task syz-executor0/3482 [ 52.425045] [ 52.425278] CPU: 0 PID: 3482 Comm: syz-executor0 Not tainted 4.14.0-rc2+ #111 [ 52.426245] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 52.427461] Call Trace: [ 52.427818] dump_stack+0x194/0x257 [ 52.428305] ? arch_local_irq_restore+0x53/0x53 [ 52.428923] ? show_regs_print_info+0x65/0x65 [ 52.429519] ? __kernel_text_address+0xd/0x40 [ 52.430114] ? __lock_acquire+0x407b/0x4620 [ 52.430692] print_address_description+0x73/0x250 [ 52.431335] ? __lock_acquire+0x407b/0x4620 [ 52.431908] kasan_report+0x25b/0x340 [ 52.432415] __asan_report_load8_noabort+0x14/0x20 [ 52.433067] __lock_acquire+0x407b/0x4620 [ 52.433624] ? unwind_dump+0x4c0/0x4c0 [ 52.434141] ? __unwind_start+0x169/0x330 [ 52.434693] ? __kernel_text_address+0xd/0x40 [ 52.435292] ? unwind_get_return_address+0x61/0xa0 [ 52.435946] ? debug_check_no_locks_freed+0x3d0/0x3d0 [ 52.436629] ? unwind_get_return_address+0x61/0xa0 [ 52.437281] ? __save_stack_trace+0x61/0xd0 [ 52.437858] ? get_signal+0x73f/0x16d0 [ 52.438376] ? save_stack_trace+0x16/0x20 [ 52.438926] ? __lock_acquire+0x20fd/0x4620 [ 52.439501] ? debug_check_no_locks_freed+0x3d0/0x3d0 [ 52.440190] ? debug_check_no_locks_freed+0x3d0/0x3d0 [ 52.440875] ? save_stack_trace+0x16/0x20 [ 52.441427] ? __lock_acquire+0x20fd/0x4620 [ 52.442000] ? osq_unlock+0x350/0x350 [ 52.444123] ? save_stack_trace+0x16/0x20 [ 52.448233] ? lock_release+0xd70/0xd70 [ 52.452170] ? check_noncircular+0x20/0x20 [ 52.456367] ? debug_check_no_locks_freed+0x3d0/0x3d0 [ 52.461519] ? debug_check_no_locks_freed+0x3d0/0x3d0 [ 52.466675] ? find_held_lock+0x39/0x1d0 [ 52.470702] ? lock_downgrade+0x990/0x990 [ 52.474812] ? check_noncircular+0x20/0x20 [ 52.479010] lock_acquire+0x1d5/0x580 [ 52.482772] ? exit_pi_state_list+0x369/0x7a0 [ 52.487232] ? lock_release+0xd70/0xd70 [ 52.491167] ? do_raw_spin_trylock+0x190/0x190 [ 52.495711] ? find_held_lock+0x39/0x1d0 [ 52.499737] _raw_spin_lock_irq+0x5e/0x80 [ 52.503850] ? exit_pi_state_list+0x369/0x7a0 [ 52.508306] exit_pi_state_list+0x369/0x7a0 [ 52.512592] ? futex_wait_requeue_pi.constprop.19+0x1300/0x1300 [ 52.518614] ? lock_release+0xd70/0xd70 [ 52.522551] ? check_same_owner+0x320/0x320 [ 52.526834] ? _raw_spin_unlock_irqrestore+0x31/0xba [ 52.531899] ? __might_sleep+0x95/0x190 [ 52.535840] ? __might_fault+0x188/0x1d0 [ 52.539864] ? do_raw_spin_trylock+0x190/0x190 [ 52.544412] mm_release+0x46d/0x590 [ 52.548000] ? do_raw_spin_trylock+0x190/0x190 [ 52.552544] ? mm_access+0x140/0x140 [ 52.556224] ? _raw_spin_unlock_irq+0x27/0x70 [ 52.560681] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 52.565659] ? trace_hardirqs_on+0xd/0x10 [ 52.569767] ? _raw_spin_unlock_irq+0x27/0x70 [ 52.574224] ? acct_collect+0x637/0x800 [ 52.578159] do_exit+0x481/0x1af0 [ 52.581574] ? mm_update_next_owner+0x930/0x930 [ 52.586206] ? check_same_owner+0x320/0x320 [ 52.590492] ? find_held_lock+0x39/0x1d0 [ 52.594520] ? refill_pi_state_cache.part.6+0x2f0/0x2f0 [ 52.599845] ? check_noncircular+0x20/0x20 [ 52.604045] ? fault_in_user_writeable+0x90/0x90 [ 52.608762] ? futex_wake+0x680/0x680 [ 52.612524] ? find_held_lock+0x39/0x1d0 [ 52.616549] ? lock_downgrade+0x990/0x990 [ 52.620659] ? recalc_sigpending_tsk+0x117/0x150 [ 52.625377] ? recalc_sigpending+0x103/0x160 [ 52.629745] ? recalc_sigpending_tsk+0x150/0x150 [ 52.634460] ? get_signal+0x2b2/0x16d0 [ 52.638310] do_group_exit+0x149/0x400 [ 52.642159] ? __lock_is_held+0xbc/0x140 [ 52.646182] ? SyS_exit+0x30/0x30 [ 52.649596] ? _raw_spin_unlock_irq+0x27/0x70 [ 52.654055] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 52.659035] get_signal+0x73f/0x16d0 [ 52.662799] ? ptrace_notify+0x130/0x130 [ 52.666821] ? vma_wants_writenotify+0x3b0/0x3b0 [ 52.671540] ? exit_robust_list+0x240/0x240 [ 52.675824] ? lock_downgrade+0x990/0x990 [ 52.679932] ? SyS_brk+0x6f0/0x6f0 [ 52.683440] do_signal+0x94/0x1ee0 [ 52.686943] ? arch_get_unmapped_area+0x750/0x750 [ 52.691745] ? lock_acquire+0x1d5/0x580 [ 52.695683] ? vm_mmap_pgoff+0x198/0x280 [ 52.699706] ? userfaultfd_unmap_complete+0x327/0x510 [ 52.704856] ? setup_sigcontext+0x7d0/0x7d0 [ 52.709138] ? userfaultfd_unmap_prep+0x540/0x540 [ 52.713946] ? do_mmap+0x34f/0xd50 [ 52.717449] ? up_write+0x6b/0x120 [ 52.720952] ? down_write+0x120/0x120 [ 52.724714] ? security_mmap_file+0x143/0x180 [ 52.729171] ? vm_mmap_pgoff+0x1fc/0x280 [ 52.733194] ? exit_to_usermode_loop+0x8c/0x310 [ 52.737827] exit_to_usermode_loop+0x214/0x310 [ 52.742370] ? vma_is_stack_for_current+0xa0/0xa0 [ 52.747176] ? trace_event_raw_event_sys_exit+0x260/0x260 [ 52.753062] ? kasan_check_write+0x14/0x20 [ 52.757263] syscall_return_slowpath+0x42f/0x510 [ 52.761981] ? prepare_exit_to_usermode+0x2d0/0x2d0 [ 52.766971] ? entry_SYSCALL_64_fastpath+0x91/0xbe [ 52.771864] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 52.776840] ? trace_hardirqs_on_thunk+0x1a/0x1c [ 52.781559] entry_SYSCALL_64_fastpath+0xbc/0xbe [ 52.786276] RIP: 0033:0x4520a9 [ 52.789430] RSP: 002b:00007f74024d0cf8 EFLAGS: 00000246 ORIG_RAX: 00000000000000ca [ 52.797105] RAX: fffffffffffffe00 RBX: 00000000007180d8 RCX: 00000000004520a9 [ 52.804337] RDX: 0000000000000000 RSI: 0000000000000000 RDI: 00000000007180d8 [ 52.811568] RBP: 00000000007180b0 R08: 0000000000000000 R09: 0000000000000000 [ 52.818802] R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 [ 52.826034] R13: 0000000000a6f7ef R14: 00007f74024d19c0 R15: 0000000000000002 [ 52.833270] [ 52.834863] Allocated by task 3485: [ 52.838454] save_stack_trace+0x16/0x20 [ 52.842391] save_stack+0x43/0xd0 [ 52.845805] kasan_kmalloc+0xad/0xe0 [ 52.849479] kmem_cache_alloc_trace+0x136/0x750 [ 52.854111] refill_pi_state_cache.part.6+0xa5/0x2f0 [ 52.859174] futex_requeue+0x1887/0x2370 [ 52.863195] do_futex+0x7f5/0x20d0 [ 52.866695] SyS_futex+0x260/0x390 [ 52.870197] entry_SYSCALL_64_fastpath+0x1f/0xbe [ 52.874913] [ 52.876503] Freed by task 3483: [ 52.879744] save_stack_trace+0x16/0x20 [ 52.883681] save_stack+0x43/0xd0 [ 52.887098] kasan_slab_free+0x71/0xc0 [ 52.890946] kfree+0xca/0x250 [ 52.894015] put_pi_state+0x3f4/0x560 [ 52.897776] unqueue_me_pi+0x4a/0xc0 [ 52.901453] futex_wait_requeue_pi.constprop.19+0xc7f/0x1300 [ 52.907210] do_futex+0x825/0x20d0 [ 52.910711] SyS_futex+0x260/0x390 [ 52.914213] entry_SYSCALL_64_fastpath+0x1f/0xbe [ 52.918927] [ 52.920517] The buggy address belongs to the object at ffff8801cccc1bc0 [ 52.920517] which belongs to the cache kmalloc-256 of size 256 [ 52.933139] The buggy address is located 40 bytes inside of [ 52.933139] 256-byte region [ffff8801cccc1bc0, ffff8801cccc1cc0) [ 52.944887] The buggy address belongs to the page: [ 52.949778] page:ffffea0007333040 count:1 mapcount:0 mapping:ffff8801cccc1080 index:0x0 [ 52.957880] flags: 0x200000000000100(slab) [ 52.962078] raw: 0200000000000100 ffff8801cccc1080 0000000000000000 000000010000000c [ 52.969922] raw: ffffea000732e5e0 ffffea000731a3e0 ffff8801dac007c0 0000000000000000 [ 52.977763] page dumped because: kasan: bad access detected [ 52.983433] [ 52.985023] Memory state around the buggy address: [ 52.989912] ffff8801cccc1a80: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 52.997232] ffff8801cccc1b00: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 53.004552] >ffff8801cccc1b80: fc fc fc fc fc fc fc fc fb fb fb fb fb fb fb fb [ 53.011872] ^ [ 53.018586] ffff8801cccc1c00: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 53.025907] ffff8801cccc1c80: fb fb fb fb fb fb fb fb fc fc fc fc fc fc fc fc [ 53.033225] ================================================================== [ 53.040545] Disabling lock debugging due to kernel taint [ 53.045958] Kernel panic - not syncing: panic_on_warn set ... [ 53.045958] [ 53.053284] CPU: 0 PID: 3482 Comm: syz-executor0 Tainted: G B 4.14.0-rc2+ #111 [ 53.061733] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 53.071051] Call Trace: [ 53.073605] dump_stack+0x194/0x257 [ 53.077197] ? arch_local_irq_restore+0x53/0x53 [ 53.081829] ? vprintk_default+0x28/0x30 [ 53.085857] ? __lock_acquire+0x3ff0/0x4620 [ 53.090142] panic+0x1e4/0x417 [ 53.093297] ? __warn+0x1d9/0x1d9 [ 53.096725] ? __lock_acquire+0x407b/0x4620 [ 53.101012] kasan_end_report+0x50/0x50 [ 53.104956] kasan_report+0x144/0x340 [ 53.108720] __asan_report_load8_noabort+0x14/0x20 [ 53.113610] __lock_acquire+0x407b/0x4620 [ 53.117722] ? unwind_dump+0x4c0/0x4c0 [ 53.121571] ? __unwind_start+0x169/0x330 [ 53.125683] ? __kernel_text_address+0xd/0x40 [ 53.130140] ? unwind_get_return_address+0x61/0xa0 [ 53.135035] ? debug_check_no_locks_freed+0x3d0/0x3d0 [ 53.140185] ? unwind_get_return_address+0x61/0xa0 [ 53.145079] ? __save_stack_trace+0x61/0xd0 [ 53.149364] ? get_signal+0x73f/0x16d0 [ 53.153214] ? save_stack_trace+0x16/0x20 [ 53.157326] ? __lock_acquire+0x20fd/0x4620 [ 53.161611] ? debug_check_no_locks_freed+0x3d0/0x3d0 [ 53.166766] ? debug_check_no_locks_freed+0x3d0/0x3d0 [ 53.171917] ? save_stack_trace+0x16/0x20 [ 53.176027] ? __lock_acquire+0x20fd/0x4620 [ 53.180310] ? osq_unlock+0x350/0x350 [ 53.184073] ? save_stack_trace+0x16/0x20 [ 53.188184] ? lock_release+0xd70/0xd70 [ 53.192120] ? check_noncircular+0x20/0x20 [ 53.196316] ? debug_check_no_locks_freed+0x3d0/0x3d0 [ 53.201467] ? debug_check_no_locks_freed+0x3d0/0x3d0 [ 53.206620] ? find_held_lock+0x39/0x1d0 [ 53.210649] ? lock_downgrade+0x990/0x990 [ 53.214759] ? check_noncircular+0x20/0x20 [ 53.218959] lock_acquire+0x1d5/0x580 [ 53.222724] ? exit_pi_state_list+0x369/0x7a0 [ 53.227182] ? lock_release+0xd70/0xd70 [ 53.231116] ? do_raw_spin_trylock+0x190/0x190 [ 53.235662] ? find_held_lock+0x39/0x1d0 [ 53.239689] _raw_spin_lock_irq+0x5e/0x80 [ 53.243798] ? exit_pi_state_list+0x369/0x7a0 [ 53.248253] exit_pi_state_list+0x369/0x7a0 [ 53.252538] ? futex_wait_requeue_pi.constprop.19+0x1300/0x1300 [ 53.258558] ? lock_release+0xd70/0xd70 [ 53.262493] ? check_same_owner+0x320/0x320 [ 53.266777] ? _raw_spin_unlock_irqrestore+0x31/0xba [ 53.271842] ? __might_sleep+0x95/0x190 [ 53.275781] ? __might_fault+0x188/0x1d0 [ 53.279807] ? do_raw_spin_trylock+0x190/0x190 [ 53.284354] mm_release+0x46d/0x590 [ 53.287942] ? do_raw_spin_trylock+0x190/0x190 [ 53.292487] ? mm_access+0x140/0x140 [ 53.296162] ? _raw_spin_unlock_irq+0x27/0x70 [ 53.300618] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 53.305596] ? trace_hardirqs_on+0xd/0x10 [ 53.309704] ? _raw_spin_unlock_irq+0x27/0x70 [ 53.314159] ? acct_collect+0x637/0x800 [ 53.318094] do_exit+0x481/0x1af0 [ 53.321509] ? mm_update_next_owner+0x930/0x930 [ 53.326139] ? check_same_owner+0x320/0x320 [ 53.330422] ? find_held_lock+0x39/0x1d0 [ 53.334449] ? refill_pi_state_cache.part.6+0x2f0/0x2f0 [ 53.339776] ? check_noncircular+0x20/0x20 [ 53.343974] ? fault_in_user_writeable+0x90/0x90 [ 53.348695] ? futex_wake+0x680/0x680 [ 53.352458] ? find_held_lock+0x39/0x1d0 [ 53.356483] ? lock_downgrade+0x990/0x990 [ 53.360600] ? recalc_sigpending_tsk+0x117/0x150 [ 53.365317] ? recalc_sigpending+0x103/0x160 [ 53.369688] ? recalc_sigpending_tsk+0x150/0x150 [ 53.374403] ? get_signal+0x2b2/0x16d0 [ 53.378253] do_group_exit+0x149/0x400 [ 53.382101] ? __lock_is_held+0xbc/0x140 [ 53.386125] ? SyS_exit+0x30/0x30 [ 53.389541] ? _raw_spin_unlock_irq+0x27/0x70 [ 53.393997] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 53.398979] get_signal+0x73f/0x16d0 [ 53.402658] ? ptrace_notify+0x130/0x130 [ 53.406684] ? vma_wants_writenotify+0x3b0/0x3b0 [ 53.411404] ? exit_robust_list+0x240/0x240 [ 53.415687] ? lock_downgrade+0x990/0x990 [ 53.419797] ? SyS_brk+0x6f0/0x6f0