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.231' (ECDSA) to the list of known hosts. 2017/09/27 13:39:55 parsed 1 programs 2017/09/27 13:39:55 executed programs: 0 2017/09/27 13:40:00 executed programs: 334 2017/09/27 13:40:05 executed programs: 661 syzkaller login: [ 36.777339] ================================================================== [ 36.784729] BUG: KASAN: use-after-free in __lock_acquire+0x407b/0x4620 [ 36.791365] Read of size 8 at addr ffff8801d882f6a8 by task syz-executor4/7266 [ 36.798692] [ 36.800310] CPU: 0 PID: 7266 Comm: syz-executor4 Not tainted 4.14.0-rc2-next-20170927+ #30 [ 36.808689] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 36.818019] Call Trace: [ 36.820586] dump_stack+0x194/0x257 [ 36.824195] ? arch_local_irq_restore+0x53/0x53 [ 36.828840] ? show_regs_print_info+0x65/0x65 [ 36.833305] ? __kernel_text_address+0xd/0x40 [ 36.837767] ? __lock_acquire+0x407b/0x4620 [ 36.842062] print_address_description+0x73/0x250 [ 36.846885] ? __lock_acquire+0x407b/0x4620 [ 36.851185] kasan_report+0x25b/0x340 [ 36.854957] __asan_report_load8_noabort+0x14/0x20 [ 36.859853] __lock_acquire+0x407b/0x4620 [ 36.863977] ? unwind_dump+0x4c0/0x4c0 [ 36.867841] ? __unwind_start+0x169/0x330 [ 36.871967] ? __kernel_text_address+0xd/0x40 [ 36.876441] ? unwind_get_return_address+0x61/0xa0 [ 36.881347] ? debug_check_no_locks_freed+0x3d0/0x3d0 [ 36.886510] ? unwind_get_return_address+0x61/0xa0 [ 36.891413] ? __save_stack_trace+0x61/0xd0 [ 36.895704] ? get_signal+0x73f/0x16d0 [ 36.899564] ? save_stack_trace+0x16/0x20 [ 36.903685] ? __lock_acquire+0x20fd/0x4620 [ 36.907974] ? debug_check_no_locks_freed+0x3d0/0x3d0 [ 36.913137] ? debug_check_no_locks_freed+0x3d0/0x3d0 [ 36.918292] ? save_stack_trace+0x16/0x20 [ 36.922407] ? __lock_acquire+0x20fd/0x4620 [ 36.926693] ? osq_unlock+0x350/0x350 [ 36.930464] ? save_stack_trace+0x16/0x20 [ 36.934586] ? lock_release+0xd70/0xd70 [ 36.938526] ? check_noncircular+0x20/0x20 [ 36.942736] ? debug_check_no_locks_freed+0x3d0/0x3d0 [ 36.947896] ? debug_check_no_locks_freed+0x3d0/0x3d0 [ 36.953063] ? find_held_lock+0x39/0x1d0 [ 36.957104] ? lock_downgrade+0x990/0x990 [ 36.961229] ? check_noncircular+0x20/0x20 [ 36.965429] lock_acquire+0x1d5/0x580 [ 36.969219] ? exit_pi_state_list+0x369/0x7a0 [ 36.973691] ? lock_release+0xd70/0xd70 [ 36.977632] ? do_raw_spin_trylock+0x190/0x190 [ 36.982181] ? find_held_lock+0x39/0x1d0 [ 36.986219] _raw_spin_lock_irq+0x5e/0x80 [ 36.990339] ? exit_pi_state_list+0x369/0x7a0 [ 36.994800] exit_pi_state_list+0x369/0x7a0 [ 36.999094] ? futex_wait_requeue_pi.constprop.19+0x1300/0x1300 [ 37.005121] ? lock_release+0xd70/0xd70 [ 37.009072] ? trace_event_raw_event_sched_switch+0x770/0x770 [ 37.014932] ? _raw_spin_unlock_irqrestore+0x31/0xba [ 37.020007] ? __might_sleep+0x95/0x190 [ 37.023954] ? __might_fault+0x188/0x1d0 [ 37.027990] ? do_raw_spin_trylock+0x190/0x190 [ 37.032549] mm_release+0x46d/0x590 [ 37.036141] ? do_raw_spin_trylock+0x190/0x190 [ 37.040689] ? mm_access+0x140/0x140 [ 37.044373] ? _raw_spin_unlock_irq+0x27/0x70 [ 37.048848] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 37.053837] ? trace_hardirqs_on+0xd/0x10 [ 37.057963] ? _raw_spin_unlock_irq+0x27/0x70 [ 37.062437] ? acct_collect+0x637/0x800 [ 37.066382] do_exit+0x481/0x1b00 [ 37.069802] ? mm_update_next_owner+0x930/0x930 [ 37.074445] ? trace_event_raw_event_sched_switch+0x770/0x770 [ 37.080296] ? find_held_lock+0x39/0x1d0 [ 37.084328] ? refill_pi_state_cache.part.6+0x2f0/0x2f0 [ 37.089668] ? check_noncircular+0x20/0x20 [ 37.093871] ? fault_in_user_writeable+0x90/0x90 [ 37.098604] ? futex_wake+0x680/0x680 [ 37.102380] ? find_held_lock+0x39/0x1d0 [ 37.106416] ? lock_downgrade+0x990/0x990 [ 37.110531] ? recalc_sigpending_tsk+0x117/0x150 [ 37.115253] ? recalc_sigpending+0x103/0x160 [ 37.119628] ? recalc_sigpending_tsk+0x150/0x150 [ 37.124353] ? get_signal+0x2b2/0x16d0 [ 37.128215] do_group_exit+0x149/0x400 [ 37.132073] ? __lock_is_held+0xbc/0x140 [ 37.136113] ? SyS_exit+0x30/0x30 [ 37.139538] ? _raw_spin_unlock_irq+0x27/0x70 [ 37.143999] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 37.148990] get_signal+0x73f/0x16d0 [ 37.152677] ? ptrace_notify+0x130/0x130 [ 37.156706] ? vma_wants_writenotify+0x3b0/0x3b0 [ 37.161433] ? exit_robust_list+0x240/0x240 [ 37.165726] ? lock_downgrade+0x990/0x990 [ 37.169845] ? SyS_brk+0x6f0/0x6f0 [ 37.173354] do_signal+0x94/0x1ee0 [ 37.176865] ? arch_get_unmapped_area+0x750/0x750 [ 37.181683] ? lock_acquire+0x1d5/0x580 [ 37.185624] ? vm_mmap_pgoff+0x198/0x280 [ 37.189653] ? userfaultfd_unmap_complete+0x327/0x510 [ 37.194817] ? setup_sigcontext+0x7d0/0x7d0 [ 37.199118] ? userfaultfd_unmap_prep+0x540/0x540 [ 37.203935] ? do_mmap+0x34f/0xd50 [ 37.207445] ? up_write+0x6b/0x120 [ 37.210958] ? down_write+0x120/0x120 [ 37.214726] ? security_mmap_file+0x143/0x180 [ 37.219190] ? vm_mmap_pgoff+0x1fc/0x280 [ 37.223221] ? exit_to_usermode_loop+0x8c/0x310 [ 37.227861] exit_to_usermode_loop+0x214/0x310 [ 37.232424] ? vma_is_stack_for_current+0xa0/0xa0 [ 37.237242] ? trace_event_raw_event_sys_exit+0x260/0x260 [ 37.242743] ? kasan_check_write+0x14/0x20 [ 37.246947] syscall_return_slowpath+0x42f/0x510 [ 37.251667] ? prepare_exit_to_usermode+0x2d0/0x2d0 [ 37.256655] ? entry_SYSCALL_64_fastpath+0x91/0xbe [ 37.261569] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 37.266553] ? trace_hardirqs_on_thunk+0x1a/0x1c [ 37.271279] entry_SYSCALL_64_fastpath+0xbc/0xbe [ 37.275999] RIP: 0033:0x4520a9 [ 37.279160] RSP: 002b:00007fa5a6df6cf8 EFLAGS: 00000246 ORIG_RAX: 00000000000000ca [ 37.286830] RAX: fffffffffffffe00 RBX: 0000000000718188 RCX: 00000000004520a9 [ 37.294065] RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000718188 [ 37.301301] RBP: 0000000000718160 R08: 0000000000000000 R09: 0000000000000000 [ 37.308537] R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 [ 37.315774] R13: 00007ffe430c1acf R14: 00007fa5a6df79c0 R15: 0000000000000005 [ 37.323018] [ 37.324618] Allocated by task 7286: [ 37.328215] save_stack_trace+0x16/0x20 [ 37.332157] save_stack+0x43/0xd0 [ 37.335574] kasan_kmalloc+0xad/0xe0 [ 37.339251] kmem_cache_alloc_trace+0x136/0x750 [ 37.343885] refill_pi_state_cache.part.6+0xa5/0x2f0 [ 37.348955] futex_requeue+0x1887/0x2370 [ 37.352981] do_futex+0x7f5/0x20d0 [ 37.356484] SyS_futex+0x260/0x390 [ 37.359990] entry_SYSCALL_64_fastpath+0x1f/0xbe [ 37.364706] [ 37.366297] Freed by task 7254: [ 37.369540] save_stack_trace+0x16/0x20 [ 37.373479] save_stack+0x43/0xd0 [ 37.376896] kasan_slab_free+0x71/0xc0 [ 37.380747] kfree+0xca/0x250 [ 37.383816] put_pi_state+0x3f4/0x560 [ 37.387579] unqueue_me_pi+0x4a/0xc0 [ 37.391262] futex_wait_requeue_pi.constprop.19+0xc7f/0x1300 [ 37.397027] do_futex+0x825/0x20d0 [ 37.400537] SyS_futex+0x260/0x390 [ 37.404044] entry_SYSCALL_64_fastpath+0x1f/0xbe [ 37.408759] [ 37.410351] The buggy address belongs to the object at ffff8801d882f680 [ 37.410351] which belongs to the cache kmalloc-256 of size 256 [ 37.422974] The buggy address is located 40 bytes inside of [ 37.422974] 256-byte region [ffff8801d882f680, ffff8801d882f780) [ 37.434725] The buggy address belongs to the page: [ 37.439619] page:ffffea0007620bc0 count:1 mapcount:0 mapping:ffff8801d882f040 index:0x0 [ 37.447725] flags: 0x200000000000100(slab) [ 37.451927] raw: 0200000000000100 ffff8801d882f040 0000000000000000 000000010000000c [ 37.459771] raw: ffffea000765dae0 ffffea000762ea20 ffff8801dac007c0 0000000000000000 [ 37.467614] page dumped because: kasan: bad access detected [ 37.473285] [ 37.474877] Memory state around the buggy address: [ 37.479776] ffff8801d882f580: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 37.487100] ffff8801d882f600: fb fb fb fb fb fb fb fb fc fc fc fc fc fc fc fc [ 37.494430] >ffff8801d882f680: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 37.501752] ^ [ 37.506386] ffff8801d882f700: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 37.513707] ffff8801d882f780: fc fc fc fc fc fc fc fc fb fb fb fb fb fb fb fb [ 37.521033] ================================================================== [ 37.528359] Disabling lock debugging due to kernel taint [ 37.533770] Kernel panic - not syncing: panic_on_warn set ... [ 37.533770] [ 37.541097] CPU: 0 PID: 7266 Comm: syz-executor4 Tainted: G B 4.14.0-rc2-next-20170927+ #30 [ 37.550675] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 37.559992] Call Trace: [ 37.562548] dump_stack+0x194/0x257 [ 37.566148] ? arch_local_irq_restore+0x53/0x53 [ 37.570781] ? vprintk_default+0x28/0x30 [ 37.574807] ? __lock_acquire+0x3f80/0x4620 [ 37.579093] panic+0x1e4/0x417 [ 37.582250] ? __warn+0x1d9/0x1d9 [ 37.585672] ? __lock_acquire+0x407b/0x4620 [ 37.589959] kasan_end_report+0x50/0x50 [ 37.593896] kasan_report+0x144/0x340 [ 37.597663] __asan_report_load8_noabort+0x14/0x20 [ 37.602555] __lock_acquire+0x407b/0x4620 [ 37.606671] ? unwind_dump+0x4c0/0x4c0 [ 37.610521] ? __unwind_start+0x169/0x330 [ 37.614631] ? __kernel_text_address+0xd/0x40 [ 37.619091] ? unwind_get_return_address+0x61/0xa0 [ 37.623988] ? debug_check_no_locks_freed+0x3d0/0x3d0 [ 37.629141] ? unwind_get_return_address+0x61/0xa0 [ 37.634035] ? __save_stack_trace+0x61/0xd0 [ 37.638322] ? get_signal+0x73f/0x16d0 [ 37.642172] ? save_stack_trace+0x16/0x20 [ 37.646283] ? __lock_acquire+0x20fd/0x4620 [ 37.650571] ? debug_check_no_locks_freed+0x3d0/0x3d0 [ 37.655728] ? debug_check_no_locks_freed+0x3d0/0x3d0 [ 37.660884] ? save_stack_trace+0x16/0x20 [ 37.664995] ? __lock_acquire+0x20fd/0x4620 [ 37.669283] ? osq_unlock+0x350/0x350 [ 37.673046] ? save_stack_trace+0x16/0x20 [ 37.677157] ? lock_release+0xd70/0xd70 [ 37.681095] ? check_noncircular+0x20/0x20 [ 37.685303] ? debug_check_no_locks_freed+0x3d0/0x3d0 [ 37.690457] ? debug_check_no_locks_freed+0x3d0/0x3d0 [ 37.695613] ? find_held_lock+0x39/0x1d0 [ 37.699641] ? lock_downgrade+0x990/0x990 [ 37.703752] ? check_noncircular+0x20/0x20 [ 37.707951] lock_acquire+0x1d5/0x580 [ 37.711719] ? exit_pi_state_list+0x369/0x7a0 [ 37.716188] ? lock_release+0xd70/0xd70 [ 37.720125] ? do_raw_spin_trylock+0x190/0x190 [ 37.724669] ? find_held_lock+0x39/0x1d0 [ 37.728697] _raw_spin_lock_irq+0x5e/0x80 [ 37.732810] ? exit_pi_state_list+0x369/0x7a0 [ 37.737266] exit_pi_state_list+0x369/0x7a0 [ 37.741555] ? futex_wait_requeue_pi.constprop.19+0x1300/0x1300 [ 37.747576] ? lock_release+0xd70/0xd70 [ 37.751513] ? trace_event_raw_event_sched_switch+0x770/0x770 [ 37.757359] ? _raw_spin_unlock_irqrestore+0x31/0xba [ 37.762432] ? __might_sleep+0x95/0x190 [ 37.766370] ? __might_fault+0x188/0x1d0 [ 37.770394] ? do_raw_spin_trylock+0x190/0x190 [ 37.774939] mm_release+0x46d/0x590