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-7,10.128.15.226' (ECDSA) to the list of known hosts. 2017/11/01 17:17:41 parsed 1 programs 2017/11/01 17:17:41 executed programs: 0 2017/11/01 17:17:46 executed programs: 261 2017/11/01 17:17:51 executed programs: 529 2017/11/01 17:17:56 executed programs: 797 2017/11/01 17:18:01 executed programs: 1065 2017/11/01 17:18:06 executed programs: 1333 2017/11/01 17:18:11 executed programs: 1601 2017/11/01 17:18:16 executed programs: 1869 2017/11/01 17:18:21 executed programs: 2137 2017/11/01 17:18:26 executed programs: 2405 2017/11/01 17:18:31 executed programs: 2673 2017/11/01 17:18:36 executed programs: 2941 2017/11/01 17:18:41 executed programs: 3209 2017/11/01 17:18:46 executed programs: 3477 2017/11/01 17:18:51 executed programs: 3742 2017/11/01 17:18:56 executed programs: 4009 2017/11/01 17:19:01 executed programs: 4277 2017/11/01 17:19:06 executed programs: 4545 2017/11/01 17:19:11 executed programs: 4813 2017/11/01 17:19:16 executed programs: 5081 2017/11/01 17:19:21 executed programs: 5349 2017/11/01 17:19:26 executed programs: 5613 2017/11/01 17:19:31 executed programs: 5882 2017/11/01 17:19:36 executed programs: 6149 2017/11/01 17:19:41 executed programs: 6418 2017/11/01 17:19:47 executed programs: 6685 2017/11/01 17:19:52 executed programs: 6954 2017/11/01 17:19:57 executed programs: 7221 2017/11/01 17:20:02 executed programs: 7485 2017/11/01 17:20:07 executed programs: 7752 2017/11/01 17:20:12 executed programs: 8018 2017/11/01 17:20:17 executed programs: 8285 2017/11/01 17:20:22 executed programs: 8554 2017/11/01 17:20:27 executed programs: 8821 2017/11/01 17:20:32 executed programs: 9086 2017/11/01 17:20:37 executed programs: 9354 2017/11/01 17:20:42 executed programs: 9621 2017/11/01 17:20:47 executed programs: 9890 2017/11/01 17:20:52 executed programs: 10157 2017/11/01 17:20:57 executed programs: 10422 2017/11/01 17:21:02 executed programs: 10690 2017/11/01 17:21:07 executed programs: 10957 2017/11/01 17:21:12 executed programs: 11226 2017/11/01 17:21:17 executed programs: 11493 2017/11/01 17:21:22 executed programs: 11760 2017/11/01 17:21:27 executed programs: 12026 2017/11/01 17:21:32 executed programs: 12293 2017/11/01 17:21:37 executed programs: 12561 2017/11/01 17:21:42 executed programs: 12826 2017/11/01 17:21:47 executed programs: 13090 2017/11/01 17:21:52 executed programs: 13357 2017/11/01 17:21:57 executed programs: 13626 2017/11/01 17:22:02 executed programs: 13893 2017/11/01 17:22:07 executed programs: 14162 2017/11/01 17:22:13 executed programs: 14429 2017/11/01 17:22:18 executed programs: 14698 2017/11/01 17:22:23 executed programs: 14965 2017/11/01 17:22:28 executed programs: 15234 2017/11/01 17:22:33 executed programs: 15501 2017/11/01 17:22:38 executed programs: 15770 2017/11/01 17:22:43 executed programs: 16037 2017/11/01 17:22:48 executed programs: 16304 2017/11/01 17:22:53 executed programs: 16571 2017/11/01 17:22:58 executed programs: 16837 2017/11/01 17:23:03 executed programs: 17101 2017/11/01 17:23:08 executed programs: 17367 2017/11/01 17:23:13 executed programs: 17635 2017/11/01 17:23:18 executed programs: 17901 2017/11/01 17:23:23 executed programs: 18171 2017/11/01 17:23:28 executed programs: 18437 2017/11/01 17:23:33 executed programs: 18706 2017/11/01 17:23:38 executed programs: 18971 2017/11/01 17:23:43 executed programs: 19237 2017/11/01 17:23:48 executed programs: 19507 2017/11/01 17:23:53 executed programs: 19773 2017/11/01 17:23:58 executed programs: 20043 2017/11/01 17:24:03 executed programs: 20309 2017/11/01 17:24:08 executed programs: 20574 2017/11/01 17:24:13 executed programs: 20837 syzkaller login: [ 1668.871857] ================================================================== [ 1668.874488] BUG: KASAN: use-after-free in do_raw_spin_unlock+0x308/0x330 [ 1668.875482] Read of size 4 at addr ffff8801d0ef41d4 by task syz-executor5/31572 [ 1668.876457] [ 1668.876690] CPU: 1 PID: 31572 Comm: syz-executor5 Not tainted 4.14.0-rc5-mm1+ #20 [ 1668.877692] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 1668.878911] Call Trace: [ 1668.879266] dump_stack+0x194/0x257 [ 1668.879756] ? arch_local_irq_restore+0x53/0x53 [ 1668.880377] ? show_regs_print_info+0x65/0x65 [ 1668.880976] ? exit_pi_state_list+0x375/0x7a0 [ 1668.881602] ? do_raw_spin_unlock+0x308/0x330 [ 1668.882209] print_address_description+0x73/0x250 [ 1668.882869] ? do_raw_spin_unlock+0x308/0x330 [ 1668.883477] kasan_report+0x25b/0x340 [ 1668.884003] __asan_report_load4_noabort+0x14/0x20 [ 1668.884671] do_raw_spin_unlock+0x308/0x330 [ 1668.885270] ? do_raw_spin_trylock+0x190/0x190 [ 1668.885907] _raw_spin_unlock+0x22/0x30 [ 1668.886441] exit_pi_state_list+0x598/0x7a0 [ 1668.887187] ? futex_wait_requeue_pi.constprop.19+0x1300/0x1300 [ 1668.888087] ? lock_release+0xa40/0xa40 [ 1668.888791] ? trace_event_raw_event_sched_switch+0x8a0/0x8a0 [ 1668.889693] ? _raw_spin_unlock_irqrestore+0x31/0xba [ 1668.890418] ? __might_sleep+0x95/0x190 [ 1668.890969] ? __might_fault+0x188/0x1d0 [ 1668.891535] ? do_raw_spin_trylock+0x190/0x190 [ 1668.892149] mm_release+0x46d/0x590 [ 1668.892642] ? acct_collect+0xe9/0x800 [ 1668.893185] ? mm_access+0x140/0x140 [ 1668.893697] ? _raw_spin_unlock_irq+0x27/0x70 [ 1668.898161] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 1668.903144] ? trace_hardirqs_on+0xd/0x10 [ 1668.907268] ? _raw_spin_unlock_irq+0x27/0x70 [ 1668.911736] ? acct_collect+0x637/0x800 [ 1668.915683] do_exit+0x481/0x1ad0 [ 1668.919107] ? _raw_spin_unlock_irqrestore+0x31/0xba [ 1668.924180] ? trace_hardirqs_on_caller+0x331/0x5c0 [ 1668.929163] ? mm_update_next_owner+0x930/0x930 [ 1668.933803] ? trace_hardirqs_on+0xd/0x10 [ 1668.937934] ? hrtimer_try_to_cancel+0x9a/0x5c0 [ 1668.942588] ? __hrtimer_get_remaining+0x1c0/0x1c0 [ 1668.947497] ? do_raw_spin_trylock+0x190/0x190 [ 1668.952050] ? fault_in_user_writeable+0x90/0x90 [ 1668.956801] ? fixup_pi_state_owner.isra.16+0x980/0x980 [ 1668.962153] ? hrtimer_cancel+0x2e/0x40 [ 1668.966097] ? futex_wait_requeue_pi.constprop.19+0x8a8/0x1300 [ 1668.972046] ? check_noncircular+0x20/0x20 [ 1668.976256] ? futex_requeue+0x2370/0x2370 [ 1668.980464] ? __lock_acquire+0x6aa/0x3d50 [ 1668.984670] ? drop_futex_key_refs.isra.13+0x63/0xa0 [ 1668.989749] ? futex_wait+0x69e/0x990 [ 1668.993527] ? find_held_lock+0x35/0x1d0 [ 1668.997572] ? get_signal+0x7ae/0x16d0 [ 1669.001433] ? lock_downgrade+0x990/0x990 [ 1669.005557] do_group_exit+0x149/0x400 [ 1669.009412] ? __lock_is_held+0xb6/0x140 [ 1669.013442] ? SyS_exit+0x30/0x30 [ 1669.016875] ? _raw_spin_unlock_irq+0x27/0x70 [ 1669.021352] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 1669.026348] get_signal+0x73f/0x16d0 [ 1669.030051] ? ptrace_notify+0x130/0x130 [ 1669.034079] ? lock_release+0xa40/0xa40 [ 1669.038021] ? lock_release+0xa40/0xa40 [ 1669.041967] ? do_page_fault+0xee/0x720 [ 1669.045918] ? exit_robust_list+0x240/0x240 [ 1669.050220] ? find_held_lock+0x35/0x1d0 [ 1669.054259] do_signal+0x94/0x1ee0 [ 1669.057774] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 1669.062801] ? should_fail+0x23b/0xa40 [ 1669.066657] ? trace_hardirqs_on_thunk+0x1a/0x1c [ 1669.071557] ? fault_create_debugfs_attr+0x1f0/0x1f0 [ 1669.076629] ? setup_sigcontext+0x7d0/0x7d0 [ 1669.080927] ? retint_kernel+0x10/0x10 [ 1669.084804] ? find_held_lock+0x35/0x1d0 [ 1669.088843] ? lock_downgrade+0x990/0x990 [ 1669.092959] ? lock_release+0xa40/0xa40 [ 1669.096901] ? trace_event_raw_event_sched_switch+0x8a0/0x8a0 [ 1669.102754] ? exit_to_usermode_loop+0x8c/0x310 [ 1669.107404] exit_to_usermode_loop+0x214/0x310 [ 1669.111962] ? trace_event_raw_event_sys_exit+0x260/0x260 [ 1669.117471] ? kasan_check_write+0x14/0x20 [ 1669.121678] syscall_return_slowpath+0x42f/0x510 [ 1669.126401] ? prepare_exit_to_usermode+0x2d0/0x2d0 [ 1669.131386] ? entry_SYSCALL_64_fastpath+0x91/0xbe [ 1669.136288] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 1669.141273] ? trace_hardirqs_on_thunk+0x1a/0x1c [ 1669.145999] entry_SYSCALL_64_fastpath+0xbc/0xbe [ 1669.150725] RIP: 0033:0x452869 [ 1669.153882] RSP: 002b:00007fa3bb789be8 EFLAGS: 00000212 ORIG_RAX: 00000000000000ca [ 1669.161570] RAX: 0000000000000000 RBX: 0000000000758248 RCX: 0000000000452869 [ 1669.168809] RDX: 0000000000000004 RSI: 000080000000000b RDI: 000000002000cffc [ 1669.176050] RBP: 000000000000008f R08: 0000000020048000 R09: 0000000000000000 [ 1669.183290] R10: 0000000020edfff0 R11: 0000000000000212 R12: 00000000006eee08 [ 1669.190526] R13: 00000000ffffffff R14: 00007fa3bb78a6d4 R15: 0000000000000004 [ 1669.197774] [ 1669.199370] Allocated by task 31561: [ 1669.203055] save_stack+0x43/0xd0 [ 1669.206476] kasan_kmalloc+0xad/0xe0 [ 1669.210156] kmem_cache_alloc_trace+0x136/0x750 [ 1669.214807] refill_pi_state_cache.part.6+0xa5/0x2f0 [ 1669.219880] futex_requeue+0x1887/0x2370 [ 1669.223906] do_futex+0x7f5/0x20d0 [ 1669.227421] SyS_futex+0x260/0x390 [ 1669.230941] entry_SYSCALL_64_fastpath+0x1f/0xbe [ 1669.235661] [ 1669.237254] Freed by task 31553: [ 1669.240590] save_stack+0x43/0xd0 [ 1669.244012] kasan_slab_free+0x71/0xc0 [ 1669.247871] kfree+0xca/0x250 [ 1669.250944] put_pi_state+0x3f4/0x560 [ 1669.254727] exit_pi_state_list+0x57a/0x7a0 [ 1669.259036] mm_release+0x46d/0x590 [ 1669.262634] do_exit+0x481/0x1ad0 [ 1669.266059] do_group_exit+0x149/0x400 [ 1669.269915] get_signal+0x73f/0x16d0 [ 1669.273609] do_signal+0x94/0x1ee0 [ 1669.277124] exit_to_usermode_loop+0x214/0x310 [ 1669.281685] syscall_return_slowpath+0x42f/0x510 [ 1669.286416] entry_SYSCALL_64_fastpath+0xbc/0xbe [ 1669.291139] [ 1669.292743] The buggy address belongs to the object at ffff8801d0ef41c0 [ 1669.292743] which belongs to the cache kmalloc-256 of size 256 [ 1669.305373] The buggy address is located 20 bytes inside of [ 1669.305373] 256-byte region [ffff8801d0ef41c0, ffff8801d0ef42c0) [ 1669.317132] The buggy address belongs to the page: [ 1669.322043] page:ffffea000743bd00 count:1 mapcount:0 mapping:ffff8801d0ef4080 index:0x0 [ 1669.330153] flags: 0x200000000000100(slab) [ 1669.334362] raw: 0200000000000100 ffff8801d0ef4080 0000000000000000 000000010000000c [ 1669.342219] raw: ffffea000743baa0 ffffea0007439fa0 ffff8801dac007c0 0000000000000000 [ 1669.350071] page dumped because: kasan: bad access detected [ 1669.355749] [ 1669.357346] Memory state around the buggy address: [ 1669.362240] ffff8801d0ef4080: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 1669.369564] ffff8801d0ef4100: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 1669.376892] >ffff8801d0ef4180: fc fc fc fc fc fc fc fc fb fb fb fb fb fb fb fb [ 1669.384218] ^ [ 1669.390155] ffff8801d0ef4200: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 1669.397481] ffff8801d0ef4280: fb fb fb fb fb fb fb fb fc fc fc fc fc fc fc fc [ 1669.404807] ================================================================== [ 1669.412139] Kernel panic - not syncing: panic_on_warn set ... [ 1669.412139] [ 1669.419469] CPU: 1 PID: 31572 Comm: syz-executor5 Tainted: G B 4.14.0-rc5-mm1+ #20 [ 1669.428397] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 1669.437730] Call Trace: [ 1669.440305] dump_stack+0x194/0x257 [ 1669.443919] ? arch_local_irq_restore+0x53/0x53 [ 1669.448572] ? kasan_end_report+0x32/0x50 [ 1669.452695] ? lock_downgrade+0x990/0x990 [ 1669.456820] ? vsnprintf+0x1ed/0x1900 [ 1669.460593] ? do_raw_spin_unlock+0x250/0x330 [ 1669.465066] panic+0x1e4/0x41c [ 1669.468240] ? refcount_error_report+0x214/0x214 [ 1669.472969] ? show_regs_print_info+0x65/0x65 [ 1669.477437] ? add_taint+0x1c/0x50 [ 1669.480946] ? do_raw_spin_unlock+0x308/0x330 [ 1669.485409] kasan_end_report+0x50/0x50 [ 1669.489360] kasan_report+0x144/0x340 [ 1669.493133] __asan_report_load4_noabort+0x14/0x20 [ 1669.498039] do_raw_spin_unlock+0x308/0x330 [ 1669.502342] ? do_raw_spin_trylock+0x190/0x190 [ 1669.506899] _raw_spin_unlock+0x22/0x30 [ 1669.510843] exit_pi_state_list+0x598/0x7a0 [ 1669.515138] ? futex_wait_requeue_pi.constprop.19+0x1300/0x1300 [ 1669.521165] ? lock_release+0xa40/0xa40 [ 1669.525113] ? trace_event_raw_event_sched_switch+0x8a0/0x8a0 [ 1669.530968] ? _raw_spin_unlock_irqrestore+0x31/0xba [ 1669.536047] ? __might_sleep+0x95/0x190 [ 1669.539993] ? __might_fault+0x188/0x1d0 [ 1669.544040] ? do_raw_spin_trylock+0x190/0x190 [ 1669.548592] mm_release+0x46d/0x590 [ 1669.552184] ? acct_collect+0xe9/0x800 [ 1669.556039] ? mm_access+0x140/0x140 [ 1669.559723] ? _raw_spin_unlock_irq+0x27/0x70 [ 1669.564186] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 1669.569167] ? trace_hardirqs_on+0xd/0x10 [ 1669.573280] ? _raw_spin_unlock_irq+0x27/0x70 [ 1669.577742] ? acct_collect+0x637/0x800 [ 1669.581686] do_exit+0x481/0x1ad0 [ 1669.585107] ? _raw_spin_unlock_irqrestore+0x31/0xba [ 1669.590182] ? trace_hardirqs_on_caller+0x331/0x5c0 [ 1669.595169] ? mm_update_next_owner+0x930/0x930 [ 1669.599803] ? trace_hardirqs_on+0xd/0x10 [ 1669.603920] ? hrtimer_try_to_cancel+0x9a/0x5c0 [ 1669.608557] ? __hrtimer_get_remaining+0x1c0/0x1c0 [ 1669.613454] ? do_raw_spin_trylock+0x190/0x190 [ 1669.618005] ? fault_in_user_writeable+0x90/0x90 [ 1669.622737] ? fixup_pi_state_owner.isra.16+0x980/0x980 [ 1669.628070] ? hrtimer_cancel+0x2e/0x40 [ 1669.632014] ? futex_wait_requeue_pi.constprop.19+0x8a8/0x1300 [ 1669.637960] ? check_noncircular+0x20/0x20 [ 1669.642165] ? futex_requeue+0x2370/0x2370 [ 1669.646375] ? __lock_acquire+0x6aa/0x3d50 [ 1669.650576] ? drop_futex_key_refs.isra.13+0x63/0xa0 [ 1669.655645] ? futex_wait+0x69e/0x990 [ 1669.659413] ? find_held_lock+0x35/0x1d0 [ 1669.663444] ? get_signal+0x7ae/0x16d0 [ 1669.667298] ? lock_downgrade+0x990/0x990 [ 1669.671415] do_group_exit+0x149/0x400 [ 1669.675270] ? __lock_is_held+0xb6/0x140 [ 1669.679302] ? SyS_exit+0x30/0x30 [ 1669.682725] ? _raw_spin_unlock_irq+0x27/0x70 [ 1669.687186] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 1669.692172] get_signal+0x73f/0x16d0 [ 1669.695856] ? ptrace_notify+0x130/0x130 [ 1669.699891] ? lock_release+0xa40/0xa40 [ 1669.703830] ? lock_release+0xa40/0xa40 [ 1669.707773] ? do_page_fault+0xee/0x720 [ 1669.711716] ? exit_robust_list+0x240/0x240 [ 1669.716010] ? find_held_lock+0x35/0x1d0 [ 1669.720051] do_signal+0x94/0x1ee0 [ 1669.723558] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 1669.728542] ? should_fail+0x23b/0xa40 [ 1669.732397] ? trace_hardirqs_on_thunk+0x1a/0x1c [ 1669.737120] ? fault_create_debugfs_attr+0x1f0/0x1f0 [ 1669.742190] ? setup_sigcontext+0x7d0/0x7d0 [ 1669.746479] ? retint_kernel+0x10/0x10 [ 1669.750338] ? find_held_lock+0x35/0x1d0 [ 1669.754372] ? lock_downgrade+0x990/0x990 [ 1669.758489] ? lock_release+0xa40/0xa40 [ 1669.762428] ? trace_event_raw_event_sched_switch+0x8a0/0x8a0 [ 1669.768279] ? exit_to_usermode_loop+0x8c/0x310 [ 1669.772916] exit_to_usermode_loop+0x214/0x310 [ 1669.777464] ? trace_event_raw_event_sys_exit+0x260/0x260 [ 1669.782968] ? kasan_check_write+0x14/0x20 [ 1669.787174] syscall_return_slowpath+0x42f/0x510 [ 1669.791936] ? prepare_exit_to_usermode+0x2d0/0x2d0 [ 1669.796930] ? entry_SYSCALL_64_fastpath+0x91/0xbe [ 1669.801834] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 1669.806819] ? trace_hardirqs_on_thunk+0x1a/0x1c [ 1669.811548] entry_SYSCALL_64_fastpath+0xbc/0xbe [ 1669.816269] RIP: 0033:0x452869 [ 1669.819428] RSP: 002b:00007fa3bb789be8 EFLAGS: 00000212 ORIG_RAX: 00000000000000ca [ 1669.827107] RAX: 0000000000000000 RBX: 0000000000758248 RCX: 0000000000452869 [ 1669.834347] RDX: 0000000000000004 RSI: 000080000000000b RDI: 000000002000cffc [ 1669.841586] RBP: 000000000000008f R08: 0000000020048000 R09: 0000000000000000 [ 1669.848822] R10: 0000000020edfff0 R11: 0000000000000212 R12: 00000000006eee08 [ 1669.856059] R13: 00000000ffffffff R14: 00007fa3bb78a6d4 R15: 0000000000000004 [ 1669.863307] [ 1669.863309] ======================================================