syzkaller login: [ 332.768746] kworker/dying (6) used greatest stack depth: 15984 bytes left 2017/10/26 18:41:05 parsed 1 programs 2017/10/26 18:41:05 executed programs: 0 2017/10/26 18:41:10 executed programs: 80 2017/10/26 18:41:15 executed programs: 159 2017/10/26 18:41:20 executed programs: 241 2017/10/26 18:41:25 executed programs: 320 2017/10/26 18:41:30 executed programs: 402 2017/10/26 18:41:35 executed programs: 480 2017/10/26 18:41:40 executed programs: 558 2017/10/26 18:41:45 executed programs: 638 2017/10/26 18:41:50 executed programs: 718 2017/10/26 18:41:55 executed programs: 801 2017/10/26 18:42:00 executed programs: 885 2017/10/26 18:42:05 executed programs: 968 2017/10/26 18:42:10 executed programs: 1052 2017/10/26 18:42:15 executed programs: 1135 2017/10/26 18:42:20 executed programs: 1216 2017/10/26 18:42:25 executed programs: 1298 2017/10/26 18:42:30 executed programs: 1381 2017/10/26 18:42:35 executed programs: 1464 2017/10/26 18:42:40 executed programs: 1548 2017/10/26 18:42:46 executed programs: 1630 2017/10/26 18:42:51 executed programs: 1712 2017/10/26 18:42:56 executed programs: 1790 2017/10/26 18:43:01 executed programs: 1867 2017/10/26 18:43:06 executed programs: 1946 2017/10/26 18:43:11 executed programs: 2029 2017/10/26 18:43:16 executed programs: 2112 2017/10/26 18:43:21 executed programs: 2195 2017/10/26 18:43:26 executed programs: 2279 2017/10/26 18:43:31 executed programs: 2364 2017/10/26 18:43:36 executed programs: 2446 2017/10/26 18:43:41 executed programs: 2526 2017/10/26 18:43:46 executed programs: 2610 2017/10/26 18:43:51 executed programs: 2691 2017/10/26 18:43:56 executed programs: 2776 2017/10/26 18:44:01 executed programs: 2856 2017/10/26 18:44:06 executed programs: 2939 2017/10/26 18:44:11 executed programs: 3016 2017/10/26 18:44:16 executed programs: 3094 2017/10/26 18:44:21 executed programs: 3174 2017/10/26 18:44:26 executed programs: 3257 2017/10/26 18:44:31 executed programs: 3341 2017/10/26 18:44:36 executed programs: 3424 2017/10/26 18:44:41 executed programs: 3508 2017/10/26 18:44:46 executed programs: 3589 2017/10/26 18:44:51 executed programs: 3669 [ 674.836173] ================================================================== [ 674.836886] BUG: KASAN: use-after-free in __lock_acquire+0x3c9f/0x3d50 [ 674.837475] Read of size 8 at addr ffff88003c38ca28 by task syz-executor0/17981 [ 674.838124] [ 674.838296] CPU: 2 PID: 17981 Comm: syz-executor0 Not tainted 4.14.0-rc5-next-20171018+ #8 [ 674.839052] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS Bochs 01/01/2011 [ 674.840222] Call Trace: [ 674.840521] dump_stack+0x194/0x257 [ 674.840905] ? arch_local_irq_restore+0x53/0x53 [ 674.841397] ? show_regs_print_info+0x65/0x65 [ 674.841869] ? print_irqtrace_events+0x270/0x270 [ 674.842369] ? print_irqtrace_events+0x270/0x270 [ 674.842864] ? __lock_acquire+0x3c9f/0x3d50 [ 674.843603] print_address_description+0x73/0x250 [ 674.844126] ? __lock_acquire+0x3c9f/0x3d50 [ 674.844580] kasan_report+0x25b/0x340 [ 674.844982] __asan_report_load8_noabort+0x14/0x20 [ 674.845481] __lock_acquire+0x3c9f/0x3d50 [ 674.845928] ? exit_pi_state_list+0x369/0x7a0 [ 674.846408] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 674.846952] ? mark_held_locks+0xaf/0x100 [ 674.847679] ? retint_kernel+0x10/0x10 [ 674.848099] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 674.851433] ? trace_hardirqs_on_thunk+0x1a/0x1c [ 674.852210] ? retint_kernel+0x10/0x10 [ 674.852561] ? exit_pi_state_list+0x361/0x7a0 [ 674.852964] ? queued_spin_lock_slowpath+0x1c4/0xfa0 [ 674.853332] ? check_noncircular+0x20/0x20 [ 674.853592] ? osq_unlock+0x350/0x350 [ 674.853869] ? __lock_acquire+0x6aa/0x3d50 [ 674.854253] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 674.854716] ? check_noncircular+0x20/0x20 [ 674.855072] ? print_irqtrace_events+0x270/0x270 [ 674.858081] ? check_noncircular+0x20/0x20 [ 674.858480] ? lock_release+0xa40/0xa40 [ 674.858852] ? switched_to_fair+0xb0/0xb0 [ 674.859228] ? __lock_is_held+0xb6/0x140 [ 674.859586] ? find_held_lock+0x35/0x1d0 [ 674.859952] lock_acquire+0x1d5/0x580 [ 674.860294] ? lock_acquire+0x1d5/0x580 [ 674.860648] ? exit_pi_state_list+0x369/0x7a0 [ 674.861043] ? lock_downgrade+0x990/0x990 [ 674.861419] ? lock_release+0xa40/0xa40 [ 674.861770] ? do_raw_spin_trylock+0x190/0x190 [ 674.862115] ? lock_downgrade+0x990/0x990 [ 674.862403] _raw_spin_lock_irq+0x5e/0x80 [ 674.862671] ? exit_pi_state_list+0x369/0x7a0 [ 674.863021] exit_pi_state_list+0x369/0x7a0 [ 674.863446] ? futex_wait_requeue_pi.constprop.19+0x1300/0x1300 [ 674.863992] ? lock_release+0xa40/0xa40 [ 674.864340] ? trace_event_raw_event_sched_switch+0x8a0/0x8a0 [ 674.864909] ? _raw_spin_unlock_irqrestore+0x31/0xba [ 674.865374] ? __might_sleep+0x95/0x190 [ 674.865735] ? __might_fault+0x188/0x1d0 [ 674.866106] ? do_raw_spin_trylock+0x190/0x190 [ 674.866521] mm_release+0x46d/0x590 [ 674.866854] ? do_raw_spin_trylock+0x190/0x190 [ 674.867274] ? mm_access+0x140/0x140 [ 674.867709] ? _raw_spin_unlock_irq+0x27/0x70 [ 674.868095] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 674.868543] ? trace_hardirqs_on+0xd/0x10 [ 674.868897] ? _raw_spin_unlock_irq+0x27/0x70 [ 674.869297] ? acct_collect+0x637/0x800 [ 674.869657] do_exit+0x481/0x1ad0 [ 674.869965] ? mm_update_next_owner+0x930/0x930 [ 674.870391] ? trace_event_raw_event_sched_switch+0x8a0/0x8a0 [ 674.870929] ? rcu_note_context_switch+0x710/0x710 [ 674.871487] ? futex_wait_setup+0x14a/0x3d0 [ 674.872124] ? __might_sleep+0x95/0x190 [ 674.872541] ? osq_unlock+0x350/0x350 [ 674.872938] ? find_held_lock+0x35/0x1d0 [ 674.873382] ? futex_wait+0x402/0x990 [ 674.873739] ? lock_downgrade+0x990/0x990 [ 674.874140] ? do_raw_spin_trylock+0x190/0x190 [ 674.874557] ? check_noncircular+0x20/0x20 [ 674.874920] ? futex_wake+0x680/0x680 [ 674.875507] ? mmdrop+0x18/0x30 [ 674.875855] ? drop_futex_key_refs.isra.13+0x63/0xa0 [ 674.876399] ? futex_wait+0x69e/0x990 [ 674.876804] ? find_held_lock+0x35/0x1d0 [ 674.877407] ? get_signal+0x7ae/0x16d0 [ 674.877784] ? lock_downgrade+0x990/0x990 [ 674.878160] do_group_exit+0x149/0x400 [ 674.878509] ? __lock_is_held+0xb6/0x140 [ 674.878872] ? SyS_exit+0x30/0x30 [ 674.879187] ? _raw_spin_unlock_irq+0x27/0x70 [ 674.879587] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 674.880021] get_signal+0x73f/0x16d0 [ 674.880351] ? ptrace_notify+0x130/0x130 [ 674.880722] ? vma_wants_writenotify+0x3b0/0x3b0 [ 674.881155] ? vma_link+0xe9/0x170 [ 674.881470] ? exit_robust_list+0x240/0x240 [ 674.881857] ? find_held_lock+0x35/0x1d0 [ 674.882218] do_signal+0x94/0x1ee0 [ 674.882542] ? vm_mmap_pgoff+0x1ed/0x280 [ 674.882912] ? should_fail+0x23b/0xa40 [ 674.883625] ? fault_create_debugfs_attr+0x1f0/0x1f0 [ 674.884127] ? setup_sigcontext+0x7d0/0x7d0 [ 674.884576] ? find_held_lock+0x35/0x1d0 [ 674.885157] ? lock_downgrade+0x990/0x990 [ 674.885593] ? down_read_killable+0x180/0x180 [ 674.888746] ? lock_release+0xa40/0xa40 [ 674.889122] ? trace_event_raw_event_sched_switch+0x8a0/0x8a0 [ 674.889657] ? vm_mmap_pgoff+0x1fc/0x280 [ 674.890036] ? exit_to_usermode_loop+0x8c/0x310 [ 674.890568] exit_to_usermode_loop+0x214/0x310 [ 674.890984] ? trace_event_raw_event_sys_exit+0x260/0x260 [ 674.891503] ? kasan_check_write+0x14/0x20 [ 674.891932] syscall_return_slowpath+0x42f/0x510 [ 674.892363] ? prepare_exit_to_usermode+0x2d0/0x2d0 [ 674.892884] ? entry_SYSCALL_64_fastpath+0x91/0xbe [ 674.893269] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 674.893991] ? trace_hardirqs_on_thunk+0x1a/0x1c [ 674.894496] entry_SYSCALL_64_fastpath+0xbc/0xbe [ 674.895004] RIP: 0033:0x447c89 [ 674.895363] RSP: 002b:00007f1b42d28ce8 EFLAGS: 00000246 ORIG_RAX: 00000000000000ca [ 674.896141] RAX: fffffffffffffe00 RBX: 0000000000748048 RCX: 0000000000447c89 [ 674.896869] RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000748048 [ 674.897445] RBP: 0000000000748048 R08: 0000000000000000 R09: 0000000000748020 [ 674.897957] R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 [ 674.898461] R13: 0000000000000000 R14: 00007f1b42d299c0 R15: 00007f1b42d29700 [ 674.898982] [ 674.899109] Allocated by task 17983: [ 674.899466] save_stack+0x43/0xd0 [ 674.899828] kasan_kmalloc+0xad/0xe0 [ 674.900142] kmem_cache_alloc_trace+0x136/0x750 [ 674.900481] refill_pi_state_cache.part.6+0xa5/0x2f0 [ 674.900861] futex_requeue+0x1887/0x2370 [ 674.901272] do_futex+0x7f5/0x20d0 [ 674.901568] SyS_futex+0x260/0x390 [ 674.901898] entry_SYSCALL_64_fastpath+0x1f/0xbe [ 674.902227] [ 674.902341] Freed by task 17982: [ 674.902637] save_stack+0x43/0xd0 [ 674.903007] kasan_slab_free+0x71/0xc0 [ 674.903420] kfree+0xca/0x250 [ 674.903742] do_exit+0x1502/0x1ad0 [ 674.904116] do_group_exit+0x149/0x400 [ 674.904512] get_signal+0x73f/0x16d0 [ 674.904902] do_signal+0x94/0x1ee0 [ 674.905282] exit_to_usermode_loop+0x214/0x310 [ 674.905799] syscall_return_slowpath+0x42f/0x510 [ 674.906296] entry_SYSCALL_64_fastpath+0xbc/0xbe [ 674.906793] [ 674.906980] The buggy address belongs to the object at ffff88003c38ca00 [ 674.906980] which belongs to the cache kmalloc-256 of size 256 [ 674.908161] The buggy address is located 40 bytes inside of [ 674.908161] 256-byte region [ffff88003c38ca00, ffff88003c38cb00) [ 674.909042] The buggy address belongs to the page: [ 674.909420] page:ffffea0000f0e300 count:1 mapcount:0 mapping:ffff88003c38c000 index:0x0 [ 674.910143] flags: 0x100000000000100(slab) [ 674.910562] raw: 0100000000000100 ffff88003c38c000 0000000000000000 000000010000000c [ 674.911426] raw: ffffea0000f3dea0 ffffea0000f3dbe0 ffff88003e8007c0 0000000000000000 [ 674.912224] page dumped because: kasan: bad access detected [ 674.912811] [ 674.912980] Memory state around the buggy address: [ 674.913459] ffff88003c38c900: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 674.914086] ffff88003c38c980: fb fb fb fb fb fb fb fb fc fc fc fc fc fc fc fc [ 674.915364] >ffff88003c38ca00: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 674.916117] ^ [ 674.916599] ffff88003c38ca80: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 674.917245] ffff88003c38cb00: fc fc fc fc fc fc fc fc fb fb fb fb fb fb fb fb [ 674.917897] ================================================================== [ 674.918546] Disabling lock debugging due to kernel taint [ 674.919034] Kernel panic - not syncing: panic_on_warn set ... [ 674.919034] [ 674.920326] CPU: 2 PID: 17981 Comm: syz-executor0 Tainted: G B 4.14.0-rc5-next-20171018+ #8 [ 674.921318] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS Bochs 01/01/2011 [ 674.922148] Call Trace: [ 674.922412] dump_stack+0x194/0x257 [ 674.922783] ? arch_local_irq_restore+0x53/0x53 [ 674.923277] ? kasan_end_report+0x32/0x50 [ 674.923711] ? lock_downgrade+0x990/0x990 [ 674.924142] ? vsnprintf+0x1ed/0x1900 [ 674.924534] ? __lock_acquire+0x3c50/0x3d50 [ 674.924982] panic+0x1e4/0x41c [ 674.925322] ? refcount_error_report+0x214/0x214 [ 674.925823] ? add_taint+0x40/0x50 [ 674.926182] ? add_taint+0x1c/0x50 [ 674.926560] ? __lock_acquire+0x3c9f/0x3d50 [ 674.926974] kasan_end_report+0x50/0x50 [ 674.927362] kasan_report+0x144/0x340 [ 674.927656] __asan_report_load8_noabort+0x14/0x20 [ 674.928150] __lock_acquire+0x3c9f/0x3d50 [ 674.928785] ? exit_pi_state_list+0x369/0x7a0 [ 674.929416] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 674.929875] ? mark_held_locks+0xaf/0x100 [ 674.930180] ? retint_kernel+0x10/0x10 [ 674.930464] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 674.930845] ? trace_hardirqs_on_thunk+0x1a/0x1c [ 674.931257] ? retint_kernel+0x10/0x10 [ 674.931654] ? exit_pi_state_list+0x361/0x7a0 [ 674.932082] ? queued_spin_lock_slowpath+0x1c4/0xfa0 [ 674.932523] ? check_noncircular+0x20/0x20 [ 674.932912] ? osq_unlock+0x350/0x350 [ 674.933254] ? __lock_acquire+0x6aa/0x3d50 [ 674.933640] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 674.934107] ? check_noncircular+0x20/0x20 [ 674.934509] ? print_irqtrace_events+0x270/0x270 [ 674.935012] ? check_noncircular+0x20/0x20 [ 674.935465] ? lock_release+0xa40/0xa40 [ 674.935890] ? switched_to_fair+0xb0/0xb0 [ 674.936320] ? __lock_is_held+0xb6/0x140 [ 674.936647] ? find_held_lock+0x35/0x1d0 [ 674.936953] lock_acquire+0x1d5/0x580 [ 674.937463] ? lock_acquire+0x1d5/0x580 [ 674.937739] ? exit_pi_state_list+0x369/0x7a0 [ 674.938060] ? lock_downgrade+0x990/0x990 [ 674.938348] ? lock_release+0xa40/0xa40 [ 674.938628] ? do_raw_spin_trylock+0x190/0x190 [ 674.938948] ? lock_downgrade+0x990/0x990 [ 674.939270] _raw_spin_lock_irq+0x5e/0x80 [ 674.939558] ? exit_pi_state_list+0x369/0x7a0 [ 674.939881] exit_pi_state_list+0x369/0x7a0 [ 674.940189] ? futex_wait_requeue_pi.constprop.19+0x1300/0x1300 [ 674.940609] ? lock_release+0xa40/0xa40 [ 674.940898] ? trace_event_raw_event_sched_switch+0x8a0/0x8a0 [ 674.941319] ? _raw_spin_unlock_irqrestore+0x31/0xba [ 674.941688] ? __might_sleep+0x95/0x190 [ 674.941978] ? __might_fault+0x188/0x1d0 [ 674.942268] ? do_raw_spin_trylock+0x190/0x190 [ 674.942600] mm_release+0x46d/0x590 [ 674.942870] ? do_raw_spin_trylock+0x190/0x190 [ 674.943223] ? mm_access+0x140/0x140 [ 674.943492] ? _raw_spin_unlock_irq+0x27/0x70 [ 674.943823] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 674.944176] ? trace_hardirqs_on+0xd/0x10 [ 674.944471] ? _raw_spin_unlock_irq+0x27/0x70 [ 674.944776] ? acct_collect+0x637/0x800 [ 674.945047] do_exit+0x481/0x1ad0 [ 674.945294] ? mm_update_next_owner+0x930/0x930 [ 674.945631] ? trace_event_raw_event_sched_switch+0x8a0/0x8a0 [ 674.946038] ? rcu_note_context_switch+0x710/0x710 [ 674.946395] ? futex_wait_setup+0x14a/0x3d0 [ 674.946700] ? __might_sleep+0x95/0x190 [ 674.946985] ? osq_unlock+0x350/0x350 [ 674.947263] ? find_held_lock+0x35/0x1d0 [ 674.947544] ? futex_wait+0x402/0x990 [ 674.947816] ? lock_downgrade+0x990/0x990 [ 674.948117] ? do_raw_spin_trylock+0x190/0x190 [ 674.948477] ? check_noncircular+0x20/0x20 [ 674.948773] ? futex_wake+0x680/0x680 [ 674.949033] ? mmdrop+0x18/0x30 [ 674.949261] ? drop_futex_key_refs.isra.13+0x63/0xa0 [ 674.949629] ? futex_wait+0x69e/0x990 [ 674.949900] ? find_held_lock+0x35/0x1d0 [ 674.950196] ? get_signal+0x7ae/0x16d0 [ 674.950476] ? lock_downgrade+0x990/0x990 [ 674.950767] do_group_exit+0x149/0x400 [ 674.951052] ? __lock_is_held+0xb6/0x140 [ 674.951356] ? SyS_exit+0x30/0x30 [ 674.951605] ? _raw_spin_unlock_irq+0x27/0x70 [ 674.951926] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 674.952288] get_signal+0x73f/0x16d0 [ 674.952559] ? ptrace_notify+0x130/0x130 [ 674.952854] ? vma_wants_writenotify+0x3b0/0x3b0 [ 674.953170] ? vma_link+0xe9/0x170 [ 674.953425] ? exit_robust_list+0x240/0x240 [ 674.953737] ? find_held_lock+0x35/0x1d0 [ 674.954036] do_signal+0x94/0x1ee0 [ 674.954304] ? vm_mmap_pgoff+0x1ed/0x280 [ 674.954598] ? should_fail+0x23b/0xa40 [ 674.954875] ? fault_create_debugfs_attr+0x1f0/0x1f0 [ 674.955237] ? setup_sigcontext+0x7d0/0x7d0 [ 674.955548] ? find_held_lock+0x35/0x1d0 [ 674.955842] ? lock_downgrade+0x990/0x990 [ 674.956136] ? down_read_killable+0x180/0x180 [ 674.956444] ? lock_release+0xa40/0xa40 [ 674.956990] ? trace_event_raw_event_sched_switch+0x8a0/0x8a0 [ 674.957376] ? vm_mmap_pgoff+0x1fc/0x280 [ 674.957616] ? exit_to_usermode_loop+0x8c/0x310 [ 674.957894] exit_to_usermode_loop+0x214/0x310 [ 674.958167] ? trace_event_raw_event_sys_exit+0x260/0x260 [ 674.958494] ? kasan_check_write+0x14/0x20 [ 674.958746] syscall_return_slowpath+0x42f/0x510 [ 674.959037] ? prepare_exit_to_usermode+0x2d0/0x2d0 [ 674.959360] ? entry_SYSCALL_64_fastpath+0x91/0xbe [ 674.959657] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 674.959957] ? trace_hardirqs_on_thunk+0x1a/0x1c [ 674.960245] entry_SYSCALL_64_fastpath+0xbc/0xbe [ 674.960532] RIP: 0033:0x447c89 [ 674.960726] RSP: 002b:00007f1b42d28ce8 EFLAGS: 00000246 ORIG_RAX: 00000000000000ca [ 674.961186] RAX: fffffffffffffe00 RBX: 0000000000748048 RCX: 0000000000447c89 [ 674.961621] RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000748048 [ 674.962052] RBP: 0000000000748048 R08: 0000000000000000 R09: 0000000000748020 [ 674.962515] R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 [ 674.962956] R13: 0000000000000000 R14: 00007f1b42d299c0 R15: 00007f1b42d29700 [ 674.963583] Dumping ftrace buffer: [ 674.963913] (ftrace buffer empty) [ 674.964232] Kernel Offset: disabled [ 674.964556] Rebooting in 86400 seconds..