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.12' (ECDSA) to the list of known hosts. 2017/09/30 16:36:13 parsed 1 programs 2017/09/30 16:36:13 executed programs: 0 syzkaller login: [ 151.475422] ================================================================== [ 151.482820] BUG: KASAN: use-after-free in __lock_acquire+0x407b/0x4620 [ 151.489467] Read of size 8 at addr ffff8801ce1fd168 by task syz-executor0/2998 [ 151.496792] [ 151.498389] CPU: 1 PID: 2998 Comm: syz-executor0 Not tainted 4.14.0-rc2-next-20170929+ #32 [ 151.506753] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 151.516087] Call Trace: [ 151.518642] dump_stack+0x194/0x257 [ 151.522231] ? arch_local_irq_restore+0x53/0x53 [ 151.526865] ? show_regs_print_info+0x65/0x65 [ 151.531323] ? __kernel_text_address+0xd/0x40 [ 151.535786] ? __lock_acquire+0x407b/0x4620 [ 151.540071] print_address_description+0x73/0x250 [ 151.544880] ? __lock_acquire+0x407b/0x4620 [ 151.549164] kasan_report+0x25b/0x340 [ 151.552931] __asan_report_load8_noabort+0x14/0x20 [ 151.557823] __lock_acquire+0x407b/0x4620 [ 151.561935] ? unwind_dump+0x4c0/0x4c0 [ 151.565783] ? __unwind_start+0x169/0x330 [ 151.569894] ? __kernel_text_address+0xd/0x40 [ 151.574352] ? unwind_get_return_address+0x61/0xa0 [ 151.579247] ? debug_check_no_locks_freed+0x3d0/0x3d0 [ 151.584399] ? unwind_get_return_address+0x61/0xa0 [ 151.589299] ? __save_stack_trace+0x61/0xd0 [ 151.593585] ? get_signal+0x73f/0x16d0 [ 151.597436] ? save_stack_trace+0x16/0x20 [ 151.601549] ? __lock_acquire+0x20fd/0x4620 [ 151.605849] ? debug_check_no_locks_freed+0x3d0/0x3d0 [ 151.611009] ? debug_check_no_locks_freed+0x3d0/0x3d0 [ 151.616165] ? save_stack_trace+0x16/0x20 [ 151.620277] ? __lock_acquire+0x20fd/0x4620 [ 151.624560] ? osq_unlock+0x350/0x350 [ 151.628323] ? save_stack_trace+0x16/0x20 [ 151.632434] ? lock_release+0xd70/0xd70 [ 151.636373] ? check_noncircular+0x20/0x20 [ 151.640574] ? debug_check_no_locks_freed+0x3d0/0x3d0 [ 151.645727] ? debug_check_no_locks_freed+0x3d0/0x3d0 [ 151.650884] ? find_held_lock+0x39/0x1d0 [ 151.654913] ? lock_downgrade+0x990/0x990 [ 151.659023] ? check_noncircular+0x20/0x20 [ 151.663222] lock_acquire+0x1d5/0x580 [ 151.666986] ? exit_pi_state_list+0x369/0x7a0 [ 151.671447] ? lock_release+0xd70/0xd70 [ 151.675592] ? do_raw_spin_trylock+0x190/0x190 [ 151.680154] ? find_held_lock+0x39/0x1d0 [ 151.684201] _raw_spin_lock_irq+0x5e/0x80 [ 151.688331] ? exit_pi_state_list+0x369/0x7a0 [ 151.692794] exit_pi_state_list+0x369/0x7a0 [ 151.697093] ? futex_wait_requeue_pi.constprop.19+0x1300/0x1300 [ 151.703119] ? lock_release+0xd70/0xd70 [ 151.707060] ? trace_event_raw_event_sched_switch+0x770/0x770 [ 151.712907] ? _raw_spin_unlock_irqrestore+0x31/0xba [ 151.717975] ? __might_sleep+0x95/0x190 [ 151.721914] ? __might_fault+0x188/0x1d0 [ 151.725941] ? do_raw_spin_trylock+0x190/0x190 [ 151.730490] mm_release+0x46d/0x590 [ 151.734079] ? do_raw_spin_trylock+0x190/0x190 [ 151.738632] ? mm_access+0x140/0x140 [ 151.742310] ? _raw_spin_unlock_irq+0x27/0x70 [ 151.746772] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 151.751756] ? trace_hardirqs_on+0xd/0x10 [ 151.755874] ? _raw_spin_unlock_irq+0x27/0x70 [ 151.760334] ? acct_collect+0x637/0x800 [ 151.764276] do_exit+0x481/0x1b00 [ 151.767696] ? mm_update_next_owner+0x930/0x930 [ 151.772341] ? trace_event_raw_event_sched_switch+0x770/0x770 [ 151.778190] ? find_held_lock+0x39/0x1d0 [ 151.782218] ? osq_unlock+0x350/0x350 [ 151.785990] ? refill_pi_state_cache.part.6+0x2f0/0x2f0 [ 151.791323] ? check_noncircular+0x20/0x20 [ 151.795527] ? fault_in_user_writeable+0x90/0x90 [ 151.800259] ? futex_wake+0x680/0x680 [ 151.804027] ? find_held_lock+0x39/0x1d0 [ 151.808054] ? lock_downgrade+0x990/0x990 [ 151.812168] ? recalc_sigpending_tsk+0x117/0x150 [ 151.816891] ? recalc_sigpending+0x103/0x160 [ 151.821272] ? recalc_sigpending_tsk+0x150/0x150 [ 151.825999] ? get_signal+0x2b2/0x16d0 [ 151.829861] do_group_exit+0x149/0x400 [ 151.833718] ? __lock_is_held+0xbc/0x140 [ 151.837757] ? SyS_exit+0x30/0x30 [ 151.841175] ? _raw_spin_unlock_irq+0x27/0x70 [ 151.845637] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 151.850626] get_signal+0x73f/0x16d0 [ 151.854313] ? ptrace_notify+0x130/0x130 [ 151.858337] ? vma_wants_writenotify+0x3b0/0x3b0 [ 151.863061] ? exit_robust_list+0x240/0x240 [ 151.867352] ? lock_downgrade+0x990/0x990 [ 151.871463] ? SyS_brk+0x6f0/0x6f0 [ 151.874969] do_signal+0x94/0x1ee0 [ 151.878479] ? arch_get_unmapped_area+0x750/0x750 [ 151.883285] ? lock_acquire+0x1d5/0x580 [ 151.887233] ? vm_mmap_pgoff+0x198/0x280 [ 151.891258] ? userfaultfd_unmap_complete+0x327/0x510 [ 151.896412] ? setup_sigcontext+0x7d0/0x7d0 [ 151.900785] ? userfaultfd_unmap_prep+0x540/0x540 [ 151.905594] ? do_mmap+0x34f/0xd50 [ 151.909102] ? up_write+0x6b/0x120 [ 151.912606] ? down_write+0x120/0x120 [ 151.916371] ? security_mmap_file+0x143/0x180 [ 151.920831] ? vm_mmap_pgoff+0x1fc/0x280 [ 151.924863] ? exit_to_usermode_loop+0x8c/0x310 [ 151.929498] exit_to_usermode_loop+0x214/0x310 [ 151.934045] ? vma_is_stack_for_current+0xa0/0xa0 [ 151.938868] ? trace_event_raw_event_sys_exit+0x260/0x260 [ 151.944396] ? kasan_check_write+0x14/0x20 [ 151.948602] syscall_return_slowpath+0x42f/0x510 [ 151.953325] ? prepare_exit_to_usermode+0x2d0/0x2d0 [ 151.958308] ? entry_SYSCALL_64_fastpath+0x91/0xbe [ 151.963217] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 151.968199] ? trace_hardirqs_on_thunk+0x1a/0x1c [ 151.972935] entry_SYSCALL_64_fastpath+0xbc/0xbe [ 151.977655] RIP: 0033:0x4520a9 [ 151.980812] RSP: 002b:00007f134cfd5cf8 EFLAGS: 00000246 ORIG_RAX: 00000000000000ca [ 151.988489] RAX: fffffffffffffe00 RBX: 00000000007180d8 RCX: 00000000004520a9 [ 151.995727] RDX: 0000000000000000 RSI: 0000000000000000 RDI: 00000000007180d8 [ 152.003402] RBP: 00000000007180b0 R08: 0000000000000000 R09: 0000000000000000 [ 152.010644] R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 [ 152.017879] R13: 0000000000a6f7ef R14: 00007f134cfd69c0 R15: 0000000000000002 [ 152.025119] [ 152.026714] Allocated by task 3002: [ 152.030310] save_stack_trace+0x16/0x20 [ 152.034249] save_stack+0x43/0xd0 [ 152.037672] kasan_kmalloc+0xad/0xe0 [ 152.041357] kmem_cache_alloc_trace+0x136/0x750 [ 152.046000] refill_pi_state_cache.part.6+0xa5/0x2f0 [ 152.051066] futex_requeue+0x1887/0x2370 [ 152.055093] do_futex+0x7f5/0x20d0 [ 152.058595] SyS_futex+0x260/0x390 [ 152.062102] entry_SYSCALL_64_fastpath+0x1f/0xbe [ 152.066820] [ 152.068428] Freed by task 2999: [ 152.071674] save_stack_trace+0x16/0x20 [ 152.075613] save_stack+0x43/0xd0 [ 152.079028] kasan_slab_free+0x71/0xc0 [ 152.082878] kfree+0xca/0x250 [ 152.085950] put_pi_state+0x3f4/0x560 [ 152.089717] unqueue_me_pi+0x4a/0xc0 [ 152.093402] futex_wait_requeue_pi.constprop.19+0xc7f/0x1300 [ 152.099161] do_futex+0x825/0x20d0 [ 152.102670] SyS_futex+0x260/0x390 [ 152.106177] entry_SYSCALL_64_fastpath+0x1f/0xbe [ 152.110900] [ 152.112492] The buggy address belongs to the object at ffff8801ce1fd140 [ 152.112492] which belongs to the cache kmalloc-256 of size 256 [ 152.125116] The buggy address is located 40 bytes inside of [ 152.125116] 256-byte region [ffff8801ce1fd140, ffff8801ce1fd240) [ 152.136866] The buggy address belongs to the page: [ 152.141761] page:ffffea0007387f40 count:1 mapcount:0 mapping:ffff8801ce1fd000 index:0x0 [ 152.149870] flags: 0x200000000000100(slab) [ 152.154075] raw: 0200000000000100 ffff8801ce1fd000 0000000000000000 000000010000000c [ 152.161928] raw: ffffea00073865e0 ffffea00073710e0 ffff8801dac007c0 0000000000000000 [ 152.169774] page dumped because: kasan: bad access detected [ 152.175450] [ 152.177046] Memory state around the buggy address: [ 152.181938] ffff8801ce1fd000: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 152.189267] ffff8801ce1fd080: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 152.196589] >ffff8801ce1fd100: fc fc fc fc fc fc fc fc fb fb fb fb fb fb fb fb [ 152.203919] ^ [ 152.210640] ffff8801ce1fd180: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 152.217964] ffff8801ce1fd200: fb fb fb fb fb fb fb fb fc fc fc fc fc fc fc fc [ 152.225980] ================================================================== [ 152.233302] Disabling lock debugging due to kernel taint [ 152.238725] Kernel panic - not syncing: panic_on_warn set ... [ 152.238725] [ 152.246054] CPU: 1 PID: 2998 Comm: syz-executor0 Tainted: G B 4.14.0-rc2-next-20170929+ #32 [ 152.256070] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 152.265399] Call Trace: [ 152.267956] dump_stack+0x194/0x257 [ 152.271550] ? arch_local_irq_restore+0x53/0x53 [ 152.276195] ? vprintk_default+0x28/0x30 [ 152.280223] ? __lock_acquire+0x4000/0x4620 [ 152.284517] panic+0x1e4/0x41c [ 152.287674] ? refcount_error_report+0x214/0x214 [ 152.292403] ? __lock_acquire+0x407b/0x4620 [ 152.296695] kasan_end_report+0x50/0x50 [ 152.300637] kasan_report+0x144/0x340 [ 152.304405] __asan_report_load8_noabort+0x14/0x20 [ 152.309298] __lock_acquire+0x407b/0x4620 [ 152.313418] ? unwind_dump+0x4c0/0x4c0 [ 152.317269] ? __unwind_start+0x169/0x330 [ 152.321381] ? __kernel_text_address+0xd/0x40 [ 152.325853] ? unwind_get_return_address+0x61/0xa0 [ 152.330752] ? debug_check_no_locks_freed+0x3d0/0x3d0 [ 152.336087] ? unwind_get_return_address+0x61/0xa0 [ 152.340994] ? __save_stack_trace+0x61/0xd0 [ 152.345296] ? get_signal+0x73f/0x16d0 [ 152.349157] ? save_stack_trace+0x16/0x20 [ 152.353270] ? __lock_acquire+0x20fd/0x4620 [ 152.357564] ? debug_check_no_locks_freed+0x3d0/0x3d0 [ 152.362728] ? debug_check_no_locks_freed+0x3d0/0x3d0 [ 152.367884] ? save_stack_trace+0x16/0x20 [ 152.372000] ? __lock_acquire+0x20fd/0x4620 [ 152.376292] ? osq_unlock+0x350/0x350 [ 152.380319] ? save_stack_trace+0x16/0x20 [ 152.384431] ? lock_release+0xd70/0xd70 [ 152.388384] ? check_noncircular+0x20/0x20 [ 152.392592] ? debug_check_no_locks_freed+0x3d0/0x3d0 [ 152.397747] ? debug_check_no_locks_freed+0x3d0/0x3d0 [ 152.402905] ? find_held_lock+0x39/0x1d0 [ 152.406936] ? lock_downgrade+0x990/0x990 [ 152.411046] ? check_noncircular+0x20/0x20 [ 152.415245] lock_acquire+0x1d5/0x580 [ 152.419016] ? exit_pi_state_list+0x369/0x7a0 [ 152.423476] ? lock_release+0xd70/0xd70 [ 152.427426] ? do_raw_spin_trylock+0x190/0x190 [ 152.431979] ? find_held_lock+0x39/0x1d0 [ 152.436010] _raw_spin_lock_irq+0x5e/0x80 [ 152.440121] ? exit_pi_state_list+0x369/0x7a0 [ 152.444578] exit_pi_state_list+0x369/0x7a0 [ 152.448877] ? futex_wait_requeue_pi.constprop.19+0x1300/0x1300 [ 152.454905] ? lock_release+0xd70/0xd70 [ 152.458845] ? trace_event_raw_event_sched_switch+0x770/0x770 [ 152.464693] ? _raw_spin_unlock_irqrestore+0x31/0xba [ 152.469767] ? __might_sleep+0x95/0x190 [ 152.473709] ? __might_fault+0x188/0x1d0