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-0,10.128.15.199' (ECDSA) to the list of known hosts. 2017/10/01 04:39:36 parsed 1 programs 2017/10/01 04:39:36 executed programs: 0 2017/10/01 04:39:41 executed programs: 302 syzkaller login: [ 40.809076] ================================================================== [ 40.816504] BUG: KASAN: use-after-free in __lock_acquire+0x407b/0x4620 [ 40.823158] Read of size 8 at addr ffff8801cf021968 by task syz-executor5/5995 [ 40.830495] [ 40.832103] CPU: 1 PID: 5995 Comm: syz-executor5 Not tainted 4.14.0-rc2-next-20170929+ #32 [ 40.840482] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 40.849810] Call Trace: [ 40.852381] dump_stack+0x194/0x257 [ 40.855993] ? arch_local_irq_restore+0x53/0x53 [ 40.860636] ? show_regs_print_info+0x65/0x65 [ 40.865100] ? __kernel_text_address+0xd/0x40 [ 40.869575] ? __lock_acquire+0x407b/0x4620 [ 40.873886] print_address_description+0x73/0x250 [ 40.878716] ? __lock_acquire+0x407b/0x4620 [ 40.883029] kasan_report+0x25b/0x340 [ 40.886809] __asan_report_load8_noabort+0x14/0x20 [ 40.891712] __lock_acquire+0x407b/0x4620 [ 40.895836] ? unwind_dump+0x4c0/0x4c0 [ 40.899708] ? __unwind_start+0x169/0x330 [ 40.903839] ? __kernel_text_address+0xd/0x40 [ 40.908307] ? unwind_get_return_address+0x61/0xa0 [ 40.913206] ? debug_check_no_locks_freed+0x3d0/0x3d0 [ 40.918363] ? unwind_get_return_address+0x61/0xa0 [ 40.923265] ? __save_stack_trace+0x61/0xd0 [ 40.927569] ? get_signal+0x73f/0x16d0 [ 40.931438] ? save_stack_trace+0x16/0x20 [ 40.935575] ? __lock_acquire+0x20fd/0x4620 [ 40.939880] ? debug_check_no_locks_freed+0x3d0/0x3d0 [ 40.945051] ? debug_check_no_locks_freed+0x3d0/0x3d0 [ 40.950218] ? save_stack_trace+0x16/0x20 [ 40.954349] ? __lock_acquire+0x20fd/0x4620 [ 40.958653] ? osq_unlock+0x350/0x350 [ 40.962433] ? save_stack_trace+0x16/0x20 [ 40.966568] ? lock_release+0xd70/0xd70 [ 40.970524] ? check_noncircular+0x20/0x20 [ 40.974729] ? print_usage_bug+0x480/0x480 [ 40.978937] ? debug_check_no_locks_freed+0x3d0/0x3d0 [ 40.984105] ? debug_check_no_locks_freed+0x3d0/0x3d0 [ 40.989280] ? find_held_lock+0x39/0x1d0 [ 40.993326] ? lock_downgrade+0x990/0x990 [ 40.997450] ? check_noncircular+0x20/0x20 [ 41.001656] lock_acquire+0x1d5/0x580 [ 41.005431] ? exit_pi_state_list+0x369/0x7a0 [ 41.009911] ? lock_release+0xd70/0xd70 [ 41.013871] ? do_raw_spin_trylock+0x190/0x190 [ 41.018455] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 41.023455] _raw_spin_lock_irq+0x5e/0x80 [ 41.027571] ? exit_pi_state_list+0x369/0x7a0 [ 41.032038] exit_pi_state_list+0x369/0x7a0 [ 41.036342] ? futex_wait_requeue_pi.constprop.19+0x1300/0x1300 [ 41.042387] ? lock_release+0xd70/0xd70 [ 41.046352] ? trace_event_raw_event_sched_switch+0x770/0x770 [ 41.052216] ? _raw_spin_unlock_irqrestore+0x31/0xba [ 41.057291] ? __might_sleep+0x95/0x190 [ 41.061242] ? __might_fault+0x188/0x1d0 [ 41.065280] ? do_raw_spin_trylock+0x190/0x190 [ 41.069841] mm_release+0x46d/0x590 [ 41.073452] ? do_raw_spin_trylock+0x190/0x190 [ 41.078020] ? mm_access+0x140/0x140 [ 41.081711] ? _raw_spin_unlock_irq+0x27/0x70 [ 41.086180] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 41.091165] ? trace_hardirqs_on+0xd/0x10 [ 41.095287] ? _raw_spin_unlock_irq+0x27/0x70 [ 41.099768] ? acct_collect+0x637/0x800 [ 41.103732] do_exit+0x481/0x1b00 [ 41.107174] ? mm_update_next_owner+0x930/0x930 [ 41.111824] ? trace_event_raw_event_sched_switch+0x770/0x770 [ 41.117681] ? find_held_lock+0x39/0x1d0 [ 41.121721] ? refill_pi_state_cache.part.6+0x2f0/0x2f0 [ 41.127058] ? check_noncircular+0x20/0x20 [ 41.131276] ? fault_in_user_writeable+0x90/0x90 [ 41.136017] ? futex_wake+0x680/0x680 [ 41.139795] ? find_held_lock+0x39/0x1d0 [ 41.143827] ? lock_downgrade+0x990/0x990 [ 41.147961] ? recalc_sigpending_tsk+0x117/0x150 [ 41.152703] ? recalc_sigpending+0x103/0x160 [ 41.157087] ? recalc_sigpending_tsk+0x150/0x150 [ 41.162639] ? get_signal+0x2b2/0x16d0 [ 41.166522] do_group_exit+0x149/0x400 [ 41.170385] ? __lock_is_held+0xbc/0x140 [ 41.174416] ? SyS_exit+0x30/0x30 [ 41.177838] ? _raw_spin_unlock_irq+0x27/0x70 [ 41.182323] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 41.187321] get_signal+0x73f/0x16d0 [ 41.191021] ? ptrace_notify+0x130/0x130 [ 41.195066] ? lock_release+0xd70/0xd70 [ 41.199021] ? exit_robust_list+0x240/0x240 [ 41.203320] do_signal+0x94/0x1ee0 [ 41.206828] ? check_noncircular+0x20/0x20 [ 41.211039] ? check_noncircular+0x20/0x20 [ 41.215257] ? setup_sigcontext+0x7d0/0x7d0 [ 41.219558] ? lock_downgrade+0x990/0x990 [ 41.223684] ? find_held_lock+0x39/0x1d0 [ 41.227720] ? exit_to_usermode_loop+0x8c/0x310 [ 41.232363] exit_to_usermode_loop+0x214/0x310 [ 41.236934] ? trace_event_raw_event_sys_exit+0x260/0x260 [ 41.242479] syscall_return_slowpath+0x42f/0x510 [ 41.247214] ? prepare_exit_to_usermode+0x2d0/0x2d0 [ 41.252202] ? entry_SYSCALL_64_fastpath+0x91/0xbe [ 41.257102] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 41.262089] ? trace_hardirqs_on_thunk+0x1a/0x1c [ 41.266818] entry_SYSCALL_64_fastpath+0xbc/0xbe [ 41.271544] RIP: 0033:0x4520a9 [ 41.274703] RSP: 002b:00007f0f7d5ebcf8 EFLAGS: 00000246 ORIG_RAX: 00000000000000ca [ 41.282377] RAX: fffffffffffffe00 RBX: 0000000000718188 RCX: 00000000004520a9 [ 41.289617] RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000718188 [ 41.296859] RBP: 0000000000718160 R08: 0000000000000000 R09: 0000000000000000 [ 41.304106] R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 [ 41.311344] R13: 00007ffeaba7d57f R14: 00007f0f7d5ec9c0 R15: 0000000000000006 [ 41.318596] [ 41.320194] Allocated by task 6008: [ 41.323790] save_stack_trace+0x16/0x20 [ 41.327727] save_stack+0x43/0xd0 [ 41.331145] kasan_kmalloc+0xad/0xe0 [ 41.334824] kmem_cache_alloc_trace+0x136/0x750 [ 41.339458] refill_pi_state_cache.part.6+0xa5/0x2f0 [ 41.344526] futex_requeue+0x1887/0x2370 [ 41.348552] do_futex+0x7f5/0x20d0 [ 41.352060] SyS_futex+0x260/0x390 [ 41.355575] entry_SYSCALL_64_fastpath+0x1f/0xbe [ 41.360294] [ 41.361888] Freed by task 5980: [ 41.365133] save_stack_trace+0x16/0x20 [ 41.369073] save_stack+0x43/0xd0 [ 41.372491] kasan_slab_free+0x71/0xc0 [ 41.376346] kfree+0xca/0x250 [ 41.379415] put_pi_state+0x3f4/0x560 [ 41.383178] unqueue_me_pi+0x4a/0xc0 [ 41.386856] futex_wait_requeue_pi.constprop.19+0xc7f/0x1300 [ 41.392616] do_futex+0x825/0x20d0 [ 41.396120] SyS_futex+0x260/0x390 [ 41.399624] entry_SYSCALL_64_fastpath+0x1f/0xbe [ 41.404340] [ 41.405936] The buggy address belongs to the object at ffff8801cf021940 [ 41.405936] which belongs to the cache kmalloc-256 of size 256 [ 41.418557] The buggy address is located 40 bytes inside of [ 41.418557] 256-byte region [ffff8801cf021940, ffff8801cf021a40) [ 41.430307] The buggy address belongs to the page: [ 41.435202] page:ffffea00073c0840 count:1 mapcount:0 mapping:ffff8801cf021080 index:0x0 [ 41.443308] flags: 0x200000000000100(slab) [ 41.447509] raw: 0200000000000100 ffff8801cf021080 0000000000000000 000000010000000c [ 41.455356] raw: ffffea00073dc520 ffffea00073c0aa0 ffff8801dac007c0 0000000000000000 [ 41.463198] page dumped because: kasan: bad access detected [ 41.468880] [ 41.470471] Memory state around the buggy address: [ 41.475363] ffff8801cf021800: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 41.482696] ffff8801cf021880: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 41.490025] >ffff8801cf021900: fc fc fc fc fc fc fc fc fb fb fb fb fb fb fb fb [ 41.497353] ^ [ 41.504075] ffff8801cf021980: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 41.511400] ffff8801cf021a00: fb fb fb fb fb fb fb fb fc fc fc fc fc fc fc fc [ 41.518722] ================================================================== [ 41.526046] Disabling lock debugging due to kernel taint [ 41.531476] Kernel panic - not syncing: panic_on_warn set ... [ 41.531476] [ 41.538802] CPU: 1 PID: 5995 Comm: syz-executor5 Tainted: G B 4.14.0-rc2-next-20170929+ #32 [ 41.548380] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 41.557697] Call Trace: [ 41.560254] dump_stack+0x194/0x257 [ 41.563847] ? arch_local_irq_restore+0x53/0x53 [ 41.568480] ? vprintk_default+0x28/0x30 [ 41.572511] ? __lock_acquire+0x4000/0x4620 [ 41.576800] panic+0x1e4/0x41c [ 41.579957] ? refcount_error_report+0x214/0x214 [ 41.584679] ? __lock_acquire+0x407b/0x4620 [ 41.588969] kasan_end_report+0x50/0x50 [ 41.592907] kasan_report+0x144/0x340 [ 41.596676] __asan_report_load8_noabort+0x14/0x20 [ 41.601571] __lock_acquire+0x407b/0x4620 [ 41.605684] ? unwind_dump+0x4c0/0x4c0 [ 41.609535] ? __unwind_start+0x169/0x330 [ 41.613647] ? __kernel_text_address+0xd/0x40 [ 41.618106] ? unwind_get_return_address+0x61/0xa0 [ 41.623009] ? debug_check_no_locks_freed+0x3d0/0x3d0 [ 41.628165] ? unwind_get_return_address+0x61/0xa0 [ 41.633058] ? __save_stack_trace+0x61/0xd0 [ 41.637344] ? get_signal+0x73f/0x16d0 [ 41.641195] ? save_stack_trace+0x16/0x20 [ 41.645307] ? __lock_acquire+0x20fd/0x4620 [ 41.649594] ? debug_check_no_locks_freed+0x3d0/0x3d0 [ 41.654751] ? debug_check_no_locks_freed+0x3d0/0x3d0 [ 41.659918] ? save_stack_trace+0x16/0x20 [ 41.664040] ? __lock_acquire+0x20fd/0x4620 [ 41.668325] ? osq_unlock+0x350/0x350 [ 41.672090] ? save_stack_trace+0x16/0x20 [ 41.676203] ? lock_release+0xd70/0xd70 [ 41.680143] ? check_noncircular+0x20/0x20 [ 41.684345] ? print_usage_bug+0x480/0x480 [ 41.688545] ? debug_check_no_locks_freed+0x3d0/0x3d0 [ 41.693700] ? debug_check_no_locks_freed+0x3d0/0x3d0 [ 41.698856] ? find_held_lock+0x39/0x1d0 [ 41.702884] ? lock_downgrade+0x990/0x990 [ 41.706999] ? check_noncircular+0x20/0x20 [ 41.711211] lock_acquire+0x1d5/0x580 [ 41.714979] ? exit_pi_state_list+0x369/0x7a0 [ 41.719440] ? lock_release+0xd70/0xd70 [ 41.723379] ? do_raw_spin_trylock+0x190/0x190 [ 41.727933] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 41.732919] _raw_spin_lock_irq+0x5e/0x80 [ 41.737035] ? exit_pi_state_list+0x369/0x7a0 [ 41.741497] exit_pi_state_list+0x369/0x7a0 [ 41.745795] ? futex_wait_requeue_pi.constprop.19+0x1300/0x1300 [ 41.751820] ? lock_release+0xd70/0xd70 [ 41.755760] ? trace_event_raw_event_sched_switch+0x770/0x770 [ 41.761611] ? _raw_spin_unlock_irqrestore+0x31/0xba [ 41.766679] ? __might_sleep+0x95/0x190 [ 41.770619] ? __might_fault+0x188/0x1d0 [ 41.774647] ? do_raw_spin_trylock+0x190/0x190 [ 41.779197] mm_release+0x46d/0x590 [ 41.782787] ? do_raw_spin_trylock+0x190/0x190 [ 41.787333] ? mm_access+0x140/0x140 [ 41.791017] ? _raw_spin_unlock_irq+0x27/0x70 [ 41.795484] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 41.800467] ? trace_hardirqs_on+0xd/0x10 [ 41.804581] ? _raw_spin_unlock_irq+0x27/0x70 [ 41.809043] ? acct_collect+0x637/0x800