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-9,10.128.0.8' (ECDSA) to the list of known hosts. 2017/09/27 11:25:15 parsed 1 programs 2017/09/27 11:25:15 executed programs: 0 2017/09/27 11:25:20 executed programs: 36 syzkaller login: [ 40.464242] ================================================================== [ 40.471677] BUG: KASAN: use-after-free in __lock_acquire+0x407b/0x4620 [ 40.478320] Read of size 8 at addr ffff8801ce6fc968 by task syz-executor0/3212 [ 40.485642] [ 40.487238] CPU: 1 PID: 3212 Comm: syz-executor0 Not tainted 4.14.0-rc2-next-20170927+ #30 [ 40.495601] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 40.504921] Call Trace: [ 40.507478] dump_stack+0x194/0x257 [ 40.511071] ? arch_local_irq_restore+0x53/0x53 [ 40.515715] ? show_regs_print_info+0x65/0x65 [ 40.520178] ? __kernel_text_address+0xd/0x40 [ 40.524637] ? __lock_acquire+0x407b/0x4620 [ 40.528927] print_address_description+0x73/0x250 [ 40.533735] ? __lock_acquire+0x407b/0x4620 [ 40.538020] kasan_report+0x25b/0x340 [ 40.541786] __asan_report_load8_noabort+0x14/0x20 [ 40.546679] __lock_acquire+0x407b/0x4620 [ 40.550805] ? unwind_dump+0x4c0/0x4c0 [ 40.554662] ? __unwind_start+0x169/0x330 [ 40.558776] ? __kernel_text_address+0xd/0x40 [ 40.563235] ? unwind_get_return_address+0x61/0xa0 [ 40.568135] ? debug_check_no_locks_freed+0x3d0/0x3d0 [ 40.573288] ? unwind_get_return_address+0x61/0xa0 [ 40.578182] ? __save_stack_trace+0x61/0xd0 [ 40.582469] ? get_signal+0x73f/0x16d0 [ 40.586767] ? save_stack_trace+0x16/0x20 [ 40.590883] ? __lock_acquire+0x20fd/0x4620 [ 40.595170] ? debug_check_no_locks_freed+0x3d0/0x3d0 [ 40.600326] ? debug_check_no_locks_freed+0x3d0/0x3d0 [ 40.605478] ? save_stack_trace+0x16/0x20 [ 40.609590] ? __lock_acquire+0x20fd/0x4620 [ 40.613875] ? osq_unlock+0x350/0x350 [ 40.617640] ? save_stack_trace+0x16/0x20 [ 40.621757] ? lock_release+0xd70/0xd70 [ 40.625698] ? check_noncircular+0x20/0x20 [ 40.629897] ? debug_check_no_locks_freed+0x3d0/0x3d0 [ 40.635051] ? debug_check_no_locks_freed+0x3d0/0x3d0 [ 40.640207] ? find_held_lock+0x39/0x1d0 [ 40.644235] ? lock_downgrade+0x990/0x990 [ 40.648346] ? check_noncircular+0x20/0x20 [ 40.652545] lock_acquire+0x1d5/0x580 [ 40.656314] ? exit_pi_state_list+0x369/0x7a0 [ 40.660777] ? lock_release+0xd70/0xd70 [ 40.664720] ? do_raw_spin_trylock+0x190/0x190 [ 40.669264] ? find_held_lock+0x39/0x1d0 [ 40.673297] _raw_spin_lock_irq+0x5e/0x80 [ 40.677409] ? exit_pi_state_list+0x369/0x7a0 [ 40.681870] exit_pi_state_list+0x369/0x7a0 [ 40.686157] ? futex_wait_requeue_pi.constprop.19+0x1300/0x1300 [ 40.692189] ? lock_release+0xd70/0xd70 [ 40.696131] ? trace_event_raw_event_sched_switch+0x770/0x770 [ 40.701979] ? _raw_spin_unlock_irqrestore+0x31/0xba [ 40.707048] ? __might_sleep+0x95/0x190 [ 40.710989] ? __might_fault+0x188/0x1d0 [ 40.715019] ? do_raw_spin_trylock+0x190/0x190 [ 40.719569] mm_release+0x46d/0x590 [ 40.723159] ? do_raw_spin_trylock+0x190/0x190 [ 40.727704] ? mm_access+0x140/0x140 [ 40.731381] ? _raw_spin_unlock_irq+0x27/0x70 [ 40.735841] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 40.740821] ? trace_hardirqs_on+0xd/0x10 [ 40.744934] ? _raw_spin_unlock_irq+0x27/0x70 [ 40.749393] ? acct_collect+0x637/0x800 [ 40.753330] do_exit+0x481/0x1b00 [ 40.756752] ? mm_update_next_owner+0x930/0x930 [ 40.761384] ? trace_event_raw_event_sched_switch+0x770/0x770 [ 40.767232] ? find_held_lock+0x39/0x1d0 [ 40.771262] ? refill_pi_state_cache.part.6+0x2f0/0x2f0 [ 40.776591] ? check_noncircular+0x20/0x20 [ 40.780801] ? fault_in_user_writeable+0x90/0x90 [ 40.785525] ? futex_wake+0x680/0x680 [ 40.789291] ? find_held_lock+0x39/0x1d0 [ 40.793318] ? lock_downgrade+0x990/0x990 [ 40.797432] ? recalc_sigpending_tsk+0x117/0x150 [ 40.802153] ? recalc_sigpending+0x103/0x160 [ 40.806526] ? recalc_sigpending_tsk+0x150/0x150 [ 40.811245] ? get_signal+0x2b2/0x16d0 [ 40.815098] do_group_exit+0x149/0x400 [ 40.818950] ? __lock_is_held+0xbc/0x140 [ 40.822976] ? SyS_exit+0x30/0x30 [ 40.826393] ? _raw_spin_unlock_irq+0x27/0x70 [ 40.830864] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 40.835848] get_signal+0x73f/0x16d0 [ 40.839530] ? ptrace_notify+0x130/0x130 [ 40.843557] ? vma_wants_writenotify+0x3b0/0x3b0 [ 40.848282] ? exit_robust_list+0x240/0x240 [ 40.852572] ? lock_downgrade+0x990/0x990 [ 40.856686] ? SyS_brk+0x6f0/0x6f0 [ 40.860194] do_signal+0x94/0x1ee0 [ 40.863701] ? arch_get_unmapped_area+0x750/0x750 [ 40.868509] ? lock_acquire+0x1d5/0x580 [ 40.872452] ? vm_mmap_pgoff+0x198/0x280 [ 40.876483] ? userfaultfd_unmap_complete+0x327/0x510 [ 40.881640] ? setup_sigcontext+0x7d0/0x7d0 [ 40.885928] ? userfaultfd_unmap_prep+0x540/0x540 [ 40.890738] ? do_mmap+0x34f/0xd50 [ 40.894243] ? up_write+0x6b/0x120 [ 40.897750] ? down_write+0x120/0x120 [ 40.901530] ? security_mmap_file+0x143/0x180 [ 40.905993] ? vm_mmap_pgoff+0x1fc/0x280 [ 40.910020] ? exit_to_usermode_loop+0x8c/0x310 [ 40.914657] exit_to_usermode_loop+0x214/0x310 [ 40.919203] ? vma_is_stack_for_current+0xa0/0xa0 [ 40.924019] ? trace_event_raw_event_sys_exit+0x260/0x260 [ 40.929524] ? kasan_check_write+0x14/0x20 [ 40.933727] syscall_return_slowpath+0x42f/0x510 [ 40.938448] ? prepare_exit_to_usermode+0x2d0/0x2d0 [ 40.943431] ? entry_SYSCALL_64_fastpath+0x91/0xbe [ 40.948324] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 40.953306] ? trace_hardirqs_on_thunk+0x1a/0x1c [ 40.958028] entry_SYSCALL_64_fastpath+0xbc/0xbe [ 40.962749] RIP: 0033:0x4520a9 [ 40.965916] RSP: 002b:00007fe031190cf8 EFLAGS: 00000246 ORIG_RAX: 00000000000000ca [ 40.973589] RAX: fffffffffffffe00 RBX: 00000000007180d8 RCX: 00000000004520a9 [ 40.980841] RDX: 0000000000000000 RSI: 0000000000000000 RDI: 00000000007180d8 [ 40.988077] RBP: 00000000007180b0 R08: 0000000000000000 R09: 0000000000000000 [ 40.995311] R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 [ 41.002546] R13: 0000000000a6f7ef R14: 00007fe0311919c0 R15: 0000000000000002 [ 41.009786] [ 41.011379] Allocated by task 3215: [ 41.014973] save_stack_trace+0x16/0x20 [ 41.018910] save_stack+0x43/0xd0 [ 41.022326] kasan_kmalloc+0xad/0xe0 [ 41.026012] kmem_cache_alloc_trace+0x136/0x750 [ 41.030647] refill_pi_state_cache.part.6+0xa5/0x2f0 [ 41.035713] futex_requeue+0x1887/0x2370 [ 41.039747] do_futex+0x7f5/0x20d0 [ 41.043252] SyS_futex+0x260/0x390 [ 41.046757] entry_SYSCALL_64_fastpath+0x1f/0xbe [ 41.051473] [ 41.053064] Freed by task 3213: [ 41.056307] save_stack_trace+0x16/0x20 [ 41.060265] save_stack+0x43/0xd0 [ 41.063688] kasan_slab_free+0x71/0xc0 [ 41.067539] kfree+0xca/0x250 [ 41.070611] put_pi_state+0x3f4/0x560 [ 41.074387] unqueue_me_pi+0x4a/0xc0 [ 41.078065] futex_wait_requeue_pi.constprop.19+0xc7f/0x1300 [ 41.083825] do_futex+0x825/0x20d0 [ 41.087329] SyS_futex+0x260/0x390 [ 41.090833] entry_SYSCALL_64_fastpath+0x1f/0xbe [ 41.095551] [ 41.097145] The buggy address belongs to the object at ffff8801ce6fc940 [ 41.097145] which belongs to the cache kmalloc-256 of size 256 [ 41.109763] The buggy address is located 40 bytes inside of [ 41.109763] 256-byte region [ffff8801ce6fc940, ffff8801ce6fca40) [ 41.121514] The buggy address belongs to the page: [ 41.126408] page:ffffea000739bf00 count:1 mapcount:0 mapping:ffff8801ce6fc080 index:0x0 [ 41.134523] flags: 0x200000000000100(slab) [ 41.138722] raw: 0200000000000100 ffff8801ce6fc080 0000000000000000 000000010000000c [ 41.146568] raw: ffffea000738b2e0 ffffea000738f0e0 ffff8801dac007c0 0000000000000000 [ 41.154410] page dumped because: kasan: bad access detected [ 41.160081] [ 41.161674] Memory state around the buggy address: [ 41.166565] ffff8801ce6fc800: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 41.173897] ffff8801ce6fc880: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 41.181219] >ffff8801ce6fc900: fc fc fc fc fc fc fc fc fb fb fb fb fb fb fb fb [ 41.188548] ^ [ 41.195263] ffff8801ce6fc980: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 41.202588] ffff8801ce6fca00: fb fb fb fb fb fb fb fb fc fc fc fc fc fc fc fc [ 41.209908] ================================================================== [ 41.217229] Disabling lock debugging due to kernel taint [ 41.222641] Kernel panic - not syncing: panic_on_warn set ... [ 41.222641] [ 41.229970] CPU: 1 PID: 3212 Comm: syz-executor0 Tainted: G B 4.14.0-rc2-next-20170927+ #30 [ 41.239549] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 41.248868] Call Trace: [ 41.251423] dump_stack+0x194/0x257 [ 41.255023] ? arch_local_irq_restore+0x53/0x53 [ 41.259660] ? vprintk_default+0x28/0x30 [ 41.263690] ? __lock_acquire+0x3f80/0x4620 [ 41.267981] panic+0x1e4/0x417 [ 41.271139] ? __warn+0x1d9/0x1d9 [ 41.274560] ? __lock_acquire+0x407b/0x4620 [ 41.278848] kasan_end_report+0x50/0x50 [ 41.282787] kasan_report+0x144/0x340 [ 41.286555] __asan_report_load8_noabort+0x14/0x20 [ 41.291454] __lock_acquire+0x407b/0x4620 [ 41.295567] ? unwind_dump+0x4c0/0x4c0 [ 41.299417] ? __unwind_start+0x169/0x330 [ 41.303533] ? __kernel_text_address+0xd/0x40 [ 41.307995] ? unwind_get_return_address+0x61/0xa0 [ 41.312894] ? debug_check_no_locks_freed+0x3d0/0x3d0 [ 41.318045] ? unwind_get_return_address+0x61/0xa0 [ 41.322940] ? __save_stack_trace+0x61/0xd0 [ 41.327227] ? get_signal+0x73f/0x16d0 [ 41.331080] ? save_stack_trace+0x16/0x20 [ 41.335193] ? __lock_acquire+0x20fd/0x4620 [ 41.339480] ? debug_check_no_locks_freed+0x3d0/0x3d0 [ 41.344638] ? debug_check_no_locks_freed+0x3d0/0x3d0 [ 41.349790] ? save_stack_trace+0x16/0x20 [ 41.353901] ? __lock_acquire+0x20fd/0x4620 [ 41.358188] ? osq_unlock+0x350/0x350 [ 41.361951] ? save_stack_trace+0x16/0x20 [ 41.366063] ? lock_release+0xd70/0xd70 [ 41.370003] ? check_noncircular+0x20/0x20 [ 41.374201] ? debug_check_no_locks_freed+0x3d0/0x3d0 [ 41.379355] ? debug_check_no_locks_freed+0x3d0/0x3d0 [ 41.384510] ? find_held_lock+0x39/0x1d0 [ 41.388536] ? lock_downgrade+0x990/0x990 [ 41.392648] ? check_noncircular+0x20/0x20 [ 41.396846] lock_acquire+0x1d5/0x580 [ 41.400615] ? exit_pi_state_list+0x369/0x7a0 [ 41.405075] ? lock_release+0xd70/0xd70 [ 41.409013] ? do_raw_spin_trylock+0x190/0x190 [ 41.413557] ? find_held_lock+0x39/0x1d0 [ 41.417586] _raw_spin_lock_irq+0x5e/0x80 [ 41.421699] ? exit_pi_state_list+0x369/0x7a0 [ 41.426156] exit_pi_state_list+0x369/0x7a0 [ 41.430443] ? futex_wait_requeue_pi.constprop.19+0x1300/0x1300 [ 41.436464] ? lock_release+0xd70/0xd70 [ 41.440404] ? trace_event_raw_event_sched_switch+0x770/0x770 [ 41.446257] ? _raw_spin_unlock_irqrestore+0x31/0xba [ 41.451334] ? __might_sleep+0x95/0x190 [ 41.455281] ? __might_fault+0x188/0x1d0 [ 41.459310] ? do_raw_spin_trylock+0x190/0x190 [ 41.463859] mm_release+0x46d/0x590