Debian GNU/Linux 7 syzkaller ttyS0 2017/10/26 14:22:57 parsed 1 programs 2017/10/26 14:22:57 executed programs: 0 syzkaller login: [ 29.081619] ================================================================== [ 29.082230] BUG: KASAN: use-after-free in __lock_acquire+0x3c9f/0x3d50 [ 29.082695] Read of size 8 at addr ffff88006bc37228 by task syz-executor0/3019 [ 29.083268] [ 29.083408] CPU: 0 PID: 3019 Comm: syz-executor0 Not tainted 4.14.0-rc5-next-20171018+ #8 [ 29.084015] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS Bochs 01/01/2011 [ 29.084654] Call Trace: [ 29.084862] dump_stack+0x194/0x257 [ 29.085169] ? arch_local_irq_restore+0x53/0x53 [ 29.085497] ? show_regs_print_info+0x65/0x65 [ 29.085808] ? print_irqtrace_events+0x270/0x270 [ 29.086198] ? print_irqtrace_events+0x270/0x270 [ 29.086571] ? __lock_acquire+0x3c9f/0x3d50 [ 29.086924] print_address_description+0x73/0x250 [ 29.087284] ? __lock_acquire+0x3c9f/0x3d50 [ 29.087626] kasan_report+0x25b/0x340 [ 29.087893] __asan_report_load8_noabort+0x14/0x20 [ 29.088273] __lock_acquire+0x3c9f/0x3d50 [ 29.088561] ? exit_pi_state_list+0x369/0x7a0 [ 29.088910] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 29.089328] ? __lock_acquire+0x6aa/0x3d50 [ 29.089676] ? __lock_acquire+0x6aa/0x3d50 [ 29.089972] ? __lock_acquire+0x6aa/0x3d50 [ 29.090306] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 29.090613] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 29.091282] ? check_noncircular+0x20/0x20 [ 29.091728] ? osq_unlock+0x350/0x350 [ 29.092006] ? __lock_acquire+0x6aa/0x3d50 [ 29.092316] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 29.092720] ? check_noncircular+0x20/0x20 [ 29.093051] ? __perf_event_task_sched_out+0x268/0x1400 [ 29.093430] ? check_noncircular+0x20/0x20 [ 29.093820] ? perf_event_sync_stat+0x5c0/0x5c0 [ 29.094188] ? __lock_is_held+0xb6/0x140 [ 29.094460] ? __perf_event_task_sched_in+0x200/0xc20 [ 29.094838] ? find_held_lock+0x35/0x1d0 [ 29.095131] lock_acquire+0x1d5/0x580 [ 29.095410] ? lock_acquire+0x1d5/0x580 [ 29.095697] ? exit_pi_state_list+0x369/0x7a0 [ 29.096021] ? lock_downgrade+0x990/0x990 [ 29.096324] ? lock_release+0xa40/0xa40 [ 29.096620] ? do_raw_spin_trylock+0x190/0x190 [ 29.096948] ? lock_downgrade+0x990/0x990 [ 29.097255] _raw_spin_lock_irq+0x5e/0x80 [ 29.097537] ? exit_pi_state_list+0x369/0x7a0 [ 29.097862] exit_pi_state_list+0x369/0x7a0 [ 29.098173] ? futex_wait_requeue_pi.constprop.19+0x1300/0x1300 [ 29.098612] ? lock_release+0xa40/0xa40 [ 29.098897] ? trace_event_raw_event_sched_switch+0x8a0/0x8a0 [ 29.099319] ? _raw_spin_unlock_irqrestore+0x31/0xba [ 29.099689] ? __might_sleep+0x95/0x190 [ 29.099976] ? __might_fault+0x188/0x1d0 [ 29.100270] ? do_raw_spin_trylock+0x190/0x190 [ 29.100599] mm_release+0x46d/0x590 [ 29.100860] ? do_raw_spin_trylock+0x190/0x190 [ 29.101192] ? mm_access+0x140/0x140 [ 29.101463] ? _raw_spin_unlock_irq+0x27/0x70 [ 29.101788] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 29.102146] ? trace_hardirqs_on+0xd/0x10 [ 29.102444] ? _raw_spin_unlock_irq+0x27/0x70 [ 29.102766] ? acct_collect+0x637/0x800 [ 29.103053] do_exit+0x481/0x1ad0 [ 29.103302] ? mm_update_next_owner+0x930/0x930 [ 29.103624] ? trace_event_raw_event_sched_switch+0x8a0/0x8a0 [ 29.104028] ? rcu_note_context_switch+0x710/0x710 [ 29.104363] ? futex_wait_setup+0x14a/0x3d0 [ 29.104659] ? __might_sleep+0x95/0x190 [ 29.104930] ? osq_unlock+0x350/0x350 [ 29.105248] ? futex_wait_queue_me+0x524/0x7e0 [ 29.105666] ? refill_pi_state_cache.part.6+0x2f0/0x2f0 [ 29.106052] ? memset+0x31/0x40 [ 29.106352] ? get_futex_value_locked+0xc3/0xf0 [ 29.106817] ? futex_wait_setup+0x22e/0x3d0 [ 29.107173] ? check_noncircular+0x20/0x20 [ 29.107539] ? futex_wake+0x680/0x680 [ 29.107900] ? mmdrop+0x18/0x30 [ 29.108226] ? drop_futex_key_refs.isra.13+0x63/0xa0 [ 29.108717] ? futex_wait+0x69e/0x990 [ 29.109032] ? find_held_lock+0x35/0x1d0 [ 29.109394] ? get_signal+0x7ae/0x16d0 [ 29.109739] ? lock_downgrade+0x990/0x990 [ 29.110029] do_group_exit+0x149/0x400 [ 29.110379] ? __lock_is_held+0xb6/0x140 [ 29.110685] ? SyS_exit+0x30/0x30 [ 29.110951] ? _raw_spin_unlock_irq+0x27/0x70 [ 29.111290] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 29.111635] get_signal+0x73f/0x16d0 [ 29.111900] ? ptrace_notify+0x130/0x130 [ 29.112237] ? vma_wants_writenotify+0x3b0/0x3b0 [ 29.112955] ? vma_link+0xe9/0x170 [ 29.113338] ? exit_robust_list+0x240/0x240 [ 29.113788] ? find_held_lock+0x35/0x1d0 [ 29.114245] do_signal+0x94/0x1ee0 [ 29.114586] ? vm_mmap_pgoff+0x1ed/0x280 [ 29.115013] ? should_fail+0x23b/0xa40 [ 29.115384] ? fault_create_debugfs_attr+0x1f0/0x1f0 [ 29.115914] ? setup_sigcontext+0x7d0/0x7d0 [ 29.116227] ? find_held_lock+0x35/0x1d0 [ 29.116535] ? lock_downgrade+0x990/0x990 [ 29.116820] ? down_read_killable+0x180/0x180 [ 29.117174] ? lock_release+0xa40/0xa40 [ 29.117530] ? trace_event_raw_event_sched_switch+0x8a0/0x8a0 [ 29.118077] ? vm_mmap_pgoff+0x1fc/0x280 [ 29.118464] ? exit_to_usermode_loop+0x8c/0x310 [ 29.118930] exit_to_usermode_loop+0x214/0x310 [ 29.119414] ? trace_event_raw_event_sys_exit+0x260/0x260 [ 29.119942] ? kasan_check_write+0x14/0x20 [ 29.120331] syscall_return_slowpath+0x42f/0x510 [ 29.120750] ? prepare_exit_to_usermode+0x2d0/0x2d0 [ 29.121213] ? entry_SYSCALL_64_fastpath+0x91/0xbe [ 29.121664] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 29.122010] ? trace_hardirqs_on_thunk+0x1a/0x1c [ 29.122423] entry_SYSCALL_64_fastpath+0xbc/0xbe [ 29.122843] RIP: 0033:0x447c89 [ 29.123064] RSP: 002b:00007fc7215a2ce8 EFLAGS: 00000246 ORIG_RAX: 00000000000000ca [ 29.123617] RAX: 0000000000000000 RBX: 00000000007481b8 RCX: 0000000000447c89 [ 29.124180] RDX: 0000000000000000 RSI: 0000000000000000 RDI: 00000000007481b8 [ 29.124845] RBP: 00000000007481b8 R08: 0000000000000000 R09: 0000000000748190 [ 29.125514] R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 [ 29.126054] R13: 0000000000000000 R14: 00007fc7215a39c0 R15: 00007fc7215a3700 [ 29.126742] [ 29.126928] Allocated by task 3020: [ 29.127277] save_stack+0x43/0xd0 [ 29.127580] kasan_kmalloc+0xad/0xe0 [ 29.127973] kmem_cache_alloc_trace+0x136/0x750 [ 29.128450] refill_pi_state_cache.part.6+0xa5/0x2f0 [ 29.128896] futex_requeue+0x1887/0x2370 [ 29.129298] do_futex+0x7f5/0x20d0 [ 29.129609] SyS_futex+0x260/0x390 [ 29.129921] entry_SYSCALL_64_fastpath+0x1f/0xbe [ 29.130404] [ 29.130547] Freed by task 3018: [ 29.130835] save_stack+0x43/0xd0 [ 29.131219] kasan_slab_free+0x71/0xc0 [ 29.131559] kfree+0xca/0x250 [ 29.131859] put_pi_state+0x3f4/0x560 [ 29.132216] unqueue_me_pi+0x4a/0xc0 [ 29.132578] futex_wait_requeue_pi.constprop.19+0xc7f/0x1300 [ 29.133140] do_futex+0x825/0x20d0 [ 29.133463] SyS_futex+0x260/0x390 [ 29.134242] entry_SYSCALL_64_fastpath+0x1f/0xbe [ 29.134722] [ 29.134884] The buggy address belongs to the object at ffff88006bc37200 [ 29.134884] which belongs to the cache kmalloc-256 of size 256 [ 29.136047] The buggy address is located 40 bytes inside of [ 29.136047] 256-byte region [ffff88006bc37200, ffff88006bc37300) [ 29.137112] The buggy address belongs to the page: [ 29.137631] page:ffffea0001af0dc0 count:1 mapcount:0 mapping:ffff88006bc370c0 index:0x0 [ 29.138360] flags: 0x500000000000100(slab) [ 29.138808] raw: 0500000000000100 ffff88006bc370c0 0000000000000000 000000010000000c [ 29.139571] raw: ffffea0001b1fc60 ffffea0001af09e0 ffff88003e8007c0 0000000000000000 [ 29.140354] page dumped because: kasan: bad access detected [ 29.140903] [ 29.141093] Memory state around the buggy address: [ 29.141589] ffff88006bc37100: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 29.142380] ffff88006bc37180: fb fb fb fb fb fb fb fb fc fc fc fc fc fc fc fc [ 29.143169] >ffff88006bc37200: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 29.143863] ^ [ 29.144213] ffff88006bc37280: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 29.144720] ffff88006bc37300: fc fc fc fc fc fc fc fc 00 00 00 00 00 00 00 00 [ 29.145225] ================================================================== [ 29.145832] Disabling lock debugging due to kernel taint [ 29.146320] Kernel panic - not syncing: panic_on_warn set ... [ 29.146320] [ 29.147040] CPU: 0 PID: 3019 Comm: syz-executor0 Tainted: G B 4.14.0-rc5-next-20171018+ #8 [ 29.147980] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS Bochs 01/01/2011 [ 29.148717] Call Trace: [ 29.149011] dump_stack+0x194/0x257 [ 29.149339] ? arch_local_irq_restore+0x53/0x53 [ 29.149811] ? kasan_end_report+0x32/0x50 [ 29.150275] ? lock_downgrade+0x990/0x990 [ 29.150661] ? vsnprintf+0x1ed/0x1900 [ 29.151030] ? __lock_acquire+0x3c50/0x3d50 [ 29.151497] panic+0x1e4/0x41c [ 29.151865] ? refcount_error_report+0x214/0x214 [ 29.152209] ? add_taint+0x40/0x50 [ 29.152456] ? add_taint+0x1c/0x50 [ 29.152701] ? __lock_acquire+0x3c9f/0x3d50 [ 29.153003] kasan_end_report+0x50/0x50 [ 29.153365] kasan_report+0x144/0x340 [ 29.153761] __asan_report_load8_noabort+0x14/0x20 [ 29.154109] __lock_acquire+0x3c9f/0x3d50 [ 29.154426] ? exit_pi_state_list+0x369/0x7a0 [ 29.154795] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 29.155551] ? __lock_acquire+0x6aa/0x3d50 [ 29.155959] ? __lock_acquire+0x6aa/0x3d50 [ 29.156267] ? __lock_acquire+0x6aa/0x3d50 [ 29.156516] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 29.156820] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 29.157221] ? check_noncircular+0x20/0x20 [ 29.157601] ? osq_unlock+0x350/0x350 [ 29.157944] ? __lock_acquire+0x6aa/0x3d50 [ 29.158304] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 29.158648] ? check_noncircular+0x20/0x20 [ 29.158899] ? __perf_event_task_sched_out+0x268/0x1400 [ 29.159236] ? check_noncircular+0x20/0x20 [ 29.159500] ? perf_event_sync_stat+0x5c0/0x5c0 [ 29.159774] ? __lock_is_held+0xb6/0x140 [ 29.160020] ? __perf_event_task_sched_in+0x200/0xc20 [ 29.160353] ? find_held_lock+0x35/0x1d0 [ 29.160592] lock_acquire+0x1d5/0x580 [ 29.160816] ? lock_acquire+0x1d5/0x580 [ 29.161125] ? exit_pi_state_list+0x369/0x7a0 [ 29.161447] ? lock_downgrade+0x990/0x990 [ 29.161748] ? lock_release+0xa40/0xa40 [ 29.162054] ? do_raw_spin_trylock+0x190/0x190 [ 29.162419] ? lock_downgrade+0x990/0x990 [ 29.162718] _raw_spin_lock_irq+0x5e/0x80 [ 29.163002] ? exit_pi_state_list+0x369/0x7a0 [ 29.163315] exit_pi_state_list+0x369/0x7a0 [ 29.163681] ? futex_wait_requeue_pi.constprop.19+0x1300/0x1300 [ 29.164157] ? lock_release+0xa40/0xa40 [ 29.164429] ? trace_event_raw_event_sched_switch+0x8a0/0x8a0 [ 29.164885] ? _raw_spin_unlock_irqrestore+0x31/0xba [ 29.165302] ? __might_sleep+0x95/0x190 [ 29.165629] ? __might_fault+0x188/0x1d0 [ 29.165946] ? do_raw_spin_trylock+0x190/0x190 [ 29.166307] mm_release+0x46d/0x590 [ 29.166570] ? do_raw_spin_trylock+0x190/0x190 [ 29.166883] ? mm_access+0x140/0x140 [ 29.167145] ? _raw_spin_unlock_irq+0x27/0x70 [ 29.167454] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 29.167796] ? trace_hardirqs_on+0xd/0x10 [ 29.168091] ? _raw_spin_unlock_irq+0x27/0x70 [ 29.168399] ? acct_collect+0x637/0x800 [ 29.168672] do_exit+0x481/0x1ad0 [ 29.168910] ? mm_update_next_owner+0x930/0x930 [ 29.169240] ? trace_event_raw_event_sched_switch+0x8a0/0x8a0 [ 29.169758] ? rcu_note_context_switch+0x710/0x710 [ 29.170157] ? futex_wait_setup+0x14a/0x3d0 [ 29.170508] ? __might_sleep+0x95/0x190 [ 29.170833] ? osq_unlock+0x350/0x350 [ 29.171090] ? futex_wait_queue_me+0x524/0x7e0 [ 29.171360] ? refill_pi_state_cache.part.6+0x2f0/0x2f0 [ 29.171675] ? memset+0x31/0x40 [ 29.171871] ? get_futex_value_locked+0xc3/0xf0 [ 29.172154] ? futex_wait_setup+0x22e/0x3d0 [ 29.172409] ? check_noncircular+0x20/0x20 [ 29.172658] ? futex_wake+0x680/0x680 [ 29.172897] ? mmdrop+0x18/0x30 [ 29.173178] ? drop_futex_key_refs.isra.13+0x63/0xa0 [ 29.173531] ? futex_wait+0x69e/0x990 [ 29.173794] ? find_held_lock+0x35/0x1d0 [ 29.174081] ? get_signal+0x7ae/0x16d0 [ 29.174362] ? lock_downgrade+0x990/0x990 [ 29.174648] do_group_exit+0x149/0x400 [ 29.174914] ? __lock_is_held+0xb6/0x140 [ 29.175201] ? SyS_exit+0x30/0x30 [ 29.175481] ? _raw_spin_unlock_irq+0x27/0x70 [ 29.175799] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 29.176149] get_signal+0x73f/0x16d0 [ 29.176695] ? ptrace_notify+0x130/0x130 [ 29.176980] ? vma_wants_writenotify+0x3b0/0x3b0 [ 29.177314] ? vma_link+0xe9/0x170 [ 29.177573] ? exit_robust_list+0x240/0x240 [ 29.177871] ? find_held_lock+0x35/0x1d0 [ 29.178160] do_signal+0x94/0x1ee0 [ 29.178459] ? vm_mmap_pgoff+0x1ed/0x280 [ 29.178749] ? should_fail+0x23b/0xa40 [ 29.179023] ? fault_create_debugfs_attr+0x1f0/0x1f0 [ 29.179373] ? setup_sigcontext+0x7d0/0x7d0 [ 29.179682] ? find_held_lock+0x35/0x1d0 [ 29.179962] ? lock_downgrade+0x990/0x990 [ 29.180306] ? down_read_killable+0x180/0x180 [ 29.180613] ? lock_release+0xa40/0xa40 [ 29.180921] ? trace_event_raw_event_sched_switch+0x8a0/0x8a0 [ 29.181341] ? vm_mmap_pgoff+0x1fc/0x280 [ 29.181620] ? exit_to_usermode_loop+0x8c/0x310 [ 29.181953] exit_to_usermode_loop+0x214/0x310 [ 29.182280] ? trace_event_raw_event_sys_exit+0x260/0x260 [ 29.182660] ? kasan_check_write+0x14/0x20 [ 29.182964] syscall_return_slowpath+0x42f/0x510 [ 29.183300] ? prepare_exit_to_usermode+0x2d0/0x2d0 [ 29.183727] ? entry_SYSCALL_64_fastpath+0x91/0xbe [ 29.184107] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 29.184449] ? trace_hardirqs_on_thunk+0x1a/0x1c [ 29.184778] entry_SYSCALL_64_fastpath+0xbc/0xbe [ 29.185126] RIP: 0033:0x447c89 [ 29.185345] RSP: 002b:00007fc7215a2ce8 EFLAGS: 00000246 ORIG_RAX: 00000000000000ca [ 29.185867] RAX: 0000000000000000 RBX: 00000000007481b8 RCX: 0000000000447c89 [ 29.186379] RDX: 0000000000000000 RSI: 0000000000000000 RDI: 00000000007481b8 [ 29.186872] RBP: 00000000007481b8 R08: 0000000000000000 R09: 0000000000748190 [ 29.187324] R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 [ 29.187744] R13: 0000000000000000 R14: 00007fc7215a39c0 R15: 00007fc7215a3700 [ 29.188213] Dumping ftrace buffer: [ 29.188428] (ftrace buffer empty) [ 29.188645] Kernel Offset: disabled [ 29.188857] Rebooting in 86400 seconds..