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-2,10.128.15.214' (ECDSA) to the list of known hosts. 2017/09/29 16:00:15 parsed 1 programs 2017/09/29 16:00:15 executed programs: 0 syzkaller login: [ 42.375327] ================================================================== [ 42.382756] BUG: KASAN: use-after-free in __lock_acquire+0x407b/0x4620 [ 42.389390] Read of size 8 at addr ffff8801cd72f068 by task syz-executor0/3064 [ 42.396713] [ 42.398311] CPU: 0 PID: 3064 Comm: syz-executor0 Not tainted 4.14.0-rc2-next-20170929+ #32 [ 42.406674] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 42.415992] Call Trace: [ 42.418553] dump_stack+0x194/0x257 [ 42.422146] ? arch_local_irq_restore+0x53/0x53 [ 42.426783] ? show_regs_print_info+0x65/0x65 [ 42.431250] ? __kernel_text_address+0xd/0x40 [ 42.435712] ? __lock_acquire+0x407b/0x4620 [ 42.440001] print_address_description+0x73/0x250 [ 42.444991] ? __lock_acquire+0x407b/0x4620 [ 42.449277] kasan_report+0x25b/0x340 [ 42.453056] __asan_report_load8_noabort+0x14/0x20 [ 42.457954] __lock_acquire+0x407b/0x4620 [ 42.462069] ? unwind_dump+0x4c0/0x4c0 [ 42.465922] ? __unwind_start+0x169/0x330 [ 42.470034] ? __kernel_text_address+0xd/0x40 [ 42.474494] ? unwind_get_return_address+0x61/0xa0 [ 42.479395] ? debug_check_no_locks_freed+0x3d0/0x3d0 [ 42.484548] ? unwind_get_return_address+0x61/0xa0 [ 42.489452] ? __save_stack_trace+0x61/0xd0 [ 42.493740] ? get_signal+0x73f/0x16d0 [ 42.497591] ? save_stack_trace+0x16/0x20 [ 42.501702] ? __lock_acquire+0x20fd/0x4620 [ 42.505989] ? debug_check_no_locks_freed+0x3d0/0x3d0 [ 42.511149] ? debug_check_no_locks_freed+0x3d0/0x3d0 [ 42.516307] ? save_stack_trace+0x16/0x20 [ 42.520419] ? __lock_acquire+0x20fd/0x4620 [ 42.524709] ? osq_unlock+0x350/0x350 [ 42.528474] ? save_stack_trace+0x16/0x20 [ 42.532588] ? lock_release+0xd70/0xd70 [ 42.536530] ? check_noncircular+0x20/0x20 [ 42.540821] ? debug_check_no_locks_freed+0x3d0/0x3d0 [ 42.545978] ? debug_check_no_locks_freed+0x3d0/0x3d0 [ 42.551134] ? find_held_lock+0x39/0x1d0 [ 42.555161] ? lock_downgrade+0x990/0x990 [ 42.559275] ? check_noncircular+0x20/0x20 [ 42.563473] lock_acquire+0x1d5/0x580 [ 42.567247] ? exit_pi_state_list+0x369/0x7a0 [ 42.571709] ? lock_release+0xd70/0xd70 [ 42.575648] ? do_raw_spin_trylock+0x190/0x190 [ 42.580194] ? find_held_lock+0x39/0x1d0 [ 42.584231] _raw_spin_lock_irq+0x5e/0x80 [ 42.588344] ? exit_pi_state_list+0x369/0x7a0 [ 42.592805] exit_pi_state_list+0x369/0x7a0 [ 42.597095] ? futex_wait_requeue_pi.constprop.19+0x1300/0x1300 [ 42.603120] ? lock_release+0xd70/0xd70 [ 42.607066] ? trace_event_raw_event_sched_switch+0x770/0x770 [ 42.612919] ? _raw_spin_unlock_irqrestore+0x31/0xba [ 42.617991] ? __might_sleep+0x95/0x190 [ 42.621931] ? __might_fault+0x188/0x1d0 [ 42.625958] ? do_raw_spin_trylock+0x190/0x190 [ 42.630507] mm_release+0x46d/0x590 [ 42.634101] ? do_raw_spin_trylock+0x190/0x190 [ 42.638664] ? mm_access+0x140/0x140 [ 42.642355] ? _raw_spin_unlock_irq+0x27/0x70 [ 42.646826] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 42.651806] ? trace_hardirqs_on+0xd/0x10 [ 42.655918] ? _raw_spin_unlock_irq+0x27/0x70 [ 42.660389] ? acct_collect+0x637/0x800 [ 42.664330] do_exit+0x481/0x1b00 [ 42.667749] ? mm_update_next_owner+0x930/0x930 [ 42.672387] ? trace_event_raw_event_sched_switch+0x770/0x770 [ 42.678243] ? find_held_lock+0x39/0x1d0 [ 42.682279] ? refill_pi_state_cache.part.6+0x2f0/0x2f0 [ 42.687611] ? check_noncircular+0x20/0x20 [ 42.691813] ? fault_in_user_writeable+0x90/0x90 [ 42.696535] ? futex_wake+0x680/0x680 [ 42.700304] ? find_held_lock+0x39/0x1d0 [ 42.704333] ? lock_downgrade+0x990/0x990 [ 42.708448] ? recalc_sigpending_tsk+0x117/0x150 [ 42.713170] ? recalc_sigpending+0x103/0x160 [ 42.717558] ? recalc_sigpending_tsk+0x150/0x150 [ 42.722287] ? get_signal+0x2b2/0x16d0 [ 42.726142] do_group_exit+0x149/0x400 [ 42.730002] ? __lock_is_held+0xbc/0x140 [ 42.734031] ? SyS_exit+0x30/0x30 [ 42.737469] ? _raw_spin_unlock_irq+0x27/0x70 [ 42.742110] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 42.747094] get_signal+0x73f/0x16d0 [ 42.750775] ? ptrace_notify+0x130/0x130 [ 42.754808] ? exit_robust_list+0x240/0x240 [ 42.759114] do_signal+0x94/0x1ee0 [ 42.762622] ? lock_release+0xd70/0xd70 [ 42.766570] ? find_held_lock+0x39/0x1d0 [ 42.770598] ? setup_sigcontext+0x7d0/0x7d0 [ 42.774899] ? lock_downgrade+0x990/0x990 [ 42.779016] ? lock_release+0xd70/0xd70 [ 42.782957] ? trace_event_raw_event_sched_switch+0x770/0x770 [ 42.788813] ? exit_to_usermode_loop+0x8c/0x310 [ 42.793448] exit_to_usermode_loop+0x214/0x310 [ 42.797995] ? trace_event_raw_event_sys_exit+0x260/0x260 [ 42.803510] ? kasan_check_write+0x14/0x20 [ 42.807717] syscall_return_slowpath+0x42f/0x510 [ 42.812439] ? prepare_exit_to_usermode+0x2d0/0x2d0 [ 42.817429] ? entry_SYSCALL_64_fastpath+0x91/0xbe [ 42.822342] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 42.827323] ? trace_hardirqs_on_thunk+0x1a/0x1c [ 42.832047] entry_SYSCALL_64_fastpath+0xbc/0xbe [ 42.836769] RIP: 0033:0x4520a9 [ 42.839936] RSP: 002b:00007f1fcc9c4cf8 EFLAGS: 00000246 ORIG_RAX: 00000000000000ca [ 42.847612] RAX: fffffffffffffe00 RBX: 0000000000718238 RCX: 00000000004520a9 [ 42.854846] RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000718238 [ 42.862079] RBP: 0000000000718210 R08: 0000000000000000 R09: 0000000000000000 [ 42.869312] R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 [ 42.876549] R13: 0000000000a6f7ef R14: 00007f1fcc9c59c0 R15: 000000000000000e [ 42.883791] [ 42.885406] Allocated by task 3066: [ 42.889004] save_stack_trace+0x16/0x20 [ 42.892942] save_stack+0x43/0xd0 [ 42.896360] kasan_kmalloc+0xad/0xe0 [ 42.900049] kmem_cache_alloc_trace+0x136/0x750 [ 42.904697] refill_pi_state_cache.part.6+0xa5/0x2f0 [ 42.909765] futex_requeue+0x1887/0x2370 [ 42.913789] do_futex+0x7f5/0x20d0 [ 42.917294] SyS_futex+0x260/0x390 [ 42.920801] entry_SYSCALL_64_fastpath+0x1f/0xbe [ 42.925519] [ 42.927111] Freed by task 3063: [ 42.930367] save_stack_trace+0x16/0x20 [ 42.934307] save_stack+0x43/0xd0 [ 42.937734] kasan_slab_free+0x71/0xc0 [ 42.941584] kfree+0xca/0x250 [ 42.944654] put_pi_state+0x3f4/0x560 [ 42.948416] unqueue_me_pi+0x4a/0xc0 [ 42.952104] futex_wait_requeue_pi.constprop.19+0xc7f/0x1300 [ 42.957866] do_futex+0x825/0x20d0 [ 42.961368] SyS_futex+0x260/0x390 [ 42.964876] entry_SYSCALL_64_fastpath+0x1f/0xbe [ 42.969593] [ 42.971189] The buggy address belongs to the object at ffff8801cd72f040 [ 42.971189] which belongs to the cache kmalloc-256 of size 256 [ 42.983809] The buggy address is located 40 bytes inside of [ 42.983809] 256-byte region [ffff8801cd72f040, ffff8801cd72f140) [ 42.995558] The buggy address belongs to the page: [ 43.000451] page:ffffea000735cbc0 count:1 mapcount:0 mapping:ffff8801cd72f040 index:0x0 [ 43.008556] flags: 0x200000000000100(slab) [ 43.012759] raw: 0200000000000100 ffff8801cd72f040 0000000000000000 000000010000000c [ 43.020605] raw: ffffea000735d7e0 ffffea0007348220 ffff8801dac007c0 0000000000000000 [ 43.028448] page dumped because: kasan: bad access detected [ 43.034119] [ 43.035710] Memory state around the buggy address: [ 43.040603] ffff8801cd72ef00: fb fb fb fb fb fc fc fc fc fc fc fc fc fc fc fc [ 43.047935] ffff8801cd72ef80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 43.055259] >ffff8801cd72f000: fc fc fc fc fc fc fc fc fb fb fb fb fb fb fb fb [ 43.062592] ^ [ 43.069310] ffff8801cd72f080: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 43.076634] ffff8801cd72f100: fb fb fb fb fb fb fb fb fc fc fc fc fc fc fc fc [ 43.083964] ================================================================== [ 43.091287] Disabling lock debugging due to kernel taint [ 43.096698] Kernel panic - not syncing: panic_on_warn set ... [ 43.096698] [ 43.104025] CPU: 0 PID: 3064 Comm: syz-executor0 Tainted: G B 4.14.0-rc2-next-20170929+ #32 [ 43.113606] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 43.122923] Call Trace: [ 43.125483] dump_stack+0x194/0x257 [ 43.129096] ? arch_local_irq_restore+0x53/0x53 [ 43.133731] ? vprintk_default+0x28/0x30 [ 43.137765] ? __lock_acquire+0x4000/0x4620 [ 43.142056] panic+0x1e4/0x41c [ 43.145225] ? refcount_error_report+0x214/0x214 [ 43.149949] ? __lock_acquire+0x407b/0x4620 [ 43.154236] kasan_end_report+0x50/0x50 [ 43.158173] kasan_report+0x144/0x340 [ 43.161945] __asan_report_load8_noabort+0x14/0x20 [ 43.166840] __lock_acquire+0x407b/0x4620 [ 43.170957] ? unwind_dump+0x4c0/0x4c0 [ 43.174808] ? __unwind_start+0x169/0x330 [ 43.178934] ? __kernel_text_address+0xd/0x40 [ 43.183397] ? unwind_get_return_address+0x61/0xa0 [ 43.188296] ? debug_check_no_locks_freed+0x3d0/0x3d0 [ 43.193454] ? unwind_get_return_address+0x61/0xa0 [ 43.198350] ? __save_stack_trace+0x61/0xd0 [ 43.202640] ? get_signal+0x73f/0x16d0 [ 43.206493] ? save_stack_trace+0x16/0x20 [ 43.210604] ? __lock_acquire+0x20fd/0x4620 [ 43.214889] ? debug_check_no_locks_freed+0x3d0/0x3d0 [ 43.220046] ? debug_check_no_locks_freed+0x3d0/0x3d0 [ 43.225200] ? save_stack_trace+0x16/0x20 [ 43.229315] ? __lock_acquire+0x20fd/0x4620 [ 43.233612] ? osq_unlock+0x350/0x350 [ 43.237387] ? save_stack_trace+0x16/0x20 [ 43.241503] ? lock_release+0xd70/0xd70 [ 43.245443] ? check_noncircular+0x20/0x20 [ 43.249654] ? debug_check_no_locks_freed+0x3d0/0x3d0 [ 43.254818] ? debug_check_no_locks_freed+0x3d0/0x3d0 [ 43.259976] ? find_held_lock+0x39/0x1d0 [ 43.264004] ? lock_downgrade+0x990/0x990 [ 43.268127] ? check_noncircular+0x20/0x20 [ 43.272329] lock_acquire+0x1d5/0x580 [ 43.276098] ? exit_pi_state_list+0x369/0x7a0 [ 43.280563] ? lock_release+0xd70/0xd70 [ 43.284502] ? do_raw_spin_trylock+0x190/0x190 [ 43.289048] ? find_held_lock+0x39/0x1d0 [ 43.293096] _raw_spin_lock_irq+0x5e/0x80 [ 43.297223] ? exit_pi_state_list+0x369/0x7a0 [ 43.301684] exit_pi_state_list+0x369/0x7a0 [ 43.305974] ? futex_wait_requeue_pi.constprop.19+0x1300/0x1300 [ 43.311999] ? lock_release+0xd70/0xd70 [ 43.315941] ? trace_event_raw_event_sched_switch+0x770/0x770 [ 43.321797] ? _raw_spin_unlock_irqrestore+0x31/0xba [ 43.326880] ? __might_sleep+0x95/0x190 [ 43.330826] ? __might_fault+0x188/0x1d0 [ 43.334857] ? do_raw_spin_trylock+0x190/0x190 [ 43.339416] mm_release+0x46d/0x590 [ 43.343012] ? do_raw_spin_trylock+0x190/0x190 [ 43.347561] ? mm_access+0x140/0x140 [ 43.351242] ? _raw_spin_unlock_irq+0x27/0x70 [ 43.355711] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 43.360694] ? trace_hardirqs_on+0xd/0x10 [ 43.364816] ? _raw_spin_unlock_irq+0x27/0x70 [ 43.369278] ? acct_collect+0x637/0x800 [ 43.373219] do_exit+0x481/0x1b00