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-5,10.128.0.25' (ECDSA) to the list of known hosts. 2017/09/30 12:43:44 parsed 1 programs 2017/09/30 12:43:44 executed programs: 0 syzkaller login: [ 35.136246] ================================================================== [ 35.137307] BUG: KASAN: use-after-free in __lock_acquire+0x407b/0x4620 [ 35.138197] Read of size 8 at addr ffff8801cca905e8 by task syz-executor0/3030 [ 35.139156] [ 35.139385] CPU: 1 PID: 3030 Comm: syz-executor0 Not tainted 4.14.0-rc2-next-20170929+ #32 [ 35.140478] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 35.141705] Call Trace: [ 35.142073] dump_stack+0x194/0x257 [ 35.142561] ? arch_local_irq_restore+0x53/0x53 [ 35.143207] ? show_regs_print_info+0x65/0x65 [ 35.143817] ? __kernel_text_address+0xd/0x40 [ 35.144428] ? __lock_acquire+0x407b/0x4620 [ 35.145002] print_address_description+0x73/0x250 [ 35.145676] ? __lock_acquire+0x407b/0x4620 [ 35.146248] kasan_report+0x25b/0x340 [ 35.146808] __asan_report_load8_noabort+0x14/0x20 [ 35.147510] __lock_acquire+0x407b/0x4620 [ 35.148482] ? unwind_dump+0x4c0/0x4c0 [ 35.148999] ? __unwind_start+0x169/0x330 [ 35.149549] ? __kernel_text_address+0xd/0x40 [ 35.150147] ? unwind_get_return_address+0x61/0xa0 [ 35.150816] ? debug_check_no_locks_freed+0x3d0/0x3d0 [ 35.151502] ? unwind_get_return_address+0x61/0xa0 [ 35.152153] ? __save_stack_trace+0x61/0xd0 [ 35.152729] ? get_signal+0x73f/0x16d0 [ 35.153251] ? save_stack_trace+0x16/0x20 [ 35.153803] ? __lock_acquire+0x20fd/0x4620 [ 35.154378] ? debug_check_no_locks_freed+0x3d0/0x3d0 [ 35.155067] ? debug_check_no_locks_freed+0x3d0/0x3d0 [ 35.155781] ? save_stack_trace+0x16/0x20 [ 35.156332] ? __lock_acquire+0x20fd/0x4620 [ 35.156935] ? osq_unlock+0x350/0x350 [ 35.160698] ? save_stack_trace+0x16/0x20 [ 35.164809] ? lock_release+0xd70/0xd70 [ 35.168761] ? check_noncircular+0x20/0x20 [ 35.172961] ? debug_check_no_locks_freed+0x3d0/0x3d0 [ 35.178119] ? debug_check_no_locks_freed+0x3d0/0x3d0 [ 35.183277] ? find_held_lock+0x39/0x1d0 [ 35.187303] ? lock_downgrade+0x990/0x990 [ 35.191413] ? check_noncircular+0x20/0x20 [ 35.195611] lock_acquire+0x1d5/0x580 [ 35.199376] ? exit_pi_state_list+0x369/0x7a0 [ 35.203842] ? lock_release+0xd70/0xd70 [ 35.207786] ? do_raw_spin_trylock+0x190/0x190 [ 35.212331] ? find_held_lock+0x39/0x1d0 [ 35.216363] _raw_spin_lock_irq+0x5e/0x80 [ 35.220473] ? exit_pi_state_list+0x369/0x7a0 [ 35.224939] exit_pi_state_list+0x369/0x7a0 [ 35.229228] ? futex_wait_requeue_pi.constprop.19+0x1300/0x1300 [ 35.235251] ? lock_release+0xd70/0xd70 [ 35.239188] ? trace_event_raw_event_sched_switch+0x770/0x770 [ 35.245041] ? _raw_spin_unlock_irqrestore+0x31/0xba [ 35.250110] ? __might_sleep+0x95/0x190 [ 35.254048] ? __might_fault+0x188/0x1d0 [ 35.258073] ? do_raw_spin_trylock+0x190/0x190 [ 35.262624] mm_release+0x46d/0x590 [ 35.266212] ? do_raw_spin_trylock+0x190/0x190 [ 35.270756] ? mm_access+0x140/0x140 [ 35.274433] ? _raw_spin_unlock_irq+0x27/0x70 [ 35.278895] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 35.283876] ? trace_hardirqs_on+0xd/0x10 [ 35.287985] ? _raw_spin_unlock_irq+0x27/0x70 [ 35.292442] ? acct_collect+0x637/0x800 [ 35.296380] do_exit+0x481/0x1b00 [ 35.299801] ? mm_update_next_owner+0x930/0x930 [ 35.304436] ? trace_event_raw_event_sched_switch+0x770/0x770 [ 35.310288] ? find_held_lock+0x39/0x1d0 [ 35.314326] ? refill_pi_state_cache.part.6+0x2f0/0x2f0 [ 35.319654] ? check_noncircular+0x20/0x20 [ 35.323852] ? fault_in_user_writeable+0x90/0x90 [ 35.328571] ? futex_wake+0x680/0x680 [ 35.332342] ? find_held_lock+0x39/0x1d0 [ 35.336368] ? lock_downgrade+0x990/0x990 [ 35.340481] ? recalc_sigpending_tsk+0x117/0x150 [ 35.345199] ? recalc_sigpending+0x103/0x160 [ 35.349570] ? recalc_sigpending_tsk+0x150/0x150 [ 35.354286] ? get_signal+0x2b2/0x16d0 [ 35.358138] do_group_exit+0x149/0x400 [ 35.361990] ? __lock_is_held+0xbc/0x140 [ 35.366020] ? SyS_exit+0x30/0x30 [ 35.369437] ? _raw_spin_unlock_irq+0x27/0x70 [ 35.373895] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 35.378884] get_signal+0x73f/0x16d0 [ 35.382570] ? ptrace_notify+0x130/0x130 [ 35.386604] ? vma_wants_writenotify+0x3b0/0x3b0 [ 35.391329] ? exit_robust_list+0x240/0x240 [ 35.395616] ? lock_downgrade+0x990/0x990 [ 35.399729] ? SyS_brk+0x6f0/0x6f0 [ 35.403235] do_signal+0x94/0x1ee0 [ 35.406740] ? arch_get_unmapped_area+0x750/0x750 [ 35.411546] ? lock_acquire+0x1d5/0x580 [ 35.415484] ? vm_mmap_pgoff+0x198/0x280 [ 35.419513] ? userfaultfd_unmap_complete+0x327/0x510 [ 35.424668] ? setup_sigcontext+0x7d0/0x7d0 [ 35.428953] ? userfaultfd_unmap_prep+0x540/0x540 [ 35.433763] ? do_mmap+0x34f/0xd50 [ 35.437267] ? up_write+0x6b/0x120 [ 35.440773] ? down_write+0x120/0x120 [ 35.444540] ? security_mmap_file+0x143/0x180 [ 35.449000] ? vm_mmap_pgoff+0x1fc/0x280 [ 35.453028] ? exit_to_usermode_loop+0x8c/0x310 [ 35.457664] exit_to_usermode_loop+0x214/0x310 [ 35.462209] ? vma_is_stack_for_current+0xa0/0xa0 [ 35.467015] ? trace_event_raw_event_sys_exit+0x260/0x260 [ 35.472515] ? kasan_check_write+0x14/0x20 [ 35.476715] syscall_return_slowpath+0x42f/0x510 [ 35.481434] ? prepare_exit_to_usermode+0x2d0/0x2d0 [ 35.486417] ? entry_SYSCALL_64_fastpath+0x91/0xbe [ 35.491311] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 35.496291] ? trace_hardirqs_on_thunk+0x1a/0x1c [ 35.501013] entry_SYSCALL_64_fastpath+0xbc/0xbe [ 35.505740] RIP: 0033:0x4520a9 [ 35.508894] RSP: 002b:00007f9bc07eecf8 EFLAGS: 00000246 ORIG_RAX: 00000000000000ca [ 35.516568] RAX: fffffffffffffe00 RBX: 00000000007180d8 RCX: 00000000004520a9 [ 35.523805] RDX: 0000000000000000 RSI: 0000000000000000 RDI: 00000000007180d8 [ 35.531044] RBP: 00000000007180b0 R08: 0000000000000000 R09: 0000000000000000 [ 35.538279] R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 [ 35.545516] R13: 00007ffe0d97142f R14: 00007f9bc07ef9c0 R15: 0000000000000006 [ 35.552754] [ 35.554352] Allocated by task 3033: [ 35.557945] save_stack_trace+0x16/0x20 [ 35.561881] save_stack+0x43/0xd0 [ 35.565298] kasan_kmalloc+0xad/0xe0 [ 35.568975] kmem_cache_alloc_trace+0x136/0x750 [ 35.573606] refill_pi_state_cache.part.6+0xa5/0x2f0 [ 35.578670] futex_requeue+0x1887/0x2370 [ 35.582696] do_futex+0x7f5/0x20d0 [ 35.586209] SyS_futex+0x260/0x390 [ 35.589715] entry_SYSCALL_64_fastpath+0x1f/0xbe [ 35.594433] [ 35.596024] Freed by task 3031: [ 35.599266] save_stack_trace+0x16/0x20 [ 35.603201] save_stack+0x43/0xd0 [ 35.606628] kasan_slab_free+0x71/0xc0 [ 35.610478] kfree+0xca/0x250 [ 35.613545] put_pi_state+0x3f4/0x560 [ 35.617306] unqueue_me_pi+0x4a/0xc0 [ 35.620982] futex_wait_requeue_pi.constprop.19+0xc7f/0x1300 [ 35.626740] do_futex+0x825/0x20d0 [ 35.630252] SyS_futex+0x260/0x390 [ 35.633756] entry_SYSCALL_64_fastpath+0x1f/0xbe [ 35.638469] [ 35.640060] The buggy address belongs to the object at ffff8801cca905c0 [ 35.640060] which belongs to the cache kmalloc-256 of size 256 [ 35.652684] The buggy address is located 40 bytes inside of [ 35.652684] 256-byte region [ffff8801cca905c0, ffff8801cca906c0) [ 35.664432] The buggy address belongs to the page: [ 35.669324] page:ffffea000732a400 count:1 mapcount:0 mapping:ffff8801cca900c0 index:0x0 [ 35.677426] flags: 0x200000000000100(slab) [ 35.681624] raw: 0200000000000100 ffff8801cca900c0 0000000000000000 000000010000000c [ 35.689467] raw: ffffea000734c620 ffffea00073248e0 ffff8801dac007c0 0000000000000000 [ 35.697312] page dumped because: kasan: bad access detected [ 35.702981] [ 35.704571] Memory state around the buggy address: [ 35.709464] ffff8801cca90480: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 35.716784] ffff8801cca90500: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 35.724110] >ffff8801cca90580: fc fc fc fc fc fc fc fc fb fb fb fb fb fb fb fb [ 35.731431] ^ [ 35.738144] ffff8801cca90600: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 35.745470] ffff8801cca90680: fb fb fb fb fb fb fb fb fc fc fc fc fc fc fc fc [ 35.752794] ================================================================== [ 35.760115] Disabling lock debugging due to kernel taint [ 35.765527] Kernel panic - not syncing: panic_on_warn set ... [ 35.765527] [ 35.772865] CPU: 1 PID: 3030 Comm: syz-executor0 Tainted: G B 4.14.0-rc2-next-20170929+ #32 [ 35.782446] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 35.791761] Call Trace: [ 35.794321] dump_stack+0x194/0x257 [ 35.797918] ? arch_local_irq_restore+0x53/0x53 [ 35.802550] ? vprintk_default+0x28/0x30 [ 35.806579] ? __lock_acquire+0x4000/0x4620 [ 35.810868] panic+0x1e4/0x41c [ 35.814029] ? refcount_error_report+0x214/0x214 [ 35.818752] ? __lock_acquire+0x407b/0x4620 [ 35.823038] kasan_end_report+0x50/0x50 [ 35.826977] kasan_report+0x144/0x340 [ 35.830743] __asan_report_load8_noabort+0x14/0x20 [ 35.835633] __lock_acquire+0x407b/0x4620 [ 35.839742] ? unwind_dump+0x4c0/0x4c0 [ 35.843590] ? __unwind_start+0x169/0x330 [ 35.847700] ? __kernel_text_address+0xd/0x40 [ 35.852159] ? unwind_get_return_address+0x61/0xa0 [ 35.857054] ? debug_check_no_locks_freed+0x3d0/0x3d0 [ 35.862205] ? unwind_get_return_address+0x61/0xa0 [ 35.867099] ? __save_stack_trace+0x61/0xd0 [ 35.871384] ? get_signal+0x73f/0x16d0 [ 35.875237] ? save_stack_trace+0x16/0x20 [ 35.879347] ? __lock_acquire+0x20fd/0x4620 [ 35.883636] ? debug_check_no_locks_freed+0x3d0/0x3d0 [ 35.888792] ? debug_check_no_locks_freed+0x3d0/0x3d0 [ 35.893945] ? save_stack_trace+0x16/0x20 [ 35.898057] ? __lock_acquire+0x20fd/0x4620 [ 35.902343] ? osq_unlock+0x350/0x350 [ 35.906104] ? save_stack_trace+0x16/0x20 [ 35.910216] ? lock_release+0xd70/0xd70 [ 35.914153] ? check_noncircular+0x20/0x20 [ 35.918351] ? debug_check_no_locks_freed+0x3d0/0x3d0 [ 35.923502] ? debug_check_no_locks_freed+0x3d0/0x3d0 [ 35.928665] ? find_held_lock+0x39/0x1d0 [ 35.932699] ? lock_downgrade+0x990/0x990 [ 35.936810] ? check_noncircular+0x20/0x20 [ 35.941009] lock_acquire+0x1d5/0x580 [ 35.944776] ? exit_pi_state_list+0x369/0x7a0 [ 35.949237] ? lock_release+0xd70/0xd70 [ 35.953177] ? do_raw_spin_trylock+0x190/0x190 [ 35.957720] ? find_held_lock+0x39/0x1d0 [ 35.961756] _raw_spin_lock_irq+0x5e/0x80 [ 35.965870] ? exit_pi_state_list+0x369/0x7a0 [ 35.970326] exit_pi_state_list+0x369/0x7a0 [ 35.974613] ? futex_wait_requeue_pi.constprop.19+0x1300/0x1300 [ 35.980632] ? lock_release+0xd70/0xd70 [ 35.984576] ? trace_event_raw_event_sched_switch+0x770/0x770 [ 35.990422] ? _raw_spin_unlock_irqrestore+0x31/0xba [ 35.995495] ? __might_sleep+0x95/0x190 [ 35.999432] ? __might_fault+0x188/0x1d0 [ 36.003456] ? do_raw_spin_trylock+0x190/0x190 [ 36.008003] mm_release+0x46d/0x590 [ 36.011593] ? do_raw_spin_trylock+0x190/0x190 [ 36.016135] ? mm_access+0x140/0x140 [ 36.019813] ? _raw_spin_unlock_irq+0x27/0x70 [ 36.024273] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 36.029251] ? trace_hardirqs_on+0xd/0x10 [ 36.033359] ? _raw_spin_unlock_irq+0x27/0x70 [ 36.037816] ? acct_collect+0x637/0x800 [ 36.041751] do_exit+0x481/0x1b00 [ 36.045167] ? mm_update_next_owner+0x930/0x930 [ 36.049800] ? trace_event_raw_event_sched_switch+0x770/0x770 [ 36.055646] ? find_held_lock+0x39/0x1d0 [ 36.059674] ? refill_pi_state_cache.part.6+0x2f0/0x2f0 [ 36.065002] ? check_noncircular+0x20/0x20 [ 36.069200] ? fault_in_user_writeable+0x90/0x90 [ 36.073916] ? futex_wake+0x680/0x680 [ 36.077682] ? find_held_lock+0x39/0x1d0 [ 36.081708] ? lock_downgrade+0x990/0x990 [ 36.085820] ? recalc_sigpending_tsk+0x117/0x150 [ 36.090537] ? recalc_sigpending+0x103/0x160 [ 36.094909] ? recalc_sigpending_tsk+0x150/0x150 [ 36.099625] ? get_signal+0x2b2/0x16d0 [ 36.103475] do_group_exit+0x149/0x400 [ 36.107324] ? __lock_is_held+0xbc/0x140 [ 36.111345] ? SyS_exit+0x30/0x30 [ 36.114759] ? _raw_spin_unlock_irq+0x27/0x70 [ 36.119223] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 36.124201] get_signal+0x73f/0x16d0 [ 36.127891] ? ptrace_notify+0x130/0x130 [ 36.131916] ? vma_wants_writenotify+0x3b0/0x3b0