Debian GNU/Linux 7 syzkaller ttyS0 2017/10/26 03:58:41 parsed 1 programs 2017/10/26 03:58:41 executed programs: 0 2017/10/26 03:58:47 executed programs: 39 syzkaller login: [ 95.942687] ================================================================== [ 95.943411] BUG: KASAN: use-after-free in __lock_acquire+0x3c9f/0x3d50 [ 95.944049] Read of size 8 at addr ffff88006ae09728 by task syz-executor0/3395 [ 95.944790] [ 95.944968] CPU: 2 PID: 3395 Comm: syz-executor0 Not tainted 4.14.0-rc5-next-20171018+ #8 [ 95.945856] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS Bochs 01/01/2011 [ 95.946576] Call Trace: [ 95.946841] dump_stack+0x194/0x257 [ 95.947217] ? arch_local_irq_restore+0x53/0x53 [ 95.947682] ? show_regs_print_info+0x65/0x65 [ 95.948065] ? print_irqtrace_events+0x270/0x270 [ 95.948557] ? print_irqtrace_events+0x270/0x270 [ 95.948963] ? __lock_acquire+0x3c9f/0x3d50 [ 95.949340] print_address_description+0x73/0x250 [ 95.949771] ? __lock_acquire+0x3c9f/0x3d50 [ 95.950136] kasan_report+0x25b/0x340 [ 95.950490] __asan_report_load8_noabort+0x14/0x20 [ 95.950926] __lock_acquire+0x3c9f/0x3d50 [ 95.951287] ? exit_pi_state_list+0x369/0x7a0 [ 95.951679] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 95.952125] ? __lock_acquire+0x6aa/0x3d50 [ 95.952490] ? __lock_acquire+0x6aa/0x3d50 [ 95.952854] ? __lock_acquire+0x6aa/0x3d50 [ 95.953214] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 95.953715] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 95.954257] ? check_noncircular+0x20/0x20 [ 95.954966] ? osq_unlock+0x350/0x350 [ 95.955320] ? __lock_acquire+0x6aa/0x3d50 [ 95.955716] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 95.956240] ? check_noncircular+0x20/0x20 [ 95.956652] ? pick_next_task_fair+0x46d/0x1830 [ 95.957142] ? check_noncircular+0x20/0x20 [ 95.957614] ? lock_release+0xa40/0xa40 [ 95.957975] ? switched_to_fair+0xb0/0xb0 [ 95.958356] ? __lock_is_held+0xb6/0x140 [ 95.958724] ? find_held_lock+0x35/0x1d0 [ 95.959076] lock_acquire+0x1d5/0x580 [ 95.959340] ? lock_acquire+0x1d5/0x580 [ 95.959709] ? exit_pi_state_list+0x369/0x7a0 [ 95.960118] ? lock_downgrade+0x990/0x990 [ 95.960494] ? lock_release+0xa40/0xa40 [ 95.960729] ? do_raw_spin_trylock+0x190/0x190 [ 95.961054] ? lock_downgrade+0x990/0x990 [ 95.961311] _raw_spin_lock_irq+0x5e/0x80 [ 95.961613] ? exit_pi_state_list+0x369/0x7a0 [ 95.961892] exit_pi_state_list+0x369/0x7a0 [ 95.962239] ? futex_wait_requeue_pi.constprop.19+0x1300/0x1300 [ 95.962637] ? lock_release+0xa40/0xa40 [ 95.962873] ? trace_event_raw_event_sched_switch+0x8a0/0x8a0 [ 95.963359] ? _raw_spin_unlock_irqrestore+0x31/0xba [ 95.963822] ? __might_sleep+0x95/0x190 [ 95.964170] ? __might_fault+0x188/0x1d0 [ 95.964528] ? do_raw_spin_trylock+0x190/0x190 [ 95.964922] mm_release+0x46d/0x590 [ 95.965247] ? do_raw_spin_trylock+0x190/0x190 [ 95.965666] ? mm_access+0x140/0x140 [ 95.965966] ? _raw_spin_unlock_irq+0x27/0x70 [ 95.966370] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 95.966828] ? trace_hardirqs_on+0xd/0x10 [ 95.967208] ? _raw_spin_unlock_irq+0x27/0x70 [ 95.967614] ? acct_collect+0x637/0x800 [ 95.967979] do_exit+0x481/0x1ad0 [ 95.968298] ? mm_update_next_owner+0x930/0x930 [ 95.968669] ? trace_event_raw_event_sched_switch+0x8a0/0x8a0 [ 95.969163] ? rcu_note_context_switch+0x710/0x710 [ 95.969670] ? futex_wait_setup+0x14a/0x3d0 [ 95.970069] ? __might_sleep+0x95/0x190 [ 95.970435] ? osq_unlock+0x350/0x350 [ 95.970780] ? futex_wait_queue_me+0x524/0x7e0 [ 95.971196] ? refill_pi_state_cache.part.6+0x2f0/0x2f0 [ 95.971690] ? get_futex_value_locked+0xc3/0xf0 [ 95.972110] ? futex_wait_setup+0x22e/0x3d0 [ 95.972498] ? check_noncircular+0x20/0x20 [ 95.972873] ? futex_wake+0x680/0x680 [ 95.973217] ? check_noncircular+0x20/0x20 [ 95.973894] ? check_noncircular+0x20/0x20 [ 95.974323] ? set_curr_task_fair+0xb0/0xb0 [ 95.974660] ? mmdrop+0x18/0x30 [ 95.974856] ? drop_futex_key_refs.isra.13+0x63/0xa0 [ 95.975248] ? futex_wait+0x69e/0x990 [ 95.975541] ? find_held_lock+0x35/0x1d0 [ 95.975873] ? get_signal+0x7ae/0x16d0 [ 95.977876] ? lock_downgrade+0x990/0x990 [ 95.978168] do_group_exit+0x149/0x400 [ 95.978525] ? __lock_is_held+0xb6/0x140 [ 95.978903] ? SyS_exit+0x30/0x30 [ 95.979218] ? _raw_spin_unlock_irq+0x27/0x70 [ 95.979628] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 95.980088] get_signal+0x73f/0x16d0 [ 95.980428] ? ptrace_notify+0x130/0x130 [ 95.980796] ? __pmd_alloc+0x4e0/0x4e0 [ 95.981150] ? find_held_lock+0x35/0x1d0 [ 95.981548] ? exit_robust_list+0x240/0x240 [ 95.981850] ? handle_mm_fault+0x248/0x8d0 [ 95.982101] ? find_held_lock+0x35/0x1d0 [ 95.982342] do_signal+0x94/0x1ee0 [ 95.982553] ? __do_page_fault+0x64c/0xd60 [ 95.982822] ? lock_downgrade+0x990/0x990 [ 95.983068] ? setup_sigcontext+0x7d0/0x7d0 [ 95.983327] ? handle_mm_fault+0x410/0x8d0 [ 95.983578] ? down_read_trylock+0xdb/0x170 [ 95.983866] ? __do_page_fault+0x31e/0xd60 [ 95.984142] ? __handle_mm_fault+0x39c0/0x39c0 [ 95.984427] ? vmacache_find+0x5f/0x280 [ 95.984693] ? __do_page_fault+0x3d6/0xd60 [ 95.984968] ? mm_fault_error+0x2c0/0x2c0 [ 95.985213] ? exit_to_usermode_loop+0x8c/0x310 [ 95.985577] exit_to_usermode_loop+0x214/0x310 [ 95.985883] ? trace_event_raw_event_sys_exit+0x260/0x260 [ 95.986206] ? __do_page_fault+0xd60/0xd60 [ 95.986455] ? do_syscall_64+0x4d0/0x8d0 [ 95.986719] syscall_return_slowpath+0x42f/0x510 [ 95.987026] ? prepare_exit_to_usermode+0x2d0/0x2d0 [ 95.987326] ? entry_SYSCALL_64_fastpath+0x91/0xbe [ 95.987621] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 95.987948] ? trace_hardirqs_on_thunk+0x1a/0x1c [ 95.988230] entry_SYSCALL_64_fastpath+0xbc/0xbe [ 95.988514] RIP: 0033:0x447c89 [ 95.988715] RSP: 002b:00007f60690c2ce8 EFLAGS: 00000246 ORIG_RAX: 00000000000000ca [ 95.989180] RAX: 0000000000000000 RBX: 00000000007481b8 RCX: 0000000000447c89 [ 95.989716] RDX: 0000000000000000 RSI: 0000000000000000 RDI: 00000000007481b8 [ 95.990165] RBP: 00000000007481b8 R08: 0000000000000000 R09: 0000000000748190 [ 95.990606] R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 [ 95.991109] R13: 0000000000000000 R14: 00007f60690c39c0 R15: 00007f60690c3700 [ 95.991538] [ 95.991638] Allocated by task 3398: [ 95.991884] save_stack+0x43/0xd0 [ 95.992091] kasan_kmalloc+0xad/0xe0 [ 95.992313] kmem_cache_alloc_trace+0x136/0x750 [ 95.992588] refill_pi_state_cache.part.6+0xa5/0x2f0 [ 95.992909] futex_requeue+0x1887/0x2370 [ 95.993147] do_futex+0x7f5/0x20d0 [ 95.993354] SyS_futex+0x260/0x390 [ 95.993674] entry_SYSCALL_64_fastpath+0x1f/0xbe [ 95.994098] [ 95.994245] Freed by task 3394: [ 95.994552] save_stack+0x43/0xd0 [ 95.994866] kasan_slab_free+0x71/0xc0 [ 95.995214] kfree+0xca/0x250 [ 95.995493] put_pi_state+0x3f4/0x560 [ 95.995835] unqueue_me_pi+0x4a/0xc0 [ 95.996174] futex_wait_requeue_pi.constprop.19+0xc7f/0x1300 [ 95.996691] do_futex+0x825/0x20d0 [ 95.997015] SyS_futex+0x260/0x390 [ 95.997316] entry_SYSCALL_64_fastpath+0x1f/0xbe [ 95.997724] [ 95.997876] The buggy address belongs to the object at ffff88006ae09700 [ 95.997876] which belongs to the cache kmalloc-256 of size 256 [ 95.999023] The buggy address is located 40 bytes inside of [ 95.999023] 256-byte region [ffff88006ae09700, ffff88006ae09800) [ 96.000158] The buggy address belongs to the page: [ 96.000955] page:ffffea0001ab8240 count:1 mapcount:0 mapping:ffff88006ae090c0 index:0xffff88006ae09d40 [ 96.001817] flags: 0x500000000000100(slab) [ 96.002204] raw: 0500000000000100 ffff88006ae090c0 ffff88006ae09d40 0000000100000003 [ 96.002953] raw: ffffea0001a819e0 ffffea0001b2b720 ffff88003e8007c0 0000000000000000 [ 96.003694] page dumped because: kasan: bad access detected [ 96.004240] [ 96.004387] Memory state around the buggy address: [ 96.004836] ffff88006ae09600: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 96.005538] ffff88006ae09680: fb fb fb fb fb fb fb fb fc fc fc fc fc fc fc fc [ 96.006245] >ffff88006ae09700: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 96.006913] ^ [ 96.007361] ffff88006ae09780: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 96.008023] ffff88006ae09800: fc fc fc fc fc fc fc fc fb fb fb fb fb fb fb fb [ 96.008679] ================================================================== [ 96.009344] Disabling lock debugging due to kernel taint [ 96.009847] Kernel panic - not syncing: panic_on_warn set ... [ 96.009847] [ 96.010521] CPU: 2 PID: 3395 Comm: syz-executor0 Tainted: G B 4.14.0-rc5-next-20171018+ #8 [ 96.011439] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS Bochs 01/01/2011 [ 96.012192] Call Trace: [ 96.012440] dump_stack+0x194/0x257 [ 96.012784] ? arch_local_irq_restore+0x53/0x53 [ 96.013221] ? kasan_end_report+0x32/0x50 [ 96.013611] ? lock_downgrade+0x990/0x990 [ 96.014002] ? vsnprintf+0x1ed/0x1900 [ 96.014365] ? __lock_acquire+0x3c50/0x3d50 [ 96.014765] panic+0x1e4/0x41c [ 96.015057] ? refcount_error_report+0x214/0x214 [ 96.015486] ? add_taint+0x40/0x50 [ 96.015805] ? add_taint+0x1c/0x50 [ 96.016125] ? __lock_acquire+0x3c9f/0x3d50 [ 96.016517] kasan_end_report+0x50/0x50 [ 96.016878] kasan_report+0x144/0x340 [ 96.017259] __asan_report_load8_noabort+0x14/0x20 [ 96.017767] __lock_acquire+0x3c9f/0x3d50 [ 96.018925] ? exit_pi_state_list+0x369/0x7a0 [ 96.019342] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 96.019827] ? __lock_acquire+0x6aa/0x3d50 [ 96.020211] ? __lock_acquire+0x6aa/0x3d50 [ 96.020609] ? __lock_acquire+0x6aa/0x3d50 [ 96.020971] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 96.021421] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 96.021797] ? check_noncircular+0x20/0x20 [ 96.022179] ? osq_unlock+0x350/0x350 [ 96.022545] ? __lock_acquire+0x6aa/0x3d50 [ 96.022962] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 96.023416] ? check_noncircular+0x20/0x20 [ 96.023676] ? pick_next_task_fair+0x46d/0x1830 [ 96.023952] ? check_noncircular+0x20/0x20 [ 96.024205] ? lock_release+0xa40/0xa40 [ 96.024446] ? switched_to_fair+0xb0/0xb0 [ 96.024705] ? __lock_is_held+0xb6/0x140 [ 96.024955] ? find_held_lock+0x35/0x1d0 [ 96.025201] lock_acquire+0x1d5/0x580 [ 96.025432] ? lock_acquire+0x1d5/0x580 [ 96.025725] ? exit_pi_state_list+0x369/0x7a0 [ 96.025990] ? lock_downgrade+0x990/0x990 [ 96.026234] ? lock_release+0xa40/0xa40 [ 96.026469] ? do_raw_spin_trylock+0x190/0x190 [ 96.026760] ? lock_downgrade+0x990/0x990 [ 96.027012] _raw_spin_lock_irq+0x5e/0x80 [ 96.027259] ? exit_pi_state_list+0x369/0x7a0 [ 96.027545] exit_pi_state_list+0x369/0x7a0 [ 96.027808] ? futex_wait_requeue_pi.constprop.19+0x1300/0x1300 [ 96.028162] ? lock_release+0xa40/0xa40 [ 96.028402] ? trace_event_raw_event_sched_switch+0x8a0/0x8a0 [ 96.028762] ? _raw_spin_unlock_irqrestore+0x31/0xba [ 96.029087] ? __might_sleep+0x95/0x190 [ 96.029322] ? __might_fault+0x188/0x1d0 [ 96.029606] ? do_raw_spin_trylock+0x190/0x190 [ 96.029935] mm_release+0x46d/0x590 [ 96.030197] ? do_raw_spin_trylock+0x190/0x190 [ 96.030524] ? mm_access+0x140/0x140 [ 96.030792] ? _raw_spin_unlock_irq+0x27/0x70 [ 96.031148] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 96.031517] ? trace_hardirqs_on+0xd/0x10 [ 96.031819] ? _raw_spin_unlock_irq+0x27/0x70 [ 96.032145] ? acct_collect+0x637/0x800 [ 96.032434] do_exit+0x481/0x1ad0 [ 96.032695] ? mm_update_next_owner+0x930/0x930 [ 96.033038] ? trace_event_raw_event_sched_switch+0x8a0/0x8a0 [ 96.033474] ? rcu_note_context_switch+0x710/0x710 [ 96.033840] ? futex_wait_setup+0x14a/0x3d0 [ 96.034151] ? __might_sleep+0x95/0x190 [ 96.034442] ? osq_unlock+0x350/0x350 [ 96.034720] ? futex_wait_queue_me+0x524/0x7e0 [ 96.035072] ? refill_pi_state_cache.part.6+0x2f0/0x2f0 [ 96.035483] ? get_futex_value_locked+0xc3/0xf0 [ 96.035884] ? futex_wait_setup+0x22e/0x3d0 [ 96.036235] ? check_noncircular+0x20/0x20 [ 96.036569] ? futex_wake+0x680/0x680 [ 96.036866] ? check_noncircular+0x20/0x20 [ 96.037177] ? check_noncircular+0x20/0x20 [ 96.037569] ? set_curr_task_fair+0xb0/0xb0 [ 96.037879] ? mmdrop+0x18/0x30 [ 96.038117] ? drop_futex_key_refs.isra.13+0x63/0xa0 [ 96.038538] ? futex_wait+0x69e/0x990 [ 96.038830] ? find_held_lock+0x35/0x1d0 [ 96.039127] ? get_signal+0x7ae/0x16d0 [ 96.039440] ? lock_downgrade+0x990/0x990 [ 96.039748] do_group_exit+0x149/0x400 [ 96.040050] ? __lock_is_held+0xb6/0x140 [ 96.040361] ? SyS_exit+0x30/0x30 [ 96.040616] ? _raw_spin_unlock_irq+0x27/0x70 [ 96.040941] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 96.041305] get_signal+0x73f/0x16d0 [ 96.041594] ? ptrace_notify+0x130/0x130 [ 96.041895] ? __pmd_alloc+0x4e0/0x4e0 [ 96.042188] ? find_held_lock+0x35/0x1d0 [ 96.042485] ? exit_robust_list+0x240/0x240 [ 96.042803] ? handle_mm_fault+0x248/0x8d0 [ 96.043156] ? find_held_lock+0x35/0x1d0 [ 96.043520] do_signal+0x94/0x1ee0 [ 96.043841] ? __do_page_fault+0x64c/0xd60 [ 96.044198] ? lock_downgrade+0x990/0x990 [ 96.044566] ? setup_sigcontext+0x7d0/0x7d0 [ 96.044951] ? handle_mm_fault+0x410/0x8d0 [ 96.045312] ? down_read_trylock+0xdb/0x170 [ 96.047325] ? __do_page_fault+0x31e/0xd60 [ 96.047728] ? __handle_mm_fault+0x39c0/0x39c0 [ 96.048150] ? vmacache_find+0x5f/0x280 [ 96.048472] ? __do_page_fault+0x3d6/0xd60 [ 96.048769] ? mm_fault_error+0x2c0/0x2c0 [ 96.049062] ? exit_to_usermode_loop+0x8c/0x310 [ 96.049407] exit_to_usermode_loop+0x214/0x310 [ 96.049750] ? trace_event_raw_event_sys_exit+0x260/0x260 [ 96.050147] ? __do_page_fault+0xd60/0xd60 [ 96.050475] ? do_syscall_64+0x4d0/0x8d0 [ 96.050763] syscall_return_slowpath+0x42f/0x510 [ 96.051103] ? prepare_exit_to_usermode+0x2d0/0x2d0 [ 96.051467] ? entry_SYSCALL_64_fastpath+0x91/0xbe [ 96.051809] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 96.052167] ? trace_hardirqs_on_thunk+0x1a/0x1c [ 96.052521] entry_SYSCALL_64_fastpath+0xbc/0xbe [ 96.052899] RIP: 0033:0x447c89 [ 96.053122] RSP: 002b:00007f60690c2ce8 EFLAGS: 00000246 ORIG_RAX: 00000000000000ca [ 96.053795] RAX: 0000000000000000 RBX: 00000000007481b8 RCX: 0000000000447c89 [ 96.054432] RDX: 0000000000000000 RSI: 0000000000000000 RDI: 00000000007481b8 [ 96.054950] RBP: 00000000007481b8 R08: 0000000000000000 R09: 0000000000748190 [ 96.055462] R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 [ 96.055973] R13: 0000000000000000 R14: 00007f60690c39c0 R15: 00007f60690c3700 [ 96.056555] Dumping ftrace buffer: [ 96.056814] (ftrace buffer empty) [ 96.057038] Kernel Offset: disabled [ 96.057255] Rebooting in 86400 seconds..