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-8,10.128.0.58' (ECDSA) to the list of known hosts. 2017/09/29 23:17:53 parsed 1 programs 2017/09/29 23:17:53 executed programs: 0 syzkaller login: [ 138.018127] ================================================================== [ 138.025523] BUG: KASAN: use-after-free in __lock_acquire+0x407b/0x4620 [ 138.032155] Read of size 8 at addr ffff8801c5d80928 by task syz-executor7/3696 [ 138.039474] [ 138.041075] CPU: 0 PID: 3696 Comm: syz-executor7 Not tainted 4.14.0-rc2-next-20170929+ #32 [ 138.049441] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 138.058758] Call Trace: [ 138.061315] dump_stack+0x194/0x257 [ 138.064907] ? arch_local_irq_restore+0x53/0x53 [ 138.069549] ? show_regs_print_info+0x65/0x65 [ 138.074029] ? __kernel_text_address+0xd/0x40 [ 138.078499] ? __lock_acquire+0x407b/0x4620 [ 138.082794] print_address_description+0x73/0x250 [ 138.087601] ? __lock_acquire+0x407b/0x4620 [ 138.091886] kasan_report+0x25b/0x340 [ 138.095658] __asan_report_load8_noabort+0x14/0x20 [ 138.100569] __lock_acquire+0x407b/0x4620 [ 138.104701] ? unwind_dump+0x4c0/0x4c0 [ 138.108575] ? __unwind_start+0x169/0x330 [ 138.112690] ? __kernel_text_address+0xd/0x40 [ 138.117152] ? unwind_get_return_address+0x61/0xa0 [ 138.122056] ? debug_check_no_locks_freed+0x3d0/0x3d0 [ 138.127212] ? unwind_get_return_address+0x61/0xa0 [ 138.132113] ? __save_stack_trace+0x61/0xd0 [ 138.136408] ? get_signal+0x73f/0x16d0 [ 138.140265] ? save_stack_trace+0x16/0x20 [ 138.144377] ? __lock_acquire+0x20fd/0x4620 [ 138.148664] ? debug_check_no_locks_freed+0x3d0/0x3d0 [ 138.153821] ? debug_check_no_locks_freed+0x3d0/0x3d0 [ 138.158978] ? save_stack_trace+0x16/0x20 [ 138.163093] ? __lock_acquire+0x20fd/0x4620 [ 138.167378] ? osq_unlock+0x350/0x350 [ 138.171142] ? save_stack_trace+0x16/0x20 [ 138.175256] ? check_noncircular+0x20/0x20 [ 138.179454] ? check_noncircular+0x20/0x20 [ 138.183654] ? debug_check_no_locks_freed+0x3d0/0x3d0 [ 138.188810] ? debug_check_no_locks_freed+0x3d0/0x3d0 [ 138.193963] ? __lock_is_held+0xbc/0x140 [ 138.197989] ? find_held_lock+0x39/0x1d0 [ 138.202024] ? lock_downgrade+0x990/0x990 [ 138.206143] ? check_noncircular+0x20/0x20 [ 138.210343] lock_acquire+0x1d5/0x580 [ 138.214108] ? exit_pi_state_list+0x369/0x7a0 [ 138.218566] ? trace_hardirqs_on_thunk+0x1a/0x1c [ 138.223288] ? lock_release+0xd70/0xd70 [ 138.227228] ? retint_kernel+0x10/0x10 [ 138.231084] _raw_spin_lock_irq+0x5e/0x80 [ 138.235199] ? exit_pi_state_list+0x369/0x7a0 [ 138.239665] exit_pi_state_list+0x369/0x7a0 [ 138.243961] ? futex_wait_requeue_pi.constprop.19+0x1300/0x1300 [ 138.249988] ? lock_release+0xd70/0xd70 [ 138.253928] ? trace_event_raw_event_sched_switch+0x770/0x770 [ 138.259776] ? retint_kernel+0x10/0x10 [ 138.263628] ? __might_sleep+0x95/0x190 [ 138.267567] ? __might_fault+0x188/0x1d0 [ 138.271601] ? do_raw_spin_trylock+0x190/0x190 [ 138.276153] mm_release+0x46d/0x590 [ 138.279745] ? do_raw_spin_trylock+0x190/0x190 [ 138.284291] ? mm_access+0x140/0x140 [ 138.287970] ? _raw_spin_unlock_irq+0x27/0x70 [ 138.292428] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 138.297406] ? trace_hardirqs_on+0xd/0x10 [ 138.301525] ? _raw_spin_unlock_irq+0x27/0x70 [ 138.305989] ? acct_collect+0x637/0x800 [ 138.309930] do_exit+0x481/0x1b00 [ 138.313349] ? mm_update_next_owner+0x930/0x930 [ 138.317984] ? trace_event_raw_event_sched_switch+0x770/0x770 [ 138.323835] ? rcu_note_context_switch+0x710/0x710 [ 138.328729] ? futex_wait_setup+0x14a/0x3d0 [ 138.333020] ? __might_sleep+0x95/0x190 [ 138.336973] ? _cond_resched+0x14/0x30 [ 138.340823] ? futex_wait_queue_me+0x524/0x7e0 [ 138.345368] ? refill_pi_state_cache.part.6+0x2f0/0x2f0 [ 138.350704] ? check_noncircular+0x20/0x20 [ 138.354907] ? futex_wait_setup+0x22e/0x3d0 [ 138.359194] ? futex_wake+0x680/0x680 [ 138.362962] ? find_held_lock+0x39/0x1d0 [ 138.366989] ? lock_downgrade+0x990/0x990 [ 138.371105] ? recalc_sigpending_tsk+0x117/0x150 [ 138.375823] ? recalc_sigpending+0x103/0x160 [ 138.380195] ? recalc_sigpending_tsk+0x150/0x150 [ 138.384916] ? get_signal+0x2b2/0x16d0 [ 138.388776] do_group_exit+0x149/0x400 [ 138.392628] ? __lock_is_held+0xbc/0x140 [ 138.396652] ? SyS_exit+0x30/0x30 [ 138.400070] ? _raw_spin_unlock_irq+0x27/0x70 [ 138.404529] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 138.409509] get_signal+0x73f/0x16d0 [ 138.413189] ? ptrace_notify+0x130/0x130 [ 138.417216] ? vma_wants_writenotify+0x3b0/0x3b0 [ 138.421938] ? exit_robust_list+0x240/0x240 [ 138.426233] ? lock_downgrade+0x990/0x990 [ 138.430349] ? SyS_brk+0x6f0/0x6f0 [ 138.433857] do_signal+0x94/0x1ee0 [ 138.437359] ? arch_get_unmapped_area+0x750/0x750 [ 138.442164] ? lock_acquire+0x1d5/0x580 [ 138.446106] ? vm_mmap_pgoff+0x198/0x280 [ 138.450133] ? userfaultfd_unmap_complete+0x327/0x510 [ 138.455286] ? setup_sigcontext+0x7d0/0x7d0 [ 138.459572] ? userfaultfd_unmap_prep+0x540/0x540 [ 138.464378] ? do_mmap+0x34f/0xd50 [ 138.467887] ? up_write+0x6b/0x120 [ 138.471395] ? down_write+0x120/0x120 [ 138.475161] ? security_mmap_file+0x143/0x180 [ 138.479622] ? vm_mmap_pgoff+0x1fc/0x280 [ 138.483646] ? exit_to_usermode_loop+0x8c/0x310 [ 138.488282] exit_to_usermode_loop+0x214/0x310 [ 138.492827] ? vma_is_stack_for_current+0xa0/0xa0 [ 138.497631] ? trace_event_raw_event_sys_exit+0x260/0x260 [ 138.503143] ? kasan_check_write+0x14/0x20 [ 138.507361] syscall_return_slowpath+0x42f/0x510 [ 138.512096] ? prepare_exit_to_usermode+0x2d0/0x2d0 [ 138.517088] ? entry_SYSCALL_64_fastpath+0x91/0xbe [ 138.521986] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 138.526966] ? trace_hardirqs_on_thunk+0x1a/0x1c [ 138.531690] entry_SYSCALL_64_fastpath+0xbc/0xbe [ 138.536411] RIP: 0033:0x4520a9 [ 138.539576] RSP: 002b:00007fa6416a7cf8 EFLAGS: 00000246 ORIG_RAX: 00000000000000ca [ 138.547253] RAX: 0000000000000000 RBX: 0000000000718188 RCX: 00000000004520a9 [ 138.554487] RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000718188 [ 138.561726] RBP: 0000000000718160 R08: 0000000000000000 R09: 0000000000000000 [ 138.568968] R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 [ 138.576202] R13: 00007ffc2aa4357f R14: 00007fa6416a89c0 R15: 000000000000000a [ 138.583452] [ 138.585058] Allocated by task 3709: [ 138.588681] save_stack_trace+0x16/0x20 [ 138.592640] save_stack+0x43/0xd0 [ 138.596071] kasan_kmalloc+0xad/0xe0 [ 138.599754] kmem_cache_alloc_trace+0x136/0x750 [ 138.604387] refill_pi_state_cache.part.6+0xa5/0x2f0 [ 138.609457] futex_requeue+0x1887/0x2370 [ 138.613497] do_futex+0x7f5/0x20d0 [ 138.617019] SyS_futex+0x260/0x390 [ 138.620542] entry_SYSCALL_64_fastpath+0x1f/0xbe [ 138.625267] [ 138.626859] Freed by task 3692: [ 138.630104] save_stack_trace+0x16/0x20 [ 138.634044] save_stack+0x43/0xd0 [ 138.637460] kasan_slab_free+0x71/0xc0 [ 138.641314] kfree+0xca/0x250 [ 138.644397] put_pi_state+0x3f4/0x560 [ 138.648174] unqueue_me_pi+0x4a/0xc0 [ 138.651869] futex_wait_requeue_pi.constprop.19+0xc7f/0x1300 [ 138.657641] do_futex+0x825/0x20d0 [ 138.661159] SyS_futex+0x260/0x390 [ 138.664666] entry_SYSCALL_64_fastpath+0x1f/0xbe [ 138.669381] [ 138.670975] The buggy address belongs to the object at ffff8801c5d80900 [ 138.670975] which belongs to the cache kmalloc-256 of size 256 [ 138.683594] The buggy address is located 40 bytes inside of [ 138.683594] 256-byte region [ffff8801c5d80900, ffff8801c5d80a00) [ 138.695342] The buggy address belongs to the page: [ 138.700239] page:ffffea0007176000 count:1 mapcount:0 mapping:ffff8801c5d80040 index:0x0 [ 138.708350] flags: 0x200000000000100(slab) [ 138.712549] raw: 0200000000000100 ffff8801c5d80040 0000000000000000 000000010000000c [ 138.720395] raw: ffffea000719a6a0 ffffea000718b6a0 ffff8801dac007c0 0000000000000000 [ 138.728246] page dumped because: kasan: bad access detected [ 138.733927] [ 138.735532] Memory state around the buggy address: [ 138.740438] ffff8801c5d80800: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 138.747769] ffff8801c5d80880: fb fb fb fb fb fb fb fb fc fc fc fc fc fc fc fc [ 138.755095] >ffff8801c5d80900: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 138.762425] ^ [ 138.767071] ffff8801c5d80980: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 138.774396] ffff8801c5d80a00: fc fc fc fc fc fc fc fc fb fb fb fb fb fb fb fb [ 138.781716] ================================================================== [ 138.789042] Disabling lock debugging due to kernel taint [ 138.794467] Kernel panic - not syncing: panic_on_warn set ... [ 138.794467] [ 138.801803] CPU: 0 PID: 3696 Comm: syz-executor7 Tainted: G B 4.14.0-rc2-next-20170929+ #32 [ 138.811381] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 138.820707] Call Trace: [ 138.823283] dump_stack+0x194/0x257 [ 138.826879] ? arch_local_irq_restore+0x53/0x53 [ 138.831515] ? vprintk_default+0x28/0x30 [ 138.835541] ? __lock_acquire+0x4000/0x4620 [ 138.839835] panic+0x1e4/0x41c [ 138.843007] ? refcount_error_report+0x214/0x214 [ 138.847741] ? __lock_acquire+0x407b/0x4620 [ 138.852031] kasan_end_report+0x50/0x50 [ 138.855970] kasan_report+0x144/0x340 [ 138.859738] __asan_report_load8_noabort+0x14/0x20 [ 138.864648] __lock_acquire+0x407b/0x4620 [ 138.868790] ? unwind_dump+0x4c0/0x4c0 [ 138.872657] ? __unwind_start+0x169/0x330 [ 138.876774] ? __kernel_text_address+0xd/0x40 [ 138.881232] ? unwind_get_return_address+0x61/0xa0 [ 138.886129] ? debug_check_no_locks_freed+0x3d0/0x3d0 [ 138.891284] ? unwind_get_return_address+0x61/0xa0 [ 138.896188] ? __save_stack_trace+0x61/0xd0 [ 138.900486] ? get_signal+0x73f/0x16d0 [ 138.904341] ? save_stack_trace+0x16/0x20 [ 138.908453] ? __lock_acquire+0x20fd/0x4620 [ 138.912748] ? debug_check_no_locks_freed+0x3d0/0x3d0 [ 138.917914] ? debug_check_no_locks_freed+0x3d0/0x3d0 [ 138.923072] ? save_stack_trace+0x16/0x20 [ 138.927184] ? __lock_acquire+0x20fd/0x4620 [ 138.931471] ? osq_unlock+0x350/0x350 [ 138.935236] ? save_stack_trace+0x16/0x20 [ 138.939352] ? check_noncircular+0x20/0x20 [ 138.943560] ? check_noncircular+0x20/0x20 [ 138.947767] ? debug_check_no_locks_freed+0x3d0/0x3d0 [ 138.952925] ? debug_check_no_locks_freed+0x3d0/0x3d0 [ 138.958088] ? __lock_is_held+0xbc/0x140 [ 138.962118] ? find_held_lock+0x39/0x1d0 [ 138.966154] ? lock_downgrade+0x990/0x990 [ 138.970274] ? check_noncircular+0x20/0x20 [ 138.974472] lock_acquire+0x1d5/0x580 [ 138.978238] ? exit_pi_state_list+0x369/0x7a0 [ 138.982700] ? trace_hardirqs_on_thunk+0x1a/0x1c [ 138.987435] ? lock_release+0xd70/0xd70 [ 138.991409] ? retint_kernel+0x10/0x10 [ 138.995288] _raw_spin_lock_irq+0x5e/0x80 [ 138.999408] ? exit_pi_state_list+0x369/0x7a0 [ 139.003869] exit_pi_state_list+0x369/0x7a0 [ 139.008157] ? futex_wait_requeue_pi.constprop.19+0x1300/0x1300 [ 139.014186] ? lock_release+0xd70/0xd70