2017/10/26 14:44:40 parsed 1 programs 2017/10/26 14:44:40 executed programs: 0 syzkaller login: [ 43.999469] ================================================================== [ 44.000261] BUG: KASAN: use-after-free in __lock_acquire+0x3c9f/0x3d50 [ 44.002421] Read of size 8 at addr ffff88003d03f568 by task syz-executor6/4165 [ 44.003165] [ 44.003335] CPU: 1 PID: 4165 Comm: syz-executor6 Not tainted 4.14.0-rc5-next-20171018+ #8 [ 44.003910] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS Bochs 01/01/2011 [ 44.004504] Call Trace: [ 44.004689] dump_stack+0x194/0x257 [ 44.004942] ? arch_local_irq_restore+0x53/0x53 [ 44.005252] ? show_regs_print_info+0x65/0x65 [ 44.005586] ? print_irqtrace_events+0x270/0x270 [ 44.005900] ? print_irqtrace_events+0x270/0x270 [ 44.006214] ? __lock_acquire+0x3c9f/0x3d50 [ 44.006537] print_address_description+0x73/0x250 [ 44.006913] ? __lock_acquire+0x3c9f/0x3d50 [ 44.007358] kasan_report+0x25b/0x340 [ 44.007749] __asan_report_load8_noabort+0x14/0x20 [ 44.008248] __lock_acquire+0x3c9f/0x3d50 [ 44.013383] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 44.013858] ? exit_pi_state_list+0x369/0x7a0 [ 44.014209] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 44.014567] ? mark_held_locks+0xaf/0x100 [ 44.014903] ? retint_kernel+0x10/0x10 [ 44.015196] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 44.015552] ? trace_hardirqs_on_thunk+0x1a/0x1c [ 44.015928] ? retint_kernel+0x10/0x10 [ 44.016244] ? exit_pi_state_list+0x361/0x7a0 [ 44.016554] ? queued_spin_lock_slowpath+0x1c4/0xfa0 [ 44.017574] ? osq_unlock+0x350/0x350 [ 44.017964] ? __lock_acquire+0x6aa/0x3d50 [ 44.018377] ? check_noncircular+0x20/0x20 [ 44.018661] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 44.019059] ? check_noncircular+0x20/0x20 [ 44.019476] ? print_irqtrace_events+0x270/0x270 [ 44.019838] ? find_held_lock+0x35/0x1d0 [ 44.020160] ? kprobe_flush_task+0x1a3/0x5d0 [ 44.020518] ? find_held_lock+0x35/0x1d0 [ 44.020827] lock_acquire+0x1d5/0x580 [ 44.021120] ? lock_acquire+0x1d5/0x580 [ 44.021843] ? exit_pi_state_list+0x369/0x7a0 [ 44.022261] ? lock_downgrade+0x990/0x990 [ 44.022555] ? lock_release+0xa40/0xa40 [ 44.022820] ? do_raw_spin_trylock+0x190/0x190 [ 44.023208] ? trace_hardirqs_on+0xd/0x10 [ 44.023518] _raw_spin_lock_irq+0x5e/0x80 [ 44.023804] ? exit_pi_state_list+0x369/0x7a0 [ 44.024154] exit_pi_state_list+0x369/0x7a0 [ 44.024516] ? futex_wait_requeue_pi.constprop.19+0x1300/0x1300 [ 44.024953] ? lock_release+0xa40/0xa40 [ 44.025258] ? trace_event_raw_event_sched_switch+0x8a0/0x8a0 [ 44.025726] ? _raw_spin_unlock_irqrestore+0x31/0xba [ 44.026118] ? __might_sleep+0x95/0x190 [ 44.026423] ? __might_fault+0x188/0x1d0 [ 44.026737] ? do_raw_spin_trylock+0x190/0x190 [ 44.027082] mm_release+0x46d/0x590 [ 44.027337] ? do_raw_spin_trylock+0x190/0x190 [ 44.027728] ? mm_access+0x140/0x140 [ 44.027993] ? _raw_spin_unlock_irq+0x27/0x70 [ 44.028341] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 44.028787] ? trace_hardirqs_on+0xd/0x10 [ 44.029108] ? _raw_spin_unlock_irq+0x27/0x70 [ 44.029408] ? acct_collect+0x637/0x800 [ 44.029698] do_exit+0x481/0x1ad0 [ 44.029982] ? mm_update_next_owner+0x930/0x930 [ 44.030347] ? trace_event_raw_event_sched_switch+0x8a0/0x8a0 [ 44.030761] ? rcu_note_context_switch+0x710/0x710 [ 44.031218] ? futex_wait_setup+0x14a/0x3d0 [ 44.031505] ? __might_sleep+0x95/0x190 [ 44.031769] ? find_held_lock+0x35/0x1d0 [ 44.032107] ? futex_wait+0x402/0x990 [ 44.032484] ? lock_downgrade+0x990/0x990 [ 44.032942] ? do_raw_spin_trylock+0x190/0x190 [ 44.033308] ? check_noncircular+0x20/0x20 [ 44.033658] ? futex_wake+0x680/0x680 [ 44.033924] ? mmdrop+0x18/0x30 [ 44.034185] ? drop_futex_key_refs.isra.13+0x63/0xa0 [ 44.034561] ? futex_wait+0x69e/0x990 [ 44.034814] ? find_held_lock+0x35/0x1d0 [ 44.035093] ? get_signal+0x7ae/0x16d0 [ 44.035363] ? lock_downgrade+0x990/0x990 [ 44.035643] do_group_exit+0x149/0x400 [ 44.035901] ? __lock_is_held+0xb6/0x140 [ 44.036183] ? SyS_exit+0x30/0x30 [ 44.036445] ? _raw_spin_unlock_irq+0x27/0x70 [ 44.036852] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 44.037337] get_signal+0x73f/0x16d0 [ 44.037710] ? ptrace_notify+0x130/0x130 [ 44.038124] ? vma_wants_writenotify+0x3b0/0x3b0 [ 44.038499] ? vma_link+0xe9/0x170 [ 44.038738] ? exit_robust_list+0x240/0x240 [ 44.039044] ? find_held_lock+0x35/0x1d0 [ 44.039462] do_signal+0x94/0x1ee0 [ 44.039809] ? vm_mmap_pgoff+0x1ed/0x280 [ 44.040219] ? should_fail+0x23b/0xa40 [ 44.040518] ? fault_create_debugfs_attr+0x1f0/0x1f0 [ 44.040968] ? setup_sigcontext+0x7d0/0x7d0 [ 44.041386] ? find_held_lock+0x35/0x1d0 [ 44.041719] ? lock_downgrade+0x990/0x990 [ 44.041994] ? down_read_killable+0x180/0x180 [ 44.042318] ? lock_release+0xa40/0xa40 [ 44.042666] ? trace_event_raw_event_sched_switch+0x8a0/0x8a0 [ 44.043204] ? vm_mmap_pgoff+0x1fc/0x280 [ 44.043605] ? exit_to_usermode_loop+0x8c/0x310 [ 44.044052] exit_to_usermode_loop+0x214/0x310 [ 44.044470] ? trace_event_raw_event_sys_exit+0x260/0x260 [ 44.045858] ? kasan_check_write+0x14/0x20 [ 44.046306] syscall_return_slowpath+0x42f/0x510 [ 44.046804] ? prepare_exit_to_usermode+0x2d0/0x2d0 [ 44.047337] ? entry_SYSCALL_64_fastpath+0x91/0xbe [ 44.047855] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 44.048367] ? trace_hardirqs_on_thunk+0x1a/0x1c [ 44.048783] entry_SYSCALL_64_fastpath+0xbc/0xbe [ 44.049292] RIP: 0033:0x447c89 [ 44.049628] RSP: 002b:00007f1890364ce8 EFLAGS: 00000246 ORIG_RAX: 00000000000000ca [ 44.050436] RAX: fffffffffffffe00 RBX: 0000000000748048 RCX: 0000000000447c89 [ 44.051192] RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000748048 [ 44.051939] RBP: 0000000000748048 R08: 0000000000000000 R09: 0000000000748020 [ 44.053111] R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 [ 44.053838] R13: 0000000000000000 R14: 00007f18903659c0 R15: 00007f1890365700 [ 44.054568] [ 44.054736] Allocated by task 4185: [ 44.055105] save_stack+0x43/0xd0 [ 44.055544] kasan_kmalloc+0xad/0xe0 [ 44.055911] kmem_cache_alloc_trace+0x136/0x750 [ 44.056392] refill_pi_state_cache.part.6+0xa5/0x2f0 [ 44.056895] futex_requeue+0x1887/0x2370 [ 44.057311] do_futex+0x7f5/0x20d0 [ 44.057675] SyS_futex+0x260/0x390 [ 44.058035] entry_SYSCALL_64_fastpath+0x1f/0xbe [ 44.058521] [ 44.058687] Freed by task 4174: [ 44.059103] save_stack+0x43/0xd0 [ 44.059456] kasan_slab_free+0x71/0xc0 [ 44.059857] kfree+0xca/0x250 [ 44.060171] do_exit+0x1502/0x1ad0 [ 44.060529] do_group_exit+0x149/0x400 [ 44.060937] get_signal+0x73f/0x16d0 [ 44.061316] do_signal+0x94/0x1ee0 [ 44.061676] exit_to_usermode_loop+0x214/0x310 [ 44.062148] syscall_return_slowpath+0x42f/0x510 [ 44.062633] entry_SYSCALL_64_fastpath+0xbc/0xbe [ 44.063116] [ 44.063286] The buggy address belongs to the object at ffff88003d03f540 [ 44.063286] which belongs to the cache kmalloc-256 of size 256 [ 44.065584] The buggy address is located 40 bytes inside of [ 44.065584] 256-byte region [ffff88003d03f540, ffff88003d03f640) [ 44.066778] The buggy address belongs to the page: [ 44.067281] page:ffffea0000f40fc0 count:1 mapcount:0 mapping:ffff88003d03f040 index:0x0 [ 44.068110] flags: 0x100000000000100(slab) [ 44.068544] raw: 0100000000000100 ffff88003d03f040 0000000000000000 000000010000000c [ 44.069287] raw: ffffea0000f50760 ffffea0000f40e60 ffff88003e8007c0 0000000000000000 [ 44.069894] page dumped because: kasan: bad access detected [ 44.070342] [ 44.070460] Memory state around the buggy address: [ 44.070875] ffff88003d03f400: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 44.071378] ffff88003d03f480: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 44.071950] >ffff88003d03f500: fc fc fc fc fc fc fc fc fb fb fb fb fb fb fb fb [ 44.072459] ^ [ 44.073343] ffff88003d03f580: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 44.074076] ffff88003d03f600: fb fb fb fb fb fb fb fb fc fc fc fc fc fc fc fc [ 44.074800] ================================================================== [ 44.075395] Disabling lock debugging due to kernel taint [ 44.075751] Kernel panic - not syncing: panic_on_warn set ... [ 44.075751] [ 44.076316] CPU: 1 PID: 4165 Comm: syz-executor6 Tainted: G B 4.14.0-rc5-next-20171018+ #8 [ 44.077004] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS Bochs 01/01/2011 [ 44.077625] Call Trace: [ 44.077823] dump_stack+0x194/0x257 [ 44.078112] ? arch_local_irq_restore+0x53/0x53 [ 44.078489] ? kasan_end_report+0x32/0x50 [ 44.078770] ? lock_downgrade+0x990/0x990 [ 44.079167] ? vsnprintf+0x1ed/0x1900 [ 44.079488] ? __lock_acquire+0x3c50/0x3d50 [ 44.079895] panic+0x1e4/0x41c [ 44.080161] ? refcount_error_report+0x214/0x214 [ 44.080555] ? add_taint+0x40/0x50 [ 44.080855] ? add_taint+0x1c/0x50 [ 44.081197] ? __lock_acquire+0x3c9f/0x3d50 [ 44.081611] kasan_end_report+0x50/0x50 [ 44.082000] kasan_report+0x144/0x340 [ 44.082378] __asan_report_load8_noabort+0x14/0x20 [ 44.082870] __lock_acquire+0x3c9f/0x3d50 [ 44.083363] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 44.083768] ? exit_pi_state_list+0x369/0x7a0 [ 44.084126] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 44.084485] ? mark_held_locks+0xaf/0x100 [ 44.084790] ? retint_kernel+0x10/0x10 [ 44.085099] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 44.086304] ? trace_hardirqs_on_thunk+0x1a/0x1c [ 44.086738] ? retint_kernel+0x10/0x10 [ 44.087049] ? exit_pi_state_list+0x361/0x7a0 [ 44.087423] ? queued_spin_lock_slowpath+0x1c4/0xfa0 [ 44.087779] ? osq_unlock+0x350/0x350 [ 44.088060] ? __lock_acquire+0x6aa/0x3d50 [ 44.088389] ? check_noncircular+0x20/0x20 [ 44.088676] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 44.089046] ? check_noncircular+0x20/0x20 [ 44.089363] ? print_irqtrace_events+0x270/0x270 [ 44.089703] ? find_held_lock+0x35/0x1d0 [ 44.089989] ? kprobe_flush_task+0x1a3/0x5d0 [ 44.090309] ? find_held_lock+0x35/0x1d0 [ 44.090627] lock_acquire+0x1d5/0x580 [ 44.090883] ? lock_acquire+0x1d5/0x580 [ 44.091184] ? exit_pi_state_list+0x369/0x7a0 [ 44.091537] ? lock_downgrade+0x990/0x990 [ 44.091837] ? lock_release+0xa40/0xa40 [ 44.092138] ? do_raw_spin_trylock+0x190/0x190 [ 44.092448] ? trace_hardirqs_on+0xd/0x10 [ 44.092930] _raw_spin_lock_irq+0x5e/0x80 [ 44.093275] ? exit_pi_state_list+0x369/0x7a0 [ 44.093586] exit_pi_state_list+0x369/0x7a0 [ 44.093929] ? futex_wait_requeue_pi.constprop.19+0x1300/0x1300 [ 44.094493] ? lock_release+0xa40/0xa40 [ 44.094833] ? trace_event_raw_event_sched_switch+0x8a0/0x8a0 [ 44.095291] ? _raw_spin_unlock_irqrestore+0x31/0xba [ 44.095688] ? __might_sleep+0x95/0x190 [ 44.096009] ? __might_fault+0x188/0x1d0 [ 44.096408] ? do_raw_spin_trylock+0x190/0x190 [ 44.096744] mm_release+0x46d/0x590 [ 44.097037] ? do_raw_spin_trylock+0x190/0x190 [ 44.097381] ? mm_access+0x140/0x140 [ 44.097655] ? _raw_spin_unlock_irq+0x27/0x70 [ 44.097959] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 44.098354] ? trace_hardirqs_on+0xd/0x10 [ 44.098640] ? _raw_spin_unlock_irq+0x27/0x70 [ 44.098954] ? acct_collect+0x637/0x800 [ 44.099300] do_exit+0x481/0x1ad0 [ 44.099531] ? mm_update_next_owner+0x930/0x930 [ 44.099852] ? trace_event_raw_event_sched_switch+0x8a0/0x8a0 [ 44.100298] ? rcu_note_context_switch+0x710/0x710 [ 44.100630] ? futex_wait_setup+0x14a/0x3d0 [ 44.101126] ? __might_sleep+0x95/0x190 [ 44.101532] ? find_held_lock+0x35/0x1d0 [ 44.101941] ? futex_wait+0x402/0x990 [ 44.102325] ? lock_downgrade+0x990/0x990 [ 44.102746] ? do_raw_spin_trylock+0x190/0x190 [ 44.103213] ? check_noncircular+0x20/0x20 [ 44.103643] ? futex_wake+0x680/0x680 [ 44.104131] ? mmdrop+0x18/0x30 [ 44.104462] ? drop_futex_key_refs.isra.13+0x63/0xa0 [ 44.104935] ? futex_wait+0x69e/0x990 [ 44.105259] ? find_held_lock+0x35/0x1d0 [ 44.105602] ? get_signal+0x7ae/0x16d0 [ 44.105939] ? lock_downgrade+0x990/0x990 [ 44.106295] do_group_exit+0x149/0x400 [ 44.106621] ? __lock_is_held+0xb6/0x140 [ 44.106990] ? SyS_exit+0x30/0x30 [ 44.107290] ? _raw_spin_unlock_irq+0x27/0x70 [ 44.107669] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 44.108103] get_signal+0x73f/0x16d0 [ 44.108418] ? ptrace_notify+0x130/0x130 [ 44.110294] ? vma_wants_writenotify+0x3b0/0x3b0 [ 44.110634] ? vma_link+0xe9/0x170 [ 44.110975] ? exit_robust_list+0x240/0x240 [ 44.111402] ? find_held_lock+0x35/0x1d0 [ 44.111811] do_signal+0x94/0x1ee0 [ 44.112139] ? vm_mmap_pgoff+0x1ed/0x280 [ 44.112534] ? should_fail+0x23b/0xa40 [ 44.112947] ? fault_create_debugfs_attr+0x1f0/0x1f0 [ 44.113935] ? setup_sigcontext+0x7d0/0x7d0 [ 44.114373] ? find_held_lock+0x35/0x1d0 [ 44.114687] ? lock_downgrade+0x990/0x990 [ 44.114996] ? down_read_killable+0x180/0x180 [ 44.115359] ? lock_release+0xa40/0xa40 [ 44.115672] ? trace_event_raw_event_sched_switch+0x8a0/0x8a0 [ 44.116103] ? vm_mmap_pgoff+0x1fc/0x280 [ 44.116404] ? exit_to_usermode_loop+0x8c/0x310 [ 44.117270] exit_to_usermode_loop+0x214/0x310 [ 44.117640] ? trace_event_raw_event_sys_exit+0x260/0x260 [ 44.118005] ? kasan_check_write+0x14/0x20 [ 44.118337] syscall_return_slowpath+0x42f/0x510 [ 44.118721] ? prepare_exit_to_usermode+0x2d0/0x2d0 [ 44.119068] ? entry_SYSCALL_64_fastpath+0x91/0xbe [ 44.119430] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 44.119832] ? trace_hardirqs_on_thunk+0x1a/0x1c [ 44.120230] entry_SYSCALL_64_fastpath+0xbc/0xbe [ 44.120720] RIP: 0033:0x447c89 [ 44.121043] RSP: 002b:00007f1890364ce8 EFLAGS: 00000246 ORIG_RAX: 00000000000000ca [ 44.121661] RAX: fffffffffffffe00 RBX: 0000000000748048 RCX: 0000000000447c89 [ 44.122261] RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000748048 [ 44.122876] RBP: 0000000000748048 R08: 0000000000000000 R09: 0000000000748020 [ 44.123401] R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 [ 44.124062] R13: 0000000000000000 R14: 00007f18903659c0 R15: 00007f1890365700 [ 44.124654] Dumping ftrace buffer: [ 44.124913] (ftrace buffer empty) [ 44.125163] Kernel Offset: disabled [ 44.125407] Rebooting in 86400 seconds..