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-6,10.128.0.53' (ECDSA) to the list of known hosts. 2017/09/29 19:03:33 parsed 1 programs 2017/09/29 19:03:33 executed programs: 0 syzkaller login: [ 117.623413] ================================================================== [ 117.632120] BUG: KASAN: use-after-free in __lock_acquire+0x407b/0x4620 [ 117.640107] Read of size 8 at addr ffff8801cdfc33e8 by task syz-executor0/3175 [ 117.650567] [ 117.652188] CPU: 1 PID: 3175 Comm: syz-executor0 Not tainted 4.14.0-rc2-next-20170929+ #32 [ 117.662089] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 117.673772] Call Trace: [ 117.677032] dump_stack+0x194/0x257 [ 117.680751] ? arch_local_irq_restore+0x53/0x53 [ 117.686474] ? show_regs_print_info+0x65/0x65 [ 117.691797] ? __kernel_text_address+0xd/0x40 [ 117.699763] ? __lock_acquire+0x407b/0x4620 [ 117.705284] print_address_description+0x73/0x250 [ 117.712318] ? __lock_acquire+0x407b/0x4620 [ 117.717850] kasan_report+0x25b/0x340 [ 117.726991] __asan_report_load8_noabort+0x14/0x20 [ 117.734386] __lock_acquire+0x407b/0x4620 [ 117.741309] ? unwind_dump+0x4c0/0x4c0 [ 117.746040] ? __unwind_start+0x169/0x330 [ 117.751174] ? __kernel_text_address+0xd/0x40 [ 117.756280] ? unwind_get_return_address+0x61/0xa0 [ 117.761285] ? debug_check_no_locks_freed+0x3d0/0x3d0 [ 117.766662] ? unwind_get_return_address+0x61/0xa0 [ 117.772456] ? __save_stack_trace+0x61/0xd0 [ 117.776765] ? get_signal+0x73f/0x16d0 [ 117.781233] ? save_stack_trace+0x16/0x20 [ 117.786130] ? __lock_acquire+0x20fd/0x4620 [ 117.791179] ? debug_check_no_locks_freed+0x3d0/0x3d0 [ 117.796499] ? debug_check_no_locks_freed+0x3d0/0x3d0 [ 117.802150] ? __bpf_address_lookup+0x2b0/0x2b0 [ 117.806826] ? osq_unlock+0x350/0x350 [ 117.810602] ? lock_release+0xd70/0xd70 [ 117.814895] ? __free_insn_slot+0x5c0/0x5c0 [ 117.821929] ? check_noncircular+0x20/0x20 [ 117.827209] ? is_bpf_text_address+0xa4/0x120 [ 117.831836] ? kernel_text_address+0x102/0x140 [ 117.836727] ? __kernel_text_address+0xd/0x40 [ 117.841742] ? find_held_lock+0x39/0x1d0 [ 117.846056] ? lock_downgrade+0x990/0x990 [ 117.850566] ? check_noncircular+0x20/0x20 [ 117.854951] ? kasan_kmalloc+0xad/0xe0 [ 117.860033] lock_acquire+0x1d5/0x580 [ 117.863971] ? exit_pi_state_list+0x369/0x7a0 [ 117.868843] ? lock_release+0xd70/0xd70 [ 117.874922] ? do_raw_spin_trylock+0x190/0x190 [ 117.880582] ? find_held_lock+0x39/0x1d0 [ 117.885392] _raw_spin_lock_irq+0x5e/0x80 [ 117.889962] ? exit_pi_state_list+0x369/0x7a0 [ 117.895472] exit_pi_state_list+0x369/0x7a0 [ 117.900659] ? futex_wait_requeue_pi.constprop.19+0x1300/0x1300 [ 117.907266] ? lock_release+0xd70/0xd70 [ 117.911786] ? trace_event_raw_event_sched_switch+0x770/0x770 [ 117.918017] ? _raw_spin_unlock_irqrestore+0x31/0xba [ 117.925031] ? __might_sleep+0x95/0x190 [ 117.929695] ? __might_fault+0x188/0x1d0 [ 117.934787] ? do_raw_spin_trylock+0x190/0x190 [ 117.939959] mm_release+0x46d/0x590 [ 117.943681] ? do_raw_spin_trylock+0x190/0x190 [ 117.948613] ? mm_access+0x140/0x140 [ 117.952412] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 117.958416] ? trace_hardirqs_on+0xd/0x10 [ 117.963310] ? _raw_spin_unlock_irq+0x27/0x70 [ 117.968535] ? acct_collect+0x637/0x800 [ 117.972814] do_exit+0x481/0x1b00 [ 117.976472] ? mm_update_next_owner+0x930/0x930 [ 117.981713] ? trace_event_raw_event_sched_switch+0x770/0x770 [ 117.990218] ? find_held_lock+0x39/0x1d0 [ 117.994285] ? refill_pi_state_cache.part.6+0x2f0/0x2f0 [ 117.999881] ? check_noncircular+0x20/0x20 [ 118.004204] ? fault_in_user_writeable+0x90/0x90 [ 118.009769] ? futex_wake+0x680/0x680 [ 118.014929] ? find_held_lock+0x39/0x1d0 [ 118.019296] ? lock_downgrade+0x990/0x990 [ 118.023525] ? recalc_sigpending_tsk+0x117/0x150 [ 118.028562] ? recalc_sigpending+0x103/0x160 [ 118.032991] ? recalc_sigpending_tsk+0x150/0x150 [ 118.038149] ? get_signal+0x2b2/0x16d0 [ 118.042018] do_group_exit+0x149/0x400 [ 118.045891] ? __lock_is_held+0xbc/0x140 [ 118.051800] ? SyS_exit+0x30/0x30 [ 118.055700] ? _raw_spin_unlock_irq+0x27/0x70 [ 118.060565] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 118.066869] get_signal+0x73f/0x16d0 [ 118.070601] ? ptrace_notify+0x130/0x130 [ 118.074955] ? vma_wants_writenotify+0x3b0/0x3b0 [ 118.080807] ? exit_robust_list+0x240/0x240 [ 118.085374] ? lock_downgrade+0x990/0x990 [ 118.090757] ? SyS_brk+0x6f0/0x6f0 [ 118.094355] do_signal+0x94/0x1ee0 [ 118.098756] ? arch_get_unmapped_area+0x750/0x750 [ 118.103977] ? lock_acquire+0x1d5/0x580 [ 118.108124] ? find_held_lock+0x39/0x1d0 [ 118.112835] ? setup_sigcontext+0x7d0/0x7d0 [ 118.119364] ? lock_downgrade+0x990/0x990 [ 118.123859] ? down_write+0x120/0x120 [ 118.129760] ? lock_release+0xd70/0xd70 [ 118.133717] ? trace_event_raw_event_sched_switch+0x770/0x770 [ 118.140127] ? vm_mmap_pgoff+0x1fc/0x280 [ 118.144185] ? exit_to_usermode_loop+0x8c/0x310 [ 118.151314] exit_to_usermode_loop+0x214/0x310 [ 118.156192] ? trace_event_raw_event_sys_exit+0x260/0x260 [ 118.163136] ? kasan_check_write+0x14/0x20 [ 118.168278] syscall_return_slowpath+0x42f/0x510 [ 118.173887] ? prepare_exit_to_usermode+0x2d0/0x2d0 [ 118.180710] ? entry_SYSCALL_64_fastpath+0x91/0xbe [ 118.185614] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 118.191780] ? trace_hardirqs_on_thunk+0x1a/0x1c [ 118.196515] entry_SYSCALL_64_fastpath+0xbc/0xbe [ 118.201955] RIP: 0033:0x4520a9 [ 118.205576] RSP: 002b:00007f8c8f5e8cf8 EFLAGS: 00000246 ORIG_RAX: 00000000000000ca [ 118.215618] RAX: fffffffffffffe00 RBX: 0000000000718028 RCX: 00000000004520a9 [ 118.227179] RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000718028 [ 118.234993] RBP: 0000000000718000 R08: 0000000000000000 R09: 0000000000000000 [ 118.243504] R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 [ 118.251483] R13: 00007ffee280422f R14: 00007f8c8f5e99c0 R15: 0000000000000000 [ 118.262601] [ 118.264257] Allocated by task 3177: [ 118.269456] save_stack_trace+0x16/0x20 [ 118.273760] save_stack+0x43/0xd0 [ 118.277345] kasan_kmalloc+0xad/0xe0 [ 118.281579] kmem_cache_alloc_trace+0x136/0x750 [ 118.286308] refill_pi_state_cache.part.6+0xa5/0x2f0 [ 118.291581] futex_requeue+0x1887/0x2370 [ 118.295615] do_futex+0x7f5/0x20d0 [ 118.299159] SyS_futex+0x260/0x390 [ 118.303811] entry_SYSCALL_64_fastpath+0x1f/0xbe [ 118.311075] [ 118.314357] Freed by task 3176: [ 118.317881] save_stack_trace+0x16/0x20 [ 118.322589] save_stack+0x43/0xd0 [ 118.327341] kasan_slab_free+0x71/0xc0 [ 118.331289] kfree+0xca/0x250 [ 118.334369] put_pi_state+0x3f4/0x560 [ 118.338912] unqueue_me_pi+0x4a/0xc0 [ 118.342595] futex_wait_requeue_pi.constprop.19+0xc7f/0x1300 [ 118.348372] do_futex+0x825/0x20d0 [ 118.352947] SyS_futex+0x260/0x390 [ 118.356457] entry_SYSCALL_64_fastpath+0x1f/0xbe [ 118.361184] [ 118.362786] The buggy address belongs to the object at ffff8801cdfc33c0 [ 118.362786] which belongs to the cache kmalloc-256 of size 256 [ 118.380616] The buggy address is located 40 bytes inside of [ 118.380616] 256-byte region [ffff8801cdfc33c0, ffff8801cdfc34c0) [ 118.392968] The buggy address belongs to the page: [ 118.398881] page:ffffea000737f0c0 count:1 mapcount:0 mapping:ffff8801cdfc3000 index:0x0 [ 118.408171] flags: 0x200000000000100(slab) [ 118.412802] raw: 0200000000000100 ffff8801cdfc3000 0000000000000000 000000010000000c [ 118.421242] raw: ffffea0007377ca0 ffffea000737d5a0 ffff8801dac007c0 0000000000000000 [ 118.429468] page dumped because: kasan: bad access detected [ 118.435548] [ 118.437464] Memory state around the buggy address: [ 118.442970] ffff8801cdfc3280: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 118.451724] ffff8801cdfc3300: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 118.461184] >ffff8801cdfc3380: fc fc fc fc fc fc fc fc fb fb fb fb fb fb fb fb [ 118.469315] ^ [ 118.476817] ffff8801cdfc3400: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 118.484648] ffff8801cdfc3480: fb fb fb fb fb fb fb fb fc fc fc fc fc fc fc fc [ 118.492988] ================================================================== [ 118.500685] Disabling lock debugging due to kernel taint [ 118.506375] Kernel panic - not syncing: panic_on_warn set ... [ 118.506375] [ 118.513734] CPU: 1 PID: 3175 Comm: syz-executor0 Tainted: G B 4.14.0-rc2-next-20170929+ #32 [ 118.526432] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 118.537713] Call Trace: [ 118.540564] dump_stack+0x194/0x257 [ 118.544268] ? arch_local_irq_restore+0x53/0x53 [ 118.549236] ? vprintk_default+0x28/0x30 [ 118.554537] ? __lock_acquire+0x4000/0x4620 [ 118.559401] panic+0x1e4/0x41c [ 118.562801] ? refcount_error_report+0x214/0x214 [ 118.568560] ? __lock_acquire+0x407b/0x4620 [ 118.573061] kasan_end_report+0x50/0x50 [ 118.577091] kasan_report+0x144/0x340 [ 118.581509] __asan_report_load8_noabort+0x14/0x20 [ 118.586710] __lock_acquire+0x407b/0x4620 [ 118.592507] ? unwind_dump+0x4c0/0x4c0 [ 118.597755] ? __unwind_start+0x169/0x330 [ 118.603138] ? __kernel_text_address+0xd/0x40 [ 118.607622] ? unwind_get_return_address+0x61/0xa0 [ 118.615302] ? debug_check_no_locks_freed+0x3d0/0x3d0 [ 118.623216] ? unwind_get_return_address+0x61/0xa0