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.0.59' (ECDSA) to the list of known hosts. 2017/10/01 10:30:41 parsed 1 programs 2017/10/01 10:30:41 executed programs: 0 syzkaller login: [ 63.705310] ================================================================== [ 63.706522] BUG: KASAN: use-after-free in __lock_acquire+0x407b/0x4620 [ 63.707411] Read of size 8 at addr ffff8801c8a13568 by task syz-executor3/5003 [ 63.708407] [ 63.708894] CPU: 0 PID: 5003 Comm: syz-executor3 Not tainted 4.14.0-rc2-mm1+ #11 [ 63.710364] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 63.711594] Call Trace: [ 63.711951] dump_stack+0x194/0x257 [ 63.712458] ? arch_local_irq_restore+0x53/0x53 [ 63.713082] ? show_regs_print_info+0x65/0x65 [ 63.713681] ? __kernel_text_address+0xd/0x40 [ 63.714293] ? __lock_acquire+0x407b/0x4620 [ 63.714870] print_address_description+0x73/0x250 [ 63.715513] ? __lock_acquire+0x407b/0x4620 [ 63.716088] kasan_report+0x25b/0x340 [ 63.716598] __asan_report_load8_noabort+0x14/0x20 [ 63.717252] __lock_acquire+0x407b/0x4620 [ 63.717807] ? unwind_dump+0x4c0/0x4c0 [ 63.718326] ? __unwind_start+0x169/0x330 [ 63.718881] ? __kernel_text_address+0xd/0x40 [ 63.719480] ? unwind_get_return_address+0x61/0xa0 [ 63.720150] ? debug_check_no_locks_freed+0x3d0/0x3d0 [ 63.720836] ? unwind_get_return_address+0x61/0xa0 [ 63.721506] ? __save_stack_trace+0x61/0xd0 [ 63.722084] ? get_signal+0x73f/0x16d0 [ 63.722604] ? save_stack_trace+0x16/0x20 [ 63.723157] ? __lock_acquire+0x20fd/0x4620 [ 63.723736] ? debug_check_no_locks_freed+0x3d0/0x3d0 [ 63.724451] ? debug_check_no_locks_freed+0x3d0/0x3d0 [ 63.725140] ? save_stack_trace+0x16/0x20 [ 63.727619] ? __lock_acquire+0x20fd/0x4620 [ 63.731906] ? osq_unlock+0x350/0x350 [ 63.735671] ? save_stack_trace+0x16/0x20 [ 63.739785] ? check_noncircular+0x20/0x20 [ 63.743984] ? check_noncircular+0x20/0x20 [ 63.748184] ? debug_check_no_locks_freed+0x3d0/0x3d0 [ 63.753340] ? debug_check_no_locks_freed+0x3d0/0x3d0 [ 63.758495] ? __lock_is_held+0xbc/0x140 [ 63.762524] ? find_held_lock+0x39/0x1d0 [ 63.766555] ? lock_downgrade+0x990/0x990 [ 63.770669] ? check_noncircular+0x20/0x20 [ 63.774871] lock_acquire+0x1d5/0x580 [ 63.778639] ? exit_pi_state_list+0x369/0x7a0 [ 63.783100] ? lock_release+0xd70/0xd70 [ 63.787039] ? do_raw_spin_trylock+0x190/0x190 [ 63.791585] ? find_held_lock+0x39/0x1d0 [ 63.795619] _raw_spin_lock_irq+0x5e/0x80 [ 63.799731] ? exit_pi_state_list+0x369/0x7a0 [ 63.804191] exit_pi_state_list+0x369/0x7a0 [ 63.808481] ? futex_wait_requeue_pi.constprop.19+0x1300/0x1300 [ 63.814503] ? lock_release+0xd70/0xd70 [ 63.818443] ? trace_event_raw_event_sched_switch+0x770/0x770 [ 63.824294] ? _raw_spin_unlock_irqrestore+0x31/0xba [ 63.829364] ? __might_sleep+0x95/0x190 [ 63.833307] ? __might_fault+0x188/0x1d0 [ 63.837336] ? do_raw_spin_trylock+0x190/0x190 [ 63.841886] mm_release+0x46d/0x590 [ 63.845476] ? do_raw_spin_trylock+0x190/0x190 [ 63.850025] ? mm_access+0x140/0x140 [ 63.853707] ? _raw_spin_unlock_irq+0x27/0x70 [ 63.858170] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 63.863627] ? trace_hardirqs_on+0xd/0x10 [ 63.867744] ? _raw_spin_unlock_irq+0x27/0x70 [ 63.872206] ? acct_collect+0x637/0x800 [ 63.876151] do_exit+0x481/0x1b00 [ 63.879570] ? mm_update_next_owner+0x930/0x930 [ 63.884204] ? trace_event_raw_event_sched_switch+0x770/0x770 [ 63.890056] ? rcu_note_context_switch+0x710/0x710 [ 63.894948] ? futex_wait_setup+0x14a/0x3d0 [ 63.899238] ? __might_sleep+0x95/0x190 [ 63.903178] ? _cond_resched+0x14/0x30 [ 63.907035] ? futex_wait_queue_me+0x524/0x7e0 [ 63.911584] ? refill_pi_state_cache.part.6+0x2f0/0x2f0 [ 63.916911] ? memset+0x31/0x40 [ 63.920158] ? check_noncircular+0x20/0x20 [ 63.924359] ? futex_wait_setup+0x22e/0x3d0 [ 63.928649] ? futex_wake+0x680/0x680 [ 63.932415] ? find_held_lock+0x39/0x1d0 [ 63.936446] ? lock_downgrade+0x990/0x990 [ 63.940558] ? recalc_sigpending_tsk+0x117/0x150 [ 63.945279] ? recalc_sigpending+0x103/0x160 [ 63.949652] ? recalc_sigpending_tsk+0x150/0x150 [ 63.954370] ? get_signal+0x2b2/0x16d0 [ 63.958225] do_group_exit+0x149/0x400 [ 63.962086] ? __lock_is_held+0xbc/0x140 [ 63.966111] ? SyS_exit+0x30/0x30 [ 63.969529] ? _raw_spin_unlock_irq+0x27/0x70 [ 63.973991] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 63.978975] get_signal+0x73f/0x16d0 [ 63.982657] ? ptrace_notify+0x130/0x130 [ 63.986687] ? find_held_lock+0x39/0x1d0 [ 63.990714] ? exit_robust_list+0x240/0x240 [ 63.995000] ? lock_downgrade+0x990/0x990 [ 63.999117] ? lock_downgrade+0x990/0x990 [ 64.003232] do_signal+0x94/0x1ee0 [ 64.006738] ? cpuset_wait_for_hotplug+0x20/0x20 [ 64.011459] ? find_held_lock+0x39/0x1d0 [ 64.015488] ? setup_sigcontext+0x7d0/0x7d0 [ 64.019777] ? lock_downgrade+0x990/0x990 [ 64.023889] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 64.028876] ? lock_release+0xd70/0xd70 [ 64.032817] ? trace_event_raw_event_sched_switch+0x770/0x770 [ 64.038669] ? exit_to_usermode_loop+0x8c/0x310 [ 64.043305] exit_to_usermode_loop+0x214/0x310 [ 64.047852] ? trace_event_raw_event_sys_exit+0x260/0x260 [ 64.053353] ? kasan_check_write+0x14/0x20 [ 64.057556] syscall_return_slowpath+0x42f/0x510 [ 64.062278] ? prepare_exit_to_usermode+0x2d0/0x2d0 [ 64.067262] ? entry_SYSCALL_64_fastpath+0x91/0xbe [ 64.072155] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 64.077137] ? trace_hardirqs_on_thunk+0x1a/0x1c [ 64.081858] entry_SYSCALL_64_fastpath+0xbc/0xbe [ 64.086577] RIP: 0033:0x4520a9 [ 64.089734] RSP: 002b:00007f74d5478cf8 EFLAGS: 00000246 ORIG_RAX: 00000000000000ca [ 64.097407] RAX: 0000000000000000 RBX: 0000000000718188 RCX: 00000000004520a9 [ 64.104640] RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000718188 [ 64.111877] RBP: 0000000000718160 R08: 0000000000000000 R09: 0000000000000000 [ 64.119110] R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 [ 64.126345] R13: 0000000000a6f7ef R14: 00007f74d54799c0 R15: 0000000000000003 [ 64.133583] [ 64.135175] Allocated by task 5029: [ 64.138769] save_stack_trace+0x16/0x20 [ 64.142706] save_stack+0x43/0xd0 [ 64.146124] kasan_kmalloc+0xad/0xe0 [ 64.149806] kmem_cache_alloc_trace+0x136/0x750 [ 64.154441] refill_pi_state_cache.part.6+0xa5/0x2f0 [ 64.159507] futex_requeue+0x1887/0x2370 [ 64.163533] do_futex+0x7f5/0x20d0 [ 64.167096] SyS_futex+0x260/0x390 [ 64.170602] entry_SYSCALL_64_fastpath+0x1f/0xbe [ 64.175318] [ 64.176910] Freed by task 4994: [ 64.180153] save_stack_trace+0x16/0x20 [ 64.184093] save_stack+0x43/0xd0 [ 64.187509] kasan_slab_free+0x71/0xc0 [ 64.191361] kfree+0xca/0x250 [ 64.194430] put_pi_state+0x3f4/0x560 [ 64.198198] unqueue_me_pi+0x4a/0xc0 [ 64.201876] futex_wait_requeue_pi.constprop.19+0xc7f/0x1300 [ 64.207638] do_futex+0x825/0x20d0 [ 64.211143] SyS_futex+0x260/0x390 [ 64.214646] entry_SYSCALL_64_fastpath+0x1f/0xbe [ 64.219361] [ 64.220954] The buggy address belongs to the object at ffff8801c8a13540 [ 64.220954] which belongs to the cache kmalloc-256 of size 256 [ 64.233573] The buggy address is located 40 bytes inside of [ 64.233573] 256-byte region [ffff8801c8a13540, ffff8801c8a13640) [ 64.245325] The buggy address belongs to the page: [ 64.250222] page:ffffea00072284c0 count:1 mapcount:0 mapping:ffff8801c8a13040 index:0x0 [ 64.258329] flags: 0x200000000000100(slab) [ 64.262529] raw: 0200000000000100 ffff8801c8a13040 0000000000000000 000000010000000c [ 64.270373] raw: ffffea0007283820 ffffea00072193e0 ffff8801dac007c0 0000000000000000 [ 64.278213] page dumped because: kasan: bad access detected [ 64.283882] [ 64.285473] Memory state around the buggy address: [ 64.290367] ffff8801c8a13400: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 64.297692] ffff8801c8a13480: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 64.305016] >ffff8801c8a13500: fc fc fc fc fc fc fc fc fb fb fb fb fb fb fb fb [ 64.312343] ^ [ 64.319057] ffff8801c8a13580: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 64.326379] ffff8801c8a13600: fb fb fb fb fb fb fb fb fc fc fc fc fc fc fc fc [ 64.333699] ================================================================== [ 64.341020] Disabling lock debugging due to kernel taint [ 64.346433] Kernel panic - not syncing: panic_on_warn set ... [ 64.346433] [ 64.353760] CPU: 0 PID: 5003 Comm: syz-executor3 Tainted: G B 4.14.0-rc2-mm1+ #11 [ 64.362472] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 64.371788] Call Trace: [ 64.374348] dump_stack+0x194/0x257 [ 64.377940] ? arch_local_irq_restore+0x53/0x53 [ 64.382573] ? vprintk_default+0x28/0x30 [ 64.386601] ? __lock_acquire+0x4060/0x4620 [ 64.390888] panic+0x1e4/0x41c [ 64.394045] ? refcount_error_report+0x214/0x214 [ 64.398772] ? __lock_acquire+0x407b/0x4620 [ 64.403057] kasan_end_report+0x50/0x50 [ 64.406994] kasan_report+0x144/0x340 [ 64.410763] __asan_report_load8_noabort+0x14/0x20 [ 64.415658] __lock_acquire+0x407b/0x4620 [ 64.419771] ? unwind_dump+0x4c0/0x4c0 [ 64.423620] ? __unwind_start+0x169/0x330 [ 64.427733] ? __kernel_text_address+0xd/0x40 [ 64.432193] ? unwind_get_return_address+0x61/0xa0 [ 64.437091] ? debug_check_no_locks_freed+0x3d0/0x3d0 [ 64.442243] ? unwind_get_return_address+0x61/0xa0 [ 64.447136] ? __save_stack_trace+0x61/0xd0 [ 64.451426] ? get_signal+0x73f/0x16d0 [ 64.455277] ? save_stack_trace+0x16/0x20 [ 64.459389] ? __lock_acquire+0x20fd/0x4620 [ 64.463677] ? debug_check_no_locks_freed+0x3d0/0x3d0 [ 64.468835] ? debug_check_no_locks_freed+0x3d0/0x3d0 [ 64.473988] ? save_stack_trace+0x16/0x20 [ 64.478100] ? __lock_acquire+0x20fd/0x4620 [ 64.482388] ? osq_unlock+0x350/0x350 [ 64.486151] ? save_stack_trace+0x16/0x20 [ 64.490269] ? check_noncircular+0x20/0x20 [ 64.494472] ? check_noncircular+0x20/0x20 [ 64.498672] ? debug_check_no_locks_freed+0x3d0/0x3d0 [ 64.503827] ? debug_check_no_locks_freed+0x3d0/0x3d0 [ 64.508981] ? __lock_is_held+0xbc/0x140 [ 64.513014] ? find_held_lock+0x39/0x1d0 [ 64.517042] ? lock_downgrade+0x990/0x990 [ 64.521154] ? check_noncircular+0x20/0x20 [ 64.525368] lock_acquire+0x1d5/0x580 [ 64.529139] ? exit_pi_state_list+0x369/0x7a0 [ 64.533603] ? lock_release+0xd70/0xd70 [ 64.537541] ? do_raw_spin_trylock+0x190/0x190 [ 64.542086] ? find_held_lock+0x39/0x1d0 [ 64.546118] _raw_spin_lock_irq+0x5e/0x80 [ 64.550231] ? exit_pi_state_list+0x369/0x7a0 [ 64.554688] exit_pi_state_list+0x369/0x7a0 [ 64.558981] ? futex_wait_requeue_pi.constprop.19+0x1300/0x1300 [ 64.565007] ? lock_release+0xd70/0xd70 [ 64.568951] ? trace_event_raw_event_sched_switch+0x770/0x770 [ 64.574798] ? _raw_spin_unlock_irqrestore+0x31/0xba [ 64.579866] ? __might_sleep+0x95/0x190 [ 64.583809] ? __might_fault+0x188/0x1d0 [ 64.587835] ? do_raw_spin_trylock+0x190/0x190 [ 64.592381] mm_release+0x46d/0x590 [ 64.595974] ? do_raw_spin_trylock+0x190/0x190 [ 64.600522] ? mm_access+0x140/0x140 [ 64.604199] ? _raw_spin_unlock_irq+0x27/0x70 [ 64.608659] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 64.613639] ? trace_hardirqs_on+0xd/0x10 [ 64.617754] ? _raw_spin_unlock_irq+0x27/0x70 [ 64.622213] ? acct_collect+0x637/0x800 [ 64.626156] do_exit+0x481/0x1b00 [ 64.629580] ? mm_update_next_owner+0x930/0x930 [ 64.634214] ? trace_event_raw_event_sched_switch+0x770/0x770 [ 64.640066] ? rcu_note_context_switch+0x710/0x710 [ 64.644959] ? futex_wait_setup+0x14a/0x3d0 [ 64.649245] ? __might_sleep+0x95/0x190 [ 64.653184] ? _cond_resched+0x14/0x30 [ 64.657036] ? futex_wait_queue_me+0x524/0x7e0 [ 64.661585] ? refill_pi_state_cache.part.6+0x2f0/0x2f0 [ 64.666911] ? memset+0x31/0x40 [ 64.670160] ? check_noncircular+0x20/0x20 [ 64.674359] ? futex_wait_setup+0x22e/0x3d0 [ 64.678646] ? futex_wake+0x680/0x680 [ 64.682414] ? find_held_lock+0x39/0x1d0 [ 64.686446] ? lock_downgrade+0x990/0x990 [ 64.690560] ? recalc_sigpending_tsk+0x117/0x150 [ 64.695289] ? recalc_sigpending+0x103/0x160 [ 64.699663] ? recalc_sigpending_tsk+0x150/0x150 [ 64.704380] ? get_signal+0x2b2/0x16d0