2017/10/26 19:18:41 parsed 1 programs 2017/10/26 19:18:41 executed programs: 0 syzkaller login: [ 25.304146] ================================================================== [ 25.304768] BUG: KASAN: use-after-free in __lock_acquire+0x3c9f/0x3d50 [ 25.305204] Read of size 8 at addr ffff88003d668ce8 by task syz-executor2/3293 [ 25.305692] [ 25.305795] CPU: 2 PID: 3293 Comm: syz-executor2 Not tainted 4.14.0-rc5-next-20171018+ #8 [ 25.306368] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS Bochs 01/01/2011 [ 25.306930] Call Trace: [ 25.307107] dump_stack+0x194/0x257 [ 25.307388] ? arch_local_irq_restore+0x53/0x53 [ 25.307735] ? show_regs_print_info+0x65/0x65 [ 25.308652] ? print_irqtrace_events+0x270/0x270 [ 25.309090] ? print_irqtrace_events+0x270/0x270 [ 25.309525] ? __lock_acquire+0x3c9f/0x3d50 [ 25.309918] print_address_description+0x73/0x250 [ 25.310357] ? __lock_acquire+0x3c9f/0x3d50 [ 25.310756] kasan_report+0x25b/0x340 [ 25.311084] __asan_report_load8_noabort+0x14/0x20 [ 25.311375] __lock_acquire+0x3c9f/0x3d50 [ 25.311684] ? exit_pi_state_list+0x369/0x7a0 [ 25.312158] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 25.312609] ? __lock_acquire+0x6aa/0x3d50 [ 25.312979] ? __lock_acquire+0x6aa/0x3d50 [ 25.313385] ? __lock_acquire+0x6aa/0x3d50 [ 25.313769] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 25.314230] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 25.314704] ? osq_unlock+0x350/0x350 [ 25.315053] ? __lock_acquire+0x6aa/0x3d50 [ 25.315443] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 25.316035] ? check_noncircular+0x20/0x20 [ 25.316427] ? print_irqtrace_events+0x270/0x270 [ 25.316853] ? check_noncircular+0x20/0x20 [ 25.317234] ? get_user_pages_fast+0x277/0x340 [ 25.317641] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 25.318099] ? find_held_lock+0x35/0x1d0 [ 25.318471] lock_acquire+0x1d5/0x580 [ 25.318810] ? lock_acquire+0x1d5/0x580 [ 25.319163] ? exit_pi_state_list+0x369/0x7a0 [ 25.319539] ? lock_downgrade+0x990/0x990 [ 25.319981] ? lock_release+0xa40/0xa40 [ 25.320345] ? do_raw_spin_trylock+0x190/0x190 [ 25.320639] ? lock_downgrade+0x990/0x990 [ 25.320941] _raw_spin_lock_irq+0x5e/0x80 [ 25.321209] ? exit_pi_state_list+0x369/0x7a0 [ 25.321556] exit_pi_state_list+0x369/0x7a0 [ 25.321814] ? futex_wait_requeue_pi.constprop.19+0x1300/0x1300 [ 25.322180] ? lock_release+0xa40/0xa40 [ 25.322416] ? trace_event_raw_event_sched_switch+0x8a0/0x8a0 [ 25.322896] ? _raw_spin_unlock_irqrestore+0x31/0xba [ 25.323235] ? __might_sleep+0x95/0x190 [ 25.323482] ? __might_fault+0x188/0x1d0 [ 25.323763] ? do_raw_spin_trylock+0x190/0x190 [ 25.324135] mm_release+0x46d/0x590 [ 25.324364] ? do_raw_spin_trylock+0x190/0x190 [ 25.324664] ? mm_access+0x140/0x140 [ 25.324980] ? _raw_spin_unlock_irq+0x27/0x70 [ 25.325245] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 25.325542] ? trace_hardirqs_on+0xd/0x10 [ 25.325793] ? _raw_spin_unlock_irq+0x27/0x70 [ 25.326073] ? acct_collect+0x637/0x800 [ 25.326309] do_exit+0x481/0x1ad0 [ 25.326517] ? mm_update_next_owner+0x930/0x930 [ 25.326822] ? trace_event_raw_event_sched_switch+0x8a0/0x8a0 [ 25.327597] ? rcu_note_context_switch+0x710/0x710 [ 25.327987] ? futex_wait_setup+0x14a/0x3d0 [ 25.328269] ? __might_sleep+0x95/0x190 [ 25.328597] ? osq_unlock+0x350/0x350 [ 25.328844] ? find_held_lock+0x35/0x1d0 [ 25.329179] ? futex_wait+0x402/0x990 [ 25.329443] ? lock_downgrade+0x990/0x990 [ 25.329766] ? do_raw_spin_trylock+0x190/0x190 [ 25.330138] ? check_noncircular+0x20/0x20 [ 25.330488] ? futex_wake+0x680/0x680 [ 25.330791] ? mmdrop+0x18/0x30 [ 25.331016] ? drop_futex_key_refs.isra.13+0x63/0xa0 [ 25.331462] ? futex_wait+0x69e/0x990 [ 25.331769] ? find_held_lock+0x35/0x1d0 [ 25.332132] ? get_signal+0x7ae/0x16d0 [ 25.332426] ? lock_downgrade+0x990/0x990 [ 25.332671] do_group_exit+0x149/0x400 [ 25.332933] ? __lock_is_held+0xb6/0x140 [ 25.333173] ? SyS_exit+0x30/0x30 [ 25.333394] ? _raw_spin_unlock_irq+0x27/0x70 [ 25.333659] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 25.333985] get_signal+0x73f/0x16d0 [ 25.334206] ? ptrace_notify+0x130/0x130 [ 25.334464] ? is_bpf_text_address+0xa4/0x120 [ 25.334729] ? kernel_text_address+0x102/0x140 [ 25.335090] ? exit_robust_list+0x240/0x240 [ 25.335471] ? __save_stack_trace+0x7e/0xd0 [ 25.335780] ? depot_save_stack+0x12c/0x490 [ 25.336200] do_signal+0x94/0x1ee0 [ 25.336523] ? save_stack+0xa3/0xd0 [ 25.336761] ? should_fail+0x23b/0xa40 [ 25.337009] ? save_stack+0x43/0xd0 [ 25.337223] ? kasan_slab_free+0x71/0xc0 [ 25.337464] ? fault_create_debugfs_attr+0x1f0/0x1f0 [ 25.337780] ? setup_sigcontext+0x7d0/0x7d0 [ 25.338077] ? __lock_is_held+0xb6/0x140 [ 25.338318] ? find_held_lock+0x35/0x1d0 [ 25.338561] ? lock_downgrade+0x990/0x990 [ 25.338818] ? lock_release+0xa40/0xa40 [ 25.339068] ? trace_event_raw_event_sched_switch+0x8a0/0x8a0 [ 25.339418] ? exit_to_usermode_loop+0x8c/0x310 [ 25.339722] exit_to_usermode_loop+0x214/0x310 [ 25.340154] ? trace_event_raw_event_sys_exit+0x260/0x260 [ 25.340664] ? kasan_check_write+0x14/0x20 [ 25.341052] syscall_return_slowpath+0x42f/0x510 [ 25.341491] ? prepare_exit_to_usermode+0x2d0/0x2d0 [ 25.341854] ? entry_SYSCALL_64_fastpath+0x91/0xbe [ 25.342191] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 25.342539] ? trace_hardirqs_on_thunk+0x1a/0x1c [ 25.342905] entry_SYSCALL_64_fastpath+0xbc/0xbe [ 25.343230] RIP: 0033:0x447c89 [ 25.343443] RSP: 002b:00007f83efb9dce8 EFLAGS: 00000246 ORIG_RAX: 00000000000000ca [ 25.343999] RAX: fffffffffffffe00 RBX: 0000000000748270 RCX: 0000000000447c89 [ 25.344487] RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000748270 [ 25.345012] RBP: 0000000000748270 R08: 0000000000000000 R09: 0000000000748248 [ 25.345497] R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 [ 25.346056] R13: 0000000000000000 R14: 00007f83efb9e9c0 R15: 00007f83efb9e700 [ 25.346554] [ 25.346668] Allocated by task 3318: [ 25.346968] save_stack+0x43/0xd0 [ 25.347205] kasan_kmalloc+0xad/0xe0 [ 25.347448] kmem_cache_alloc_trace+0x136/0x750 [ 25.347778] refill_pi_state_cache.part.6+0xa5/0x2f0 [ 25.348236] futex_requeue+0x1887/0x2370 [ 25.349125] do_futex+0x7f5/0x20d0 [ 25.349371] SyS_futex+0x260/0x390 [ 25.349631] entry_SYSCALL_64_fastpath+0x1f/0xbe [ 25.349969] [ 25.350091] Freed by task 3288: [ 25.350340] save_stack+0x43/0xd0 [ 25.350708] kasan_slab_free+0x71/0xc0 [ 25.351075] kfree+0xca/0x250 [ 25.351340] put_pi_state+0x3f4/0x560 [ 25.351664] unqueue_me_pi+0x4a/0xc0 [ 25.352002] futex_wait_requeue_pi.constprop.19+0xc7f/0x1300 [ 25.352494] do_futex+0x825/0x20d0 [ 25.352746] SyS_futex+0x260/0x390 [ 25.353008] entry_SYSCALL_64_fastpath+0x1f/0xbe [ 25.353348] [ 25.353469] The buggy address belongs to the object at ffff88003d668cc0 [ 25.353469] which belongs to the cache kmalloc-256 of size 256 [ 25.354374] The buggy address is located 40 bytes inside of [ 25.354374] 256-byte region [ffff88003d668cc0, ffff88003d668dc0) [ 25.355209] The buggy address belongs to the page: [ 25.355563] page:ffffea0000f59a00 count:1 mapcount:0 mapping:ffff88003d668040 index:0x0 [ 25.356287] flags: 0x100000000000100(slab) [ 25.356646] raw: 0100000000000100 ffff88003d668040 0000000000000000 000000010000000c [ 25.357353] raw: ffffea0000e9c560 ffff88003e801648 ffff88003e8007c0 0000000000000000 [ 25.358047] page dumped because: kasan: bad access detected [ 25.358573] [ 25.358727] Memory state around the buggy address: [ 25.359171] ffff88003d668b80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 25.359830] ffff88003d668c00: 00 00 00 00 00 00 00 00 00 00 fc fc fc fc fc fc [ 25.360557] >ffff88003d668c80: fc fc fc fc fc fc fc fc fb fb fb fb fb fb fb fb [ 25.361211] ^ [ 25.361750] ffff88003d668d00: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 25.362409] ffff88003d668d80: fb fb fb fb fb fb fb fb fc fc fc fc fc fc fc fc [ 25.363075] ================================================================== [ 25.363730] Disabling lock debugging due to kernel taint [ 25.364284] Kernel panic - not syncing: panic_on_warn set ... [ 25.364284] [ 25.364932] CPU: 2 PID: 3293 Comm: syz-executor2 Tainted: G B 4.14.0-rc5-next-20171018+ #8 [ 25.365810] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS Bochs 01/01/2011 [ 25.366535] Call Trace: [ 25.366773] dump_stack+0x194/0x257 [ 25.367114] ? arch_local_irq_restore+0x53/0x53 [ 25.367530] ? kasan_end_report+0x32/0x50 [ 25.367945] ? lock_downgrade+0x990/0x990 [ 25.368308] ? vsnprintf+0x1ed/0x1900 [ 25.368647] ? __lock_acquire+0x3c50/0x3d50 [ 25.369025] panic+0x1e4/0x41c [ 25.369311] ? refcount_error_report+0x214/0x214 [ 25.369747] ? add_taint+0x40/0x50 [ 25.370070] ? add_taint+0x1c/0x50 [ 25.370396] ? __lock_acquire+0x3c9f/0x3d50 [ 25.370778] kasan_end_report+0x50/0x50 [ 25.371129] kasan_report+0x144/0x340 [ 25.371470] __asan_report_load8_noabort+0x14/0x20 [ 25.372317] __lock_acquire+0x3c9f/0x3d50 [ 25.372703] ? exit_pi_state_list+0x369/0x7a0 [ 25.373116] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 25.373594] ? __lock_acquire+0x6aa/0x3d50 [ 25.373979] ? __lock_acquire+0x6aa/0x3d50 [ 25.374597] ? __lock_acquire+0x6aa/0x3d50 [ 25.374901] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 25.375232] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 25.375560] ? osq_unlock+0x350/0x350 [ 25.375787] ? __lock_acquire+0x6aa/0x3d50 [ 25.376115] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 25.376445] ? check_noncircular+0x20/0x20 [ 25.376696] ? print_irqtrace_events+0x270/0x270 [ 25.377010] ? check_noncircular+0x20/0x20 [ 25.377288] ? get_user_pages_fast+0x277/0x340 [ 25.377585] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 25.377891] ? find_held_lock+0x35/0x1d0 [ 25.378182] lock_acquire+0x1d5/0x580 [ 25.378413] ? lock_acquire+0x1d5/0x580 [ 25.378671] ? exit_pi_state_list+0x369/0x7a0 [ 25.378958] ? lock_downgrade+0x990/0x990 [ 25.379254] ? lock_release+0xa40/0xa40 [ 25.379535] ? do_raw_spin_trylock+0x190/0x190 [ 25.379923] ? lock_downgrade+0x990/0x990 [ 25.380326] _raw_spin_lock_irq+0x5e/0x80 [ 25.380697] ? exit_pi_state_list+0x369/0x7a0 [ 25.381098] exit_pi_state_list+0x369/0x7a0 [ 25.381498] ? futex_wait_requeue_pi.constprop.19+0x1300/0x1300 [ 25.382045] ? lock_release+0xa40/0xa40 [ 25.382350] ? trace_event_raw_event_sched_switch+0x8a0/0x8a0 [ 25.382793] ? _raw_spin_unlock_irqrestore+0x31/0xba [ 25.383109] ? __might_sleep+0x95/0x190 [ 25.383344] ? __might_fault+0x188/0x1d0 [ 25.383630] ? do_raw_spin_trylock+0x190/0x190 [ 25.384019] mm_release+0x46d/0x590 [ 25.384236] ? do_raw_spin_trylock+0x190/0x190 [ 25.384507] ? mm_access+0x140/0x140 [ 25.384774] ? _raw_spin_unlock_irq+0x27/0x70 [ 25.385102] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 25.385469] ? trace_hardirqs_on+0xd/0x10 [ 25.385730] ? _raw_spin_unlock_irq+0x27/0x70 [ 25.386085] ? acct_collect+0x637/0x800 [ 25.386320] do_exit+0x481/0x1ad0 [ 25.386586] ? mm_update_next_owner+0x930/0x930 [ 25.386946] ? trace_event_raw_event_sched_switch+0x8a0/0x8a0 [ 25.387377] ? rcu_note_context_switch+0x710/0x710 [ 25.387733] ? futex_wait_setup+0x14a/0x3d0 [ 25.388120] ? __might_sleep+0x95/0x190 [ 25.388408] ? osq_unlock+0x350/0x350 [ 25.388683] ? find_held_lock+0x35/0x1d0 [ 25.388981] ? futex_wait+0x402/0x990 [ 25.389254] ? lock_downgrade+0x990/0x990 [ 25.389552] ? do_raw_spin_trylock+0x190/0x190 [ 25.389884] ? check_noncircular+0x20/0x20 [ 25.390187] ? futex_wake+0x680/0x680 [ 25.390460] ? mmdrop+0x18/0x30 [ 25.390697] ? drop_futex_key_refs.isra.13+0x63/0xa0 [ 25.391065] ? futex_wait+0x69e/0x990 [ 25.391340] ? find_held_lock+0x35/0x1d0 [ 25.391633] ? get_signal+0x7ae/0x16d0 [ 25.397771] ? lock_downgrade+0x990/0x990 [ 25.398083] do_group_exit+0x149/0x400 [ 25.398366] ? __lock_is_held+0xb6/0x140 [ 25.398718] ? SyS_exit+0x30/0x30 [ 25.399030] ? _raw_spin_unlock_irq+0x27/0x70 [ 25.399441] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 25.399923] get_signal+0x73f/0x16d0 [ 25.400263] ? ptrace_notify+0x130/0x130 [ 25.400637] ? is_bpf_text_address+0xa4/0x120 [ 25.401045] ? kernel_text_address+0x102/0x140 [ 25.401396] ? exit_robust_list+0x240/0x240 [ 25.401813] ? __save_stack_trace+0x7e/0xd0 [ 25.402282] ? depot_save_stack+0x12c/0x490 [ 25.402707] do_signal+0x94/0x1ee0 [ 25.403031] ? save_stack+0xa3/0xd0 [ 25.403367] ? should_fail+0x23b/0xa40 [ 25.403722] ? save_stack+0x43/0xd0 [ 25.416468] ? kasan_slab_free+0x71/0xc0 [ 25.416960] ? fault_create_debugfs_attr+0x1f0/0x1f0 [ 25.422666] ? setup_sigcontext+0x7d0/0x7d0 [ 25.423062] ? __lock_is_held+0xb6/0x140 [ 25.423433] ? find_held_lock+0x35/0x1d0 [ 25.423817] ? lock_downgrade+0x990/0x990 [ 25.424205] ? lock_release+0xa40/0xa40 [ 25.424563] ? trace_event_raw_event_sched_switch+0x8a0/0x8a0 [ 25.425105] ? exit_to_usermode_loop+0x8c/0x310 [ 25.425536] exit_to_usermode_loop+0x214/0x310 [ 25.425953] ? trace_event_raw_event_sys_exit+0x260/0x260 [ 25.426456] ? kasan_check_write+0x14/0x20 [ 25.426837] syscall_return_slowpath+0x42f/0x510 [ 25.427265] ? prepare_exit_to_usermode+0x2d0/0x2d0 [ 25.427709] ? entry_SYSCALL_64_fastpath+0x91/0xbe [ 25.428974] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 25.429377] ? trace_hardirqs_on_thunk+0x1a/0x1c [ 25.429817] entry_SYSCALL_64_fastpath+0xbc/0xbe [ 25.430263] RIP: 0033:0x447c89 [ 25.430554] RSP: 002b:00007f83efb9dce8 EFLAGS: 00000246 ORIG_RAX: 00000000000000ca [ 25.431248] RAX: fffffffffffffe00 RBX: 0000000000748270 RCX: 0000000000447c89 [ 25.432665] RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000748270 [ 25.433318] RBP: 0000000000748270 R08: 0000000000000000 R09: 0000000000748248 [ 25.433959] R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 [ 25.434603] R13: 0000000000000000 R14: 00007f83efb9e9c0 R15: 00007f83efb9e700 [ 25.435321] Dumping ftrace buffer: [ 25.435961] (ftrace buffer empty) [ 25.436298] Kernel Offset: disabled [ 25.436621] Rebooting in 86400 seconds..