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-kasan-gce-386-0,10.128.0.39' (ECDSA) to the list of known hosts. 2017/10/02 03:53:52 parsed 1 programs 2017/10/02 03:53:52 executed programs: 0 syzkaller login: [ 47.179189] ================================================================== [ 47.186570] BUG: KASAN: use-after-free in __lock_acquire+0x407b/0x4620 [ 47.193210] Read of size 8 at addr ffff8801cd8db568 by task syz-executor0/3231 [ 47.200529] [ 47.202124] CPU: 1 PID: 3231 Comm: syz-executor0 Not tainted 4.14.0-rc2+ #21 [ 47.209271] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 47.218598] Call Trace: [ 47.221152] dump_stack+0x194/0x257 [ 47.224743] ? arch_local_irq_restore+0x53/0x53 [ 47.229377] ? show_regs_print_info+0x65/0x65 [ 47.233839] ? __kernel_text_address+0xd/0x40 [ 47.238297] ? __lock_acquire+0x407b/0x4620 [ 47.242584] print_address_description+0x73/0x250 [ 47.247392] ? __lock_acquire+0x407b/0x4620 [ 47.251676] kasan_report+0x25b/0x340 [ 47.255442] __asan_report_load8_noabort+0x14/0x20 [ 47.260336] __lock_acquire+0x407b/0x4620 [ 47.264449] ? unwind_dump+0x4c0/0x4c0 [ 47.268300] ? __kernel_text_address+0xd/0x40 [ 47.272758] ? unwind_get_return_address+0x61/0xa0 [ 47.277652] ? debug_check_no_locks_freed+0x3d0/0x3d0 [ 47.282804] ? __save_stack_trace+0x61/0xd0 [ 47.287089] ? get_signal+0x73f/0x16d0 [ 47.290938] ? save_stack_trace+0x16/0x20 [ 47.295048] ? __lock_acquire+0x20fd/0x4620 [ 47.299335] ? debug_check_no_locks_freed+0x3d0/0x3d0 [ 47.304492] ? debug_check_no_locks_freed+0x3d0/0x3d0 [ 47.309643] ? save_stack_trace+0x16/0x20 [ 47.313755] ? __lock_acquire+0x20fd/0x4620 [ 47.318038] ? osq_unlock+0x350/0x350 [ 47.321799] ? save_stack_trace+0x16/0x20 [ 47.325911] ? check_noncircular+0x20/0x20 [ 47.330108] ? debug_check_no_locks_freed+0x3d0/0x3d0 [ 47.335262] ? debug_check_no_locks_freed+0x3d0/0x3d0 [ 47.340417] ? __unwind_start+0x169/0x330 [ 47.344528] ? find_held_lock+0x39/0x1d0 [ 47.348556] ? lock_downgrade+0x990/0x990 [ 47.352665] ? check_noncircular+0x20/0x20 [ 47.356864] lock_acquire+0x1d5/0x580 [ 47.360626] ? exit_pi_state_list+0x369/0x7a0 [ 47.365086] ? lock_release+0xd70/0xd70 [ 47.369025] ? do_raw_spin_trylock+0x190/0x190 [ 47.373581] ? find_held_lock+0x39/0x1d0 [ 47.377610] _raw_spin_lock_irq+0x5e/0x80 [ 47.381722] ? exit_pi_state_list+0x369/0x7a0 [ 47.386179] exit_pi_state_list+0x369/0x7a0 [ 47.390467] ? futex_wait_requeue_pi.constprop.19+0x1300/0x1300 [ 47.396490] ? lock_release+0xd70/0xd70 [ 47.400427] ? check_same_owner+0x320/0x320 [ 47.404712] ? _raw_spin_unlock_irqrestore+0x31/0xba [ 47.409781] ? __might_sleep+0x95/0x190 [ 47.413720] ? __might_fault+0x188/0x1d0 [ 47.417749] ? do_raw_spin_trylock+0x190/0x190 [ 47.422297] mm_release+0x46d/0x590 [ 47.425885] ? do_raw_spin_trylock+0x190/0x190 [ 47.430431] ? mm_access+0x140/0x140 [ 47.434106] ? _raw_spin_unlock_irq+0x27/0x70 [ 47.438562] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 47.443539] ? trace_hardirqs_on+0xd/0x10 [ 47.447656] ? _raw_spin_unlock_irq+0x27/0x70 [ 47.452113] ? acct_collect+0x637/0x800 [ 47.456051] do_exit+0x481/0x1af0 [ 47.459468] ? mm_update_next_owner+0x930/0x930 [ 47.464100] ? lock_downgrade+0x990/0x990 [ 47.468210] ? refill_pi_state_cache.part.6+0x2f0/0x2f0 [ 47.473537] ? futex_wait+0x3ad/0x990 [ 47.477301] ? do_raw_spin_trylock+0x190/0x190 [ 47.481845] ? fault_in_user_writeable+0x90/0x90 [ 47.486563] ? futex_wake+0x680/0x680 [ 47.490328] ? fault_in_user_writeable+0x90/0x90 [ 47.495046] ? check_noncircular+0x20/0x20 [ 47.499242] ? drop_futex_key_refs.isra.13+0x63/0xb0 [ 47.504315] ? futex_wait+0x69e/0x990 [ 47.508081] ? futex_wait_setup+0x3d0/0x3d0 [ 47.512369] ? find_held_lock+0x39/0x1d0 [ 47.516397] ? lock_downgrade+0x990/0x990 [ 47.520506] ? recalc_sigpending_tsk+0x117/0x150 [ 47.525226] ? recalc_sigpending+0x103/0x160 [ 47.529597] ? recalc_sigpending_tsk+0x150/0x150 [ 47.534313] ? get_signal+0x2b2/0x16d0 [ 47.538163] do_group_exit+0x149/0x400 [ 47.542015] ? __lock_is_held+0xbc/0x140 [ 47.546039] ? SyS_exit+0x30/0x30 [ 47.549458] ? _raw_spin_unlock_irq+0x27/0x70 [ 47.553916] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 47.558896] get_signal+0x73f/0x16d0 [ 47.562576] ? ptrace_notify+0x130/0x130 [ 47.566609] do_signal+0x94/0x1ee0 [ 47.570113] ? setup_sigcontext+0x7d0/0x7d0 [ 47.574404] ? find_held_lock+0x39/0x1d0 [ 47.578428] ? __compat_get_timespec+0xd9/0x120 [ 47.583065] ? exit_to_usermode_loop+0x8c/0x310 [ 47.587701] exit_to_usermode_loop+0x214/0x310 [ 47.592247] ? trace_event_raw_event_sys_exit+0x260/0x260 [ 47.597746] ? lock_acquire+0x1d5/0x580 [ 47.601685] ? do_fast_syscall_32+0x158/0xf05 [ 47.606145] do_fast_syscall_32+0x83e/0xf05 [ 47.610430] ? compat_start_thread+0x80/0x80 [ 47.614802] ? do_int80_syscall_32+0x940/0x940 [ 47.619349] ? lockdep_sys_exit+0x47/0xf0 [ 47.623465] ? syscall_return_slowpath+0x2b3/0x510 [ 47.628358] ? finish_task_switch+0x1aa/0x740 [ 47.632815] ? prepare_exit_to_usermode+0x2d0/0x2d0 [ 47.637802] ? sysret32_from_system_call+0x5/0x3b [ 47.642611] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 47.647418] entry_SYSENTER_compat+0x51/0x60 [ 47.651791] RIP: 0023:0xf7fd1c79 [ 47.655119] RSP: 002b:00000000f7f8b12c EFLAGS: 00000292 ORIG_RAX: 00000000000000f0 [ 47.662789] RAX: fffffffffffffe00 RBX: 00000000081280f8 RCX: 0000000000000000 [ 47.670021] RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000000 [ 47.677255] RBP: 0000000000000000 R08: 0000000000000000 R09: 0000000000000000 [ 47.684488] R10: 0000000000000000 R11: 0000000000000000 R12: 0000000000000000 [ 47.691720] R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000 [ 47.698959] [ 47.700559] Allocated by task 3232: [ 47.704150] save_stack_trace+0x16/0x20 [ 47.708087] save_stack+0x43/0xd0 [ 47.711504] kasan_kmalloc+0xad/0xe0 [ 47.715179] kmem_cache_alloc_trace+0x136/0x750 [ 47.719811] refill_pi_state_cache.part.6+0xa5/0x2f0 [ 47.724873] futex_requeue+0x1887/0x2370 [ 47.728896] do_futex+0x7f5/0x20d0 [ 47.732399] compat_SyS_futex+0x27f/0x380 [ 47.736508] do_fast_syscall_32+0x3f2/0xf05 [ 47.740793] entry_SYSENTER_compat+0x51/0x60 [ 47.745160] [ 47.746751] Freed by task 3230: [ 47.749992] save_stack_trace+0x16/0x20 [ 47.753927] save_stack+0x43/0xd0 [ 47.757344] kasan_slab_free+0x71/0xc0 [ 47.761193] kfree+0xca/0x250 [ 47.764261] put_pi_state+0x3f4/0x560 [ 47.768024] unqueue_me_pi+0x4a/0xc0 [ 47.771701] futex_wait_requeue_pi.constprop.19+0xc7f/0x1300 [ 47.777468] do_futex+0x825/0x20d0 [ 47.780970] compat_SyS_futex+0x27f/0x380 [ 47.785082] do_fast_syscall_32+0x3f2/0xf05 [ 47.789368] entry_SYSENTER_compat+0x51/0x60 [ 47.793735] [ 47.795330] The buggy address belongs to the object at ffff8801cd8db540 [ 47.795330] which belongs to the cache kmalloc-256 of size 256 [ 47.807951] The buggy address is located 40 bytes inside of [ 47.807951] 256-byte region [ffff8801cd8db540, ffff8801cd8db640) [ 47.819707] The buggy address belongs to the page: [ 47.824599] page:ffffea00073636c0 count:1 mapcount:0 mapping:ffff8801cd8db040 index:0x0 [ 47.832701] flags: 0x200000000000100(slab) [ 47.836900] raw: 0200000000000100 ffff8801cd8db040 0000000000000000 000000010000000c [ 47.844741] raw: ffffea00073ad020 ffffea0007340120 ffff8801dac007c0 0000000000000000 [ 47.852580] page dumped because: kasan: bad access detected [ 47.858250] [ 47.859839] Memory state around the buggy address: [ 47.864730] ffff8801cd8db400: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 47.872051] ffff8801cd8db480: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 47.879378] >ffff8801cd8db500: fc fc fc fc fc fc fc fc fb fb fb fb fb fb fb fb [ 47.886697] ^ [ 47.893409] ffff8801cd8db580: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 47.900729] ffff8801cd8db600: fb fb fb fb fb fb fb fb fc fc fc fc fc fc fc fc [ 47.908047] ================================================================== [ 47.915365] Disabling lock debugging due to kernel taint [ 47.920775] Kernel panic - not syncing: panic_on_warn set ... [ 47.920775] [ 47.928100] CPU: 1 PID: 3231 Comm: syz-executor0 Tainted: G B 4.14.0-rc2+ #21 [ 47.936462] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 47.945781] Call Trace: [ 47.948337] dump_stack+0x194/0x257 [ 47.951929] ? arch_local_irq_restore+0x53/0x53 [ 47.956562] ? vprintk_default+0x28/0x30 [ 47.960587] ? __lock_acquire+0x3ff0/0x4620 [ 47.964872] panic+0x1e4/0x417 [ 47.968026] ? __warn+0x1d9/0x1d9 [ 47.971446] ? __lock_acquire+0x407b/0x4620 [ 47.975731] kasan_end_report+0x50/0x50 [ 47.979666] kasan_report+0x144/0x340 [ 47.983429] __asan_report_load8_noabort+0x14/0x20 [ 47.988326] __lock_acquire+0x407b/0x4620 [ 47.992436] ? unwind_dump+0x4c0/0x4c0 [ 47.996289] ? __kernel_text_address+0xd/0x40 [ 48.000747] ? unwind_get_return_address+0x61/0xa0 [ 48.005641] ? debug_check_no_locks_freed+0x3d0/0x3d0 [ 48.010796] ? __save_stack_trace+0x61/0xd0 [ 48.015082] ? get_signal+0x73f/0x16d0 [ 48.018933] ? save_stack_trace+0x16/0x20 [ 48.023043] ? __lock_acquire+0x20fd/0x4620 [ 48.027333] ? debug_check_no_locks_freed+0x3d0/0x3d0 [ 48.032488] ? debug_check_no_locks_freed+0x3d0/0x3d0 [ 48.037641] ? save_stack_trace+0x16/0x20 [ 48.041756] ? __lock_acquire+0x20fd/0x4620 [ 48.046042] ? osq_unlock+0x350/0x350 [ 48.049806] ? save_stack_trace+0x16/0x20 [ 48.053926] ? check_noncircular+0x20/0x20 [ 48.058124] ? debug_check_no_locks_freed+0x3d0/0x3d0 [ 48.063279] ? debug_check_no_locks_freed+0x3d0/0x3d0 [ 48.068434] ? __unwind_start+0x169/0x330 [ 48.072545] ? find_held_lock+0x39/0x1d0 [ 48.076569] ? lock_downgrade+0x990/0x990 [ 48.080677] ? check_noncircular+0x20/0x20 [ 48.084876] lock_acquire+0x1d5/0x580 [ 48.088639] ? exit_pi_state_list+0x369/0x7a0 [ 48.093099] ? lock_release+0xd70/0xd70 [ 48.097038] ? do_raw_spin_trylock+0x190/0x190 [ 48.101584] ? find_held_lock+0x39/0x1d0 [ 48.105614] _raw_spin_lock_irq+0x5e/0x80 [ 48.109727] ? exit_pi_state_list+0x369/0x7a0 [ 48.114187] exit_pi_state_list+0x369/0x7a0 [ 48.118475] ? futex_wait_requeue_pi.constprop.19+0x1300/0x1300 [ 48.124497] ? lock_release+0xd70/0xd70 [ 48.128434] ? check_same_owner+0x320/0x320 [ 48.132719] ? _raw_spin_unlock_irqrestore+0x31/0xba [ 48.137787] ? __might_sleep+0x95/0x190 [ 48.141729] ? __might_fault+0x188/0x1d0 [ 48.145753] ? do_raw_spin_trylock+0x190/0x190 [ 48.150300] mm_release+0x46d/0x590 [ 48.153890] ? do_raw_spin_trylock+0x190/0x190 [ 48.158437] ? mm_access+0x140/0x140 [ 48.162113] ? _raw_spin_unlock_irq+0x27/0x70 [ 48.166570] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 48.171550] ? trace_hardirqs_on+0xd/0x10 [ 48.175661] ? _raw_spin_unlock_irq+0x27/0x70