2017/10/26 14:13:34 parsed 1 programs 2017/10/26 14:13:34 executed programs: 0 syzkaller login: [ 20.289518] ================================================================== [ 20.290099] BUG: KASAN: use-after-free in __lock_acquire+0x3c9f/0x3d50 [ 20.290566] Read of size 8 at addr ffff88003a9b1de8 by task syz-executor0/3155 [ 20.291114] [ 20.291231] CPU: 3 PID: 3155 Comm: syz-executor0 Not tainted 4.14.0-rc5-next-20171018+ #8 [ 20.291802] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS Bochs 01/01/2011 [ 20.292325] Call Trace: [ 20.292487] dump_stack+0x194/0x257 [ 20.292704] ? arch_local_irq_restore+0x53/0x53 [ 20.292984] ? show_regs_print_info+0x65/0x65 [ 20.293343] ? print_irqtrace_events+0x270/0x270 [ 20.293700] ? print_irqtrace_events+0x270/0x270 [ 20.294085] ? __lock_acquire+0x3c9f/0x3d50 [ 20.294413] print_address_description+0x73/0x250 [ 20.294750] ? __lock_acquire+0x3c9f/0x3d50 [ 20.295064] kasan_report+0x25b/0x340 [ 20.295328] __asan_report_load8_noabort+0x14/0x20 [ 20.295669] __lock_acquire+0x3c9f/0x3d50 [ 20.295957] ? exit_pi_state_list+0x369/0x7a0 [ 20.296284] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 20.296644] ? __lock_acquire+0x6aa/0x3d50 [ 20.296937] ? __lock_acquire+0x6aa/0x3d50 [ 20.297241] ? __lock_acquire+0x6aa/0x3d50 [ 20.297534] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 20.297896] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 20.298266] ? check_noncircular+0x20/0x20 [ 20.298562] ? osq_unlock+0x350/0x350 [ 20.298816] ? __lock_acquire+0x6aa/0x3d50 [ 20.299109] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 20.299937] ? check_noncircular+0x20/0x20 [ 20.300235] ? pick_next_task_fair+0x46d/0x1830 [ 20.300537] ? check_noncircular+0x20/0x20 [ 20.300872] ? lock_release+0xa40/0xa40 [ 20.301198] ? switched_to_fair+0xb0/0xb0 [ 20.301525] ? __lock_is_held+0xb6/0x140 [ 20.301867] ? find_held_lock+0x35/0x1d0 [ 20.302224] lock_acquire+0x1d5/0x580 [ 20.302518] ? lock_acquire+0x1d5/0x580 [ 20.302799] ? exit_pi_state_list+0x369/0x7a0 [ 20.303128] ? lock_downgrade+0x990/0x990 [ 20.303421] ? lock_release+0xa40/0xa40 [ 20.303701] ? do_raw_spin_trylock+0x190/0x190 [ 20.304031] ? lock_downgrade+0x990/0x990 [ 20.304325] _raw_spin_lock_irq+0x5e/0x80 [ 20.304611] ? exit_pi_state_list+0x369/0x7a0 [ 20.304927] exit_pi_state_list+0x369/0x7a0 [ 20.305241] ? futex_wait_requeue_pi.constprop.19+0x1300/0x1300 [ 20.305667] ? lock_release+0xa40/0xa40 [ 20.305948] ? trace_event_raw_event_sched_switch+0x8a0/0x8a0 [ 20.306398] ? _raw_spin_unlock_irqrestore+0x31/0xba [ 20.306743] ? __might_sleep+0x95/0x190 [ 20.307045] ? __might_fault+0x188/0x1d0 [ 20.307356] ? do_raw_spin_trylock+0x190/0x190 [ 20.307704] mm_release+0x46d/0x590 [ 20.308034] ? do_raw_spin_trylock+0x190/0x190 [ 20.308351] ? mm_access+0x140/0x140 [ 20.308610] ? _raw_spin_unlock_irq+0x27/0x70 [ 20.308922] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 20.309279] ? trace_hardirqs_on+0xd/0x10 [ 20.309566] ? _raw_spin_unlock_irq+0x27/0x70 [ 20.309876] ? acct_collect+0x637/0x800 [ 20.310177] do_exit+0x481/0x1ad0 [ 20.310436] ? mm_update_next_owner+0x930/0x930 [ 20.310752] ? trace_event_raw_event_sched_switch+0x8a0/0x8a0 [ 20.311260] ? rcu_note_context_switch+0x710/0x710 [ 20.311622] ? futex_wait_setup+0x14a/0x3d0 [ 20.311974] ? __might_sleep+0x95/0x190 [ 20.312260] ? _cond_resched+0x14/0x30 [ 20.312531] ? futex_wait_queue_me+0x524/0x7e0 [ 20.312861] ? refill_pi_state_cache.part.6+0x2f0/0x2f0 [ 20.313268] ? memset+0x31/0x40 [ 20.313520] ? get_futex_value_locked+0xc3/0xf0 [ 20.313877] ? futex_wait_setup+0x22e/0x3d0 [ 20.314214] ? check_noncircular+0x20/0x20 [ 20.314547] ? futex_wake+0x680/0x680 [ 20.314833] ? mmdrop+0x18/0x30 [ 20.315091] ? drop_futex_key_refs.isra.13+0x63/0xa0 [ 20.315426] ? futex_wait+0x69e/0x990 [ 20.315694] ? find_held_lock+0x35/0x1d0 [ 20.315976] ? get_signal+0x7ae/0x16d0 [ 20.316254] ? lock_downgrade+0x990/0x990 [ 20.316543] do_group_exit+0x149/0x400 [ 20.316813] ? __lock_is_held+0xb6/0x140 [ 20.317107] ? SyS_exit+0x30/0x30 [ 20.317349] ? _raw_spin_unlock_irq+0x27/0x70 [ 20.317662] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 20.318015] get_signal+0x73f/0x16d0 [ 20.318305] ? ptrace_notify+0x130/0x130 [ 20.318631] ? exit_robust_list+0x240/0x240 [ 20.318947] do_signal+0x94/0x1ee0 [ 20.319243] ? should_fail+0x23b/0xa40 [ 20.319528] ? check_noncircular+0x20/0x20 [ 20.319863] ? fault_create_debugfs_attr+0x1f0/0x1f0 [ 20.320280] ? setup_sigcontext+0x7d0/0x7d0 [ 20.321011] ? find_held_lock+0x35/0x1d0 [ 20.321459] ? lock_downgrade+0x990/0x990 [ 20.321864] ? lock_release+0xa40/0xa40 [ 20.322187] ? trace_event_raw_event_sched_switch+0x8a0/0x8a0 [ 20.322608] ? lock_downgrade+0x990/0x990 [ 20.322901] ? exit_to_usermode_loop+0x8c/0x310 [ 20.323228] exit_to_usermode_loop+0x214/0x310 [ 20.323551] ? trace_event_raw_event_sys_exit+0x260/0x260 [ 20.323939] ? kasan_check_write+0x14/0x20 [ 20.324239] syscall_return_slowpath+0x42f/0x510 [ 20.324573] ? prepare_exit_to_usermode+0x2d0/0x2d0 [ 20.324926] ? entry_SYSCALL_64_fastpath+0x91/0xbe [ 20.325270] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 20.325622] ? trace_hardirqs_on_thunk+0x1a/0x1c [ 20.325957] entry_SYSCALL_64_fastpath+0xbc/0xbe [ 20.326307] RIP: 0033:0x447c89 [ 20.326544] RSP: 002b:00007fb4dad98ce8 EFLAGS: 00000246 ORIG_RAX: 00000000000000ca [ 20.327131] RAX: 0000000000000000 RBX: 00000000007481b8 RCX: 0000000000447c89 [ 20.327630] RDX: 0000000000000000 RSI: 0000000000000000 RDI: 00000000007481b8 [ 20.328175] RBP: 00000000007481b8 R08: 0000000000000000 R09: 0000000000748190 [ 20.328693] R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 [ 20.329214] R13: 0000000000000000 R14: 00007fb4dad999c0 R15: 00007fb4dad99700 [ 20.329794] [ 20.329931] Allocated by task 3156: [ 20.330271] save_stack+0x43/0xd0 [ 20.330548] kasan_kmalloc+0xad/0xe0 [ 20.330909] kmem_cache_alloc_trace+0x136/0x750 [ 20.331273] refill_pi_state_cache.part.6+0xa5/0x2f0 [ 20.331697] futex_requeue+0x1887/0x2370 [ 20.332018] do_futex+0x7f5/0x20d0 [ 20.332291] SyS_futex+0x260/0x390 [ 20.332568] entry_SYSCALL_64_fastpath+0x1f/0xbe [ 20.332925] [ 20.333053] Freed by task 3154: [ 20.333309] save_stack+0x43/0xd0 [ 20.333573] kasan_slab_free+0x71/0xc0 [ 20.333869] kfree+0xca/0x250 [ 20.334109] put_pi_state+0x3f4/0x560 [ 20.334410] unqueue_me_pi+0x4a/0xc0 [ 20.334751] futex_wait_requeue_pi.constprop.19+0xc7f/0x1300 [ 20.335249] do_futex+0x825/0x20d0 [ 20.335562] SyS_futex+0x260/0x390 [ 20.335868] entry_SYSCALL_64_fastpath+0x1f/0xbe [ 20.336271] [ 20.336414] The buggy address belongs to the object at ffff88003a9b1dc0 [ 20.336414] which belongs to the cache kmalloc-256 of size 256 [ 20.337399] The buggy address is located 40 bytes inside of [ 20.337399] 256-byte region [ffff88003a9b1dc0, ffff88003a9b1ec0) [ 20.338306] The buggy address belongs to the page: [ 20.338727] page:ffffea0000ea6c40 count:1 mapcount:0 mapping:ffff88003a9b1000 index:0x0 [ 20.339371] flags: 0x100000000000100(slab) [ 20.339688] raw: 0100000000000100 ffff88003a9b1000 0000000000000000 000000010000000c [ 20.340332] raw: ffffea0000ec2ba0 ffffea0000eacae0 ffff88003e8007c0 0000000000000000 [ 20.340901] page dumped because: kasan: bad access detected [ 20.341349] [ 20.341490] Memory state around the buggy address: [ 20.341892] ffff88003a9b1c80: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 20.342959] ffff88003a9b1d00: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 20.343613] >ffff88003a9b1d80: fc fc fc fc fc fc fc fc fb fb fb fb fb fb fb fb [ 20.344178] ^ [ 20.344695] ffff88003a9b1e00: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 20.345258] ffff88003a9b1e80: fb fb fb fb fb fb fb fb fc fc fc fc fc fc fc fc [ 20.345845] ================================================================== [ 20.346437] Disabling lock debugging due to kernel taint [ 20.346903] Kernel panic - not syncing: panic_on_warn set ... [ 20.346903] [ 20.347472] CPU: 3 PID: 3155 Comm: syz-executor0 Tainted: G B 4.14.0-rc5-next-20171018+ #8 [ 20.348254] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS Bochs 01/01/2011 [ 20.348889] Call Trace: [ 20.349131] dump_stack+0x194/0x257 [ 20.349436] ? arch_local_irq_restore+0x53/0x53 [ 20.349807] ? kasan_end_report+0x32/0x50 [ 20.350175] ? lock_downgrade+0x990/0x990 [ 20.350505] ? vsnprintf+0x1ed/0x1900 [ 20.350801] ? __lock_acquire+0x3c50/0x3d50 [ 20.351189] panic+0x1e4/0x41c [ 20.351467] ? refcount_error_report+0x214/0x214 [ 20.351844] ? add_taint+0x40/0x50 [ 20.352155] ? add_taint+0x1c/0x50 [ 20.352478] ? __lock_acquire+0x3c9f/0x3d50 [ 20.352838] kasan_end_report+0x50/0x50 [ 20.353187] kasan_report+0x144/0x340 [ 20.353539] __asan_report_load8_noabort+0x14/0x20 [ 20.353941] __lock_acquire+0x3c9f/0x3d50 [ 20.354359] ? exit_pi_state_list+0x369/0x7a0 [ 20.354791] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 20.355246] ? __lock_acquire+0x6aa/0x3d50 [ 20.355565] ? __lock_acquire+0x6aa/0x3d50 [ 20.355911] ? __lock_acquire+0x6aa/0x3d50 [ 20.356287] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 20.356735] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 20.357150] ? check_noncircular+0x20/0x20 [ 20.357498] ? osq_unlock+0x350/0x350 [ 20.357781] ? __lock_acquire+0x6aa/0x3d50 [ 20.358103] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 20.358484] ? check_noncircular+0x20/0x20 [ 20.358783] ? pick_next_task_fair+0x46d/0x1830 [ 20.359119] ? check_noncircular+0x20/0x20 [ 20.359489] ? lock_release+0xa40/0xa40 [ 20.359804] ? switched_to_fair+0xb0/0xb0 [ 20.360127] ? __lock_is_held+0xb6/0x140 [ 20.360474] ? find_held_lock+0x35/0x1d0 [ 20.360793] lock_acquire+0x1d5/0x580 [ 20.361117] ? lock_acquire+0x1d5/0x580 [ 20.361411] ? exit_pi_state_list+0x369/0x7a0 [ 20.361738] ? lock_downgrade+0x990/0x990 [ 20.362077] ? lock_release+0xa40/0xa40 [ 20.362374] ? do_raw_spin_trylock+0x190/0x190 [ 20.362694] ? lock_downgrade+0x990/0x990 [ 20.363035] _raw_spin_lock_irq+0x5e/0x80 [ 20.363635] ? exit_pi_state_list+0x369/0x7a0 [ 20.363962] exit_pi_state_list+0x369/0x7a0 [ 20.364289] ? futex_wait_requeue_pi.constprop.19+0x1300/0x1300 [ 20.364723] ? lock_release+0xa40/0xa40 [ 20.365004] ? trace_event_raw_event_sched_switch+0x8a0/0x8a0 [ 20.365463] ? _raw_spin_unlock_irqrestore+0x31/0xba [ 20.365867] ? __might_sleep+0x95/0x190 [ 20.366170] ? __might_fault+0x188/0x1d0 [ 20.366483] ? do_raw_spin_trylock+0x190/0x190 [ 20.366816] mm_release+0x46d/0x590 [ 20.367081] ? do_raw_spin_trylock+0x190/0x190 [ 20.367432] ? mm_access+0x140/0x140 [ 20.367742] ? _raw_spin_unlock_irq+0x27/0x70 [ 20.368106] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 20.368457] ? trace_hardirqs_on+0xd/0x10 [ 20.368769] ? _raw_spin_unlock_irq+0x27/0x70 [ 20.369145] ? acct_collect+0x637/0x800 [ 20.369428] do_exit+0x481/0x1ad0 [ 20.369680] ? mm_update_next_owner+0x930/0x930 [ 20.370044] ? trace_event_raw_event_sched_switch+0x8a0/0x8a0 [ 20.370485] ? rcu_note_context_switch+0x710/0x710 [ 20.370867] ? futex_wait_setup+0x14a/0x3d0 [ 20.371232] ? __might_sleep+0x95/0x190 [ 20.371537] ? _cond_resched+0x14/0x30 [ 20.371846] ? futex_wait_queue_me+0x524/0x7e0 [ 20.372230] ? refill_pi_state_cache.part.6+0x2f0/0x2f0 [ 20.372681] ? memset+0x31/0x40 [ 20.372926] ? get_futex_value_locked+0xc3/0xf0 [ 20.373327] ? futex_wait_setup+0x22e/0x3d0 [ 20.373693] ? check_noncircular+0x20/0x20 [ 20.374040] ? futex_wake+0x680/0x680 [ 20.374336] ? mmdrop+0x18/0x30 [ 20.374565] ? drop_futex_key_refs.isra.13+0x63/0xa0 [ 20.374954] ? futex_wait+0x69e/0x990 [ 20.375236] ? find_held_lock+0x35/0x1d0 [ 20.375551] ? get_signal+0x7ae/0x16d0 [ 20.375838] ? lock_downgrade+0x990/0x990 [ 20.376186] do_group_exit+0x149/0x400 [ 20.376483] ? __lock_is_held+0xb6/0x140 [ 20.376776] ? SyS_exit+0x30/0x30 [ 20.377028] ? _raw_spin_unlock_irq+0x27/0x70 [ 20.377346] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 20.377691] get_signal+0x73f/0x16d0 [ 20.377947] ? ptrace_notify+0x130/0x130 [ 20.378263] ? exit_robust_list+0x240/0x240 [ 20.378565] do_signal+0x94/0x1ee0 [ 20.378883] ? should_fail+0x23b/0xa40 [ 20.379234] ? check_noncircular+0x20/0x20 [ 20.379567] ? fault_create_debugfs_attr+0x1f0/0x1f0 [ 20.379981] ? setup_sigcontext+0x7d0/0x7d0 [ 20.380323] ? find_held_lock+0x35/0x1d0 [ 20.380628] ? lock_downgrade+0x990/0x990 [ 20.380973] ? lock_release+0xa40/0xa40 [ 20.381243] ? trace_event_raw_event_sched_switch+0x8a0/0x8a0 [ 20.381642] ? lock_downgrade+0x990/0x990 [ 20.381954] ? exit_to_usermode_loop+0x8c/0x310 [ 20.382265] exit_to_usermode_loop+0x214/0x310 [ 20.382570] ? trace_event_raw_event_sys_exit+0x260/0x260 [ 20.382940] ? kasan_check_write+0x14/0x20 [ 20.383224] syscall_return_slowpath+0x42f/0x510 [ 20.383528] ? prepare_exit_to_usermode+0x2d0/0x2d0 [ 20.383873] ? entry_SYSCALL_64_fastpath+0x91/0xbe [ 20.384195] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 20.384521] ? trace_hardirqs_on_thunk+0x1a/0x1c [ 20.385230] entry_SYSCALL_64_fastpath+0xbc/0xbe [ 20.385558] RIP: 0033:0x447c89 [ 20.385767] RSP: 002b:00007fb4dad98ce8 EFLAGS: 00000246 ORIG_RAX: 00000000000000ca [ 20.386282] RAX: 0000000000000000 RBX: 00000000007481b8 RCX: 0000000000447c89 [ 20.386757] RDX: 0000000000000000 RSI: 0000000000000000 RDI: 00000000007481b8 [ 20.387237] RBP: 00000000007481b8 R08: 0000000000000000 R09: 0000000000748190 [ 20.387695] R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 [ 20.388174] R13: 0000000000000000 R14: 00007fb4dad999c0 R15: 00007fb4dad99700 [ 20.388666] Dumping ftrace buffer: [ 20.388907] (ftrace buffer empty) [ 20.389143] Kernel Offset: disabled [ 20.389373] Rebooting in 86400 seconds..