Debian GNU/Linux 7 syzkaller ttyS0 2017/10/26 15:48:54 parsed 1 programs 2017/10/26 15:48:54 executed programs: 0 2017/10/26 15:48:59 executed programs: 154 syzkaller login: [ 29.498417] ================================================================== [ 29.499171] BUG: KASAN: use-after-free in __lock_acquire+0x3c9f/0x3d50 [ 29.499867] Read of size 8 at addr ffff88003b357968 by task syz-executor1/5520 [ 29.500549] [ 29.500700] CPU: 2 PID: 5520 Comm: syz-executor1 Not tainted 4.14.0-rc5-next-20171018+ #8 [ 29.501507] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS Bochs 01/01/2011 [ 29.502546] Call Trace: [ 29.502789] dump_stack+0x194/0x257 [ 29.503143] ? arch_local_irq_restore+0x53/0x53 [ 29.504506] ? show_regs_print_info+0x65/0x65 [ 29.504927] ? print_irqtrace_events+0x270/0x270 [ 29.505374] ? print_irqtrace_events+0x270/0x270 [ 29.505836] ? __lock_acquire+0x3c9f/0x3d50 [ 29.506241] print_address_description+0x73/0x250 [ 29.506677] ? __lock_acquire+0x3c9f/0x3d50 [ 29.507034] kasan_report+0x25b/0x340 [ 29.507369] __asan_report_load8_noabort+0x14/0x20 [ 29.507800] __lock_acquire+0x3c9f/0x3d50 [ 29.508166] ? exit_pi_state_list+0x369/0x7a0 [ 29.508559] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 29.509011] ? mark_held_locks+0xaf/0x100 [ 29.509378] ? retint_kernel+0x10/0x10 [ 29.509731] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 29.510180] ? trace_hardirqs_on_thunk+0x1a/0x1c [ 29.510598] ? retint_kernel+0x10/0x10 [ 29.510942] ? exit_pi_state_list+0x361/0x7a0 [ 29.511647] ? queued_spin_lock_slowpath+0x1c4/0xfa0 [ 29.512150] ? osq_unlock+0x350/0x350 [ 29.512527] ? __lock_acquire+0x6aa/0x3d50 [ 29.513299] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 29.513806] ? check_noncircular+0x20/0x20 [ 29.514222] ? print_irqtrace_events+0x270/0x270 [ 29.514648] ? check_noncircular+0x20/0x20 [ 29.515033] ? get_user_pages_fast+0x277/0x340 [ 29.515458] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 29.515931] ? find_held_lock+0x35/0x1d0 [ 29.516332] lock_acquire+0x1d5/0x580 [ 29.516693] ? lock_acquire+0x1d5/0x580 [ 29.517135] ? exit_pi_state_list+0x369/0x7a0 [ 29.517550] ? lock_downgrade+0x990/0x990 [ 29.517930] ? lock_release+0xa40/0xa40 [ 29.518445] ? do_raw_spin_trylock+0x190/0x190 [ 29.518849] ? lock_downgrade+0x990/0x990 [ 29.519230] _raw_spin_lock_irq+0x5e/0x80 [ 29.519599] ? exit_pi_state_list+0x369/0x7a0 [ 29.520020] exit_pi_state_list+0x369/0x7a0 [ 29.520446] ? futex_wait_requeue_pi.constprop.19+0x1300/0x1300 [ 29.520981] ? lock_release+0xa40/0xa40 [ 29.521388] ? trace_event_raw_event_sched_switch+0x8a0/0x8a0 [ 29.521979] ? _raw_spin_unlock_irqrestore+0x31/0xba [ 29.522451] ? __might_sleep+0x95/0x190 [ 29.522825] ? __might_fault+0x188/0x1d0 [ 29.523648] ? do_raw_spin_trylock+0x190/0x190 [ 29.524073] mm_release+0x46d/0x590 [ 29.524410] ? do_raw_spin_trylock+0x190/0x190 [ 29.524837] ? mm_access+0x140/0x140 [ 29.526266] ? _raw_spin_unlock_irq+0x27/0x70 [ 29.526661] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 29.527120] ? trace_hardirqs_on+0xd/0x10 [ 29.527483] ? _raw_spin_unlock_irq+0x27/0x70 [ 29.527874] ? acct_collect+0x637/0x800 [ 29.528226] do_exit+0x481/0x1ad0 [ 29.528536] ? mm_update_next_owner+0x930/0x930 [ 29.528942] ? trace_event_raw_event_sched_switch+0x8a0/0x8a0 [ 29.529455] ? rcu_note_context_switch+0x710/0x710 [ 29.529913] ? futex_wait_setup+0x14a/0x3d0 [ 29.530305] ? __might_sleep+0x95/0x190 [ 29.530684] ? find_held_lock+0x35/0x1d0 [ 29.531079] ? futex_wait+0x402/0x990 [ 29.531742] ? lock_downgrade+0x990/0x990 [ 29.531749] ? do_raw_spin_trylock+0x190/0x190 [ 29.531756] ? check_noncircular+0x20/0x20 [ 29.531763] ? futex_wake+0x680/0x680 [ 29.531770] ? mmdrop+0x18/0x30 [ 29.531775] ? drop_futex_key_refs.isra.13+0x63/0xa0 [ 29.531780] ? futex_wait+0x69e/0x990 [ 29.531787] ? find_held_lock+0x35/0x1d0 [ 29.531794] ? get_signal+0x7ae/0x16d0 [ 29.531799] ? lock_downgrade+0x990/0x990 [ 29.531807] do_group_exit+0x149/0x400 [ 29.531813] ? __lock_is_held+0xb6/0x140 [ 29.531817] ? SyS_exit+0x30/0x30 [ 29.531823] ? _raw_spin_unlock_irq+0x27/0x70 [ 29.531829] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 29.531835] get_signal+0x73f/0x16d0 [ 29.531843] ? ptrace_notify+0x130/0x130 [ 29.531849] ? is_bpf_text_address+0xa4/0x120 [ 29.531857] ? exit_robust_list+0x240/0x240 [ 29.531866] do_signal+0x94/0x1ee0 [ 29.531870] ? lock_release+0xa40/0xa40 [ 29.531877] ? should_fail+0x23b/0xa40 [ 29.531883] ? fault_create_debugfs_attr+0x1f0/0x1f0 [ 29.531889] ? setup_sigcontext+0x7d0/0x7d0 [ 29.531896] ? find_held_lock+0x35/0x1d0 [ 29.531904] ? lock_downgrade+0x990/0x990 [ 29.531909] ? lock_release+0xa40/0xa40 [ 29.531916] ? trace_event_raw_event_sched_switch+0x8a0/0x8a0 [ 29.531923] ? exit_to_usermode_loop+0x8c/0x310 [ 29.531930] exit_to_usermode_loop+0x214/0x310 [ 29.531937] ? trace_event_raw_event_sys_exit+0x260/0x260 [ 29.531942] ? kasan_check_write+0x14/0x20 [ 29.531950] syscall_return_slowpath+0x42f/0x510 [ 29.531957] ? prepare_exit_to_usermode+0x2d0/0x2d0 [ 29.531963] ? entry_SYSCALL_64_fastpath+0x91/0xbe [ 29.531968] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 29.531974] ? trace_hardirqs_on_thunk+0x1a/0x1c [ 29.531981] entry_SYSCALL_64_fastpath+0xbc/0xbe [ 29.531986] RIP: 0033:0x447c89 [ 29.531988] RSP: 002b:00007f36e01ecce8 EFLAGS: 00000246 ORIG_RAX: 00000000000000ca [ 29.531993] RAX: fffffffffffffe00 RBX: 0000000000748270 RCX: 0000000000447c89 [ 29.531996] RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000748270 [ 29.531999] RBP: 0000000000748270 R08: 0000000000000000 R09: 0000000000748248 [ 29.532004] R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 [ 29.532007] R13: 0000000000000000 R14: 00007f36e01ed9c0 R15: 00007f36e01ed700 [ 29.532014] [ 29.532017] Allocated by task 5549: [ 29.532022] save_stack+0x43/0xd0 [ 29.532026] kasan_kmalloc+0xad/0xe0 [ 29.532031] kmem_cache_alloc_trace+0x136/0x750 [ 29.532035] refill_pi_state_cache.part.6+0xa5/0x2f0 [ 29.532040] futex_requeue+0x1887/0x2370 [ 29.532044] do_futex+0x7f5/0x20d0 [ 29.532047] SyS_futex+0x260/0x390 [ 29.532052] entry_SYSCALL_64_fastpath+0x1f/0xbe [ 29.532053] [ 29.532055] Freed by task 5515: [ 29.532059] save_stack+0x43/0xd0 [ 29.532063] kasan_slab_free+0x71/0xc0 [ 29.532067] kfree+0xca/0x250 [ 29.532071] put_pi_state+0x3f4/0x560 [ 29.532075] unqueue_me_pi+0x4a/0xc0 [ 29.532080] futex_wait_requeue_pi.constprop.19+0xc7f/0x1300 [ 29.532084] do_futex+0x825/0x20d0 [ 29.532088] SyS_futex+0x260/0x390 [ 29.532093] entry_SYSCALL_64_fastpath+0x1f/0xbe [ 29.532094] [ 29.532097] The buggy address belongs to the object at ffff88003b357940 [ 29.532097] which belongs to the cache kmalloc-256 of size 256 [ 29.532101] The buggy address is located 40 bytes inside of [ 29.532101] 256-byte region [ffff88003b357940, ffff88003b357a40) [ 29.532102] The buggy address belongs to the page: [ 29.532106] page:ffffea0000ecd5c0 count:1 mapcount:0 mapping:ffff88003b357080 index:0x0 [ 29.532111] flags: 0x100000000000100(slab) [ 29.532117] raw: 0100000000000100 ffff88003b357080 0000000000000000 000000010000000c [ 29.532122] raw: ffffea0000e9f2a0 ffffea0000e8e660 ffff88003e8007c0 0000000000000000 [ 29.532124] page dumped because: kasan: bad access detected [ 29.532125] [ 29.532127] Memory state around the buggy address: [ 29.532131] ffff88003b357800: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 29.532134] ffff88003b357880: 00 00 00 00 00 00 00 00 00 fc fc fc fc fc fc fc [ 29.532137] >ffff88003b357900: fc fc fc fc fc fc fc fc fb fb fb fb fb fb fb fb [ 29.532139] ^ [ 29.532143] ffff88003b357980: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 29.532146] ffff88003b357a00: fb fb fb fb fb fb fb fb fc fc fc fc fc fc fc fc [ 29.532148] ================================================================== [ 29.532149] Disabling lock debugging due to kernel taint [ 29.532152] Kernel panic - not syncing: panic_on_warn set ... [ 29.532152] [ 29.532158] CPU: 2 PID: 5520 Comm: syz-executor1 Tainted: G B 4.14.0-rc5-next-20171018+ #8 [ 29.532160] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS Bochs 01/01/2011 [ 29.532161] Call Trace: [ 29.532168] dump_stack+0x194/0x257 [ 29.532174] ? arch_local_irq_restore+0x53/0x53 [ 29.532178] ? kasan_end_report+0x32/0x50 [ 29.532182] ? lock_downgrade+0x990/0x990 [ 29.532187] ? vsnprintf+0x1ed/0x1900 [ 29.532192] ? __lock_acquire+0x3c50/0x3d50 [ 29.532197] panic+0x1e4/0x41c [ 29.532202] ? refcount_error_report+0x214/0x214 [ 29.532209] ? add_taint+0x40/0x50 [ 29.532213] ? add_taint+0x1c/0x50 [ 29.532218] ? __lock_acquire+0x3c9f/0x3d50 [ 29.532223] kasan_end_report+0x50/0x50 [ 29.532227] kasan_report+0x144/0x340 [ 29.532233] __asan_report_load8_noabort+0x14/0x20 [ 29.532237] __lock_acquire+0x3c9f/0x3d50 [ 29.532245] ? exit_pi_state_list+0x369/0x7a0 [ 29.532251] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 29.532256] ? mark_held_locks+0xaf/0x100 [ 29.532261] ? retint_kernel+0x10/0x10 [ 29.532266] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 29.532272] ? trace_hardirqs_on_thunk+0x1a/0x1c [ 29.532279] ? retint_kernel+0x10/0x10 [ 29.532285] ? exit_pi_state_list+0x361/0x7a0 [ 29.532291] ? queued_spin_lock_slowpath+0x1c4/0xfa0 [ 29.532298] ? osq_unlock+0x350/0x350 [ 29.532303] ? __lock_acquire+0x6aa/0x3d50 [ 29.532311] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 29.532318] ? check_noncircular+0x20/0x20 [ 29.532323] ? print_irqtrace_events+0x270/0x270 [ 29.532329] ? check_noncircular+0x20/0x20 [ 29.532334] ? get_user_pages_fast+0x277/0x340 [ 29.532339] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 29.532347] ? find_held_lock+0x35/0x1d0 [ 29.532353] lock_acquire+0x1d5/0x580 [ 29.532356] ? lock_acquire+0x1d5/0x580 [ 29.532361] ? exit_pi_state_list+0x369/0x7a0 [ 29.532365] ? lock_downgrade+0x990/0x990 [ 29.532370] ? lock_release+0xa40/0xa40 [ 29.532375] ? do_raw_spin_trylock+0x190/0x190 [ 29.532378] ? lock_downgrade+0x990/0x990 [ 29.532388] _raw_spin_lock_irq+0x5e/0x80 [ 29.532392] ? exit_pi_state_list+0x369/0x7a0 [ 29.532397] exit_pi_state_list+0x369/0x7a0 [ 29.532406] ? futex_wait_requeue_pi.constprop.19+0x1300/0x1300 [ 29.532411] ? lock_release+0xa40/0xa40 [ 29.532417] ? trace_event_raw_event_sched_switch+0x8a0/0x8a0 [ 29.532422] ? _raw_spin_unlock_irqrestore+0x31/0xba [ 29.532429] ? __might_sleep+0x95/0x190 [ 29.532435] ? __might_fault+0x188/0x1d0 [ 29.532441] ? do_raw_spin_trylock+0x190/0x190 [ 29.532447] mm_release+0x46d/0x590 [ 29.532451] ? do_raw_spin_trylock+0x190/0x190 [ 29.532455] ? mm_access+0x140/0x140 [ 29.532460] ? _raw_spin_unlock_irq+0x27/0x70 [ 29.532466] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 29.532471] ? trace_hardirqs_on+0xd/0x10 [ 29.532476] ? _raw_spin_unlock_irq+0x27/0x70 [ 29.532480] ? acct_collect+0x637/0x800 [ 29.532486] do_exit+0x481/0x1ad0 [ 29.532493] ? mm_update_next_owner+0x930/0x930 [ 29.532500] ? trace_event_raw_event_sched_switch+0x8a0/0x8a0 [ 29.532507] ? rcu_note_context_switch+0x710/0x710 [ 29.532512] ? futex_wait_setup+0x14a/0x3d0 [ 29.532518] ? __might_sleep+0x95/0x190 [ 29.532524] ? find_held_lock+0x35/0x1d0 [ 29.532530] ? futex_wait+0x402/0x990 [ 29.532534] ? lock_downgrade+0x990/0x990 [ 29.532539] ? do_raw_spin_trylock+0x190/0x190 [ 29.532544] ? check_noncircular+0x20/0x20 [ 29.532548] ? futex_wake+0x680/0x680 [ 29.532554] ? mmdrop+0x18/0x30 [ 29.532558] ? drop_futex_key_refs.isra.13+0x63/0xa0 [ 29.532563] ? futex_wait+0x69e/0x990 [ 29.532568] ? find_held_lock+0x35/0x1d0 [ 29.532574] ? get_signal+0x7ae/0x16d0 [ 29.532578] ? lock_downgrade+0x990/0x990 [ 29.532584] do_group_exit+0x149/0x400 [ 29.532589] ? __lock_is_held+0xb6/0x140 [ 29.532594] ? SyS_exit+0x30/0x30 [ 29.532599] ? _raw_spin_unlock_irq+0x27/0x70 [ 29.532603] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 29.532608] get_signal+0x73f/0x16d0 [ 29.532616] ? ptrace_notify+0x130/0x130 [ 29.532623] ? is_bpf_text_address+0xa4/0x120 [ 29.532631] ? exit_robust_list+0x240/0x240 [ 29.532639] do_signal+0x94/0x1ee0 [ 29.532642] ? lock_release+0xa40/0xa40 [ 29.532648] ? should_fail+0x23b/0xa40 [ 29.532654] ? fault_create_debugfs_attr+0x1f0/0x1f0 [ 29.532660] ? setup_sigcontext+0x7d0/0x7d0 [ 29.532666] ? find_held_lock+0x35/0x1d0 [ 29.532673] ? lock_downgrade+0x990/0x990 [ 29.532678] ? lock_release+0xa40/0xa40 [ 29.532684] ? trace_event_raw_event_sched_switch+0x8a0/0x8a0 [ 29.532690] ? exit_to_usermode_loop+0x8c/0x310 [ 29.532697] exit_to_usermode_loop+0x214/0x310 [ 29.532703] ? trace_event_raw_event_sys_exit+0x260/0x260 [ 29.532708] ? kasan_check_write+0x14/0x20 [ 29.532715] syscall_return_slowpath+0x42f/0x510 [ 29.532721] ? prepare_exit_to_usermode+0x2d0/0x2d0 [ 29.532727] ? entry_SYSCALL_64_fastpath+0x91/0xbe [ 29.532732] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 29.532738] ? trace_hardirqs_on_thunk+0x1a/0x1c [ 29.532745] entry_SYSCALL_64_fastpath+0xbc/0xbe [ 29.532749] RIP: 0033:0x447c89 [ 29.532751] RSP: 002b:00007f36e01ecce8 EFLAGS: 00000246 ORIG_RAX: 00000000000000ca [ 29.532756] RAX: fffffffffffffe00 RBX: 0000000000748270 RCX: 0000000000447c89 [ 29.532759] RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000748270 [ 29.532762] RBP: 0000000000748270 R08: 0000000000000000 R09: 0000000000748248 [ 29.532765] R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 [ 29.532768] R13: 0000000000000000 R14: 00007f36e01ed9c0 R15: 00007f36e01ed700 [ 29.535472] Dumping ftrace buffer: [ 29.535476] (ftrace buffer empty) [ 29.535478] Kernel Offset: disabled [ 29.658727] Rebooting in 86400 seconds..