2017/10/26 06:18:11 parsed 1 programs 2017/10/26 06:18:11 executed programs: 0 syzkaller login: [ 900.831375] ================================================================== [ 900.832227] BUG: KASAN: use-after-free in __lock_acquire+0x3c9f/0x3d50 [ 900.832634] Read of size 8 at addr ffff88003c1bc6a8 by task syz-executor4/4419 [ 900.833121] [ 900.833222] CPU: 1 PID: 4419 Comm: syz-executor4 Not tainted 4.14.0-rc5-next-20171018+ #8 [ 900.833772] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS Bochs 01/01/2011 [ 900.834366] Call Trace: [ 900.834568] dump_stack+0x194/0x257 [ 900.834829] ? arch_local_irq_restore+0x53/0x53 [ 900.835147] ? show_regs_print_info+0x65/0x65 [ 900.835435] ? print_irqtrace_events+0x270/0x270 [ 900.835721] ? print_irqtrace_events+0x270/0x270 [ 900.836038] ? __lock_acquire+0x3c9f/0x3d50 [ 900.836293] print_address_description+0x73/0x250 [ 900.836575] ? __lock_acquire+0x3c9f/0x3d50 [ 900.836831] kasan_report+0x25b/0x340 [ 900.837080] __asan_report_load8_noabort+0x14/0x20 [ 900.837375] __lock_acquire+0x3c9f/0x3d50 [ 900.837618] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 900.837933] ? exit_pi_state_list+0x369/0x7a0 [ 900.838238] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 900.839185] ? __lock_acquire+0x6aa/0x3d50 [ 900.839454] ? __lock_acquire+0x6aa/0x3d50 [ 900.840454] ? print_irqtrace_events+0x270/0x270 [ 900.840890] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 900.841376] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 900.841849] ? find_held_lock+0x35/0x1d0 [ 900.842182] ? __lock_acquire+0x6aa/0x3d50 [ 900.842548] ? __lock_acquire+0x6aa/0x3d50 [ 900.842914] ? check_noncircular+0x20/0x20 [ 900.843285] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 900.843752] ? mark_held_locks+0xaf/0x100 [ 900.844123] ? retint_kernel+0x10/0x10 [ 900.844473] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 900.844917] ? trace_hardirqs_on_thunk+0x1a/0x1c [ 900.845347] ? retint_kernel+0x10/0x10 [ 900.845711] lock_acquire+0x1d5/0x580 [ 900.846059] ? lock_acquire+0x1d5/0x580 [ 900.846434] ? exit_pi_state_list+0x369/0x7a0 [ 900.846932] ? lock_downgrade+0x990/0x990 [ 900.847301] ? lock_release+0xa40/0xa40 [ 900.847657] ? do_raw_spin_trylock+0x190/0x190 [ 900.848067] ? trace_hardirqs_on+0xd/0x10 [ 900.848435] ? _raw_spin_unlock_irq+0x27/0x70 [ 900.848839] _raw_spin_lock_irq+0x5e/0x80 [ 900.849210] ? exit_pi_state_list+0x369/0x7a0 [ 900.849611] exit_pi_state_list+0x369/0x7a0 [ 900.849997] ? futex_wait_requeue_pi.constprop.19+0x1300/0x1300 [ 900.850608] ? lock_release+0xa40/0xa40 [ 900.850952] ? trace_event_raw_event_sched_switch+0x8a0/0x8a0 [ 900.851520] ? _raw_spin_unlock_irqrestore+0x31/0xba [ 900.852031] ? __might_sleep+0x95/0x190 [ 900.852428] ? __might_fault+0x188/0x1d0 [ 900.852792] ? do_raw_spin_trylock+0x190/0x190 [ 900.853201] mm_release+0x46d/0x590 [ 900.853557] ? do_raw_spin_trylock+0x190/0x190 [ 900.854021] ? mm_access+0x140/0x140 [ 900.854385] ? _raw_spin_unlock_irq+0x27/0x70 [ 900.854830] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 900.855279] ? trace_hardirqs_on+0xd/0x10 [ 900.855692] ? _raw_spin_unlock_irq+0x27/0x70 [ 900.856135] ? acct_collect+0x637/0x800 [ 900.856517] do_exit+0x481/0x1ad0 [ 900.856872] ? mm_update_next_owner+0x930/0x930 [ 900.857362] ? trace_event_raw_event_sched_switch+0x8a0/0x8a0 [ 900.857972] ? rcu_note_context_switch+0x710/0x710 [ 900.858432] ? futex_wait_setup+0x14a/0x3d0 [ 900.858848] ? __might_sleep+0x95/0x190 [ 900.859200] ? find_held_lock+0x35/0x1d0 [ 900.859572] ? futex_wait+0x402/0x990 [ 900.859912] ? lock_downgrade+0x990/0x990 [ 900.860291] ? do_raw_spin_trylock+0x190/0x190 [ 900.860697] ? check_noncircular+0x20/0x20 [ 900.861072] ? futex_wake+0x680/0x680 [ 900.861409] ? mmdrop+0x18/0x30 [ 900.861706] ? drop_futex_key_refs.isra.13+0x63/0xa0 [ 900.862161] ? futex_wait+0x69e/0x990 [ 900.862875] ? find_held_lock+0x35/0x1d0 [ 900.863250] ? get_signal+0x7ae/0x16d0 [ 900.863612] ? lock_downgrade+0x990/0x990 [ 900.864003] do_group_exit+0x149/0x400 [ 900.864354] ? __lock_is_held+0xb6/0x140 [ 900.864720] ? SyS_exit+0x30/0x30 [ 900.865048] ? _raw_spin_unlock_irq+0x27/0x70 [ 900.865465] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 900.865933] get_signal+0x73f/0x16d0 [ 900.866293] ? ptrace_notify+0x130/0x130 [ 900.867041] ? vma_wants_writenotify+0x3b0/0x3b0 [ 900.867485] ? exit_robust_list+0x240/0x240 [ 900.867890] ? find_held_lock+0x35/0x1d0 [ 900.868266] do_signal+0x94/0x1ee0 [ 900.868592] ? vm_mmap_pgoff+0x1ed/0x280 [ 900.868979] ? should_fail+0x23b/0xa40 [ 900.869337] ? fault_create_debugfs_attr+0x1f0/0x1f0 [ 900.869762] ? setup_sigcontext+0x7d0/0x7d0 [ 900.870019] ? find_held_lock+0x35/0x1d0 [ 900.870257] ? lock_downgrade+0x990/0x990 [ 900.870589] ? down_read_killable+0x180/0x180 [ 900.870942] ? lock_release+0xa40/0xa40 [ 900.871243] ? trace_event_raw_event_sched_switch+0x8a0/0x8a0 [ 900.871683] ? vm_mmap_pgoff+0x1fc/0x280 [ 900.871984] ? exit_to_usermode_loop+0x8c/0x310 [ 900.872351] exit_to_usermode_loop+0x214/0x310 [ 900.872640] ? trace_event_raw_event_sys_exit+0x260/0x260 [ 900.872992] ? kasan_check_write+0x14/0x20 [ 900.873311] syscall_return_slowpath+0x42f/0x510 [ 900.873650] ? prepare_exit_to_usermode+0x2d0/0x2d0 [ 900.874031] ? entry_SYSCALL_64_fastpath+0x91/0xbe [ 900.874378] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 900.874889] ? trace_hardirqs_on_thunk+0x1a/0x1c [ 900.875346] entry_SYSCALL_64_fastpath+0xbc/0xbe [ 900.875701] RIP: 0033:0x447c89 [ 900.875901] RSP: 002b:00007f999cf01ce8 EFLAGS: 00000246 ORIG_RAX: 00000000000000ca [ 900.876383] RAX: fffffffffffffe00 RBX: 0000000000748048 RCX: 0000000000447c89 [ 900.876864] RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000748048 [ 900.877355] RBP: 0000000000748048 R08: 0000000000000000 R09: 0000000000748020 [ 900.877795] R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 [ 900.878214] R13: 0000000000000000 R14: 00007f999cf029c0 R15: 00007f999cf02700 [ 900.878774] [ 900.878925] Allocated by task 4439: [ 900.879254] save_stack+0x43/0xd0 [ 900.879572] kasan_kmalloc+0xad/0xe0 [ 900.879911] kmem_cache_alloc_trace+0x136/0x750 [ 900.880332] refill_pi_state_cache.part.6+0xa5/0x2f0 [ 900.880794] futex_requeue+0x1887/0x2370 [ 900.881137] do_futex+0x7f5/0x20d0 [ 900.881458] SyS_futex+0x260/0x390 [ 900.881777] entry_SYSCALL_64_fastpath+0x1f/0xbe [ 900.882429] [ 900.882593] Freed by task 4428: [ 900.882894] save_stack+0x43/0xd0 [ 900.883212] kasan_slab_free+0x71/0xc0 [ 900.883567] kfree+0xca/0x250 [ 900.883853] do_exit+0x1502/0x1ad0 [ 900.884174] do_group_exit+0x149/0x400 [ 900.884524] get_signal+0x73f/0x16d0 [ 900.884862] do_signal+0x94/0x1ee0 [ 900.885187] exit_to_usermode_loop+0x214/0x310 [ 900.885603] syscall_return_slowpath+0x42f/0x510 [ 900.886043] entry_SYSCALL_64_fastpath+0xbc/0xbe [ 900.886494] [ 900.886643] The buggy address belongs to the object at ffff88003c1bc680 [ 900.886643] which belongs to the cache kmalloc-256 of size 256 [ 900.887536] The buggy address is located 40 bytes inside of [ 900.887536] 256-byte region [ffff88003c1bc680, ffff88003c1bc780) [ 900.888220] The buggy address belongs to the page: [ 900.888518] page:ffffea0000f06f00 count:1 mapcount:0 mapping:ffff88003c1bc040 index:0x0 [ 900.888994] flags: 0x100000000000100(slab) [ 900.889247] raw: 0100000000000100 ffff88003c1bc040 0000000000000000 000000010000000c [ 900.889707] raw: ffffea0000f1dfe0 ffffea0000eb6260 ffff88003e8007c0 0000000000000000 [ 900.890168] page dumped because: kasan: bad access detected [ 900.890577] [ 900.890724] Memory state around the buggy address: [ 900.891170] ffff88003c1bc580: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 900.891840] ffff88003c1bc600: fb fb fb fb fb fb fb fb fc fc fc fc fc fc fc fc [ 900.892507] >ffff88003c1bc680: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 900.893165] ^ [ 900.893581] ffff88003c1bc700: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 900.894234] ffff88003c1bc780: fc fc fc fc fc fc fc fc fb fb fb fb fb fb fb fb [ 900.894904] ================================================================== [ 900.895564] Disabling lock debugging due to kernel taint [ 900.896054] Kernel panic - not syncing: panic_on_warn set ... [ 900.896054] [ 900.896719] CPU: 1 PID: 4419 Comm: syz-executor4 Tainted: G B 4.14.0-rc5-next-20171018+ #8 [ 900.897578] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS Bochs 01/01/2011 [ 900.898313] Call Trace: [ 900.898557] dump_stack+0x194/0x257 [ 900.898889] ? arch_local_irq_restore+0x53/0x53 [ 900.899313] ? kasan_end_report+0x32/0x50 [ 900.899712] ? lock_downgrade+0x990/0x990 [ 900.900092] ? vsnprintf+0x1ed/0x1900 [ 900.900435] ? __lock_acquire+0x3c50/0x3d50 [ 900.900827] panic+0x1e4/0x41c [ 900.901115] ? refcount_error_report+0x214/0x214 [ 900.901544] ? add_taint+0x40/0x50 [ 900.901875] ? add_taint+0x1c/0x50 [ 900.902204] ? __lock_acquire+0x3c9f/0x3d50 [ 900.902601] kasan_end_report+0x50/0x50 [ 900.902961] kasan_report+0x144/0x340 [ 900.903304] __asan_report_load8_noabort+0x14/0x20 [ 900.903975] __lock_acquire+0x3c9f/0x3d50 [ 900.904349] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 900.904712] ? exit_pi_state_list+0x369/0x7a0 [ 900.905025] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 900.905495] ? __lock_acquire+0x6aa/0x3d50 [ 900.905903] ? __lock_acquire+0x6aa/0x3d50 [ 900.906322] ? print_irqtrace_events+0x270/0x270 [ 900.906832] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 900.907327] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 900.907795] ? find_held_lock+0x35/0x1d0 [ 900.908165] ? __lock_acquire+0x6aa/0x3d50 [ 900.908554] ? __lock_acquire+0x6aa/0x3d50 [ 900.908944] ? check_noncircular+0x20/0x20 [ 900.909328] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 900.909796] ? mark_held_locks+0xaf/0x100 [ 900.910176] ? retint_kernel+0x10/0x10 [ 900.910540] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 900.910880] ? trace_hardirqs_on_thunk+0x1a/0x1c [ 900.911161] ? retint_kernel+0x10/0x10 [ 900.911392] lock_acquire+0x1d5/0x580 [ 900.911615] ? lock_acquire+0x1d5/0x580 [ 900.911852] ? exit_pi_state_list+0x369/0x7a0 [ 900.912119] ? lock_downgrade+0x990/0x990 [ 900.912367] ? lock_release+0xa40/0xa40 [ 900.912601] ? do_raw_spin_trylock+0x190/0x190 [ 900.912870] ? trace_hardirqs_on+0xd/0x10 [ 900.913118] ? _raw_spin_unlock_irq+0x27/0x70 [ 900.913384] _raw_spin_lock_irq+0x5e/0x80 [ 900.913628] ? exit_pi_state_list+0x369/0x7a0 [ 900.913891] exit_pi_state_list+0x369/0x7a0 [ 900.914146] ? futex_wait_requeue_pi.constprop.19+0x1300/0x1300 [ 900.914576] ? lock_release+0xa40/0xa40 [ 900.914842] ? trace_event_raw_event_sched_switch+0x8a0/0x8a0 [ 900.915186] ? _raw_spin_unlock_irqrestore+0x31/0xba [ 900.915485] ? __might_sleep+0x95/0x190 [ 900.915718] ? __might_fault+0x188/0x1d0 [ 900.915956] ? do_raw_spin_trylock+0x190/0x190 [ 900.916224] mm_release+0x46d/0x590 [ 900.916437] ? do_raw_spin_trylock+0x190/0x190 [ 900.916704] ? mm_access+0x140/0x140 [ 900.916921] ? _raw_spin_unlock_irq+0x27/0x70 [ 900.917183] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 900.917475] ? trace_hardirqs_on+0xd/0x10 [ 900.917717] ? _raw_spin_unlock_irq+0x27/0x70 [ 900.917979] ? acct_collect+0x637/0x800 [ 900.918211] do_exit+0x481/0x1ad0 [ 900.918416] ? mm_update_next_owner+0x930/0x930 [ 900.918850] ? trace_event_raw_event_sched_switch+0x8a0/0x8a0 [ 900.919381] ? rcu_note_context_switch+0x710/0x710 [ 900.919829] ? futex_wait_setup+0x14a/0x3d0 [ 900.920229] ? __might_sleep+0x95/0x190 [ 900.920596] ? find_held_lock+0x35/0x1d0 [ 900.920967] ? futex_wait+0x402/0x990 [ 900.921309] ? lock_downgrade+0x990/0x990 [ 900.921682] ? do_raw_spin_trylock+0x190/0x190 [ 900.922100] ? check_noncircular+0x20/0x20 [ 900.922509] ? futex_wake+0x680/0x680 [ 900.922860] ? mmdrop+0x18/0x30 [ 900.923162] ? drop_futex_key_refs.isra.13+0x63/0xa0 [ 900.923627] ? futex_wait+0x69e/0x990 [ 900.923975] ? find_held_lock+0x35/0x1d0 [ 900.924346] ? get_signal+0x7ae/0x16d0 [ 900.924700] ? lock_downgrade+0x990/0x990 [ 900.925080] do_group_exit+0x149/0x400 [ 900.925434] ? __lock_is_held+0xb6/0x140 [ 900.925806] ? SyS_exit+0x30/0x30 [ 900.926122] ? _raw_spin_unlock_irq+0x27/0x70 [ 900.926768] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 900.927229] get_signal+0x73f/0x16d0 [ 900.927572] ? ptrace_notify+0x130/0x130 [ 900.927949] ? vma_wants_writenotify+0x3b0/0x3b0 [ 900.928399] ? exit_robust_list+0x240/0x240 [ 900.928796] ? find_held_lock+0x35/0x1d0 [ 900.929172] do_signal+0x94/0x1ee0 [ 900.929509] ? vm_mmap_pgoff+0x1ed/0x280 [ 900.929894] ? should_fail+0x23b/0xa40 [ 900.930253] ? fault_create_debugfs_attr+0x1f0/0x1f0 [ 900.930725] ? setup_sigcontext+0x7d0/0x7d0 [ 900.931143] ? find_held_lock+0x35/0x1d0 [ 900.931518] ? lock_downgrade+0x990/0x990 [ 900.931899] ? down_read_killable+0x180/0x180 [ 900.932313] ? lock_release+0xa40/0xa40 [ 900.932677] ? trace_event_raw_event_sched_switch+0x8a0/0x8a0 [ 900.933226] ? vm_mmap_pgoff+0x1fc/0x280 [ 900.933598] ? exit_to_usermode_loop+0x8c/0x310 [ 900.934025] exit_to_usermode_loop+0x214/0x310 [ 900.934452] ? trace_event_raw_event_sys_exit+0x260/0x260 [ 900.934978] ? kasan_check_write+0x14/0x20 [ 900.935368] syscall_return_slowpath+0x42f/0x510 [ 900.935803] ? prepare_exit_to_usermode+0x2d0/0x2d0 [ 900.936259] ? entry_SYSCALL_64_fastpath+0x91/0xbe [ 900.936708] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 900.937164] ? trace_hardirqs_on_thunk+0x1a/0x1c [ 900.937601] entry_SYSCALL_64_fastpath+0xbc/0xbe [ 900.938033] RIP: 0033:0x447c89 [ 900.938325] RSP: 002b:00007f999cf01ce8 EFLAGS: 00000246 ORIG_RAX: 00000000000000ca [ 900.939029] RAX: fffffffffffffe00 RBX: 0000000000748048 RCX: 0000000000447c89 [ 900.939708] RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000748048 [ 900.940373] RBP: 0000000000748048 R08: 0000000000000000 R09: 0000000000748020 [ 900.941081] R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 [ 900.941741] R13: 0000000000000000 R14: 00007f999cf029c0 R15: 00007f999cf02700 [ 900.942522] Dumping ftrace buffer: [ 900.942850] (ftrace buffer empty) [ 900.943190] Kernel Offset: disabled [ 900.943526] Rebooting in 86400 seconds..