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.15.214' (ECDSA) to the list of known hosts. 2017/10/01 16:29:40 parsed 1 programs 2017/10/01 16:29:40 executed programs: 0 syzkaller login: [ 38.689638] ================================================================== [ 38.697040] BUG: KASAN: use-after-free in __lock_acquire+0x407b/0x4620 [ 38.703699] Read of size 8 at addr ffff8801caf2e428 by task syz-executor4/4195 [ 38.711034] [ 38.712632] CPU: 0 PID: 4195 Comm: syz-executor4 Not tainted 4.14.0-rc2-next-20170929+ #32 [ 38.721007] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 38.730346] Call Trace: [ 38.732928] dump_stack+0x194/0x257 [ 38.736560] ? arch_local_irq_restore+0x53/0x53 [ 38.741238] ? show_regs_print_info+0x65/0x65 [ 38.745761] ? __kernel_text_address+0xd/0x40 [ 38.750235] ? __lock_acquire+0x407b/0x4620 [ 38.754532] print_address_description+0x73/0x250 [ 38.759348] ? __lock_acquire+0x407b/0x4620 [ 38.763637] kasan_report+0x25b/0x340 [ 38.767403] __asan_report_load8_noabort+0x14/0x20 [ 38.772297] __lock_acquire+0x407b/0x4620 [ 38.776424] ? unwind_dump+0x4c0/0x4c0 [ 38.780299] ? __unwind_start+0x169/0x330 [ 38.784418] ? __kernel_text_address+0xd/0x40 [ 38.788894] ? unwind_get_return_address+0x61/0xa0 [ 38.793850] ? debug_check_no_locks_freed+0x3d0/0x3d0 [ 38.799007] ? unwind_get_return_address+0x61/0xa0 [ 38.803920] ? __save_stack_trace+0x61/0xd0 [ 38.808217] ? get_signal+0x73f/0x16d0 [ 38.812072] ? save_stack_trace+0x16/0x20 [ 38.816185] ? __lock_acquire+0x20fd/0x4620 [ 38.820472] ? debug_check_no_locks_freed+0x3d0/0x3d0 [ 38.825645] ? debug_check_no_locks_freed+0x3d0/0x3d0 [ 38.830813] ? save_stack_trace+0x16/0x20 [ 38.834938] ? __lock_acquire+0x20fd/0x4620 [ 38.839228] ? osq_unlock+0x350/0x350 [ 38.842993] ? save_stack_trace+0x16/0x20 [ 38.847111] ? lock_release+0xd70/0xd70 [ 38.851058] ? check_noncircular+0x20/0x20 [ 38.855273] ? debug_check_no_locks_freed+0x3d0/0x3d0 [ 38.860438] ? debug_check_no_locks_freed+0x3d0/0x3d0 [ 38.865599] ? find_held_lock+0x39/0x1d0 [ 38.869628] ? lock_downgrade+0x990/0x990 [ 38.873739] ? check_noncircular+0x20/0x20 [ 38.877949] lock_acquire+0x1d5/0x580 [ 38.881733] ? exit_pi_state_list+0x369/0x7a0 [ 38.886204] ? lock_release+0xd70/0xd70 [ 38.890149] ? do_raw_spin_trylock+0x190/0x190 [ 38.894694] ? find_held_lock+0x39/0x1d0 [ 38.898725] _raw_spin_lock_irq+0x5e/0x80 [ 38.902864] ? exit_pi_state_list+0x369/0x7a0 [ 38.907333] exit_pi_state_list+0x369/0x7a0 [ 38.911624] ? futex_wait_requeue_pi.constprop.19+0x1300/0x1300 [ 38.917646] ? lock_release+0xd70/0xd70 [ 38.921585] ? trace_event_raw_event_sched_switch+0x770/0x770 [ 38.927450] ? _raw_spin_unlock_irqrestore+0x31/0xba [ 38.932548] ? __might_sleep+0x95/0x190 [ 38.936501] ? __might_fault+0x188/0x1d0 [ 38.940532] ? do_raw_spin_trylock+0x190/0x190 [ 38.945083] mm_release+0x46d/0x590 [ 38.948675] ? do_raw_spin_trylock+0x190/0x190 [ 38.953222] ? mm_access+0x140/0x140 [ 38.956902] ? _raw_spin_unlock_irq+0x27/0x70 [ 38.961366] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 38.966346] ? trace_hardirqs_on+0xd/0x10 [ 38.970458] ? _raw_spin_unlock_irq+0x27/0x70 [ 38.974921] ? acct_collect+0x637/0x800 [ 38.978862] do_exit+0x481/0x1b00 [ 38.982285] ? mm_update_next_owner+0x930/0x930 [ 38.986922] ? trace_event_raw_event_sched_switch+0x770/0x770 [ 38.992773] ? find_held_lock+0x39/0x1d0 [ 38.996805] ? refill_pi_state_cache.part.6+0x2f0/0x2f0 [ 39.002135] ? check_noncircular+0x20/0x20 [ 39.006340] ? fault_in_user_writeable+0x90/0x90 [ 39.011062] ? futex_wake+0x680/0x680 [ 39.014830] ? find_held_lock+0x39/0x1d0 [ 39.018859] ? lock_downgrade+0x990/0x990 [ 39.022974] ? recalc_sigpending_tsk+0x117/0x150 [ 39.027695] ? recalc_sigpending+0x103/0x160 [ 39.032071] ? recalc_sigpending_tsk+0x150/0x150 [ 39.036788] ? get_signal+0x2b2/0x16d0 [ 39.040644] do_group_exit+0x149/0x400 [ 39.044498] ? __lock_is_held+0xbc/0x140 [ 39.048523] ? SyS_exit+0x30/0x30 [ 39.051941] ? _raw_spin_unlock_irq+0x27/0x70 [ 39.056402] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 39.061383] get_signal+0x73f/0x16d0 [ 39.065066] ? ptrace_notify+0x130/0x130 [ 39.069091] ? find_held_lock+0x39/0x1d0 [ 39.073121] ? exit_robust_list+0x240/0x240 [ 39.077409] ? __fget+0xbb/0x580 [ 39.080742] do_signal+0x94/0x1ee0 [ 39.084250] ? lock_release+0xd70/0xd70 [ 39.088191] ? __lock_is_held+0xbc/0x140 [ 39.092220] ? setup_sigcontext+0x7d0/0x7d0 [ 39.096511] ? __fget+0x362/0x580 [ 39.099935] ? trace_event_raw_event_sched_switch+0x770/0x770 [ 39.105782] ? lock_acquire+0x1d5/0x580 [ 39.109719] ? finish_task_switch+0x1aa/0x740 [ 39.114180] ? exit_to_usermode_loop+0x8c/0x310 [ 39.118815] exit_to_usermode_loop+0x214/0x310 [ 39.123364] ? trace_event_raw_event_sys_exit+0x260/0x260 [ 39.128866] ? fget_raw+0x20/0x20 [ 39.132284] ? kasan_check_write+0x14/0x20 [ 39.136485] syscall_return_slowpath+0x42f/0x510 [ 39.141205] ? prepare_exit_to_usermode+0x2d0/0x2d0 [ 39.146189] ? entry_SYSCALL_64_fastpath+0x91/0xbe [ 39.151085] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 39.156064] ? trace_hardirqs_on_thunk+0x1a/0x1c [ 39.160786] entry_SYSCALL_64_fastpath+0xbc/0xbe [ 39.165506] RIP: 0033:0x4520a9 [ 39.168660] RSP: 002b:00007f0385127cf8 EFLAGS: 00000246 ORIG_RAX: 00000000000000ca [ 39.176332] RAX: fffffffffffffe00 RBX: 0000000000718238 RCX: 00000000004520a9 [ 39.183566] RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000718238 [ 39.190802] RBP: 0000000000718210 R08: 0000000000000000 R09: 0000000000000000 [ 39.198038] R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 [ 39.205275] R13: 0000000000a6f7ef R14: 00007f03851289c0 R15: 0000000000000004 [ 39.212514] [ 39.214112] Allocated by task 4203: [ 39.217705] save_stack_trace+0x16/0x20 [ 39.221642] save_stack+0x43/0xd0 [ 39.225058] kasan_kmalloc+0xad/0xe0 [ 39.228738] kmem_cache_alloc_trace+0x136/0x750 [ 39.233378] refill_pi_state_cache.part.6+0xa5/0x2f0 [ 39.238445] futex_requeue+0x1887/0x2370 [ 39.242472] do_futex+0x7f5/0x20d0 [ 39.245975] SyS_futex+0x260/0x390 [ 39.249483] entry_SYSCALL_64_fastpath+0x1f/0xbe [ 39.254311] [ 39.255903] Freed by task 4176: [ 39.259148] save_stack_trace+0x16/0x20 [ 39.263084] save_stack+0x43/0xd0 [ 39.266500] kasan_slab_free+0x71/0xc0 [ 39.270350] kfree+0xca/0x250 [ 39.273421] put_pi_state+0x3f4/0x560 [ 39.277185] unqueue_me_pi+0x4a/0xc0 [ 39.280864] futex_wait_requeue_pi.constprop.19+0xc7f/0x1300 [ 39.286627] do_futex+0x825/0x20d0 [ 39.290134] SyS_futex+0x260/0x390 [ 39.293639] entry_SYSCALL_64_fastpath+0x1f/0xbe [ 39.298354] [ 39.299947] The buggy address belongs to the object at ffff8801caf2e400 [ 39.299947] which belongs to the cache kmalloc-256 of size 256 [ 39.312570] The buggy address is located 40 bytes inside of [ 39.312570] 256-byte region [ffff8801caf2e400, ffff8801caf2e500) [ 39.324328] The buggy address belongs to the page: [ 39.329225] page:ffffea00072bcb80 count:1 mapcount:0 mapping:ffff8801caf2e040 index:0x0 [ 39.338413] flags: 0x200000000000100(slab) [ 39.342615] raw: 0200000000000100 ffff8801caf2e040 0000000000000000 000000010000000c [ 39.350461] raw: ffffea00072ac460 ffffea000729c820 ffff8801dac007c0 0000000000000000 [ 39.358304] page dumped because: kasan: bad access detected [ 39.363979] [ 39.365570] Memory state around the buggy address: [ 39.370461] ffff8801caf2e300: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 39.377782] ffff8801caf2e380: fb fb fb fb fb fb fb fb fc fc fc fc fc fc fc fc [ 39.385106] >ffff8801caf2e400: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 39.392427] ^ [ 39.397058] ffff8801caf2e480: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 39.404383] ffff8801caf2e500: fc fc fc fc fc fc fc fc fb fb fb fb fb fb fb fb [ 39.411702] ================================================================== [ 39.419025] Disabling lock debugging due to kernel taint [ 39.424441] Kernel panic - not syncing: panic_on_warn set ... [ 39.424441] [ 39.431770] CPU: 0 PID: 4195 Comm: syz-executor4 Tainted: G B 4.14.0-rc2-next-20170929+ #32 [ 39.441350] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 39.450667] Call Trace: [ 39.453223] dump_stack+0x194/0x257 [ 39.456819] ? arch_local_irq_restore+0x53/0x53 [ 39.461453] ? vprintk_default+0x28/0x30 [ 39.465481] ? __lock_acquire+0x4000/0x4620 [ 39.469771] panic+0x1e4/0x41c [ 39.472929] ? refcount_error_report+0x214/0x214 [ 39.477653] ? __lock_acquire+0x407b/0x4620 [ 39.481941] kasan_end_report+0x50/0x50 [ 39.485880] kasan_report+0x144/0x340 [ 39.489649] __asan_report_load8_noabort+0x14/0x20 [ 39.494545] __lock_acquire+0x407b/0x4620 [ 39.498657] ? unwind_dump+0x4c0/0x4c0 [ 39.502508] ? __unwind_start+0x169/0x330 [ 39.506622] ? __kernel_text_address+0xd/0x40 [ 39.511082] ? unwind_get_return_address+0x61/0xa0 [ 39.515980] ? debug_check_no_locks_freed+0x3d0/0x3d0 [ 39.521137] ? unwind_get_return_address+0x61/0xa0 [ 39.526031] ? __save_stack_trace+0x61/0xd0 [ 39.530320] ? get_signal+0x73f/0x16d0 [ 39.534172] ? save_stack_trace+0x16/0x20 [ 39.538284] ? __lock_acquire+0x20fd/0x4620 [ 39.542573] ? debug_check_no_locks_freed+0x3d0/0x3d0 [ 39.547732] ? debug_check_no_locks_freed+0x3d0/0x3d0 [ 39.552890] ? save_stack_trace+0x16/0x20 [ 39.557003] ? __lock_acquire+0x20fd/0x4620 [ 39.561294] ? osq_unlock+0x350/0x350 [ 39.565058] ? save_stack_trace+0x16/0x20 [ 39.569172] ? lock_release+0xd70/0xd70 [ 39.573112] ? check_noncircular+0x20/0x20 [ 39.577313] ? debug_check_no_locks_freed+0x3d0/0x3d0 [ 39.582468] ? debug_check_no_locks_freed+0x3d0/0x3d0 [ 39.587627] ? find_held_lock+0x39/0x1d0 [ 39.591655] ? lock_downgrade+0x990/0x990 [ 39.595770] ? check_noncircular+0x20/0x20 [ 39.599973] lock_acquire+0x1d5/0x580 [ 39.603739] ? exit_pi_state_list+0x369/0x7a0 [ 39.608203] ? lock_release+0xd70/0xd70 [ 39.612143] ? do_raw_spin_trylock+0x190/0x190 [ 39.616689] ? find_held_lock+0x39/0x1d0 [ 39.620721] _raw_spin_lock_irq+0x5e/0x80 [ 39.624833] ? exit_pi_state_list+0x369/0x7a0 [ 39.629295] exit_pi_state_list+0x369/0x7a0 [ 39.633585] ? futex_wait_requeue_pi.constprop.19+0x1300/0x1300 [ 39.639609] ? lock_release+0xd70/0xd70 [ 39.643549] ? trace_event_raw_event_sched_switch+0x770/0x770 [ 39.649400] ? _raw_spin_unlock_irqrestore+0x31/0xba [ 39.654470] ? __might_sleep+0x95/0x190 [ 39.658409] ? __might_fault+0x188/0x1d0 [ 39.662439] ? do_raw_spin_trylock+0x190/0x190 [ 39.666989] mm_release+0x46d/0x590 [ 39.670580] ? do_raw_spin_trylock+0x190/0x190 [ 39.675127] ? mm_access+0x140/0x140 [ 39.678809] ? _raw_spin_unlock_irq+0x27/0x70 [ 39.683270] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 39.688266] ? trace_hardirqs_on+0xd/0x10