2017/10/25 18:49:45 parsed 1 programs 2017/10/25 18:49:45 executed programs: 0 syzkaller login: [ 17.172888] ================================================================== [ 17.173484] BUG: KASAN: use-after-free in __lock_acquire+0x3c9f/0x3d50 [ 17.173980] Read of size 8 at addr ffff88006b3e7d28 by task syz-executor0/3023 [ 17.174533] [ 17.174668] CPU: 1 PID: 3023 Comm: syz-executor0 Not tainted 4.14.0-rc5-next-20171018+ #8 [ 17.175298] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS Bochs 01/01/2011 [ 17.175897] Call Trace: [ 17.176101] dump_stack+0x194/0x257 [ 17.176362] ? arch_local_irq_restore+0x53/0x53 [ 17.176707] ? show_regs_print_info+0x65/0x65 [ 17.177054] ? print_irqtrace_events+0x270/0x270 [ 17.177399] ? print_irqtrace_events+0x270/0x270 [ 17.177751] ? __lock_acquire+0x3c9f/0x3d50 [ 17.178071] print_address_description+0x73/0x250 [ 17.178417] ? __lock_acquire+0x3c9f/0x3d50 [ 17.178739] kasan_report+0x25b/0x340 [ 17.179017] __asan_report_load8_noabort+0x14/0x20 [ 17.179376] __lock_acquire+0x3c9f/0x3d50 [ 17.179675] ? exit_pi_state_list+0x369/0x7a0 [ 17.180012] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 17.180393] ? __lock_acquire+0x6aa/0x3d50 [ 17.180698] ? __lock_acquire+0x6aa/0x3d50 [ 17.181024] ? __lock_acquire+0x6aa/0x3d50 [ 17.181343] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 17.181722] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 17.182115] ? check_noncircular+0x20/0x20 [ 17.182423] ? osq_unlock+0x350/0x350 [ 17.182695] ? __lock_acquire+0x6aa/0x3d50 [ 17.183018] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 17.183396] ? check_noncircular+0x20/0x20 [ 17.183704] ? print_irqtrace_events+0x270/0x270 [ 17.184067] ? check_noncircular+0x20/0x20 [ 17.184373] ? lock_release+0xa40/0xa40 [ 17.184657] ? switched_to_fair+0xb0/0xb0 [ 17.184967] ? __lock_is_held+0xb6/0x140 [ 17.185278] ? find_held_lock+0x35/0x1d0 [ 17.185572] lock_acquire+0x1d5/0x580 [ 17.185857] ? lock_acquire+0x1d5/0x580 [ 17.186154] ? exit_pi_state_list+0x369/0x7a0 [ 17.186479] ? lock_downgrade+0x990/0x990 [ 17.186777] ? lock_release+0xa40/0xa40 [ 17.187084] ? do_raw_spin_trylock+0x190/0x190 [ 17.187413] ? lock_downgrade+0x990/0x990 [ 17.187715] _raw_spin_lock_irq+0x5e/0x80 [ 17.188032] ? exit_pi_state_list+0x369/0x7a0 [ 17.188357] exit_pi_state_list+0x369/0x7a0 [ 17.188672] ? futex_wait_requeue_pi.constprop.19+0x1300/0x1300 [ 17.189133] ? lock_release+0xa40/0xa40 [ 17.189420] ? trace_event_raw_event_sched_switch+0x8a0/0x8a0 [ 17.189844] ? _raw_spin_unlock_irqrestore+0x31/0xba [ 17.190238] ? __might_sleep+0x95/0x190 [ 17.190561] ? __might_fault+0x188/0x1d0 [ 17.190955] ? do_raw_spin_trylock+0x190/0x190 [ 17.191306] mm_release+0x46d/0x590 [ 17.191569] ? do_raw_spin_trylock+0x190/0x190 [ 17.191898] ? mm_access+0x140/0x140 [ 17.192184] ? _raw_spin_unlock_irq+0x27/0x70 [ 17.192506] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 17.192867] ? trace_hardirqs_on+0xd/0x10 [ 17.193423] ? _raw_spin_unlock_irq+0x27/0x70 [ 17.193760] ? acct_collect+0x637/0x800 [ 17.194080] do_exit+0x481/0x1ad0 [ 17.194332] ? mm_update_next_owner+0x930/0x930 [ 17.194679] ? trace_event_raw_event_sched_switch+0x8a0/0x8a0 [ 17.195136] ? rcu_note_context_switch+0x710/0x710 [ 17.195506] ? futex_wait_setup+0x14a/0x3d0 [ 17.195826] ? __might_sleep+0x95/0x190 [ 17.196140] ? find_held_lock+0x35/0x1d0 [ 17.196443] ? futex_wait+0x402/0x990 [ 17.196721] ? lock_downgrade+0x990/0x990 [ 17.197037] ? do_raw_spin_trylock+0x190/0x190 [ 17.197386] ? check_noncircular+0x20/0x20 [ 17.197698] ? futex_wake+0x680/0x680 [ 17.197979] ? mmdrop+0x18/0x30 [ 17.198244] ? drop_futex_key_refs.isra.13+0x63/0xa0 [ 17.198614] ? futex_wait+0x69e/0x990 [ 17.198890] ? find_held_lock+0x35/0x1d0 [ 17.199217] ? get_signal+0x7ae/0x16d0 [ 17.199498] ? lock_downgrade+0x990/0x990 [ 17.199798] do_group_exit+0x149/0x400 [ 17.200091] ? __lock_is_held+0xb6/0x140 [ 17.200393] ? SyS_exit+0x30/0x30 [ 17.200643] ? _raw_spin_unlock_irq+0x27/0x70 [ 17.200968] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 17.201358] get_signal+0x73f/0x16d0 [ 17.201634] ? ptrace_notify+0x130/0x130 [ 17.201927] ? vma_wants_writenotify+0x3b0/0x3b0 [ 17.202293] ? vma_link+0xe9/0x170 [ 17.202552] ? exit_robust_list+0x240/0x240 [ 17.202861] ? find_held_lock+0x35/0x1d0 [ 17.203164] do_signal+0x94/0x1ee0 [ 17.203434] ? vm_mmap_pgoff+0x1ed/0x280 [ 17.203727] ? should_fail+0x23b/0xa40 [ 17.204025] ? fault_create_debugfs_attr+0x1f0/0x1f0 [ 17.204409] ? setup_sigcontext+0x7d0/0x7d0 [ 17.204722] ? find_held_lock+0x35/0x1d0 [ 17.205033] ? lock_downgrade+0x990/0x990 [ 17.205349] ? down_read_killable+0x180/0x180 [ 17.205696] ? lock_release+0xa40/0xa40 [ 17.205992] ? trace_event_raw_event_sched_switch+0x8a0/0x8a0 [ 17.206454] ? vm_mmap_pgoff+0x1fc/0x280 [ 17.206755] ? exit_to_usermode_loop+0x8c/0x310 [ 17.207108] exit_to_usermode_loop+0x214/0x310 [ 17.207459] ? trace_event_raw_event_sys_exit+0x260/0x260 [ 17.207871] ? kasan_check_write+0x14/0x20 [ 17.208197] syscall_return_slowpath+0x42f/0x510 [ 17.208555] ? prepare_exit_to_usermode+0x2d0/0x2d0 [ 17.208919] ? entry_SYSCALL_64_fastpath+0x91/0xbe [ 17.209300] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 17.209663] ? trace_hardirqs_on_thunk+0x1a/0x1c [ 17.210023] entry_SYSCALL_64_fastpath+0xbc/0xbe [ 17.210387] RIP: 0033:0x447c89 [ 17.210616] RSP: 002b:00007fbb7cd08ce8 EFLAGS: 00000246 ORIG_RAX: 00000000000000ca [ 17.211181] RAX: fffffffffffffe00 RBX: 0000000000748048 RCX: 0000000000447c89 [ 17.211720] RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000748048 [ 17.212340] RBP: 0000000000748048 R08: 0000000000000000 R09: 0000000000748020 [ 17.212863] R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 [ 17.213689] R13: 0000000000000000 R14: 00007fbb7cd099c0 R15: 00007fbb7cd09700 [ 17.214251] [ 17.214373] Allocated by task 3025: [ 17.214653] save_stack+0x43/0xd0 [ 17.214909] kasan_kmalloc+0xad/0xe0 [ 17.215189] kmem_cache_alloc_trace+0x136/0x750 [ 17.215553] refill_pi_state_cache.part.6+0xa5/0x2f0 [ 17.215923] futex_requeue+0x1887/0x2370 [ 17.216226] do_futex+0x7f5/0x20d0 [ 17.216492] SyS_futex+0x260/0x390 [ 17.216748] entry_SYSCALL_64_fastpath+0x1f/0xbe [ 17.217108] [ 17.217228] Freed by task 3024: [ 17.217474] save_stack+0x43/0xd0 [ 17.217726] kasan_slab_free+0x71/0xc0 [ 17.218010] kfree+0xca/0x250 [ 17.218249] put_pi_state+0x3f4/0x560 [ 17.218533] unqueue_me_pi+0x4a/0xc0 [ 17.218802] futex_wait_requeue_pi.constprop.19+0xc7f/0x1300 [ 17.219232] do_futex+0x825/0x20d0 [ 17.219500] SyS_futex+0x260/0x390 [ 17.219757] entry_SYSCALL_64_fastpath+0x1f/0xbe [ 17.220108] [ 17.220226] The buggy address belongs to the object at ffff88006b3e7d00 [ 17.220226] which belongs to the cache kmalloc-256 of size 256 [ 17.221150] The buggy address is located 40 bytes inside of [ 17.221150] 256-byte region [ffff88006b3e7d00, ffff88006b3e7e00) [ 17.222188] The buggy address belongs to the page: [ 17.222540] page:ffffea0001acf9c0 count:1 mapcount:0 mapping:ffff88006b3e7080 index:0xffff88006b3e76c0 [ 17.223241] flags: 0x500000000000100(slab) [ 17.223556] raw: 0500000000000100 ffff88006b3e7080 ffff88006b3e76c0 0000000100000009 [ 17.224150] raw: ffffea0001b397e0 ffffea0001acfb20 ffff88003e8007c0 0000000000000000 [ 17.224723] page dumped because: kasan: bad access detected [ 17.225145] [ 17.225265] Memory state around the buggy address: [ 17.225629] ffff88006b3e7c00: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 17.226185] ffff88006b3e7c80: fb fb fb fb fb fb fb fb fc fc fc fc fc fc fc fc [ 17.226728] >ffff88006b3e7d00: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 17.227273] ^ [ 17.227618] ffff88006b3e7d80: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 17.228165] ffff88006b3e7e00: fc fc fc fc fc fc fc fc 00 00 00 00 00 00 00 00 [ 17.228699] ================================================================== [ 17.229257] Disabling lock debugging due to kernel taint [ 17.229654] Kernel panic - not syncing: panic_on_warn set ... [ 17.229654] [ 17.230239] CPU: 1 PID: 3023 Comm: syz-executor0 Tainted: G B 4.14.0-rc5-next-20171018+ #8 [ 17.230937] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS Bochs 01/01/2011 [ 17.231543] Call Trace: [ 17.231739] dump_stack+0x194/0x257 [ 17.232006] ? arch_local_irq_restore+0x53/0x53 [ 17.232350] ? kasan_end_report+0x32/0x50 [ 17.232657] ? lock_downgrade+0x990/0x990 [ 17.232968] ? vsnprintf+0x1ed/0x1900 [ 17.233301] ? __lock_acquire+0x3c50/0x3d50 [ 17.233932] panic+0x1e4/0x41c [ 17.234170] ? refcount_error_report+0x214/0x214 [ 17.234526] ? add_taint+0x40/0x50 [ 17.234789] ? add_taint+0x1c/0x50 [ 17.235052] ? __lock_acquire+0x3c9f/0x3d50 [ 17.235372] kasan_end_report+0x50/0x50 [ 17.235666] kasan_report+0x144/0x340 [ 17.235948] __asan_report_load8_noabort+0x14/0x20 [ 17.236311] __lock_acquire+0x3c9f/0x3d50 [ 17.236620] ? exit_pi_state_list+0x369/0x7a0 [ 17.237050] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 17.237440] ? __lock_acquire+0x6aa/0x3d50 [ 17.237757] ? __lock_acquire+0x6aa/0x3d50 [ 17.238074] ? __lock_acquire+0x6aa/0x3d50 [ 17.238393] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 17.238783] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 17.239172] ? check_noncircular+0x20/0x20 [ 17.239493] ? osq_unlock+0x350/0x350 [ 17.239780] ? __lock_acquire+0x6aa/0x3d50 [ 17.240099] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 17.240569] ? check_noncircular+0x20/0x20 [ 17.240877] ? print_irqtrace_events+0x270/0x270 [ 17.241308] ? check_noncircular+0x20/0x20 [ 17.241689] ? lock_release+0xa40/0xa40 [ 17.242046] ? switched_to_fair+0xb0/0xb0 [ 17.242419] ? __lock_is_held+0xb6/0x140 [ 17.242722] ? find_held_lock+0x35/0x1d0 [ 17.243021] lock_acquire+0x1d5/0x580 [ 17.243300] ? lock_acquire+0x1d5/0x580 [ 17.243590] ? exit_pi_state_list+0x369/0x7a0 [ 17.243994] ? lock_downgrade+0x990/0x990 [ 17.244367] ? lock_release+0xa40/0xa40 [ 17.244722] ? do_raw_spin_trylock+0x190/0x190 [ 17.245136] ? lock_downgrade+0x990/0x990 [ 17.245511] _raw_spin_lock_irq+0x5e/0x80 [ 17.245882] ? exit_pi_state_list+0x369/0x7a0 [ 17.246279] exit_pi_state_list+0x369/0x7a0 [ 17.246669] ? futex_wait_requeue_pi.constprop.19+0x1300/0x1300 [ 17.247212] ? lock_release+0xa40/0xa40 [ 17.247570] ? trace_event_raw_event_sched_switch+0x8a0/0x8a0 [ 17.248095] ? _raw_spin_unlock_irqrestore+0x31/0xba [ 17.248554] ? __might_sleep+0x95/0x190 [ 17.248910] ? __might_fault+0x188/0x1d0 [ 17.249292] ? do_raw_spin_trylock+0x190/0x190 [ 17.249719] mm_release+0x46d/0x590 [ 17.250056] ? do_raw_spin_trylock+0x190/0x190 [ 17.250482] ? mm_access+0x140/0x140 [ 17.250828] ? _raw_spin_unlock_irq+0x27/0x70 [ 17.251301] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 17.251768] ? trace_hardirqs_on+0xd/0x10 [ 17.252153] ? _raw_spin_unlock_irq+0x27/0x70 [ 17.252560] ? acct_collect+0x637/0x800 [ 17.252934] do_exit+0x481/0x1ad0 [ 17.253258] ? mm_update_next_owner+0x930/0x930 [ 17.253694] ? trace_event_raw_event_sched_switch+0x8a0/0x8a0 [ 17.254243] ? rcu_note_context_switch+0x710/0x710 [ 17.254701] ? futex_wait_setup+0x14a/0x3d0 [ 17.255702] ? __might_sleep+0x95/0x190 [ 17.256075] ? find_held_lock+0x35/0x1d0 [ 17.256382] ? futex_wait+0x402/0x990 [ 17.256653] ? lock_downgrade+0x990/0x990 [ 17.256959] ? do_raw_spin_trylock+0x190/0x190 [ 17.257402] ? check_noncircular+0x20/0x20 [ 17.257835] ? futex_wake+0x680/0x680 [ 17.258217] ? mmdrop+0x18/0x30 [ 17.258495] ? drop_futex_key_refs.isra.13+0x63/0xa0 [ 17.258948] ? futex_wait+0x69e/0x990 [ 17.259319] ? find_held_lock+0x35/0x1d0 [ 17.259754] ? get_signal+0x7ae/0x16d0 [ 17.260155] ? lock_downgrade+0x990/0x990 [ 17.260635] do_group_exit+0x149/0x400 [ 17.261043] ? __lock_is_held+0xb6/0x140 [ 17.261420] ? SyS_exit+0x30/0x30 [ 17.261735] ? _raw_spin_unlock_irq+0x27/0x70 [ 17.262096] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 17.262493] get_signal+0x73f/0x16d0 [ 17.262787] ? ptrace_notify+0x130/0x130 [ 17.263103] ? vma_wants_writenotify+0x3b0/0x3b0 [ 17.263440] ? vma_link+0xe9/0x170 [ 17.263721] ? exit_robust_list+0x240/0x240 [ 17.264069] ? find_held_lock+0x35/0x1d0 [ 17.264372] do_signal+0x94/0x1ee0 [ 17.264652] ? vm_mmap_pgoff+0x1ed/0x280 [ 17.264987] ? should_fail+0x23b/0xa40 [ 17.265257] ? fault_create_debugfs_attr+0x1f0/0x1f0 [ 17.265616] ? setup_sigcontext+0x7d0/0x7d0 [ 17.266014] ? find_held_lock+0x35/0x1d0 [ 17.266331] ? lock_downgrade+0x990/0x990 [ 17.266691] ? down_read_killable+0x180/0x180 [ 17.267037] ? lock_release+0xa40/0xa40 [ 17.267319] ? trace_event_raw_event_sched_switch+0x8a0/0x8a0 [ 17.267839] ? vm_mmap_pgoff+0x1fc/0x280 [ 17.268199] ? exit_to_usermode_loop+0x8c/0x310 [ 17.268585] exit_to_usermode_loop+0x214/0x310 [ 17.268984] ? trace_event_raw_event_sys_exit+0x260/0x260 [ 17.269427] ? kasan_check_write+0x14/0x20 [ 17.269755] syscall_return_slowpath+0x42f/0x510 [ 17.270132] ? prepare_exit_to_usermode+0x2d0/0x2d0 [ 17.270644] ? entry_SYSCALL_64_fastpath+0x91/0xbe [ 17.271006] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 17.271504] ? trace_hardirqs_on_thunk+0x1a/0x1c [ 17.272033] entry_SYSCALL_64_fastpath+0xbc/0xbe [ 17.272472] RIP: 0033:0x447c89 [ 17.272782] RSP: 002b:00007fbb7cd08ce8 EFLAGS: 00000246 ORIG_RAX: 00000000000000ca [ 17.273553] RAX: fffffffffffffe00 RBX: 0000000000748048 RCX: 0000000000447c89 [ 17.274212] RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000748048 [ 17.274933] RBP: 0000000000748048 R08: 0000000000000000 R09: 0000000000748020 [ 17.275652] R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 [ 17.276654] R13: 0000000000000000 R14: 00007fbb7cd099c0 R15: 00007fbb7cd09700 [ 17.277202] Dumping ftrace buffer: [ 17.277519] (ftrace buffer empty) [ 17.277817] Kernel Offset: disabled [ 17.278072] Rebooting in 86400 seconds..