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-7,10.128.0.57' (ECDSA) to the list of known hosts. 2017/09/30 19:22:31 parsed 1 programs 2017/09/30 19:22:31 executed programs: 0 2017/09/30 19:22:36 executed programs: 37 2017/09/30 19:22:42 executed programs: 74 syzkaller login: [ 53.017172] ================================================================== [ 53.024601] BUG: KASAN: use-after-free in __lock_acquire+0x407b/0x4620 [ 53.031235] Read of size 8 at addr ffff8801cc65d328 by task syz-executor0/3519 [ 53.038556] [ 53.040153] CPU: 0 PID: 3519 Comm: syz-executor0 Not tainted 4.14.0-rc2-next-20170929+ #32 [ 53.048520] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 53.057837] Call Trace: [ 53.060396] dump_stack+0x194/0x257 [ 53.063990] ? arch_local_irq_restore+0x53/0x53 [ 53.068622] ? show_regs_print_info+0x65/0x65 [ 53.073083] ? __kernel_text_address+0xd/0x40 [ 53.077691] ? __lock_acquire+0x407b/0x4620 [ 53.081991] print_address_description+0x73/0x250 [ 53.086801] ? __lock_acquire+0x407b/0x4620 [ 53.091086] kasan_report+0x25b/0x340 [ 53.094852] __asan_report_load8_noabort+0x14/0x20 [ 53.099743] __lock_acquire+0x407b/0x4620 [ 53.103857] ? unwind_dump+0x4c0/0x4c0 [ 53.107705] ? __unwind_start+0x169/0x330 [ 53.111817] ? __kernel_text_address+0xd/0x40 [ 53.116274] ? unwind_get_return_address+0x61/0xa0 [ 53.121168] ? debug_check_no_locks_freed+0x3d0/0x3d0 [ 53.126320] ? unwind_get_return_address+0x61/0xa0 [ 53.131212] ? __save_stack_trace+0x61/0xd0 [ 53.135497] ? get_signal+0x73f/0x16d0 [ 53.139348] ? save_stack_trace+0x16/0x20 [ 53.143458] ? __lock_acquire+0x20fd/0x4620 [ 53.147744] ? debug_check_no_locks_freed+0x3d0/0x3d0 [ 53.152898] ? debug_check_no_locks_freed+0x3d0/0x3d0 [ 53.158053] ? save_stack_trace+0x16/0x20 [ 53.162162] ? __lock_acquire+0x20fd/0x4620 [ 53.166444] ? osq_unlock+0x350/0x350 [ 53.170207] ? save_stack_trace+0x16/0x20 [ 53.174318] ? lock_release+0xd70/0xd70 [ 53.178257] ? check_noncircular+0x20/0x20 [ 53.182455] ? debug_check_no_locks_freed+0x3d0/0x3d0 [ 53.187608] ? debug_check_no_locks_freed+0x3d0/0x3d0 [ 53.192763] ? find_held_lock+0x39/0x1d0 [ 53.196791] ? lock_downgrade+0x990/0x990 [ 53.200901] ? check_noncircular+0x20/0x20 [ 53.205100] lock_acquire+0x1d5/0x580 [ 53.208866] ? exit_pi_state_list+0x369/0x7a0 [ 53.213325] ? lock_release+0xd70/0xd70 [ 53.217263] ? do_raw_spin_trylock+0x190/0x190 [ 53.221807] ? find_held_lock+0x39/0x1d0 [ 53.225839] _raw_spin_lock_irq+0x5e/0x80 [ 53.229949] ? exit_pi_state_list+0x369/0x7a0 [ 53.234412] exit_pi_state_list+0x369/0x7a0 [ 53.238701] ? futex_wait_requeue_pi.constprop.19+0x1300/0x1300 [ 53.244723] ? lock_release+0xd70/0xd70 [ 53.248660] ? trace_event_raw_event_sched_switch+0x770/0x770 [ 53.254509] ? _raw_spin_unlock_irqrestore+0x31/0xba [ 53.259578] ? __might_sleep+0x95/0x190 [ 53.263523] ? __might_fault+0x188/0x1d0 [ 53.267554] ? do_raw_spin_trylock+0x190/0x190 [ 53.272102] mm_release+0x46d/0x590 [ 53.275691] ? do_raw_spin_trylock+0x190/0x190 [ 53.280234] ? mm_access+0x140/0x140 [ 53.283912] ? _raw_spin_unlock_irq+0x27/0x70 [ 53.288373] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 53.293352] ? trace_hardirqs_on+0xd/0x10 [ 53.297463] ? _raw_spin_unlock_irq+0x27/0x70 [ 53.301921] ? acct_collect+0x637/0x800 [ 53.305859] do_exit+0x481/0x1b00 [ 53.309277] ? mm_update_next_owner+0x930/0x930 [ 53.313910] ? trace_event_raw_event_sched_switch+0x770/0x770 [ 53.319758] ? find_held_lock+0x39/0x1d0 [ 53.323786] ? refill_pi_state_cache.part.6+0x2f0/0x2f0 [ 53.329113] ? check_noncircular+0x20/0x20 [ 53.333314] ? fault_in_user_writeable+0x90/0x90 [ 53.338034] ? futex_wake+0x680/0x680 [ 53.341800] ? find_held_lock+0x39/0x1d0 [ 53.345827] ? lock_downgrade+0x990/0x990 [ 53.349938] ? recalc_sigpending_tsk+0x117/0x150 [ 53.354656] ? recalc_sigpending+0x103/0x160 [ 53.359029] ? recalc_sigpending_tsk+0x150/0x150 [ 53.363749] ? get_signal+0x2b2/0x16d0 [ 53.367601] do_group_exit+0x149/0x400 [ 53.371452] ? __lock_is_held+0xbc/0x140 [ 53.375479] ? SyS_exit+0x30/0x30 [ 53.378895] ? _raw_spin_unlock_irq+0x27/0x70 [ 53.383359] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 53.388338] get_signal+0x73f/0x16d0 [ 53.392019] ? ptrace_notify+0x130/0x130 [ 53.396046] ? vma_wants_writenotify+0x3b0/0x3b0 [ 53.400769] ? exit_robust_list+0x240/0x240 [ 53.405055] ? lock_downgrade+0x990/0x990 [ 53.409177] ? SyS_brk+0x6f0/0x6f0 [ 53.412682] do_signal+0x94/0x1ee0 [ 53.416187] ? arch_get_unmapped_area+0x750/0x750 [ 53.420996] ? lock_acquire+0x1d5/0x580 [ 53.424936] ? vm_mmap_pgoff+0x198/0x280 [ 53.428963] ? userfaultfd_unmap_complete+0x327/0x510 [ 53.434117] ? setup_sigcontext+0x7d0/0x7d0 [ 53.438403] ? userfaultfd_unmap_prep+0x540/0x540 [ 53.443209] ? do_mmap+0x34f/0xd50 [ 53.446713] ? up_write+0x6b/0x120 [ 53.450218] ? down_write+0x120/0x120 [ 53.453982] ? security_mmap_file+0x143/0x180 [ 53.458442] ? vm_mmap_pgoff+0x1fc/0x280 [ 53.462470] ? exit_to_usermode_loop+0x8c/0x310 [ 53.467102] exit_to_usermode_loop+0x214/0x310 [ 53.471648] ? vma_is_stack_for_current+0xa0/0xa0 [ 53.476457] ? trace_event_raw_event_sys_exit+0x260/0x260 [ 53.481956] ? kasan_check_write+0x14/0x20 [ 53.486155] syscall_return_slowpath+0x42f/0x510 [ 53.490874] ? prepare_exit_to_usermode+0x2d0/0x2d0 [ 53.495853] ? entry_SYSCALL_64_fastpath+0x91/0xbe [ 53.500745] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 53.505723] ? trace_hardirqs_on_thunk+0x1a/0x1c [ 53.510444] entry_SYSCALL_64_fastpath+0xbc/0xbe [ 53.515161] RIP: 0033:0x4520a9 [ 53.518316] RSP: 002b:00007eff7adc5cf8 EFLAGS: 00000246 ORIG_RAX: 00000000000000ca [ 53.525986] RAX: fffffffffffffe00 RBX: 00000000007180d8 RCX: 00000000004520a9 [ 53.533219] RDX: 0000000000000000 RSI: 0000000000000000 RDI: 00000000007180d8 [ 53.540454] RBP: 00000000007180b0 R08: 0000000000000000 R09: 0000000000000000 [ 53.547687] R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 [ 53.554918] R13: 00007fff8ea9cfff R14: 00007eff7adc69c0 R15: 0000000000000002 [ 53.562154] [ 53.563745] Allocated by task 3522: [ 53.567335] save_stack_trace+0x16/0x20 [ 53.571271] save_stack+0x43/0xd0 [ 53.574685] kasan_kmalloc+0xad/0xe0 [ 53.578362] kmem_cache_alloc_trace+0x136/0x750 [ 53.582995] refill_pi_state_cache.part.6+0xa5/0x2f0 [ 53.588059] futex_requeue+0x1887/0x2370 [ 53.592084] do_futex+0x7f5/0x20d0 [ 53.595585] SyS_futex+0x260/0x390 [ 53.599090] entry_SYSCALL_64_fastpath+0x1f/0xbe [ 53.603804] [ 53.605394] Freed by task 3520: [ 53.608636] save_stack_trace+0x16/0x20 [ 53.612572] save_stack+0x43/0xd0 [ 53.615988] kasan_slab_free+0x71/0xc0 [ 53.619837] kfree+0xca/0x250 [ 53.622904] put_pi_state+0x3f4/0x560 [ 53.626666] unqueue_me_pi+0x4a/0xc0 [ 53.630341] futex_wait_requeue_pi.constprop.19+0xc7f/0x1300 [ 53.636099] do_futex+0x825/0x20d0 [ 53.639604] SyS_futex+0x260/0x390 [ 53.643106] entry_SYSCALL_64_fastpath+0x1f/0xbe [ 53.647822] [ 53.649414] The buggy address belongs to the object at ffff8801cc65d300 [ 53.649414] which belongs to the cache kmalloc-256 of size 256 [ 53.662032] The buggy address is located 40 bytes inside of [ 53.662032] 256-byte region [ffff8801cc65d300, ffff8801cc65d400) [ 53.673778] The buggy address belongs to the page: [ 53.678669] page:ffffea0007319740 count:1 mapcount:0 mapping:ffff8801cc65d080 index:0x0 [ 53.686778] flags: 0x200000000000100(slab) [ 53.690986] raw: 0200000000000100 ffff8801cc65d080 0000000000000000 000000010000000c [ 53.698831] raw: ffffea000732fae0 ffffea0007327b20 ffff8801dac007c0 0000000000000000 [ 53.706673] page dumped because: kasan: bad access detected [ 53.712344] [ 53.713935] Memory state around the buggy address: [ 53.718826] ffff8801cc65d200: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 53.726147] ffff8801cc65d280: fb fb fb fb fb fb fb fb fc fc fc fc fc fc fc fc [ 53.733468] >ffff8801cc65d300: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 53.740788] ^ [ 53.745417] ffff8801cc65d380: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 53.752737] ffff8801cc65d400: fc fc fc fc fc fc fc fc fb fb fb fb fb fb fb fb [ 53.760057] ================================================================== [ 53.767375] Disabling lock debugging due to kernel taint [ 53.772788] Kernel panic - not syncing: panic_on_warn set ... [ 53.772788] [ 53.780112] CPU: 0 PID: 3519 Comm: syz-executor0 Tainted: G B 4.14.0-rc2-next-20170929+ #32 [ 53.789687] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 53.799006] Call Trace: [ 53.801561] dump_stack+0x194/0x257 [ 53.805155] ? arch_local_irq_restore+0x53/0x53 [ 53.809787] ? vprintk_default+0x28/0x30 [ 53.813812] ? __lock_acquire+0x4000/0x4620 [ 53.818099] panic+0x1e4/0x41c [ 53.821257] ? refcount_error_report+0x214/0x214 [ 53.825979] ? __lock_acquire+0x407b/0x4620 [ 53.830265] kasan_end_report+0x50/0x50 [ 53.834201] kasan_report+0x144/0x340 [ 53.837966] __asan_report_load8_noabort+0x14/0x20 [ 53.842858] __lock_acquire+0x407b/0x4620 [ 53.846971] ? unwind_dump+0x4c0/0x4c0 [ 53.850821] ? __unwind_start+0x169/0x330 [ 53.854931] ? __kernel_text_address+0xd/0x40 [ 53.859389] ? unwind_get_return_address+0x61/0xa0 [ 53.864286] ? debug_check_no_locks_freed+0x3d0/0x3d0 [ 53.869438] ? unwind_get_return_address+0x61/0xa0 [ 53.874332] ? __save_stack_trace+0x61/0xd0 [ 53.878617] ? get_signal+0x73f/0x16d0 [ 53.882467] ? save_stack_trace+0x16/0x20 [ 53.886577] ? __lock_acquire+0x20fd/0x4620 [ 53.890861] ? debug_check_no_locks_freed+0x3d0/0x3d0 [ 53.896018] ? debug_check_no_locks_freed+0x3d0/0x3d0 [ 53.901170] ? save_stack_trace+0x16/0x20 [ 53.905282] ? __lock_acquire+0x20fd/0x4620 [ 53.909848] ? osq_unlock+0x350/0x350 [ 53.913612] ? save_stack_trace+0x16/0x20 [ 53.917724] ? lock_release+0xd70/0xd70 [ 53.921664] ? check_noncircular+0x20/0x20 [ 53.925863] ? debug_check_no_locks_freed+0x3d0/0x3d0 [ 53.931018] ? debug_check_no_locks_freed+0x3d0/0x3d0 [ 53.936172] ? find_held_lock+0x39/0x1d0 [ 53.940200] ? lock_downgrade+0x990/0x990 [ 53.944314] ? check_noncircular+0x20/0x20 [ 53.948514] lock_acquire+0x1d5/0x580 [ 53.952280] ? exit_pi_state_list+0x369/0x7a0 [ 53.956741] ? lock_release+0xd70/0xd70 [ 53.960677] ? do_raw_spin_trylock+0x190/0x190 [ 53.965224] ? find_held_lock+0x39/0x1d0 [ 53.969255] _raw_spin_lock_irq+0x5e/0x80 [ 53.973364] ? exit_pi_state_list+0x369/0x7a0 [ 53.977821] exit_pi_state_list+0x369/0x7a0 [ 53.982108] ? futex_wait_requeue_pi.constprop.19+0x1300/0x1300 [ 53.988128] ? lock_release+0xd70/0xd70 [ 53.992064] ? trace_event_raw_event_sched_switch+0x770/0x770 [ 53.997913] ? _raw_spin_unlock_irqrestore+0x31/0xba [ 54.002980] ? __might_sleep+0x95/0x190 [ 54.006919] ? __might_fault+0x188/0x1d0 [ 54.010944] ? do_raw_spin_trylock+0x190/0x190 [ 54.015493] mm_release+0x46d/0x590