2017/10/26 14:07:08 parsed 1 programs 2017/10/26 14:07:08 executed programs: 0 syzkaller login: [ 49.584226] ================================================================== [ 49.584834] BUG: KASAN: use-after-free in __lock_acquire+0x3c9f/0x3d50 [ 49.585465] Read of size 8 at addr ffff88003a22b468 by task syz-executor1/3182 [ 49.586136] [ 49.586255] CPU: 1 PID: 3182 Comm: syz-executor1 Not tainted 4.14.0-rc5-next-20171018+ #8 [ 49.586978] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS Bochs 01/01/2011 [ 49.588071] Call Trace: [ 49.588318] dump_stack+0x194/0x257 [ 49.588603] ? arch_local_irq_restore+0x53/0x53 [ 49.588887] ? show_regs_print_info+0x65/0x65 [ 49.589202] ? print_irqtrace_events+0x270/0x270 [ 49.589585] ? print_irqtrace_events+0x270/0x270 [ 49.590020] ? __lock_acquire+0x3c9f/0x3d50 [ 49.590332] print_address_description+0x73/0x250 [ 49.590653] ? __lock_acquire+0x3c9f/0x3d50 [ 49.590974] kasan_report+0x25b/0x340 [ 49.591254] __asan_report_load8_noabort+0x14/0x20 [ 49.592345] __lock_acquire+0x3c9f/0x3d50 [ 49.592706] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 49.593192] ? check_noncircular+0x20/0x20 [ 49.593490] ? exit_pi_state_list+0x369/0x7a0 [ 49.595164] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 49.595578] ? trace_hardirqs_off+0xd/0x10 [ 49.595992] ? __lock_acquire+0x6aa/0x3d50 [ 49.596375] ? __lock_acquire+0x6aa/0x3d50 [ 49.596757] ? __lock_acquire+0x6aa/0x3d50 [ 49.597069] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 49.597424] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 49.597795] ? osq_unlock+0x350/0x350 [ 49.598072] ? __lock_acquire+0x6aa/0x3d50 [ 49.598331] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 49.598798] ? check_noncircular+0x20/0x20 [ 49.599130] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 49.599554] ? finish_task_switch+0x1d3/0x740 [ 49.599965] ? lock_downgrade+0x990/0x990 [ 49.600328] ? find_held_lock+0x35/0x1d0 [ 49.600640] lock_acquire+0x1d5/0x580 [ 49.600928] ? lock_acquire+0x1d5/0x580 [ 49.601228] ? exit_pi_state_list+0x369/0x7a0 [ 49.601558] ? lock_downgrade+0x990/0x990 [ 49.601862] ? lock_release+0xa40/0xa40 [ 49.602158] ? do_raw_spin_trylock+0x190/0x190 [ 49.602497] _raw_spin_lock_irq+0x5e/0x80 [ 49.602800] ? exit_pi_state_list+0x369/0x7a0 [ 49.603134] exit_pi_state_list+0x369/0x7a0 [ 49.603582] ? futex_wait_requeue_pi.constprop.19+0x1300/0x1300 [ 49.604089] ? lock_release+0xa40/0xa40 [ 49.604408] ? trace_event_raw_event_sched_switch+0x8a0/0x8a0 [ 49.604953] ? _raw_spin_unlock_irqrestore+0x31/0xba [ 49.605341] ? __might_sleep+0x95/0x190 [ 49.605639] ? __might_fault+0x188/0x1d0 [ 49.605952] ? do_raw_spin_trylock+0x190/0x190 [ 49.606364] mm_release+0x46d/0x590 [ 49.606655] ? do_raw_spin_trylock+0x190/0x190 [ 49.607001] ? mm_access+0x140/0x140 [ 49.607288] ? _raw_spin_unlock_irq+0x27/0x70 [ 49.607641] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 49.608021] ? trace_hardirqs_on+0xd/0x10 [ 49.608339] ? _raw_spin_unlock_irq+0x27/0x70 [ 49.608677] ? acct_collect+0x637/0x800 [ 49.608977] do_exit+0x481/0x1ad0 [ 49.609245] ? _raw_spin_unlock_irqrestore+0x31/0xba [ 49.609628] ? trace_hardirqs_on_caller+0x3d0/0x5c0 [ 49.610004] ? mm_update_next_owner+0x930/0x930 [ 49.610357] ? trace_hardirqs_on+0xd/0x10 [ 49.610670] ? hrtimer_try_to_cancel+0x9a/0x5c0 [ 49.611019] ? __hrtimer_get_remaining+0x1c0/0x1c0 [ 49.611472] ? lock_downgrade+0x990/0x990 [ 49.611848] ? do_raw_spin_trylock+0x190/0x190 [ 49.612271] ? futex_wake+0x680/0x680 [ 49.612635] ? memset+0x31/0x40 [ 49.612950] ? hrtimer_cancel+0x2e/0x40 [ 49.613276] ? futex_wait_requeue_pi.constprop.19+0x8a8/0x1300 [ 49.613738] ? check_noncircular+0x20/0x20 [ 49.614057] ? futex_requeue+0x2370/0x2370 [ 49.614381] ? futex_wake+0x680/0x680 [ 49.614668] ? __lock_acquire+0x6aa/0x3d50 [ 49.614987] ? drop_futex_key_refs.isra.13+0x63/0xa0 [ 49.615736] ? futex_wait+0x69e/0x990 [ 49.616352] ? find_held_lock+0x35/0x1d0 [ 49.616876] ? get_signal+0x7ae/0x16d0 [ 49.617268] ? lock_downgrade+0x990/0x990 [ 49.617608] do_group_exit+0x149/0x400 [ 49.617992] ? __lock_is_held+0xb6/0x140 [ 49.618348] ? SyS_exit+0x30/0x30 [ 49.618632] ? _raw_spin_unlock_irq+0x27/0x70 [ 49.619073] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 49.619559] get_signal+0x73f/0x16d0 [ 49.619945] ? ptrace_notify+0x130/0x130 [ 49.620424] ? __lock_is_held+0xb6/0x140 [ 49.620730] ? exit_robust_list+0x240/0x240 [ 49.621137] ? __mutex_unlock_slowpath+0xe9/0xac0 [ 49.621492] ? get_unused_fd_flags+0x190/0x190 [ 49.621828] do_signal+0x94/0x1ee0 [ 49.622091] ? add_event_to_ctx+0x14e0/0x14e0 [ 49.622676] ? should_fail+0x23b/0xa40 [ 49.622962] ? fault_create_debugfs_attr+0x1f0/0x1f0 [ 49.623368] ? setup_sigcontext+0x7d0/0x7d0 [ 49.623738] ? find_held_lock+0x35/0x1d0 [ 49.624042] ? lock_downgrade+0x990/0x990 [ 49.624355] ? lock_release+0xa40/0xa40 [ 49.624661] ? trace_event_raw_event_sched_switch+0x8a0/0x8a0 [ 49.625286] ? perf_event_set_output+0x5a0/0x5a0 [ 49.625636] ? vm_mmap_pgoff+0x1fc/0x280 [ 49.625935] ? exit_to_usermode_loop+0x8c/0x310 [ 49.626291] exit_to_usermode_loop+0x214/0x310 [ 49.626627] ? trace_event_raw_event_sys_exit+0x260/0x260 [ 49.627030] ? kasan_check_write+0x14/0x20 [ 49.627378] syscall_return_slowpath+0x42f/0x510 [ 49.627758] ? prepare_exit_to_usermode+0x2d0/0x2d0 [ 49.628147] ? entry_SYSCALL_64_fastpath+0x91/0xbe [ 49.628550] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 49.629171] ? trace_hardirqs_on_thunk+0x1a/0x1c [ 49.629530] entry_SYSCALL_64_fastpath+0xbc/0xbe [ 49.629888] RIP: 0033:0x447c89 [ 49.630332] RSP: 002b:00007fe8a2f52bd8 EFLAGS: 00000246 ORIG_RAX: 00000000000000ca [ 49.630907] RAX: fffffffffffffdff RBX: 00007fe8a2f536cc RCX: 0000000000447c89 [ 49.631472] RDX: 0000000000000004 RSI: 000080000000000b RDI: 000000002000cffc [ 49.632079] RBP: 0000000000748020 R08: 0000000020048000 R09: 0000000000000000 [ 49.632633] R10: 000000002000b000 R11: 0000000000000246 R12: 00000000ffffffff [ 49.633182] R13: 0000000000000d08 R14: 00000000006e4da8 R15: 00007fe8a2f53700 [ 49.634155] [ 49.634290] Allocated by task 3199: [ 49.634741] save_stack+0x43/0xd0 [ 49.635063] kasan_kmalloc+0xad/0xe0 [ 49.635397] kmem_cache_alloc_trace+0x136/0x750 [ 49.636084] refill_pi_state_cache.part.6+0xa5/0x2f0 [ 49.636549] futex_requeue+0x1887/0x2370 [ 49.636871] do_futex+0x7f5/0x20d0 [ 49.637143] SyS_futex+0x260/0x390 [ 49.637409] entry_SYSCALL_64_fastpath+0x1f/0xbe [ 49.637758] [ 49.637880] Freed by task 3191: [ 49.638126] save_stack+0x43/0xd0 [ 49.638380] kasan_slab_free+0x71/0xc0 [ 49.638665] kfree+0xca/0x250 [ 49.638892] do_exit+0x1502/0x1ad0 [ 49.639161] do_group_exit+0x149/0x400 [ 49.640043] get_signal+0x73f/0x16d0 [ 49.640331] do_signal+0x94/0x1ee0 [ 49.640595] exit_to_usermode_loop+0x214/0x310 [ 49.640936] syscall_return_slowpath+0x42f/0x510 [ 49.641293] entry_SYSCALL_64_fastpath+0xbc/0xbe [ 49.641643] [ 49.641766] The buggy address belongs to the object at ffff88003a22b440 [ 49.641766] which belongs to the cache kmalloc-256 of size 256 [ 49.642889] The buggy address is located 40 bytes inside of [ 49.642889] 256-byte region [ffff88003a22b440, ffff88003a22b540) [ 49.644114] The buggy address belongs to the page: [ 49.644557] page:ffffea0000e88ac0 count:1 mapcount:0 mapping:ffff88003a22b080 index:0x0 [ 49.645265] flags: 0x100000000000100(slab) [ 49.645681] raw: 0100000000000100 ffff88003a22b080 0000000000000000 000000010000000c [ 49.646412] raw: ffffea0000ee3160 ffff88003e801648 ffff88003e8007c0 0000000000000000 [ 49.647144] page dumped because: kasan: bad access detected [ 49.647697] [ 49.647834] Memory state around the buggy address: [ 49.648287] ffff88003a22b300: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 49.648942] ffff88003a22b380: 00 00 00 00 00 00 00 00 00 00 fc fc fc fc fc fc [ 49.649627] >ffff88003a22b400: fc fc fc fc fc fc fc fc fb fb fb fb fb fb fb fb [ 49.650285] ^ [ 49.650898] ffff88003a22b480: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 49.651635] ffff88003a22b500: fb fb fb fb fb fb fb fb fc fc fc fc fc fc fc fc [ 49.652310] ================================================================== [ 49.652987] Disabling lock debugging due to kernel taint [ 49.653491] Kernel panic - not syncing: panic_on_warn set ... [ 49.653491] [ 49.654176] CPU: 1 PID: 3182 Comm: syz-executor1 Tainted: G B 4.14.0-rc5-next-20171018+ #8 [ 49.655063] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS Bochs 01/01/2011 [ 49.655851] Call Trace: [ 49.656087] dump_stack+0x194/0x257 [ 49.656423] ? arch_local_irq_restore+0x53/0x53 [ 49.656839] ? kasan_end_report+0x32/0x50 [ 49.657158] ? lock_downgrade+0x990/0x990 [ 49.657468] ? vsnprintf+0x1ed/0x1900 [ 49.657802] ? __lock_acquire+0x3c50/0x3d50 [ 49.658198] panic+0x1e4/0x41c [ 49.658494] ? refcount_error_report+0x214/0x214 [ 49.658935] ? add_taint+0x40/0x50 [ 49.659263] ? add_taint+0x1c/0x50 [ 49.659963] ? __lock_acquire+0x3c9f/0x3d50 [ 49.660362] kasan_end_report+0x50/0x50 [ 49.660730] kasan_report+0x144/0x340 [ 49.661322] __asan_report_load8_noabort+0x14/0x20 [ 49.661824] __lock_acquire+0x3c9f/0x3d50 [ 49.662218] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 49.662697] ? check_noncircular+0x20/0x20 [ 49.663097] ? exit_pi_state_list+0x369/0x7a0 [ 49.663538] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 49.664013] ? trace_hardirqs_off+0xd/0x10 [ 49.664410] ? __lock_acquire+0x6aa/0x3d50 [ 49.664811] ? __lock_acquire+0x6aa/0x3d50 [ 49.665200] ? __lock_acquire+0x6aa/0x3d50 [ 49.665599] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 49.666083] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 49.666578] ? osq_unlock+0x350/0x350 [ 49.666941] ? __lock_acquire+0x6aa/0x3d50 [ 49.667462] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 49.667941] ? check_noncircular+0x20/0x20 [ 49.668334] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 49.668823] ? finish_task_switch+0x1d3/0x740 [ 49.669241] ? lock_downgrade+0x990/0x990 [ 49.669620] ? find_held_lock+0x35/0x1d0 [ 49.670006] lock_acquire+0x1d5/0x580 [ 49.670366] ? lock_acquire+0x1d5/0x580 [ 49.670742] ? exit_pi_state_list+0x369/0x7a0 [ 49.671164] ? lock_downgrade+0x990/0x990 [ 49.671648] ? lock_release+0xa40/0xa40 [ 49.671999] ? do_raw_spin_trylock+0x190/0x190 [ 49.672380] _raw_spin_lock_irq+0x5e/0x80 [ 49.672767] ? exit_pi_state_list+0x369/0x7a0 [ 49.673193] exit_pi_state_list+0x369/0x7a0 [ 49.673599] ? futex_wait_requeue_pi.constprop.19+0x1300/0x1300 [ 49.674150] ? lock_release+0xa40/0xa40 [ 49.674503] ? trace_event_raw_event_sched_switch+0x8a0/0x8a0 [ 49.675052] ? _raw_spin_unlock_irqrestore+0x31/0xba [ 49.675682] ? __might_sleep+0x95/0x190 [ 49.676064] ? __might_fault+0x188/0x1d0 [ 49.676459] ? do_raw_spin_trylock+0x190/0x190 [ 49.676887] mm_release+0x46d/0x590 [ 49.677235] ? do_raw_spin_trylock+0x190/0x190 [ 49.677672] ? mm_access+0x140/0x140 [ 49.678032] ? _raw_spin_unlock_irq+0x27/0x70 [ 49.678460] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 49.679039] ? trace_hardirqs_on+0xd/0x10 [ 49.680060] ? _raw_spin_unlock_irq+0x27/0x70 [ 49.680528] ? acct_collect+0x637/0x800 [ 49.680789] do_exit+0x481/0x1ad0 [ 49.681044] ? _raw_spin_unlock_irqrestore+0x31/0xba [ 49.681415] ? trace_hardirqs_on_caller+0x3d0/0x5c0 [ 49.681814] ? mm_update_next_owner+0x930/0x930 [ 49.682228] ? trace_hardirqs_on+0xd/0x10 [ 49.682613] ? hrtimer_try_to_cancel+0x9a/0x5c0 [ 49.683044] ? __hrtimer_get_remaining+0x1c0/0x1c0 [ 49.683518] ? lock_downgrade+0x990/0x990 [ 49.683912] ? do_raw_spin_trylock+0x190/0x190 [ 49.684345] ? futex_wake+0x680/0x680 [ 49.684705] ? memset+0x31/0x40 [ 49.685018] ? hrtimer_cancel+0x2e/0x40 [ 49.685388] ? futex_wait_requeue_pi.constprop.19+0x8a8/0x1300 [ 49.685942] ? check_noncircular+0x20/0x20 [ 49.686336] ? futex_requeue+0x2370/0x2370 [ 49.686738] ? futex_wake+0x680/0x680 [ 49.687096] ? __lock_acquire+0x6aa/0x3d50 [ 49.687541] ? drop_futex_key_refs.isra.13+0x63/0xa0 [ 49.688018] ? futex_wait+0x69e/0x990 [ 49.688368] ? find_held_lock+0x35/0x1d0 [ 49.688747] ? get_signal+0x7ae/0x16d0 [ 49.689113] ? lock_downgrade+0x990/0x990 [ 49.689510] do_group_exit+0x149/0x400 [ 49.689879] ? __lock_is_held+0xb6/0x140 [ 49.690260] ? SyS_exit+0x30/0x30 [ 49.690580] ? _raw_spin_unlock_irq+0x27/0x70 [ 49.690993] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 49.691513] get_signal+0x73f/0x16d0 [ 49.691864] ? ptrace_notify+0x130/0x130 [ 49.692289] ? __lock_is_held+0xb6/0x140 [ 49.692675] ? exit_robust_list+0x240/0x240 [ 49.693079] ? __mutex_unlock_slowpath+0xe9/0xac0 [ 49.693537] ? get_unused_fd_flags+0x190/0x190 [ 49.693968] do_signal+0x94/0x1ee0 [ 49.694303] ? add_event_to_ctx+0x14e0/0x14e0 [ 49.694726] ? should_fail+0x23b/0xa40 [ 49.695092] ? fault_create_debugfs_attr+0x1f0/0x1f0 [ 49.695631] ? setup_sigcontext+0x7d0/0x7d0 [ 49.696033] ? find_held_lock+0x35/0x1d0 [ 49.696457] ? lock_downgrade+0x990/0x990 [ 49.696845] ? lock_release+0xa40/0xa40 [ 49.697213] ? trace_event_raw_event_sched_switch+0x8a0/0x8a0 [ 49.697747] ? perf_event_set_output+0x5a0/0x5a0 [ 49.698188] ? vm_mmap_pgoff+0x1fc/0x280 [ 49.698571] ? exit_to_usermode_loop+0x8c/0x310 [ 49.699010] exit_to_usermode_loop+0x214/0x310 [ 49.699506] ? trace_event_raw_event_sys_exit+0x260/0x260 [ 49.700020] ? kasan_check_write+0x14/0x20 [ 49.700422] syscall_return_slowpath+0x42f/0x510 [ 49.700878] ? prepare_exit_to_usermode+0x2d0/0x2d0 [ 49.701357] ? entry_SYSCALL_64_fastpath+0x91/0xbe [ 49.701827] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 49.702292] ? trace_hardirqs_on_thunk+0x1a/0x1c [ 49.702734] entry_SYSCALL_64_fastpath+0xbc/0xbe [ 49.703174] RIP: 0033:0x447c89 [ 49.703784] RSP: 002b:00007fe8a2f52bd8 EFLAGS: 00000246 ORIG_RAX: 00000000000000ca [ 49.704494] RAX: fffffffffffffdff RBX: 00007fe8a2f536cc RCX: 0000000000447c89 [ 49.705165] RDX: 0000000000000004 RSI: 000080000000000b RDI: 000000002000cffc [ 49.705859] RBP: 0000000000748020 R08: 0000000020048000 R09: 0000000000000000 [ 49.706542] R10: 000000002000b000 R11: 0000000000000246 R12: 00000000ffffffff [ 49.707228] R13: 0000000000000d08 R14: 00000000006e4da8 R15: 00007fe8a2f53700 [ 49.711696] Dumping ftrace buffer: [ 49.712090] (ftrace buffer empty) [ 49.712441] Kernel Offset: disabled [ 49.712793] Rebooting in 86400 seconds..