2017/10/26 04:45:09 parsed 1 programs 2017/10/26 04:45:09 executed programs: 0 syzkaller login: [ 33.500538] ================================================================== [ 33.501245] BUG: KASAN: use-after-free in __lock_acquire+0x3c9f/0x3d50 [ 33.501844] Read of size 8 at addr ffff88003d182de8 by task syz-executor7/4862 [ 33.502504] [ 33.502657] CPU: 2 PID: 4862 Comm: syz-executor7 Not tainted 4.14.0-rc5-next-20171018+ #8 [ 33.503402] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS Bochs 01/01/2011 [ 33.504144] Call Trace: [ 33.504388] dump_stack+0x194/0x257 [ 33.505424] ? arch_local_irq_restore+0x53/0x53 [ 33.508519] ? show_regs_print_info+0x65/0x65 [ 33.508991] ? print_irqtrace_events+0x270/0x270 [ 33.509472] ? print_irqtrace_events+0x270/0x270 [ 33.509968] ? __lock_acquire+0x3c9f/0x3d50 [ 33.510408] print_address_description+0x73/0x250 [ 33.510912] ? __lock_acquire+0x3c9f/0x3d50 [ 33.511351] kasan_report+0x25b/0x340 [ 33.511736] __asan_report_load8_noabort+0x14/0x20 [ 33.512194] __lock_acquire+0x3c9f/0x3d50 [ 33.512589] ? exit_pi_state_list+0x369/0x7a0 [ 33.513420] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 33.513884] ? mark_held_locks+0xaf/0x100 [ 33.514573] ? retint_kernel+0x10/0x10 [ 33.514925] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 33.515349] ? trace_hardirqs_on_thunk+0x1a/0x1c [ 33.515769] ? retint_kernel+0x10/0x10 [ 33.516111] ? exit_pi_state_list+0x361/0x7a0 [ 33.516787] ? queued_spin_lock_slowpath+0x1c4/0xfa0 [ 33.517215] ? check_noncircular+0x20/0x20 [ 33.517570] ? should_fail+0x23b/0xa40 [ 33.517907] ? osq_unlock+0x350/0x350 [ 33.518275] ? __lock_acquire+0x6aa/0x3d50 [ 33.518714] ? get_user_pages_fast+0x277/0x340 [ 33.519193] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 33.519738] ? check_noncircular+0x20/0x20 [ 33.520140] ? print_irqtrace_events+0x270/0x270 [ 33.520617] ? check_noncircular+0x20/0x20 [ 33.521032] ? perf_event_sync_stat+0x5c0/0x5c0 [ 33.521480] ? __lock_is_held+0xb6/0x140 [ 33.521887] ? __perf_event_task_sched_in+0x200/0xc20 [ 33.523881] ? find_held_lock+0x35/0x1d0 [ 33.524168] lock_acquire+0x1d5/0x580 [ 33.524397] ? lock_acquire+0x1d5/0x580 [ 33.524643] ? exit_pi_state_list+0x369/0x7a0 [ 33.524942] ? lock_downgrade+0x990/0x990 [ 33.525218] ? lock_release+0xa40/0xa40 [ 33.525455] ? do_raw_spin_trylock+0x190/0x190 [ 33.525734] ? lock_downgrade+0x990/0x990 [ 33.525993] _raw_spin_lock_irq+0x5e/0x80 [ 33.526632] ? exit_pi_state_list+0x369/0x7a0 [ 33.527035] exit_pi_state_list+0x369/0x7a0 [ 33.527303] ? futex_wait_requeue_pi.constprop.19+0x1300/0x1300 [ 33.527660] ? lock_release+0xa40/0xa40 [ 33.527926] ? trace_event_raw_event_sched_switch+0x8a0/0x8a0 [ 33.528278] ? _raw_spin_unlock_irqrestore+0x31/0xba [ 33.528583] ? __might_sleep+0x95/0x190 [ 33.528837] ? __might_fault+0x188/0x1d0 [ 33.529080] ? do_raw_spin_trylock+0x190/0x190 [ 33.529359] mm_release+0x46d/0x590 [ 33.529585] ? do_raw_spin_trylock+0x190/0x190 [ 33.529873] ? mm_access+0x140/0x140 [ 33.530469] ? _raw_spin_unlock_irq+0x27/0x70 [ 33.530778] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 33.531141] ? trace_hardirqs_on+0xd/0x10 [ 33.531400] ? _raw_spin_unlock_irq+0x27/0x70 [ 33.531684] ? acct_collect+0x637/0x800 [ 33.531954] do_exit+0x481/0x1ad0 [ 33.532171] ? mm_update_next_owner+0x930/0x930 [ 33.532460] ? trace_event_raw_event_sched_switch+0x8a0/0x8a0 [ 33.532852] ? rcu_note_context_switch+0x710/0x710 [ 33.533157] ? futex_wait_setup+0x14a/0x3d0 [ 33.533428] ? __might_sleep+0x95/0x190 [ 33.533679] ? find_held_lock+0x35/0x1d0 [ 33.533956] ? futex_wait+0x402/0x990 [ 33.534986] ? lock_downgrade+0x990/0x990 [ 33.535347] ? do_raw_spin_trylock+0x190/0x190 [ 33.535714] ? check_noncircular+0x20/0x20 [ 33.536094] ? futex_wake+0x680/0x680 [ 33.536436] ? mmdrop+0x18/0x30 [ 33.536732] ? drop_futex_key_refs.isra.13+0x63/0xa0 [ 33.537195] ? futex_wait+0x69e/0x990 [ 33.537553] ? find_held_lock+0x35/0x1d0 [ 33.537937] ? get_signal+0x7ae/0x16d0 [ 33.538771] ? lock_downgrade+0x990/0x990 [ 33.539203] do_group_exit+0x149/0x400 [ 33.539615] ? __lock_is_held+0xb6/0x140 [ 33.540040] ? SyS_exit+0x30/0x30 [ 33.540405] ? _raw_spin_unlock_irq+0x27/0x70 [ 33.540874] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 33.541395] get_signal+0x73f/0x16d0 [ 33.541781] ? ptrace_notify+0x130/0x130 [ 33.542187] ? __lock_is_held+0xb6/0x140 [ 33.542602] ? exit_robust_list+0x240/0x240 [ 33.543026] ? __mutex_unlock_slowpath+0xe9/0xac0 [ 33.543493] ? get_unused_fd_flags+0x190/0x190 [ 33.543928] do_signal+0x94/0x1ee0 [ 33.544264] ? should_fail+0x23b/0xa40 [ 33.544644] ? fault_create_debugfs_attr+0x1f0/0x1f0 [ 33.545134] ? setup_sigcontext+0x7d0/0x7d0 [ 33.545543] ? find_held_lock+0x35/0x1d0 [ 33.545942] ? lock_downgrade+0x990/0x990 [ 33.546347] ? lock_release+0xa40/0xa40 [ 33.546768] ? trace_event_raw_event_sched_switch+0x8a0/0x8a0 [ 33.547368] ? perf_event_set_output+0x5a0/0x5a0 [ 33.547869] ? exit_to_usermode_loop+0x8c/0x310 [ 33.548374] exit_to_usermode_loop+0x214/0x310 [ 33.548865] ? trace_event_raw_event_sys_exit+0x260/0x260 [ 33.549443] ? kasan_check_write+0x14/0x20 [ 33.549883] syscall_return_slowpath+0x42f/0x510 [ 33.550372] ? prepare_exit_to_usermode+0x2d0/0x2d0 [ 33.550874] ? entry_SYSCALL_64_fastpath+0x91/0xbe [ 33.551371] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 33.551837] ? trace_hardirqs_on_thunk+0x1a/0x1c [ 33.552272] entry_SYSCALL_64_fastpath+0xbc/0xbe [ 33.552699] RIP: 0033:0x447c89 [ 33.552995] RSP: 002b:00007f6635c97ce8 EFLAGS: 00000246 ORIG_RAX: 00000000000000ca [ 33.553693] RAX: fffffffffffffe00 RBX: 0000000000748048 RCX: 0000000000447c89 [ 33.554774] RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000748048 [ 33.555418] RBP: 0000000000748048 R08: 0000000000000000 R09: 0000000000748020 [ 33.556061] R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 [ 33.556715] R13: 0000000000000000 R14: 00007f6635c989c0 R15: 00007f6635c98700 [ 33.557381] [ 33.557533] Allocated by task 4881: [ 33.557865] save_stack+0x43/0xd0 [ 33.558209] kasan_kmalloc+0xad/0xe0 [ 33.558587] kmem_cache_alloc_trace+0x136/0x750 [ 33.559009] refill_pi_state_cache.part.6+0xa5/0x2f0 [ 33.559479] futex_requeue+0x1887/0x2370 [ 33.559874] do_futex+0x7f5/0x20d0 [ 33.560209] SyS_futex+0x260/0x390 [ 33.560553] entry_SYSCALL_64_fastpath+0x1f/0xbe [ 33.560994] [ 33.561158] Freed by task 4877: [ 33.561469] save_stack+0x43/0xd0 [ 33.561820] kasan_slab_free+0x71/0xc0 [ 33.562224] kfree+0xca/0x250 [ 33.562498] do_exit+0x1502/0x1ad0 [ 33.562823] do_group_exit+0x149/0x400 [ 33.563203] get_signal+0x73f/0x16d0 [ 33.563527] do_signal+0x94/0x1ee0 [ 33.563838] exit_to_usermode_loop+0x214/0x310 [ 33.564312] syscall_return_slowpath+0x42f/0x510 [ 33.564803] entry_SYSCALL_64_fastpath+0xbc/0xbe [ 33.565289] [ 33.565457] The buggy address belongs to the object at ffff88003d182dc0 [ 33.565457] which belongs to the cache kmalloc-256 of size 256 [ 33.566614] The buggy address is located 40 bytes inside of [ 33.566614] 256-byte region [ffff88003d182dc0, ffff88003d182ec0) [ 33.567726] The buggy address belongs to the page: [ 33.568219] page:ffffea0000f46080 count:1 mapcount:0 mapping:ffff88003d182000 index:0x0 [ 33.569065] flags: 0x100000000000100(slab) [ 33.569512] raw: 0100000000000100 ffff88003d182000 0000000000000000 000000010000000c [ 33.570302] raw: ffffea0000ef6920 ffff88003e801648 ffff88003e8007c0 0000000000000000 [ 33.571070] page dumped because: kasan: bad access detected [ 33.571661] [ 33.571825] Memory state around the buggy address: [ 33.572339] ffff88003d182c80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 33.573103] ffff88003d182d00: 00 00 00 00 00 00 00 00 00 00 fc fc fc fc fc fc [ 33.573868] >ffff88003d182d80: fc fc fc fc fc fc fc fc fb fb fb fb fb fb fb fb [ 33.574626] ^ [ 33.575325] ffff88003d182e00: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 33.576331] ffff88003d182e80: fb fb fb fb fb fb fb fb fc fc fc fc fc fc fc fc [ 33.576836] ================================================================== [ 33.577392] Disabling lock debugging due to kernel taint [ 33.577949] Kernel panic - not syncing: panic_on_warn set ... [ 33.577949] [ 33.578643] CPU: 2 PID: 4862 Comm: syz-executor7 Tainted: G B 4.14.0-rc5-next-20171018+ #8 [ 33.579672] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS Bochs 01/01/2011 [ 33.580488] Call Trace: [ 33.580793] dump_stack+0x194/0x257 [ 33.581181] ? arch_local_irq_restore+0x53/0x53 [ 33.581675] ? kasan_end_report+0x32/0x50 [ 33.582120] ? lock_downgrade+0x990/0x990 [ 33.582531] ? vsnprintf+0x1ed/0x1900 [ 33.582925] ? __lock_acquire+0x3c50/0x3d50 [ 33.583343] panic+0x1e4/0x41c [ 33.583680] ? refcount_error_report+0x214/0x214 [ 33.584159] ? add_taint+0x40/0x50 [ 33.584501] ? add_taint+0x1c/0x50 [ 33.584834] ? __lock_acquire+0x3c9f/0x3d50 [ 33.585211] kasan_end_report+0x50/0x50 [ 33.585559] kasan_report+0x144/0x340 [ 33.585893] __asan_report_load8_noabort+0x14/0x20 [ 33.586424] __lock_acquire+0x3c9f/0x3d50 [ 33.586834] ? exit_pi_state_list+0x369/0x7a0 [ 33.587288] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 33.587805] ? mark_held_locks+0xaf/0x100 [ 33.588220] ? retint_kernel+0x10/0x10 [ 33.588604] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 33.589098] ? trace_hardirqs_on_thunk+0x1a/0x1c [ 33.589574] ? retint_kernel+0x10/0x10 [ 33.589971] ? exit_pi_state_list+0x361/0x7a0 [ 33.590447] ? queued_spin_lock_slowpath+0x1c4/0xfa0 [ 33.590971] ? check_noncircular+0x20/0x20 [ 33.591369] ? should_fail+0x23b/0xa40 [ 33.591771] ? osq_unlock+0x350/0x350 [ 33.592133] ? __lock_acquire+0x6aa/0x3d50 [ 33.592499] ? get_user_pages_fast+0x277/0x340 [ 33.592921] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 33.593423] ? check_noncircular+0x20/0x20 [ 33.593814] ? print_irqtrace_events+0x270/0x270 [ 33.594322] ? check_noncircular+0x20/0x20 [ 33.594715] ? perf_event_sync_stat+0x5c0/0x5c0 [ 33.595180] ? __lock_is_held+0xb6/0x140 [ 33.595573] ? __perf_event_task_sched_in+0x200/0xc20 [ 33.596076] ? find_held_lock+0x35/0x1d0 [ 33.596459] lock_acquire+0x1d5/0x580 [ 33.596810] ? lock_acquire+0x1d5/0x580 [ 33.597413] ? exit_pi_state_list+0x369/0x7a0 [ 33.597808] ? lock_downgrade+0x990/0x990 [ 33.598190] ? lock_release+0xa40/0xa40 [ 33.598431] ? do_raw_spin_trylock+0x190/0x190 [ 33.598828] ? lock_downgrade+0x990/0x990 [ 33.599252] _raw_spin_lock_irq+0x5e/0x80 [ 33.599610] ? exit_pi_state_list+0x369/0x7a0 [ 33.600024] exit_pi_state_list+0x369/0x7a0 [ 33.600409] ? futex_wait_requeue_pi.constprop.19+0x1300/0x1300 [ 33.600943] ? lock_release+0xa40/0xa40 [ 33.601293] ? trace_event_raw_event_sched_switch+0x8a0/0x8a0 [ 33.601816] ? _raw_spin_unlock_irqrestore+0x31/0xba [ 33.602318] ? __might_sleep+0x95/0x190 [ 33.602669] ? __might_fault+0x188/0x1d0 [ 33.603024] ? do_raw_spin_trylock+0x190/0x190 [ 33.603416] mm_release+0x46d/0x590 [ 33.603735] ? do_raw_spin_trylock+0x190/0x190 [ 33.604129] ? mm_access+0x140/0x140 [ 33.604405] ? _raw_spin_unlock_irq+0x27/0x70 [ 33.604735] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 33.605099] ? trace_hardirqs_on+0xd/0x10 [ 33.605404] ? _raw_spin_unlock_irq+0x27/0x70 [ 33.605733] ? acct_collect+0x637/0x800 [ 33.606080] do_exit+0x481/0x1ad0 [ 33.606378] ? mm_update_next_owner+0x930/0x930 [ 33.606775] ? trace_event_raw_event_sched_switch+0x8a0/0x8a0 [ 33.607241] ? rcu_note_context_switch+0x710/0x710 [ 33.607600] ? futex_wait_setup+0x14a/0x3d0 [ 33.607921] ? __might_sleep+0x95/0x190 [ 33.608256] ? find_held_lock+0x35/0x1d0 [ 33.608558] ? futex_wait+0x402/0x990 [ 33.608881] ? lock_downgrade+0x990/0x990 [ 33.609272] ? do_raw_spin_trylock+0x190/0x190 [ 33.609632] ? check_noncircular+0x20/0x20 [ 33.610037] ? futex_wake+0x680/0x680 [ 33.610340] ? mmdrop+0x18/0x30 [ 33.610582] ? drop_futex_key_refs.isra.13+0x63/0xa0 [ 33.610956] ? futex_wait+0x69e/0x990 [ 33.611293] ? find_held_lock+0x35/0x1d0 [ 33.611632] ? get_signal+0x7ae/0x16d0 [ 33.611971] ? lock_downgrade+0x990/0x990 [ 33.612319] do_group_exit+0x149/0x400 [ 33.612627] ? __lock_is_held+0xb6/0x140 [ 33.612917] ? SyS_exit+0x30/0x30 [ 33.613201] ? _raw_spin_unlock_irq+0x27/0x70 [ 33.613589] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 33.613955] get_signal+0x73f/0x16d0 [ 33.614263] ? ptrace_notify+0x130/0x130 [ 33.614561] ? __lock_is_held+0xb6/0x140 [ 33.614874] ? exit_robust_list+0x240/0x240 [ 33.615229] ? __mutex_unlock_slowpath+0xe9/0xac0 [ 33.615590] ? get_unused_fd_flags+0x190/0x190 [ 33.615931] do_signal+0x94/0x1ee0 [ 33.616202] ? should_fail+0x23b/0xa40 [ 33.616517] ? fault_create_debugfs_attr+0x1f0/0x1f0 [ 33.616896] ? setup_sigcontext+0x7d0/0x7d0 [ 33.617216] ? find_held_lock+0x35/0x1d0 [ 33.617521] ? lock_downgrade+0x990/0x990 [ 33.617825] ? lock_release+0xa40/0xa40 [ 33.618203] ? trace_event_raw_event_sched_switch+0x8a0/0x8a0 [ 33.620092] ? perf_event_set_output+0x5a0/0x5a0 [ 33.620506] ? exit_to_usermode_loop+0x8c/0x310 [ 33.620915] exit_to_usermode_loop+0x214/0x310 [ 33.621318] ? trace_event_raw_event_sys_exit+0x260/0x260 [ 33.621797] ? kasan_check_write+0x14/0x20 [ 33.622209] syscall_return_slowpath+0x42f/0x510 [ 33.622737] ? prepare_exit_to_usermode+0x2d0/0x2d0 [ 33.623256] ? entry_SYSCALL_64_fastpath+0x91/0xbe [ 33.623588] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 33.623905] ? trace_hardirqs_on_thunk+0x1a/0x1c [ 33.624300] entry_SYSCALL_64_fastpath+0xbc/0xbe [ 33.624813] RIP: 0033:0x447c89 [ 33.625113] RSP: 002b:00007f6635c97ce8 EFLAGS: 00000246 ORIG_RAX: 00000000000000ca [ 33.625638] RAX: fffffffffffffe00 RBX: 0000000000748048 RCX: 0000000000447c89 [ 33.626453] RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000748048 [ 33.626993] RBP: 0000000000748048 R08: 0000000000000000 R09: 0000000000748020 [ 33.627624] R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 [ 33.628418] R13: 0000000000000000 R14: 00007f6635c989c0 R15: 00007f6635c98700 [ 33.629206] Dumping ftrace buffer: [ 33.629572] (ftrace buffer empty) [ 33.630013] Kernel Offset: disabled [ 33.630380] Rebooting in 86400 seconds..