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-mmots-kasan-gce-4,10.128.0.61' (ECDSA) to the list of known hosts. 2017/10/01 03:10:26 parsed 1 programs 2017/10/01 03:10:26 executed programs: 0 syzkaller login: [ 34.760282] ================================================================== [ 34.767706] BUG: KASAN: use-after-free in __lock_acquire+0x407b/0x4620 [ 34.774353] Read of size 8 at addr ffff8801ca7e4d68 by task syz-executor5/4248 [ 34.781694] [ 34.783304] CPU: 1 PID: 4248 Comm: syz-executor5 Not tainted 4.14.0-rc2-mm1+ #11 [ 34.790813] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 34.800150] Call Trace: [ 34.802718] dump_stack+0x194/0x257 [ 34.806328] ? arch_local_irq_restore+0x53/0x53 [ 34.810982] ? show_regs_print_info+0x65/0x65 [ 34.815462] ? __kernel_text_address+0xd/0x40 [ 34.819952] ? __lock_acquire+0x407b/0x4620 [ 34.824259] print_address_description+0x73/0x250 [ 34.829074] ? __lock_acquire+0x407b/0x4620 [ 34.833373] kasan_report+0x25b/0x340 [ 34.837159] __asan_report_load8_noabort+0x14/0x20 [ 34.842074] __lock_acquire+0x407b/0x4620 [ 34.846210] ? unwind_dump+0x4c0/0x4c0 [ 34.850074] ? __unwind_start+0x169/0x330 [ 34.854199] ? __kernel_text_address+0xd/0x40 [ 34.858671] ? unwind_get_return_address+0x61/0xa0 [ 34.863581] ? debug_check_no_locks_freed+0x3d0/0x3d0 [ 34.868747] ? unwind_get_return_address+0x61/0xa0 [ 34.873667] ? __save_stack_trace+0x61/0xd0 [ 34.877970] ? get_signal+0x73f/0x16d0 [ 34.881894] ? save_stack_trace+0x16/0x20 [ 34.886030] ? __lock_acquire+0x20fd/0x4620 [ 34.890329] ? debug_check_no_locks_freed+0x3d0/0x3d0 [ 34.895491] ? debug_check_no_locks_freed+0x3d0/0x3d0 [ 34.900650] ? save_stack_trace+0x16/0x20 [ 34.904764] ? __lock_acquire+0x20fd/0x4620 [ 34.909059] ? osq_unlock+0x350/0x350 [ 34.912840] ? save_stack_trace+0x16/0x20 [ 34.916971] ? lock_release+0xd70/0xd70 [ 34.920921] ? check_noncircular+0x20/0x20 [ 34.925128] ? debug_check_no_locks_freed+0x3d0/0x3d0 [ 34.930301] ? debug_check_no_locks_freed+0x3d0/0x3d0 [ 34.935479] ? find_held_lock+0x39/0x1d0 [ 34.939514] ? lock_downgrade+0x990/0x990 [ 34.943634] ? check_noncircular+0x20/0x20 [ 34.947843] lock_acquire+0x1d5/0x580 [ 34.951622] ? exit_pi_state_list+0x369/0x7a0 [ 34.956097] ? lock_release+0xd70/0xd70 [ 34.960045] ? do_raw_spin_trylock+0x190/0x190 [ 34.964609] ? find_held_lock+0x39/0x1d0 [ 34.968660] _raw_spin_lock_irq+0x5e/0x80 [ 34.972783] ? exit_pi_state_list+0x369/0x7a0 [ 34.977254] exit_pi_state_list+0x369/0x7a0 [ 34.981553] ? futex_wait_requeue_pi.constprop.19+0x1300/0x1300 [ 34.987584] ? lock_release+0xd70/0xd70 [ 34.991541] ? trace_event_raw_event_sched_switch+0x770/0x770 [ 34.997414] ? _raw_spin_unlock_irqrestore+0x31/0xba [ 35.002501] ? __might_sleep+0x95/0x190 [ 35.006458] ? __might_fault+0x188/0x1d0 [ 35.010495] ? do_raw_spin_trylock+0x190/0x190 [ 35.015048] mm_release+0x46d/0x590 [ 35.018644] ? do_raw_spin_trylock+0x190/0x190 [ 35.023282] ? mm_access+0x140/0x140 [ 35.026975] ? _raw_spin_unlock_irq+0x27/0x70 [ 35.031453] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 35.036455] ? trace_hardirqs_on+0xd/0x10 [ 35.040588] ? _raw_spin_unlock_irq+0x27/0x70 [ 35.045066] ? acct_collect+0x637/0x800 [ 35.049019] do_exit+0x481/0x1b00 [ 35.052448] ? mm_update_next_owner+0x930/0x930 [ 35.057088] ? trace_event_raw_event_sched_switch+0x770/0x770 [ 35.062946] ? find_held_lock+0x39/0x1d0 [ 35.066985] ? refill_pi_state_cache.part.6+0x2f0/0x2f0 [ 35.072322] ? check_noncircular+0x20/0x20 [ 35.076528] ? fault_in_user_writeable+0x90/0x90 [ 35.081261] ? futex_wake+0x680/0x680 [ 35.085046] ? find_held_lock+0x39/0x1d0 [ 35.089097] ? lock_downgrade+0x990/0x990 [ 35.093221] ? recalc_sigpending_tsk+0x117/0x150 [ 35.097958] ? recalc_sigpending+0x103/0x160 [ 35.102346] ? recalc_sigpending_tsk+0x150/0x150 [ 35.107076] ? get_signal+0x2b2/0x16d0 [ 35.110952] do_group_exit+0x149/0x400 [ 35.114815] ? __lock_is_held+0xbc/0x140 [ 35.118850] ? SyS_exit+0x30/0x30 [ 35.122280] ? _raw_spin_unlock_irq+0x27/0x70 [ 35.126756] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 35.131747] get_signal+0x73f/0x16d0 [ 35.135429] ? ptrace_notify+0x130/0x130 [ 35.139455] ? find_held_lock+0x39/0x1d0 [ 35.143484] ? exit_robust_list+0x240/0x240 [ 35.147772] ? __fget+0xbb/0x580 [ 35.151121] do_signal+0x94/0x1ee0 [ 35.154638] ? lock_release+0xd70/0xd70 [ 35.158579] ? __lock_is_held+0xbc/0x140 [ 35.162609] ? setup_sigcontext+0x7d0/0x7d0 [ 35.166897] ? __fget+0x362/0x580 [ 35.170323] ? trace_event_raw_event_sched_switch+0x770/0x770 [ 35.176171] ? lock_acquire+0x1d5/0x580 [ 35.180113] ? finish_task_switch+0x1aa/0x740 [ 35.184575] ? exit_to_usermode_loop+0x8c/0x310 [ 35.189209] exit_to_usermode_loop+0x214/0x310 [ 35.193756] ? trace_event_raw_event_sys_exit+0x260/0x260 [ 35.199257] ? fget_raw+0x20/0x20 [ 35.202675] ? kasan_check_write+0x14/0x20 [ 35.206878] syscall_return_slowpath+0x42f/0x510 [ 35.211599] ? prepare_exit_to_usermode+0x2d0/0x2d0 [ 35.216580] ? entry_SYSCALL_64_fastpath+0x91/0xbe [ 35.221476] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 35.226456] ? trace_hardirqs_on_thunk+0x1a/0x1c [ 35.231188] entry_SYSCALL_64_fastpath+0xbc/0xbe [ 35.235908] RIP: 0033:0x4520a9 [ 35.239065] RSP: 002b:00007f342017ecf8 EFLAGS: 00000246 ORIG_RAX: 00000000000000ca [ 35.246735] RAX: fffffffffffffe00 RBX: 0000000000718188 RCX: 00000000004520a9 [ 35.253993] RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000718188 [ 35.261231] RBP: 0000000000718160 R08: 0000000000000000 R09: 0000000000000000 [ 35.268466] R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 [ 35.275710] R13: 00007ffefa817dbf R14: 00007f342017f9c0 R15: 0000000000000005 [ 35.282948] [ 35.284542] Allocated by task 4265: [ 35.288139] save_stack_trace+0x16/0x20 [ 35.292077] save_stack+0x43/0xd0 [ 35.295503] kasan_kmalloc+0xad/0xe0 [ 35.299189] kmem_cache_alloc_trace+0x136/0x750 [ 35.303830] refill_pi_state_cache.part.6+0xa5/0x2f0 [ 35.308895] futex_requeue+0x1887/0x2370 [ 35.312919] do_futex+0x7f5/0x20d0 [ 35.316424] SyS_futex+0x260/0x390 [ 35.319929] entry_SYSCALL_64_fastpath+0x1f/0xbe [ 35.324646] [ 35.326238] Freed by task 4243: [ 35.329481] save_stack_trace+0x16/0x20 [ 35.333418] save_stack+0x43/0xd0 [ 35.336835] kasan_slab_free+0x71/0xc0 [ 35.340685] kfree+0xca/0x250 [ 35.343753] put_pi_state+0x3f4/0x560 [ 35.347516] unqueue_me_pi+0x4a/0xc0 [ 35.351195] futex_wait_requeue_pi.constprop.19+0xc7f/0x1300 [ 35.356959] do_futex+0x825/0x20d0 [ 35.360462] SyS_futex+0x260/0x390 [ 35.363967] entry_SYSCALL_64_fastpath+0x1f/0xbe [ 35.368684] [ 35.370276] The buggy address belongs to the object at ffff8801ca7e4d40 [ 35.370276] which belongs to the cache kmalloc-256 of size 256 [ 35.382893] The buggy address is located 40 bytes inside of [ 35.382893] 256-byte region [ffff8801ca7e4d40, ffff8801ca7e4e40) [ 35.394642] The buggy address belongs to the page: [ 35.399535] page:ffffea000729f900 count:1 mapcount:0 mapping:ffff8801ca7e40c0 index:0x0 [ 35.407650] flags: 0x200000000000100(slab) [ 35.411851] raw: 0200000000000100 ffff8801ca7e40c0 0000000000000000 000000010000000c [ 35.419695] raw: ffffea00072ae220 ffffea0007283960 ffff8801dac007c0 0000000000000000 [ 35.427540] page dumped because: kasan: bad access detected [ 35.433211] [ 35.434803] Memory state around the buggy address: [ 35.439695] ffff8801ca7e4c00: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 35.447021] ffff8801ca7e4c80: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 35.454351] >ffff8801ca7e4d00: fc fc fc fc fc fc fc fc fb fb fb fb fb fb fb fb [ 35.461671] ^ [ 35.468385] ffff8801ca7e4d80: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 35.475706] ffff8801ca7e4e00: fb fb fb fb fb fb fb fb fc fc fc fc fc fc fc fc [ 35.483030] ================================================================== [ 35.490355] Disabling lock debugging due to kernel taint [ 35.495769] Kernel panic - not syncing: panic_on_warn set ... [ 35.495769] [ 35.503094] CPU: 1 PID: 4248 Comm: syz-executor5 Tainted: G B 4.14.0-rc2-mm1+ #11 [ 35.511804] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 35.521123] Call Trace: [ 35.523678] dump_stack+0x194/0x257 [ 35.527270] ? arch_local_irq_restore+0x53/0x53 [ 35.531905] ? vprintk_default+0x28/0x30 [ 35.535935] ? __lock_acquire+0x4060/0x4620 [ 35.540222] panic+0x1e4/0x41c [ 35.543380] ? refcount_error_report+0x214/0x214 [ 35.548104] ? __lock_acquire+0x407b/0x4620 [ 35.552391] kasan_end_report+0x50/0x50 [ 35.556330] kasan_report+0x144/0x340 [ 35.560100] __asan_report_load8_noabort+0x14/0x20 [ 35.564994] __lock_acquire+0x407b/0x4620 [ 35.569112] ? unwind_dump+0x4c0/0x4c0 [ 35.572963] ? __unwind_start+0x169/0x330 [ 35.577080] ? __kernel_text_address+0xd/0x40 [ 35.581540] ? unwind_get_return_address+0x61/0xa0 [ 35.586436] ? debug_check_no_locks_freed+0x3d0/0x3d0 [ 35.591588] ? unwind_get_return_address+0x61/0xa0 [ 35.596490] ? __save_stack_trace+0x61/0xd0 [ 35.600775] ? get_signal+0x73f/0x16d0 [ 35.604626] ? save_stack_trace+0x16/0x20 [ 35.608739] ? __lock_acquire+0x20fd/0x4620 [ 35.613035] ? debug_check_no_locks_freed+0x3d0/0x3d0 [ 35.618191] ? debug_check_no_locks_freed+0x3d0/0x3d0 [ 35.623352] ? save_stack_trace+0x16/0x20 [ 35.627465] ? __lock_acquire+0x20fd/0x4620 [ 35.631751] ? osq_unlock+0x350/0x350 [ 35.635513] ? save_stack_trace+0x16/0x20 [ 35.639627] ? lock_release+0xd70/0xd70 [ 35.643568] ? check_noncircular+0x20/0x20 [ 35.647781] ? debug_check_no_locks_freed+0x3d0/0x3d0 [ 35.652936] ? debug_check_no_locks_freed+0x3d0/0x3d0 [ 35.658095] ? find_held_lock+0x39/0x1d0 [ 35.662124] ? lock_downgrade+0x990/0x990 [ 35.666236] ? check_noncircular+0x20/0x20 [ 35.670435] lock_acquire+0x1d5/0x580 [ 35.674200] ? exit_pi_state_list+0x369/0x7a0 [ 35.678660] ? lock_release+0xd70/0xd70 [ 35.682603] ? do_raw_spin_trylock+0x190/0x190 [ 35.687149] ? find_held_lock+0x39/0x1d0 [ 35.691180] _raw_spin_lock_irq+0x5e/0x80 [ 35.695291] ? exit_pi_state_list+0x369/0x7a0 [ 35.699750] exit_pi_state_list+0x369/0x7a0 [ 35.704039] ? futex_wait_requeue_pi.constprop.19+0x1300/0x1300 [ 35.710067] ? lock_release+0xd70/0xd70 [ 35.714011] ? trace_event_raw_event_sched_switch+0x770/0x770 [ 35.719865] ? _raw_spin_unlock_irqrestore+0x31/0xba [ 35.724933] ? __might_sleep+0x95/0x190 [ 35.728872] ? __might_fault+0x188/0x1d0 [ 35.732897] ? do_raw_spin_trylock+0x190/0x190 [ 35.737443] mm_release+0x46d/0x590 [ 35.741038] ? do_raw_spin_trylock+0x190/0x190 [ 35.745590] ? mm_access+0x140/0x140 [ 35.749269] ? _raw_spin_unlock_irq+0x27/0x70 [ 35.753730] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 35.758710] ? trace_hardirqs_on+0xd/0x10