2017/10/25 17:03:18 parsed 1 programs 2017/10/25 17:03:18 executed programs: 0 2017/10/25 17:03:23 executed programs: 47 2017/10/25 17:03:28 executed programs: 91 syzkaller login: [ 33.597635] ================================================================== [ 33.598212] BUG: KASAN: use-after-free in __lock_acquire+0x3c9f/0x3d50 [ 33.598664] Read of size 8 at addr ffff88003d1d5d28 by task syz-executor0/3673 [ 33.599173] [ 33.599287] CPU: 2 PID: 3673 Comm: syz-executor0 Not tainted 4.14.0-rc5-next-20171018+ #8 [ 33.600370] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS Bochs 01/01/2011 [ 33.600934] Call Trace: [ 33.601132] dump_stack+0x194/0x257 [ 33.601384] ? arch_local_irq_restore+0x53/0x53 [ 33.601719] ? show_regs_print_info+0x65/0x65 [ 33.602044] ? print_irqtrace_events+0x270/0x270 [ 33.602370] ? print_irqtrace_events+0x270/0x270 [ 33.602697] ? __lock_acquire+0x3c9f/0x3d50 [ 33.602995] print_address_description+0x73/0x250 [ 33.603336] ? __lock_acquire+0x3c9f/0x3d50 [ 33.603635] kasan_report+0x25b/0x340 [ 33.603897] __asan_report_load8_noabort+0x14/0x20 [ 33.604261] __lock_acquire+0x3c9f/0x3d50 [ 33.604643] ? exit_pi_state_list+0x369/0x7a0 [ 33.605054] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 33.605528] ? __lock_acquire+0x6aa/0x3d50 [ 33.605924] ? __lock_acquire+0x6aa/0x3d50 [ 33.606311] ? __lock_acquire+0x6aa/0x3d50 [ 33.606697] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 33.607170] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 33.607643] ? check_noncircular+0x20/0x20 [ 33.608030] ? osq_unlock+0x350/0x350 [ 33.608378] ? __lock_acquire+0x6aa/0x3d50 [ 33.608765] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 33.609238] ? check_noncircular+0x20/0x20 [ 33.609626] ? pick_next_task_fair+0xee5/0x1830 [ 33.610054] ? pick_next_task_fair+0xebe/0x1830 [ 33.610482] ? check_noncircular+0x20/0x20 [ 33.610869] ? lock_release+0xa40/0xa40 [ 33.611232] ? switched_to_fair+0xb0/0xb0 [ 33.611613] ? find_held_lock+0x35/0x1d0 [ 33.611985] lock_acquire+0x1d5/0x580 [ 33.612334] ? lock_acquire+0x1d5/0x580 [ 33.612695] ? exit_pi_state_list+0x369/0x7a0 [ 33.613106] ? lock_downgrade+0x990/0x990 [ 33.613485] ? lock_release+0xa40/0xa40 [ 33.613849] ? do_raw_spin_trylock+0x190/0x190 [ 33.614269] ? lock_downgrade+0x990/0x990 [ 33.614653] _raw_spin_lock_irq+0x5e/0x80 [ 33.615034] ? exit_pi_state_list+0x369/0x7a0 [ 33.615446] exit_pi_state_list+0x369/0x7a0 [ 33.615845] ? futex_wait_requeue_pi.constprop.19+0x1300/0x1300 [ 33.616401] ? lock_release+0xa40/0xa40 [ 33.616766] ? trace_event_raw_event_sched_switch+0x8a0/0x8a0 [ 33.617304] ? _raw_spin_unlock_irqrestore+0x31/0xba [ 33.617777] ? __might_sleep+0x95/0x190 [ 33.618157] ? __might_fault+0x188/0x1d0 [ 33.618551] ? do_raw_spin_trylock+0x190/0x190 [ 33.618978] mm_release+0x46d/0x590 [ 33.619317] ? do_raw_spin_trylock+0x190/0x190 [ 33.619753] ? mm_access+0x140/0x140 [ 33.620127] ? _raw_spin_unlock_irq+0x27/0x70 [ 33.620577] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 33.621534] ? trace_hardirqs_on+0xd/0x10 [ 33.621937] ? _raw_spin_unlock_irq+0x27/0x70 [ 33.622403] ? acct_collect+0x637/0x800 [ 33.622772] do_exit+0x481/0x1ad0 [ 33.623122] ? mm_update_next_owner+0x930/0x930 [ 33.623555] ? trace_event_raw_event_sched_switch+0x8a0/0x8a0 [ 33.624139] ? rcu_note_context_switch+0x710/0x710 [ 33.624621] ? futex_wait_setup+0x14a/0x3d0 [ 33.625023] ? __might_sleep+0x95/0x190 [ 33.625399] ? _cond_resched+0x14/0x30 [ 33.625784] ? futex_wait_queue_me+0x524/0x7e0 [ 33.626239] ? refill_pi_state_cache.part.6+0x2f0/0x2f0 [ 33.626789] ? memset+0x31/0x40 [ 33.627113] ? get_futex_value_locked+0xc3/0xf0 [ 33.627531] ? futex_wait_setup+0x22e/0x3d0 [ 33.627945] ? check_noncircular+0x20/0x20 [ 33.628365] ? futex_wake+0x680/0x680 [ 33.628723] ? mmdrop+0x18/0x30 [ 33.629064] ? drop_futex_key_refs.isra.13+0x63/0xa0 [ 33.629532] ? futex_wait+0x69e/0x990 [ 33.629926] ? find_held_lock+0x35/0x1d0 [ 33.630356] ? get_signal+0x7ae/0x16d0 [ 33.630792] ? lock_downgrade+0x990/0x990 [ 33.631204] do_group_exit+0x149/0x400 [ 33.631566] ? __lock_is_held+0xb6/0x140 [ 33.631949] ? SyS_exit+0x30/0x30 [ 33.632287] ? _raw_spin_unlock_irq+0x27/0x70 [ 33.632707] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 33.633204] get_signal+0x73f/0x16d0 [ 33.633537] ? ptrace_notify+0x130/0x130 [ 33.633939] ? exit_robust_list+0x240/0x240 [ 33.634355] do_signal+0x94/0x1ee0 [ 33.634682] ? should_fail+0x23b/0xa40 [ 33.634954] ? check_noncircular+0x20/0x20 [ 33.635289] ? fault_create_debugfs_attr+0x1f0/0x1f0 [ 33.635671] ? setup_sigcontext+0x7d0/0x7d0 [ 33.636000] ? find_held_lock+0x35/0x1d0 [ 33.636341] ? lock_downgrade+0x990/0x990 [ 33.636657] ? lock_release+0xa40/0xa40 [ 33.636975] ? trace_event_raw_event_sched_switch+0x8a0/0x8a0 [ 33.637436] ? lock_downgrade+0x990/0x990 [ 33.637769] ? exit_to_usermode_loop+0x8c/0x310 [ 33.638135] exit_to_usermode_loop+0x214/0x310 [ 33.638467] ? trace_event_raw_event_sys_exit+0x260/0x260 [ 33.638932] ? kasan_check_write+0x14/0x20 [ 33.639229] syscall_return_slowpath+0x42f/0x510 [ 33.639582] ? prepare_exit_to_usermode+0x2d0/0x2d0 [ 33.639928] ? entry_SYSCALL_64_fastpath+0x91/0xbe [ 33.640268] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 33.640614] ? trace_hardirqs_on_thunk+0x1a/0x1c [ 33.640944] entry_SYSCALL_64_fastpath+0xbc/0xbe [ 33.641355] RIP: 0033:0x447c89 [ 33.641657] RSP: 002b:00007fb5367e8ce8 EFLAGS: 00000246 ORIG_RAX: 00000000000000ca [ 33.642718] RAX: 0000000000000000 RBX: 00000000007481b8 RCX: 0000000000447c89 [ 33.643211] RDX: 0000000000000000 RSI: 0000000000000000 RDI: 00000000007481b8 [ 33.643717] RBP: 00000000007481b8 R08: 0000000000000000 R09: 0000000000748190 [ 33.644271] R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 [ 33.644787] R13: 0000000000000000 R14: 00007fb5367e99c0 R15: 00007fb5367e9700 [ 33.645343] [ 33.645508] Allocated by task 3674: [ 33.645807] save_stack+0x43/0xd0 [ 33.646057] kasan_kmalloc+0xad/0xe0 [ 33.646353] kmem_cache_alloc_trace+0x136/0x750 [ 33.646728] refill_pi_state_cache.part.6+0xa5/0x2f0 [ 33.647147] futex_requeue+0x1887/0x2370 [ 33.647564] do_futex+0x7f5/0x20d0 [ 33.647874] SyS_futex+0x260/0x390 [ 33.648149] entry_SYSCALL_64_fastpath+0x1f/0xbe [ 33.648527] [ 33.648667] Freed by task 3672: [ 33.648934] save_stack+0x43/0xd0 [ 33.649187] kasan_slab_free+0x71/0xc0 [ 33.649563] kfree+0xca/0x250 [ 33.649819] put_pi_state+0x3f4/0x560 [ 33.650095] unqueue_me_pi+0x4a/0xc0 [ 33.650391] futex_wait_requeue_pi.constprop.19+0xc7f/0x1300 [ 33.650868] do_futex+0x825/0x20d0 [ 33.651180] SyS_futex+0x260/0x390 [ 33.651448] entry_SYSCALL_64_fastpath+0x1f/0xbe [ 33.651822] [ 33.651935] The buggy address belongs to the object at ffff88003d1d5d00 [ 33.651935] which belongs to the cache kmalloc-256 of size 256 [ 33.652848] The buggy address is located 40 bytes inside of [ 33.652848] 256-byte region [ffff88003d1d5d00, ffff88003d1d5e00) [ 33.653706] The buggy address belongs to the page: [ 33.654098] page:ffffea0000f47540 count:1 mapcount:0 mapping:ffff88003d1d5080 index:0x0 [ 33.654708] flags: 0x100000000000100(slab) [ 33.655042] raw: 0100000000000100 ffff88003d1d5080 0000000000000000 000000010000000c [ 33.655608] raw: ffffea0000f463a0 ffffea0000f478e0 ffff88003e8007c0 0000000000000000 [ 33.656182] page dumped because: kasan: bad access detected [ 33.656608] [ 33.656723] Memory state around the buggy address: [ 33.657060] ffff88003d1d5c00: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 33.657676] ffff88003d1d5c80: fb fb fb fb fb fb fb fb fc fc fc fc fc fc fc fc [ 33.658234] >ffff88003d1d5d00: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 33.658761] ^ [ 33.659081] ffff88003d1d5d80: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 33.659582] ffff88003d1d5e00: fc fc fc fc fc fc fc fc 00 00 00 00 00 00 00 00 [ 33.660120] ================================================================== [ 33.660701] Disabling lock debugging due to kernel taint [ 33.661127] Kernel panic - not syncing: panic_on_warn set ... [ 33.661127] [ 33.661663] CPU: 2 PID: 3673 Comm: syz-executor0 Tainted: G B 4.14.0-rc5-next-20171018+ #8 [ 33.662407] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS Bochs 01/01/2011 [ 33.663078] Call Trace: [ 33.663597] dump_stack+0x194/0x257 [ 33.663862] ? arch_local_irq_restore+0x53/0x53 [ 33.664211] ? kasan_end_report+0x32/0x50 [ 33.664510] ? lock_downgrade+0x990/0x990 [ 33.664821] ? vsnprintf+0x1ed/0x1900 [ 33.665111] ? __lock_acquire+0x3c50/0x3d50 [ 33.665463] panic+0x1e4/0x41c [ 33.665725] ? refcount_error_report+0x214/0x214 [ 33.666076] ? add_taint+0x40/0x50 [ 33.666356] ? add_taint+0x1c/0x50 [ 33.666609] ? __lock_acquire+0x3c9f/0x3d50 [ 33.666918] kasan_end_report+0x50/0x50 [ 33.667208] kasan_report+0x144/0x340 [ 33.667490] __asan_report_load8_noabort+0x14/0x20 [ 33.667859] __lock_acquire+0x3c9f/0x3d50 [ 33.668214] ? exit_pi_state_list+0x369/0x7a0 [ 33.668558] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 33.668963] ? __lock_acquire+0x6aa/0x3d50 [ 33.669287] ? __lock_acquire+0x6aa/0x3d50 [ 33.669603] ? __lock_acquire+0x6aa/0x3d50 [ 33.670007] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 33.670385] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 33.670756] ? check_noncircular+0x20/0x20 [ 33.671074] ? osq_unlock+0x350/0x350 [ 33.671335] ? __lock_acquire+0x6aa/0x3d50 [ 33.671627] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 33.672054] ? check_noncircular+0x20/0x20 [ 33.672345] ? pick_next_task_fair+0xee5/0x1830 [ 33.672684] ? pick_next_task_fair+0xebe/0x1830 [ 33.673024] ? check_noncircular+0x20/0x20 [ 33.673343] ? lock_release+0xa40/0xa40 [ 33.673635] ? switched_to_fair+0xb0/0xb0 [ 33.673936] ? find_held_lock+0x35/0x1d0 [ 33.674218] lock_acquire+0x1d5/0x580 [ 33.674521] ? lock_acquire+0x1d5/0x580 [ 33.674837] ? exit_pi_state_list+0x369/0x7a0 [ 33.675213] ? lock_downgrade+0x990/0x990 [ 33.675512] ? lock_release+0xa40/0xa40 [ 33.675786] ? do_raw_spin_trylock+0x190/0x190 [ 33.676141] ? lock_downgrade+0x990/0x990 [ 33.676485] _raw_spin_lock_irq+0x5e/0x80 [ 33.676799] ? exit_pi_state_list+0x369/0x7a0 [ 33.677161] exit_pi_state_list+0x369/0x7a0 [ 33.677492] ? futex_wait_requeue_pi.constprop.19+0x1300/0x1300 [ 33.677975] ? lock_release+0xa40/0xa40 [ 33.678308] ? trace_event_raw_event_sched_switch+0x8a0/0x8a0 [ 33.678780] ? _raw_spin_unlock_irqrestore+0x31/0xba [ 33.679157] ? __might_sleep+0x95/0x190 [ 33.679446] ? __might_fault+0x188/0x1d0 [ 33.679768] ? do_raw_spin_trylock+0x190/0x190 [ 33.680175] mm_release+0x46d/0x590 [ 33.680440] ? do_raw_spin_trylock+0x190/0x190 [ 33.680769] ? mm_access+0x140/0x140 [ 33.681053] ? _raw_spin_unlock_irq+0x27/0x70 [ 33.681390] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 33.681791] ? trace_hardirqs_on+0xd/0x10 [ 33.682115] ? _raw_spin_unlock_irq+0x27/0x70 [ 33.682477] ? acct_collect+0x637/0x800 [ 33.682764] do_exit+0x481/0x1ad0 [ 33.683002] ? mm_update_next_owner+0x930/0x930 [ 33.683349] ? trace_event_raw_event_sched_switch+0x8a0/0x8a0 [ 33.683751] ? rcu_note_context_switch+0x710/0x710 [ 33.684114] ? futex_wait_setup+0x14a/0x3d0 [ 33.684777] ? __might_sleep+0x95/0x190 [ 33.685140] ? _cond_resched+0x14/0x30 [ 33.685427] ? futex_wait_queue_me+0x524/0x7e0 [ 33.685771] ? refill_pi_state_cache.part.6+0x2f0/0x2f0 [ 33.686217] ? memset+0x31/0x40 [ 33.686484] ? get_futex_value_locked+0xc3/0xf0 [ 33.686846] ? futex_wait_setup+0x22e/0x3d0 [ 33.687222] ? check_noncircular+0x20/0x20 [ 33.687554] ? futex_wake+0x680/0x680 [ 33.687815] ? mmdrop+0x18/0x30 [ 33.688055] ? drop_futex_key_refs.isra.13+0x63/0xa0 [ 33.688485] ? futex_wait+0x69e/0x990 [ 33.688763] ? find_held_lock+0x35/0x1d0 [ 33.689070] ? get_signal+0x7ae/0x16d0 [ 33.689350] ? lock_downgrade+0x990/0x990 [ 33.689640] do_group_exit+0x149/0x400 [ 33.689907] ? __lock_is_held+0xb6/0x140 [ 33.690235] ? SyS_exit+0x30/0x30 [ 33.690493] ? _raw_spin_unlock_irq+0x27/0x70 [ 33.690820] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 33.691226] get_signal+0x73f/0x16d0 [ 33.691503] ? ptrace_notify+0x130/0x130 [ 33.691806] ? exit_robust_list+0x240/0x240 [ 33.692173] do_signal+0x94/0x1ee0 [ 33.692459] ? should_fail+0x23b/0xa40 [ 33.692740] ? check_noncircular+0x20/0x20 [ 33.693087] ? fault_create_debugfs_attr+0x1f0/0x1f0 [ 33.693456] ? setup_sigcontext+0x7d0/0x7d0 [ 33.693755] ? find_held_lock+0x35/0x1d0 [ 33.694034] ? lock_downgrade+0x990/0x990 [ 33.694379] ? lock_release+0xa40/0xa40 [ 33.694657] ? trace_event_raw_event_sched_switch+0x8a0/0x8a0 [ 33.695125] ? lock_downgrade+0x990/0x990 [ 33.695464] ? exit_to_usermode_loop+0x8c/0x310 [ 33.695827] exit_to_usermode_loop+0x214/0x310 [ 33.696185] ? trace_event_raw_event_sys_exit+0x260/0x260 [ 33.696604] ? kasan_check_write+0x14/0x20 [ 33.696923] syscall_return_slowpath+0x42f/0x510 [ 33.697317] ? prepare_exit_to_usermode+0x2d0/0x2d0 [ 33.697733] ? entry_SYSCALL_64_fastpath+0x91/0xbe [ 33.698172] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 33.698572] ? trace_hardirqs_on_thunk+0x1a/0x1c [ 33.698937] entry_SYSCALL_64_fastpath+0xbc/0xbe [ 33.699359] RIP: 0033:0x447c89 [ 33.699621] RSP: 002b:00007fb5367e8ce8 EFLAGS: 00000246 ORIG_RAX: 00000000000000ca [ 33.700210] RAX: 0000000000000000 RBX: 00000000007481b8 RCX: 0000000000447c89 [ 33.700720] RDX: 0000000000000000 RSI: 0000000000000000 RDI: 00000000007481b8 [ 33.701219] RBP: 00000000007481b8 R08: 0000000000000000 R09: 0000000000748190 [ 33.701729] R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 [ 33.702228] R13: 0000000000000000 R14: 00007fb5367e99c0 R15: 00007fb5367e9700 [ 33.703105] Dumping ftrace buffer: [ 33.703319] (ftrace buffer empty) [ 33.703549] Kernel Offset: disabled [ 33.703765] Rebooting in 86400 seconds..