2017/10/26 12:44:35 parsed 1 programs 2017/10/26 12:44:35 executed programs: 0 2017/10/26 12:44:40 executed programs: 205 syzkaller login: [ 45.902669] ================================================================== [ 45.904163] BUG: KASAN: use-after-free in __lock_acquire+0x3c9f/0x3d50 [ 45.904763] Read of size 8 at addr ffff88006bbb29a8 by task syz-executor6/6534 [ 45.905482] [ 45.905652] CPU: 3 PID: 6534 Comm: syz-executor6 Not tainted 4.14.0-rc5-next-20171018+ #8 [ 45.906453] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS Bochs 01/01/2011 [ 45.907265] Call Trace: [ 45.908224] dump_stack+0x194/0x257 [ 45.908613] ? arch_local_irq_restore+0x53/0x53 [ 45.909083] ? show_regs_print_info+0x65/0x65 [ 45.909528] ? print_irqtrace_events+0x270/0x270 [ 45.910010] ? print_irqtrace_events+0x270/0x270 [ 45.910484] ? __lock_acquire+0x3c9f/0x3d50 [ 45.917090] print_address_description+0x73/0x250 [ 45.918135] ? __lock_acquire+0x3c9f/0x3d50 [ 45.918583] kasan_report+0x25b/0x340 [ 45.918980] __asan_report_load8_noabort+0x14/0x20 [ 45.919490] __lock_acquire+0x3c9f/0x3d50 [ 45.919880] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 45.925314] ? exit_pi_state_list+0x369/0x7a0 [ 45.925729] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 45.926198] ? mark_held_locks+0xaf/0x100 [ 45.926579] ? retint_kernel+0x10/0x10 [ 45.926934] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 45.927389] ? trace_hardirqs_on_thunk+0x1a/0x1c [ 45.927824] ? retint_kernel+0x10/0x10 [ 45.928180] ? exit_pi_state_list+0x361/0x7a0 [ 45.928635] ? queued_spin_lock_slowpath+0x1c4/0xfa0 [ 45.929116] ? osq_unlock+0x350/0x350 [ 45.929466] ? __lock_acquire+0x6aa/0x3d50 [ 45.929851] ? find_held_lock+0x35/0x1d0 [ 45.930225] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 45.930696] ? check_noncircular+0x20/0x20 [ 45.931082] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 45.931557] ? _raw_spin_unlock_irqrestore+0x31/0xba [ 45.937161] ? trace_hardirqs_on+0xd/0x10 [ 45.937547] ? find_held_lock+0x35/0x1d0 [ 45.937921] lock_acquire+0x1d5/0x580 [ 45.938269] ? lock_acquire+0x1d5/0x580 [ 45.938633] ? exit_pi_state_list+0x369/0x7a0 [ 45.939048] ? lock_downgrade+0x990/0x990 [ 45.939435] ? lock_release+0xa40/0xa40 [ 45.939804] ? do_raw_spin_trylock+0x190/0x190 [ 45.940238] _raw_spin_lock_irq+0x5e/0x80 [ 45.940622] ? exit_pi_state_list+0x369/0x7a0 [ 45.941096] exit_pi_state_list+0x369/0x7a0 [ 45.941503] ? futex_wait_requeue_pi.constprop.19+0x1300/0x1300 [ 45.942064] ? lock_release+0xa40/0xa40 [ 45.942435] ? trace_event_raw_event_sched_switch+0x8a0/0x8a0 [ 45.942979] ? _raw_spin_unlock_irqrestore+0x31/0xba [ 45.943451] ? __might_sleep+0x95/0x190 [ 45.943825] ? __might_fault+0x188/0x1d0 [ 45.944206] ? do_raw_spin_trylock+0x190/0x190 [ 45.944627] mm_release+0x46d/0x590 [ 45.949005] ? do_raw_spin_trylock+0x190/0x190 [ 45.949428] ? mm_access+0x140/0x140 [ 45.950228] ? _raw_spin_unlock_irq+0x27/0x70 [ 45.950635] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 45.951092] ? trace_hardirqs_on+0xd/0x10 [ 45.951472] ? _raw_spin_unlock_irq+0x27/0x70 [ 45.951884] ? acct_collect+0x637/0x800 [ 45.952249] do_exit+0x481/0x1ad0 [ 45.952571] ? _raw_spin_unlock_irqrestore+0x31/0xba [ 45.956837] ? trace_hardirqs_on_caller+0x3d0/0x5c0 [ 45.957309] ? mm_update_next_owner+0x930/0x930 [ 45.957730] ? trace_hardirqs_on+0xd/0x10 [ 45.958118] ? hrtimer_try_to_cancel+0x9a/0x5c0 [ 45.958554] ? __hrtimer_get_remaining+0x1c0/0x1c0 [ 45.959001] ? lock_downgrade+0x990/0x990 [ 45.959383] ? do_raw_spin_trylock+0x190/0x190 [ 45.959799] ? futex_wake+0x680/0x680 [ 45.960197] ? memset+0x31/0x40 [ 45.960524] ? hrtimer_cancel+0x2e/0x40 [ 45.964952] ? futex_wait_requeue_pi.constprop.19+0x8a8/0x1300 [ 45.965498] ? check_noncircular+0x20/0x20 [ 45.965888] ? futex_requeue+0x2370/0x2370 [ 45.966277] ? futex_wake+0x680/0x680 [ 45.966630] ? __lock_acquire+0x6aa/0x3d50 [ 45.967018] ? drop_futex_key_refs.isra.13+0x63/0xa0 [ 45.967483] ? futex_wait+0x69e/0x990 [ 45.967834] ? find_held_lock+0x35/0x1d0 [ 45.968212] ? get_signal+0x7ae/0x16d0 [ 45.968567] ? lock_downgrade+0x990/0x990 [ 45.969005] do_group_exit+0x149/0x400 [ 45.969359] ? __lock_is_held+0xb6/0x140 [ 45.969732] ? SyS_exit+0x30/0x30 [ 45.970048] ? _raw_spin_unlock_irq+0x27/0x70 [ 45.970456] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 45.970909] get_signal+0x73f/0x16d0 [ 45.971252] ? ptrace_notify+0x130/0x130 [ 45.971624] ? tun_get+0x1d4/0x2e0 [ 45.971948] ? tun_chr_close+0x60/0x60 [ 45.972302] ? __check_object_size+0x25d/0x4f0 [ 45.972717] ? rcu_note_context_switch+0x710/0x710 [ 45.973653] ? exit_robust_list+0x240/0x240 [ 45.974128] ? do_iter_readv_writev+0x590/0x7f0 [ 45.974623] ? __fsnotify_parent+0xb4/0x3a0 [ 45.975306] do_signal+0x94/0x1ee0 [ 45.975669] ? should_fail+0x23b/0xa40 [ 45.976091] ? rcu_pm_notify+0xc0/0xc0 [ 45.976509] ? fault_create_debugfs_attr+0x1f0/0x1f0 [ 45.977085] ? setup_sigcontext+0x7d0/0x7d0 [ 45.977550] ? find_held_lock+0x35/0x1d0 [ 45.977989] ? lock_downgrade+0x990/0x990 [ 45.978434] ? down_read_killable+0x180/0x180 [ 45.978916] ? lock_release+0xa40/0xa40 [ 45.979342] ? trace_event_raw_event_sched_switch+0x8a0/0x8a0 [ 45.979857] ? vm_mmap_pgoff+0x1fc/0x280 [ 45.980144] ? exit_to_usermode_loop+0x8c/0x310 [ 45.980473] exit_to_usermode_loop+0x214/0x310 [ 45.980829] ? trace_event_raw_event_sys_exit+0x260/0x260 [ 45.981331] ? kasan_check_write+0x14/0x20 [ 45.981702] syscall_return_slowpath+0x42f/0x510 [ 45.982032] ? prepare_exit_to_usermode+0x2d0/0x2d0 [ 45.982383] ? entry_SYSCALL_64_fastpath+0x91/0xbe [ 45.982710] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 45.983041] ? trace_hardirqs_on_thunk+0x1a/0x1c [ 45.983358] entry_SYSCALL_64_fastpath+0xbc/0xbe [ 45.983676] RIP: 0033:0x447c89 [ 45.983889] RSP: 002b:00007fccca2e5bd8 EFLAGS: 00000246 ORIG_RAX: 00000000000000ca [ 45.984386] RAX: fffffffffffffdff RBX: 00007fccca2e66cc RCX: 0000000000447c89 [ 45.984927] RDX: 0000000000000004 RSI: 000080000000000b RDI: 000000002000cffc [ 45.985593] RBP: 00000000007480d8 R08: 0000000020048000 R09: 0000000000000000 [ 45.986274] R10: 0000000020edfff0 R11: 0000000000000246 R12: 00000000ffffffff [ 45.986968] R13: 0000000000000d08 R14: 00000000006e4da8 R15: 00007fccca2e6700 [ 45.987639] [ 45.987790] Allocated by task 6547: [ 45.988126] save_stack+0x43/0xd0 [ 45.988442] kasan_kmalloc+0xad/0xe0 [ 45.988783] kmem_cache_alloc_trace+0x136/0x750 [ 45.989229] refill_pi_state_cache.part.6+0xa5/0x2f0 [ 45.989699] futex_requeue+0x1887/0x2370 [ 45.990077] do_futex+0x7f5/0x20d0 [ 45.990401] SyS_futex+0x260/0x390 [ 45.990729] entry_SYSCALL_64_fastpath+0x1f/0xbe [ 45.991163] [ 45.991314] Freed by task 6543: [ 45.991616] save_stack+0x43/0xd0 [ 45.991935] kasan_slab_free+0x71/0xc0 [ 45.992290] kfree+0xca/0x250 [ 45.992575] do_exit+0x1502/0x1ad0 [ 45.992918] do_group_exit+0x149/0x400 [ 45.993163] get_signal+0x73f/0x16d0 [ 45.993405] do_signal+0x94/0x1ee0 [ 45.993656] exit_to_usermode_loop+0x214/0x310 [ 45.993963] syscall_return_slowpath+0x42f/0x510 [ 45.994268] entry_SYSCALL_64_fastpath+0xbc/0xbe [ 45.994591] [ 45.994696] The buggy address belongs to the object at ffff88006bbb2980 [ 45.994696] which belongs to the cache kmalloc-256 of size 256 [ 45.995516] The buggy address is located 40 bytes inside of [ 45.995516] 256-byte region [ffff88006bbb2980, ffff88006bbb2a80) [ 45.996625] The buggy address belongs to the page: [ 45.997046] page:ffffea0001aeec80 count:1 mapcount:0 mapping:ffff88006bbb20c0 index:0x0 [ 45.997565] flags: 0x500000000000100(slab) [ 45.997854] raw: 0500000000000100 ffff88006bbb20c0 0000000000000000 000000010000000c [ 45.998368] raw: ffffea0001b469a0 ffffea0001a9a3a0 ffff88003e8007c0 0000000000000000 [ 45.998881] page dumped because: kasan: bad access detected [ 45.999252] [ 45.999366] Memory state around the buggy address: [ 45.999682] ffff88006bbb2880: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 46.000154] ffff88006bbb2900: fb fb fb fb fb fb fb fb fc fc fc fc fc fc fc fc [ 46.000635] >ffff88006bbb2980: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 46.001298] ^ [ 46.001729] ffff88006bbb2a00: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 46.002401] ffff88006bbb2a80: fc fc fc fc fc fc fc fc 00 00 00 00 00 00 00 00 [ 46.003075] ================================================================== [ 46.003746] Disabling lock debugging due to kernel taint [ 46.004247] Kernel panic - not syncing: panic_on_warn set ... [ 46.004247] [ 46.004937] CPU: 3 PID: 6534 Comm: syz-executor6 Tainted: G B 4.14.0-rc5-next-20171018+ #8 [ 46.005807] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS Bochs 01/01/2011 [ 46.006563] Call Trace: [ 46.006803] dump_stack+0x194/0x257 [ 46.007141] ? arch_local_irq_restore+0x53/0x53 [ 46.007572] ? kasan_end_report+0x32/0x50 [ 46.007950] ? lock_downgrade+0x990/0x990 [ 46.008331] ? vsnprintf+0x1ed/0x1900 [ 46.008678] ? __lock_acquire+0x3c50/0x3d50 [ 46.009092] panic+0x1e4/0x41c [ 46.009390] ? refcount_error_report+0x214/0x214 [ 46.009803] ? add_taint+0x40/0x50 [ 46.010115] ? add_taint+0x1c/0x50 [ 46.010444] ? __lock_acquire+0x3c9f/0x3d50 [ 46.010836] kasan_end_report+0x50/0x50 [ 46.011090] kasan_report+0x144/0x340 [ 46.011436] __asan_report_load8_noabort+0x14/0x20 [ 46.011861] __lock_acquire+0x3c9f/0x3d50 [ 46.012244] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 46.012725] ? exit_pi_state_list+0x369/0x7a0 [ 46.013205] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 46.013682] ? mark_held_locks+0xaf/0x100 [ 46.014062] ? retint_kernel+0x10/0x10 [ 46.014408] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 46.014856] ? trace_hardirqs_on_thunk+0x1a/0x1c [ 46.015287] ? retint_kernel+0x10/0x10 [ 46.015644] ? exit_pi_state_list+0x361/0x7a0 [ 46.016049] ? queued_spin_lock_slowpath+0x1c4/0xfa0 [ 46.016513] ? osq_unlock+0x350/0x350 [ 46.016922] ? __lock_acquire+0x6aa/0x3d50 [ 46.017314] ? find_held_lock+0x35/0x1d0 [ 46.017646] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 46.018047] ? check_noncircular+0x20/0x20 [ 46.018303] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 46.018643] ? _raw_spin_unlock_irqrestore+0x31/0xba [ 46.018954] ? trace_hardirqs_on+0xd/0x10 [ 46.019200] ? find_held_lock+0x35/0x1d0 [ 46.019468] lock_acquire+0x1d5/0x580 [ 46.019815] ? lock_acquire+0x1d5/0x580 [ 46.020169] ? exit_pi_state_list+0x369/0x7a0 [ 46.020561] ? lock_downgrade+0x990/0x990 [ 46.021176] ? lock_release+0xa40/0xa40 [ 46.021534] ? do_raw_spin_trylock+0x190/0x190 [ 46.021956] _raw_spin_lock_irq+0x5e/0x80 [ 46.022336] ? exit_pi_state_list+0x369/0x7a0 [ 46.022746] exit_pi_state_list+0x369/0x7a0 [ 46.023145] ? futex_wait_requeue_pi.constprop.19+0x1300/0x1300 [ 46.023692] ? lock_release+0xa40/0xa40 [ 46.024056] ? trace_event_raw_event_sched_switch+0x8a0/0x8a0 [ 46.024590] ? _raw_spin_unlock_irqrestore+0x31/0xba [ 46.025113] ? __might_sleep+0x95/0x190 [ 46.025477] ? __might_fault+0x188/0x1d0 [ 46.025852] ? do_raw_spin_trylock+0x190/0x190 [ 46.026264] mm_release+0x46d/0x590 [ 46.026597] ? do_raw_spin_trylock+0x190/0x190 [ 46.027015] ? mm_access+0x140/0x140 [ 46.027357] ? _raw_spin_unlock_irq+0x27/0x70 [ 46.027767] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 46.028222] ? trace_hardirqs_on+0xd/0x10 [ 46.028601] ? _raw_spin_unlock_irq+0x27/0x70 [ 46.029056] ? acct_collect+0x637/0x800 [ 46.029420] do_exit+0x481/0x1ad0 [ 46.029739] ? _raw_spin_unlock_irqrestore+0x31/0xba [ 46.030203] ? trace_hardirqs_on_caller+0x3d0/0x5c0 [ 46.030660] ? mm_update_next_owner+0x930/0x930 [ 46.031084] ? trace_hardirqs_on+0xd/0x10 [ 46.031466] ? hrtimer_try_to_cancel+0x9a/0x5c0 [ 46.031895] ? __hrtimer_get_remaining+0x1c0/0x1c0 [ 46.032344] ? lock_downgrade+0x990/0x990 [ 46.032724] ? do_raw_spin_trylock+0x190/0x190 [ 46.033188] ? futex_wake+0x680/0x680 [ 46.033538] ? memset+0x31/0x40 [ 46.033842] ? hrtimer_cancel+0x2e/0x40 [ 46.034207] ? futex_wait_requeue_pi.constprop.19+0x8a8/0x1300 [ 46.034752] ? check_noncircular+0x20/0x20 [ 46.035140] ? futex_requeue+0x2370/0x2370 [ 46.035529] ? futex_wake+0x680/0x680 [ 46.035935] ? __lock_acquire+0x6aa/0x3d50 [ 46.036397] ? drop_futex_key_refs.isra.13+0x63/0xa0 [ 46.036874] ? futex_wait+0x69e/0x990 [ 46.037229] ? find_held_lock+0x35/0x1d0 [ 46.037613] ? get_signal+0x7ae/0x16d0 [ 46.037978] ? lock_downgrade+0x990/0x990 [ 46.038361] do_group_exit+0x149/0x400 [ 46.039091] ? __lock_is_held+0xb6/0x140 [ 46.039464] ? SyS_exit+0x30/0x30 [ 46.039786] ? _raw_spin_unlock_irq+0x27/0x70 [ 46.040201] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 46.040666] get_signal+0x73f/0x16d0 [ 46.041019] ? ptrace_notify+0x130/0x130 [ 46.041390] ? tun_get+0x1d4/0x2e0 [ 46.041719] ? tun_chr_close+0x60/0x60 [ 46.042084] ? __check_object_size+0x25d/0x4f0 [ 46.042506] ? rcu_note_context_switch+0x710/0x710 [ 46.042960] ? exit_robust_list+0x240/0x240 [ 46.043362] ? do_iter_readv_writev+0x590/0x7f0 [ 46.043799] ? __fsnotify_parent+0xb4/0x3a0 [ 46.044200] do_signal+0x94/0x1ee0 [ 46.044527] ? should_fail+0x23b/0xa40 [ 46.044944] ? rcu_pm_notify+0xc0/0xc0 [ 46.045304] ? fault_create_debugfs_attr+0x1f0/0x1f0 [ 46.045768] ? setup_sigcontext+0x7d0/0x7d0 [ 46.046168] ? find_held_lock+0x35/0x1d0 [ 46.046544] ? lock_downgrade+0x990/0x990 [ 46.046921] ? down_read_killable+0x180/0x180 [ 46.047330] ? lock_release+0xa40/0xa40 [ 46.047670] ? trace_event_raw_event_sched_switch+0x8a0/0x8a0 [ 46.048022] ? vm_mmap_pgoff+0x1fc/0x280 [ 46.048270] ? exit_to_usermode_loop+0x8c/0x310 [ 46.048552] exit_to_usermode_loop+0x214/0x310 [ 46.048896] ? trace_event_raw_event_sys_exit+0x260/0x260 [ 46.049224] ? kasan_check_write+0x14/0x20 [ 46.049478] syscall_return_slowpath+0x42f/0x510 [ 46.049763] ? prepare_exit_to_usermode+0x2d0/0x2d0 [ 46.050078] ? entry_SYSCALL_64_fastpath+0x91/0xbe [ 46.050474] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 46.050916] ? trace_hardirqs_on_thunk+0x1a/0x1c [ 46.051352] entry_SYSCALL_64_fastpath+0xbc/0xbe [ 46.051785] RIP: 0033:0x447c89 [ 46.052077] RSP: 002b:00007fccca2e5bd8 EFLAGS: 00000246 ORIG_RAX: 00000000000000ca [ 46.052774] RAX: fffffffffffffdff RBX: 00007fccca2e66cc RCX: 0000000000447c89 [ 46.053314] RDX: 0000000000000004 RSI: 000080000000000b RDI: 000000002000cffc [ 46.053739] RBP: 00000000007480d8 R08: 0000000020048000 R09: 0000000000000000 [ 46.054177] R10: 0000000020edfff0 R11: 0000000000000246 R12: 00000000ffffffff [ 46.054670] R13: 0000000000000d08 R14: 00000000006e4da8 R15: 00007fccca2e6700 [ 46.057648] Dumping ftrace buffer: [ 46.057985] (ftrace buffer empty) [ 46.058323] Kernel Offset: disabled [ 46.058658] Rebooting in 86400 seconds..