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-3,10.128.0.44' (ECDSA) to the list of known hosts. 2017/09/30 22:31:54 parsed 1 programs 2017/09/30 22:31:54 executed programs: 0 syzkaller login: [ 31.190408] ================================================================== [ 31.197830] BUG: KASAN: use-after-free in __lock_acquire+0x407b/0x4620 [ 31.204461] Read of size 8 at addr ffff8801cf284a68 by task syz-executor2/3019 [ 31.211782] [ 31.213379] CPU: 1 PID: 3019 Comm: syz-executor2 Not tainted 4.14.0-rc2-next-20170929+ #32 [ 31.221742] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 31.231065] Call Trace: [ 31.233620] dump_stack+0x194/0x257 [ 31.237212] ? arch_local_irq_restore+0x53/0x53 [ 31.241845] ? show_regs_print_info+0x65/0x65 [ 31.246307] ? __kernel_text_address+0xd/0x40 [ 31.250767] ? __lock_acquire+0x407b/0x4620 [ 31.255058] print_address_description+0x73/0x250 [ 31.259867] ? __lock_acquire+0x407b/0x4620 [ 31.264155] kasan_report+0x25b/0x340 [ 31.267921] __asan_report_load8_noabort+0x14/0x20 [ 31.272815] __lock_acquire+0x407b/0x4620 [ 31.276937] ? unwind_dump+0x4c0/0x4c0 [ 31.280789] ? __unwind_start+0x169/0x330 [ 31.284902] ? __kernel_text_address+0xd/0x40 [ 31.289362] ? unwind_get_return_address+0x61/0xa0 [ 31.294260] ? debug_check_no_locks_freed+0x3d0/0x3d0 [ 31.299413] ? unwind_get_return_address+0x61/0xa0 [ 31.304307] ? __save_stack_trace+0x61/0xd0 [ 31.308593] ? get_signal+0x73f/0x16d0 [ 31.312443] ? save_stack_trace+0x16/0x20 [ 31.316554] ? __lock_acquire+0x20fd/0x4620 [ 31.320841] ? debug_check_no_locks_freed+0x3d0/0x3d0 [ 31.325998] ? debug_check_no_locks_freed+0x3d0/0x3d0 [ 31.331154] ? save_stack_trace+0x16/0x20 [ 31.335266] ? __lock_acquire+0x20fd/0x4620 [ 31.339552] ? osq_unlock+0x350/0x350 [ 31.343315] ? save_stack_trace+0x16/0x20 [ 31.347425] ? lock_release+0xd70/0xd70 [ 31.351365] ? check_noncircular+0x20/0x20 [ 31.355571] ? debug_check_no_locks_freed+0x3d0/0x3d0 [ 31.360726] ? debug_check_no_locks_freed+0x3d0/0x3d0 [ 31.365884] ? find_held_lock+0x39/0x1d0 [ 31.369910] ? lock_downgrade+0x990/0x990 [ 31.374023] ? check_noncircular+0x20/0x20 [ 31.378227] lock_acquire+0x1d5/0x580 [ 31.381992] ? exit_pi_state_list+0x369/0x7a0 [ 31.386452] ? lock_release+0xd70/0xd70 [ 31.390390] ? do_raw_spin_trylock+0x190/0x190 [ 31.394937] ? find_held_lock+0x39/0x1d0 [ 31.398969] _raw_spin_lock_irq+0x5e/0x80 [ 31.403083] ? exit_pi_state_list+0x369/0x7a0 [ 31.407544] exit_pi_state_list+0x369/0x7a0 [ 31.411832] ? futex_wait_requeue_pi.constprop.19+0x1300/0x1300 [ 31.417856] ? lock_release+0xd70/0xd70 [ 31.421797] ? trace_event_raw_event_sched_switch+0x770/0x770 [ 31.427645] ? _raw_spin_unlock_irqrestore+0x31/0xba [ 31.432711] ? __might_sleep+0x95/0x190 [ 31.436651] ? __might_fault+0x188/0x1d0 [ 31.440676] ? do_raw_spin_trylock+0x190/0x190 [ 31.445646] mm_release+0x46d/0x590 [ 31.449241] ? do_raw_spin_trylock+0x190/0x190 [ 31.453785] ? mm_access+0x140/0x140 [ 31.457464] ? _raw_spin_unlock_irq+0x27/0x70 [ 31.461928] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 31.466906] ? trace_hardirqs_on+0xd/0x10 [ 31.471017] ? _raw_spin_unlock_irq+0x27/0x70 [ 31.475480] ? acct_collect+0x637/0x800 [ 31.479417] do_exit+0x481/0x1b00 [ 31.482836] ? mm_update_next_owner+0x930/0x930 [ 31.487472] ? trace_event_raw_event_sched_switch+0x770/0x770 [ 31.493320] ? find_held_lock+0x39/0x1d0 [ 31.497348] ? refill_pi_state_cache.part.6+0x2f0/0x2f0 [ 31.502676] ? check_noncircular+0x20/0x20 [ 31.506877] ? fault_in_user_writeable+0x90/0x90 [ 31.511599] ? futex_wake+0x680/0x680 [ 31.515369] ? find_held_lock+0x39/0x1d0 [ 31.519396] ? lock_downgrade+0x990/0x990 [ 31.523509] ? recalc_sigpending_tsk+0x117/0x150 [ 31.528237] ? recalc_sigpending+0x103/0x160 [ 31.532611] ? recalc_sigpending_tsk+0x150/0x150 [ 31.537328] ? get_signal+0x2b2/0x16d0 [ 31.541181] do_group_exit+0x149/0x400 [ 31.545033] ? __lock_is_held+0xbc/0x140 [ 31.549067] ? SyS_exit+0x30/0x30 [ 31.552483] ? _raw_spin_unlock_irq+0x27/0x70 [ 31.556943] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 31.561923] get_signal+0x73f/0x16d0 [ 31.565603] ? ptrace_notify+0x130/0x130 [ 31.569630] ? __schedule+0x8f0/0x2070 [ 31.573483] ? exit_robust_list+0x240/0x240 [ 31.577768] ? lock_downgrade+0x990/0x990 [ 31.581879] ? SyS_brk+0x6f0/0x6f0 [ 31.585385] do_signal+0x94/0x1ee0 [ 31.588887] ? arch_get_unmapped_area+0x750/0x750 [ 31.593690] ? lock_acquire+0x1d5/0x580 [ 31.597629] ? find_held_lock+0x39/0x1d0 [ 31.601652] ? setup_sigcontext+0x7d0/0x7d0 [ 31.605937] ? lock_downgrade+0x990/0x990 [ 31.610051] ? down_write+0x120/0x120 [ 31.613815] ? lock_release+0xd70/0xd70 [ 31.617755] ? trace_event_raw_event_sched_switch+0x770/0x770 [ 31.623602] ? vm_mmap_pgoff+0x1fc/0x280 [ 31.627627] ? exit_to_usermode_loop+0x8c/0x310 [ 31.632264] exit_to_usermode_loop+0x214/0x310 [ 31.636812] ? trace_event_raw_event_sys_exit+0x260/0x260 [ 31.642314] ? kasan_check_write+0x14/0x20 [ 31.646514] syscall_return_slowpath+0x42f/0x510 [ 31.651234] ? prepare_exit_to_usermode+0x2d0/0x2d0 [ 31.656214] ? entry_SYSCALL_64_fastpath+0x91/0xbe [ 31.661108] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 31.666091] ? trace_hardirqs_on_thunk+0x1a/0x1c [ 31.670813] entry_SYSCALL_64_fastpath+0xbc/0xbe [ 31.675531] RIP: 0033:0x4520a9 [ 31.678684] RSP: 002b:00007fe6a75b3cf8 EFLAGS: 00000246 ORIG_RAX: 00000000000000ca [ 31.686357] RAX: fffffffffffffe00 RBX: 0000000000718028 RCX: 00000000004520a9 [ 31.693591] RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000718028 [ 31.700827] RBP: 0000000000718000 R08: 0000000000000000 R09: 0000000000000000 [ 31.708061] R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 [ 31.715293] R13: 00007ffe1cf580df R14: 00007fe6a75b49c0 R15: 0000000000000000 [ 31.722530] [ 31.724122] Allocated by task 3043: [ 31.727713] save_stack_trace+0x16/0x20 [ 31.731648] save_stack+0x43/0xd0 [ 31.735063] kasan_kmalloc+0xad/0xe0 [ 31.738742] kmem_cache_alloc_trace+0x136/0x750 [ 31.743374] refill_pi_state_cache.part.6+0xa5/0x2f0 [ 31.748440] futex_requeue+0x1887/0x2370 [ 31.752462] do_futex+0x7f5/0x20d0 [ 31.755964] SyS_futex+0x260/0x390 [ 31.759466] entry_SYSCALL_64_fastpath+0x1f/0xbe [ 31.764180] [ 31.765771] Freed by task 3027: [ 31.769014] save_stack_trace+0x16/0x20 [ 31.772949] save_stack+0x43/0xd0 [ 31.776367] kasan_slab_free+0x71/0xc0 [ 31.780216] kfree+0xca/0x250 [ 31.783287] put_pi_state+0x3f4/0x560 [ 31.787051] unqueue_me_pi+0x4a/0xc0 [ 31.790728] futex_wait_requeue_pi.constprop.19+0xc7f/0x1300 [ 31.796489] do_futex+0x825/0x20d0 [ 31.799994] SyS_futex+0x260/0x390 [ 31.803497] entry_SYSCALL_64_fastpath+0x1f/0xbe [ 31.808213] [ 31.809809] The buggy address belongs to the object at ffff8801cf284a40 [ 31.809809] which belongs to the cache kmalloc-256 of size 256 [ 31.822427] The buggy address is located 40 bytes inside of [ 31.822427] 256-byte region [ffff8801cf284a40, ffff8801cf284b40) [ 31.834176] The buggy address belongs to the page: [ 31.839070] page:ffffea00073ca100 count:1 mapcount:0 mapping:ffff8801cf284040 index:0x0 [ 31.847181] flags: 0x200000000000100(slab) [ 31.851382] raw: 0200000000000100 ffff8801cf284040 0000000000000000 000000010000000c [ 31.859241] raw: ffffea00073ca560 ffffea0007382420 ffff8801dac007c0 0000000000000000 [ 31.867090] page dumped because: kasan: bad access detected [ 31.872759] [ 31.874351] Memory state around the buggy address: [ 31.879244] ffff8801cf284900: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 31.886566] ffff8801cf284980: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 31.893889] >ffff8801cf284a00: fc fc fc fc fc fc fc fc fb fb fb fb fb fb fb fb [ 31.901214] ^ [ 31.907929] ffff8801cf284a80: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 31.915250] ffff8801cf284b00: fb fb fb fb fb fb fb fb fc fc fc fc fc fc fc fc [ 31.922569] ================================================================== [ 31.929899] Disabling lock debugging due to kernel taint [ 31.935313] Kernel panic - not syncing: panic_on_warn set ... [ 31.935313] [ 31.942641] CPU: 1 PID: 3019 Comm: syz-executor2 Tainted: G B 4.14.0-rc2-next-20170929+ #32 [ 31.952219] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 31.961537] Call Trace: [ 31.964091] dump_stack+0x194/0x257 [ 31.967685] ? arch_local_irq_restore+0x53/0x53 [ 31.972320] ? vprintk_default+0x28/0x30 [ 31.976349] ? __lock_acquire+0x4000/0x4620 [ 31.980635] panic+0x1e4/0x41c [ 31.983794] ? refcount_error_report+0x214/0x214 [ 31.988516] ? __lock_acquire+0x407b/0x4620 [ 31.992802] kasan_end_report+0x50/0x50 [ 31.996738] kasan_report+0x144/0x340 [ 32.000505] __asan_report_load8_noabort+0x14/0x20 [ 32.005398] __lock_acquire+0x407b/0x4620 [ 32.009511] ? unwind_dump+0x4c0/0x4c0 [ 32.013360] ? __unwind_start+0x169/0x330 [ 32.017471] ? __kernel_text_address+0xd/0x40 [ 32.021929] ? unwind_get_return_address+0x61/0xa0 [ 32.026825] ? debug_check_no_locks_freed+0x3d0/0x3d0 [ 32.031976] ? unwind_get_return_address+0x61/0xa0 [ 32.036868] ? __save_stack_trace+0x61/0xd0 [ 32.041153] ? get_signal+0x73f/0x16d0 [ 32.045004] ? save_stack_trace+0x16/0x20 [ 32.049114] ? __lock_acquire+0x20fd/0x4620 [ 32.053402] ? debug_check_no_locks_freed+0x3d0/0x3d0 [ 32.058558] ? debug_check_no_locks_freed+0x3d0/0x3d0 [ 32.063711] ? save_stack_trace+0x16/0x20 [ 32.067821] ? __lock_acquire+0x20fd/0x4620 [ 32.072106] ? osq_unlock+0x350/0x350 [ 32.075868] ? save_stack_trace+0x16/0x20 [ 32.079982] ? lock_release+0xd70/0xd70 [ 32.083920] ? check_noncircular+0x20/0x20 [ 32.088118] ? debug_check_no_locks_freed+0x3d0/0x3d0 [ 32.093273] ? debug_check_no_locks_freed+0x3d0/0x3d0 [ 32.098428] ? find_held_lock+0x39/0x1d0 [ 32.102455] ? lock_downgrade+0x990/0x990 [ 32.106575] ? check_noncircular+0x20/0x20 [ 32.110774] lock_acquire+0x1d5/0x580 [ 32.114543] ? exit_pi_state_list+0x369/0x7a0 [ 32.119004] ? lock_release+0xd70/0xd70 [ 32.122941] ? do_raw_spin_trylock+0x190/0x190 [ 32.127485] ? find_held_lock+0x39/0x1d0 [ 32.131513] _raw_spin_lock_irq+0x5e/0x80 [ 32.135621] ? exit_pi_state_list+0x369/0x7a0 [ 32.140088] exit_pi_state_list+0x369/0x7a0 [ 32.144376] ? futex_wait_requeue_pi.constprop.19+0x1300/0x1300 [ 32.150397] ? lock_release+0xd70/0xd70 [ 32.154336] ? trace_event_raw_event_sched_switch+0x770/0x770 [ 32.160183] ? _raw_spin_unlock_irqrestore+0x31/0xba [ 32.165250] ? __might_sleep+0x95/0x190 [ 32.169190] ? __might_fault+0x188/0x1d0 [ 32.173217] ? do_raw_spin_trylock+0x190/0x190 [ 32.177762] mm_release+0x46d/0x590 [ 32.181349] ? do_raw_spin_trylock+0x190/0x190 [ 32.185894] ? mm_access+0x140/0x140 [ 32.189573] ? _raw_spin_unlock_irq+0x27/0x70