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-8,10.128.15.205' (ECDSA) to the list of known hosts. 2017/09/29 06:01:06 parsed 1 programs 2017/09/29 06:01:06 executed programs: 0 syzkaller login: [ 43.471611] ================================================================== [ 43.479009] BUG: KASAN: use-after-free in __lock_acquire+0x407b/0x4620 [ 43.485639] Read of size 8 at addr ffff8801cbb8dca8 by task syz-executor5/3625 [ 43.492962] [ 43.494558] CPU: 0 PID: 3625 Comm: syz-executor5 Not tainted 4.14.0-rc2-next-20170928+ #31 [ 43.503096] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 43.512419] Call Trace: [ 43.514976] dump_stack+0x194/0x257 [ 43.518568] ? arch_local_irq_restore+0x53/0x53 [ 43.523203] ? show_regs_print_info+0x65/0x65 [ 43.527672] ? __kernel_text_address+0xd/0x40 [ 43.532141] ? __lock_acquire+0x407b/0x4620 [ 43.536432] print_address_description+0x73/0x250 [ 43.541248] ? __lock_acquire+0x407b/0x4620 [ 43.545537] kasan_report+0x25b/0x340 [ 43.549311] __asan_report_load8_noabort+0x14/0x20 [ 43.554220] __lock_acquire+0x407b/0x4620 [ 43.558334] ? unwind_dump+0x4c0/0x4c0 [ 43.562185] ? __unwind_start+0x169/0x330 [ 43.566296] ? __kernel_text_address+0xd/0x40 [ 43.570756] ? unwind_get_return_address+0x61/0xa0 [ 43.575652] ? debug_check_no_locks_freed+0x3d0/0x3d0 [ 43.580806] ? unwind_get_return_address+0x61/0xa0 [ 43.585698] ? __save_stack_trace+0x61/0xd0 [ 43.589986] ? get_signal+0x73f/0x16d0 [ 43.593838] ? save_stack_trace+0x16/0x20 [ 43.597951] ? __lock_acquire+0x20fd/0x4620 [ 43.602237] ? debug_check_no_locks_freed+0x3d0/0x3d0 [ 43.607402] ? debug_check_no_locks_freed+0x3d0/0x3d0 [ 43.612644] ? save_stack_trace+0x16/0x20 [ 43.616756] ? __lock_acquire+0x20fd/0x4620 [ 43.621044] ? osq_unlock+0x350/0x350 [ 43.624810] ? save_stack_trace+0x16/0x20 [ 43.628924] ? lock_release+0xd70/0xd70 [ 43.632864] ? check_noncircular+0x20/0x20 [ 43.637069] ? debug_check_no_locks_freed+0x3d0/0x3d0 [ 43.642228] ? debug_check_no_locks_freed+0x3d0/0x3d0 [ 43.647388] ? find_held_lock+0x39/0x1d0 [ 43.651415] ? lock_downgrade+0x990/0x990 [ 43.655527] ? check_noncircular+0x20/0x20 [ 43.659725] lock_acquire+0x1d5/0x580 [ 43.663493] ? exit_pi_state_list+0x369/0x7a0 [ 43.667953] ? lock_release+0xd70/0xd70 [ 43.671890] ? do_raw_spin_trylock+0x190/0x190 [ 43.676434] ? find_held_lock+0x39/0x1d0 [ 43.680466] _raw_spin_lock_irq+0x5e/0x80 [ 43.684591] ? exit_pi_state_list+0x369/0x7a0 [ 43.689049] exit_pi_state_list+0x369/0x7a0 [ 43.693339] ? futex_wait_requeue_pi.constprop.19+0x1300/0x1300 [ 43.699378] ? lock_release+0xd70/0xd70 [ 43.703316] ? trace_event_raw_event_sched_switch+0x770/0x770 [ 43.709166] ? _raw_spin_unlock_irqrestore+0x31/0xba [ 43.714235] ? __might_sleep+0x95/0x190 [ 43.718176] ? __might_fault+0x188/0x1d0 [ 43.722203] ? do_raw_spin_trylock+0x190/0x190 [ 43.726750] mm_release+0x46d/0x590 [ 43.730345] ? do_raw_spin_trylock+0x190/0x190 [ 43.734891] ? mm_access+0x140/0x140 [ 43.738583] ? _raw_spin_unlock_irq+0x27/0x70 [ 43.743240] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 43.748248] ? trace_hardirqs_on+0xd/0x10 [ 43.752378] ? _raw_spin_unlock_irq+0x27/0x70 [ 43.756845] ? acct_collect+0x637/0x800 [ 43.760802] do_exit+0x481/0x1b00 [ 43.764226] ? mm_update_next_owner+0x930/0x930 [ 43.768870] ? trace_event_raw_event_sched_switch+0x770/0x770 [ 43.774737] ? find_held_lock+0x39/0x1d0 [ 43.778773] ? refill_pi_state_cache.part.6+0x2f0/0x2f0 [ 43.784114] ? check_noncircular+0x20/0x20 [ 43.788372] ? fault_in_user_writeable+0x90/0x90 [ 43.793109] ? futex_wake+0x680/0x680 [ 43.796891] ? find_held_lock+0x39/0x1d0 [ 43.800927] ? lock_downgrade+0x990/0x990 [ 43.805049] ? recalc_sigpending_tsk+0x117/0x150 [ 43.809780] ? recalc_sigpending+0x103/0x160 [ 43.814174] ? recalc_sigpending_tsk+0x150/0x150 [ 43.818901] ? get_signal+0x2b2/0x16d0 [ 43.822763] do_group_exit+0x149/0x400 [ 43.826620] ? __lock_is_held+0xbc/0x140 [ 43.830664] ? SyS_exit+0x30/0x30 [ 43.834090] ? _raw_spin_unlock_irq+0x27/0x70 [ 43.838558] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 43.843550] get_signal+0x73f/0x16d0 [ 43.847239] ? ptrace_notify+0x130/0x130 [ 43.851280] ? vma_wants_writenotify+0x3b0/0x3b0 [ 43.856017] ? exit_robust_list+0x240/0x240 [ 43.860318] ? lock_downgrade+0x990/0x990 [ 43.864447] ? SyS_brk+0x6f0/0x6f0 [ 43.867965] do_signal+0x94/0x1ee0 [ 43.871476] ? arch_get_unmapped_area+0x750/0x750 [ 43.876292] ? lock_acquire+0x1d5/0x580 [ 43.880249] ? find_held_lock+0x39/0x1d0 [ 43.884297] ? setup_sigcontext+0x7d0/0x7d0 [ 43.888613] ? lock_downgrade+0x990/0x990 [ 43.892733] ? down_write+0x120/0x120 [ 43.896510] ? lock_release+0xd70/0xd70 [ 43.900464] ? trace_event_raw_event_sched_switch+0x770/0x770 [ 43.906348] ? vm_mmap_pgoff+0x1fc/0x280 [ 43.910385] ? exit_to_usermode_loop+0x8c/0x310 [ 43.915030] exit_to_usermode_loop+0x214/0x310 [ 43.919596] ? trace_event_raw_event_sys_exit+0x260/0x260 [ 43.925112] ? kasan_check_write+0x14/0x20 [ 43.929323] syscall_return_slowpath+0x42f/0x510 [ 43.934055] ? prepare_exit_to_usermode+0x2d0/0x2d0 [ 43.939053] ? entry_SYSCALL_64_fastpath+0x91/0xbe [ 43.943966] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 43.948956] ? trace_hardirqs_on_thunk+0x1a/0x1c [ 43.953681] entry_SYSCALL_64_fastpath+0xbc/0xbe [ 43.958406] RIP: 0033:0x4520a9 [ 43.961573] RSP: 002b:00007f9410322cf8 EFLAGS: 00000246 ORIG_RAX: 00000000000000ca [ 43.969256] RAX: fffffffffffffe00 RBX: 0000000000718028 RCX: 00000000004520a9 [ 43.976506] RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000718028 [ 43.983754] RBP: 0000000000718000 R08: 0000000000000000 R09: 0000000000000000 [ 43.990990] R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 [ 43.998235] R13: 00007ffeb7b5bbcf R14: 00007f94103239c0 R15: 0000000000000000 [ 44.005580] [ 44.007175] Allocated by task 3651: [ 44.010778] save_stack_trace+0x16/0x20 [ 44.014737] save_stack+0x43/0xd0 [ 44.018163] kasan_kmalloc+0xad/0xe0 [ 44.021844] kmem_cache_alloc_trace+0x136/0x750 [ 44.026477] refill_pi_state_cache.part.6+0xa5/0x2f0 [ 44.031543] futex_requeue+0x1887/0x2370 [ 44.035655] do_futex+0x7f5/0x20d0 [ 44.039161] SyS_futex+0x260/0x390 [ 44.042686] entry_SYSCALL_64_fastpath+0x1f/0xbe [ 44.047408] [ 44.049008] Freed by task 3639: [ 44.052259] save_stack_trace+0x16/0x20 [ 44.056197] save_stack+0x43/0xd0 [ 44.059613] kasan_slab_free+0x71/0xc0 [ 44.063464] kfree+0xca/0x250 [ 44.066535] put_pi_state+0x3f4/0x560 [ 44.070308] unqueue_me_pi+0x4a/0xc0 [ 44.073994] futex_wait_requeue_pi.constprop.19+0xc7f/0x1300 [ 44.079774] do_futex+0x825/0x20d0 [ 44.083280] SyS_futex+0x260/0x390 [ 44.086797] entry_SYSCALL_64_fastpath+0x1f/0xbe [ 44.091512] [ 44.093105] The buggy address belongs to the object at ffff8801cbb8dc80 [ 44.093105] which belongs to the cache kmalloc-256 of size 256 [ 44.105727] The buggy address is located 40 bytes inside of [ 44.105727] 256-byte region [ffff8801cbb8dc80, ffff8801cbb8dd80) [ 44.117478] The buggy address belongs to the page: [ 44.122383] page:ffffea00072ee340 count:1 mapcount:0 mapping:ffff8801cbb8d000 index:0x0 [ 44.130490] flags: 0x200000000000100(slab) [ 44.134694] raw: 0200000000000100 ffff8801cbb8d000 0000000000000000 000000010000000c [ 44.142557] raw: ffffea000730b860 ffffea00072edfe0 ffff8801dac007c0 0000000000000000 [ 44.150403] page dumped because: kasan: bad access detected [ 44.156082] [ 44.157676] Memory state around the buggy address: [ 44.162571] ffff8801cbb8db80: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 44.169915] ffff8801cbb8dc00: fb fb fb fb fb fb fb fb fc fc fc fc fc fc fc fc [ 44.177250] >ffff8801cbb8dc80: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 44.184592] ^ [ 44.189227] ffff8801cbb8dd00: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 44.196567] ffff8801cbb8dd80: fc fc fc fc fc fc fc fc fb fb fb fb fb fb fb fb [ 44.203891] ================================================================== [ 44.211222] Disabling lock debugging due to kernel taint [ 44.216644] Kernel panic - not syncing: panic_on_warn set ... [ 44.216644] [ 44.223975] CPU: 0 PID: 3625 Comm: syz-executor5 Tainted: G B 4.14.0-rc2-next-20170928+ #31 [ 44.233557] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 44.242877] Call Trace: [ 44.245441] dump_stack+0x194/0x257 [ 44.249042] ? arch_local_irq_restore+0x53/0x53 [ 44.253679] ? vprintk_default+0x28/0x30 [ 44.257710] ? __lock_acquire+0x3f80/0x4620 [ 44.262009] panic+0x1e4/0x417 [ 44.265176] ? __warn+0x1d9/0x1d9 [ 44.268604] ? __lock_acquire+0x407b/0x4620 [ 44.272899] kasan_end_report+0x50/0x50 [ 44.276840] kasan_report+0x144/0x340 [ 44.280608] __asan_report_load8_noabort+0x14/0x20 [ 44.285504] __lock_acquire+0x407b/0x4620 [ 44.289628] ? unwind_dump+0x4c0/0x4c0 [ 44.293481] ? __unwind_start+0x169/0x330 [ 44.297608] ? __kernel_text_address+0xd/0x40 [ 44.302075] ? unwind_get_return_address+0x61/0xa0 [ 44.306976] ? debug_check_no_locks_freed+0x3d0/0x3d0 [ 44.312136] ? unwind_get_return_address+0x61/0xa0 [ 44.317054] ? __save_stack_trace+0x61/0xd0 [ 44.321352] ? get_signal+0x73f/0x16d0 [ 44.325214] ? save_stack_trace+0x16/0x20 [ 44.329329] ? __lock_acquire+0x20fd/0x4620 [ 44.333618] ? debug_check_no_locks_freed+0x3d0/0x3d0 [ 44.338786] ? debug_check_no_locks_freed+0x3d0/0x3d0 [ 44.343944] ? save_stack_trace+0x16/0x20 [ 44.348062] ? __lock_acquire+0x20fd/0x4620 [ 44.352352] ? osq_unlock+0x350/0x350 [ 44.356118] ? save_stack_trace+0x16/0x20 [ 44.360246] ? lock_release+0xd70/0xd70 [ 44.364188] ? check_noncircular+0x20/0x20 [ 44.368502] ? debug_check_no_locks_freed+0x3d0/0x3d0 [ 44.373670] ? debug_check_no_locks_freed+0x3d0/0x3d0 [ 44.378836] ? find_held_lock+0x39/0x1d0 [ 44.382867] ? lock_downgrade+0x990/0x990 [ 44.386982] ? check_noncircular+0x20/0x20 [ 44.391184] lock_acquire+0x1d5/0x580 [ 44.394959] ? exit_pi_state_list+0x369/0x7a0 [ 44.399434] ? lock_release+0xd70/0xd70 [ 44.403371] ? do_raw_spin_trylock+0x190/0x190 [ 44.407918] ? find_held_lock+0x39/0x1d0 [ 44.411952] _raw_spin_lock_irq+0x5e/0x80 [ 44.416064] ? exit_pi_state_list+0x369/0x7a0 [ 44.420527] exit_pi_state_list+0x369/0x7a0 [ 44.424826] ? futex_wait_requeue_pi.constprop.19+0x1300/0x1300 [ 44.430850] ? lock_release+0xd70/0xd70 [ 44.434797] ? trace_event_raw_event_sched_switch+0x770/0x770 [ 44.440646] ? _raw_spin_unlock_irqrestore+0x31/0xba [ 44.445717] ? __might_sleep+0x95/0x190 [ 44.449656] ? __might_fault+0x188/0x1d0 [ 44.453682] ? do_raw_spin_trylock+0x190/0x190 [ 44.458242] mm_release+0x46d/0x590 [ 44.461847] ? do_raw_spin_trylock+0x190/0x190 [ 44.466393] ? mm_access+0x140/0x140 [ 44.470071] ? _raw_spin_unlock_irq+0x27/0x70