2017/10/26 06:53:26 parsed 1 programs 2017/10/26 06:53:26 executed programs: 0 syzkaller login: [ 23.960552] ================================================================== [ 23.961229] BUG: KASAN: use-after-free in __lock_acquire+0x3c9f/0x3d50 [ 23.961802] Read of size 8 at addr ffff8800397b8068 by task syz-executor6/3069 [ 23.962296] [ 23.962395] CPU: 1 PID: 3069 Comm: syz-executor6 Not tainted 4.14.0-rc5-next-20171018+ #8 [ 23.962973] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS Bochs 01/01/2011 [ 23.963564] Call Trace: [ 23.963750] dump_stack+0x194/0x257 [ 23.963969] ? arch_local_irq_restore+0x53/0x53 [ 23.964264] ? show_regs_print_info+0x65/0x65 [ 23.964526] ? print_irqtrace_events+0x270/0x270 [ 23.964830] ? print_irqtrace_events+0x270/0x270 [ 23.965420] ? __lock_acquire+0x3c9f/0x3d50 [ 23.965683] print_address_description+0x73/0x250 [ 23.965998] ? __lock_acquire+0x3c9f/0x3d50 [ 23.966275] kasan_report+0x25b/0x340 [ 23.966568] __asan_report_load8_noabort+0x14/0x20 [ 23.966855] __lock_acquire+0x3c9f/0x3d50 [ 23.967134] ? exit_pi_state_list+0x369/0x7a0 [ 23.967395] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 23.967733] ? mark_held_locks+0xaf/0x100 [ 23.967975] ? retint_kernel+0x10/0x10 [ 23.968238] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 23.968537] ? trace_hardirqs_on_thunk+0x1a/0x1c [ 23.968913] ? retint_kernel+0x10/0x10 [ 23.969990] ? exit_pi_state_list+0x361/0x7a0 [ 23.970401] ? queued_spin_lock_slowpath+0x1c4/0xfa0 [ 23.970718] ? osq_unlock+0x350/0x350 [ 23.970948] ? __lock_acquire+0x6aa/0x3d50 [ 23.972483] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 23.972825] ? check_noncircular+0x20/0x20 [ 23.973122] ? find_held_lock+0x35/0x1d0 [ 23.973360] ? finish_task_switch+0x1d3/0x740 [ 23.973683] ? lock_downgrade+0x990/0x990 [ 23.973940] ? load_balance+0x33b0/0x33b0 [ 23.974202] ? find_held_lock+0x35/0x1d0 [ 23.974439] lock_acquire+0x1d5/0x580 [ 23.974761] ? lock_acquire+0x1d5/0x580 [ 23.975031] ? exit_pi_state_list+0x369/0x7a0 [ 23.975387] ? lock_downgrade+0x990/0x990 [ 23.975766] ? lock_release+0xa40/0xa40 [ 23.976015] ? do_raw_spin_trylock+0x190/0x190 [ 23.976313] _raw_spin_lock_irq+0x5e/0x80 [ 23.976572] ? exit_pi_state_list+0x369/0x7a0 [ 23.976887] exit_pi_state_list+0x369/0x7a0 [ 23.977197] ? futex_wait_requeue_pi.constprop.19+0x1300/0x1300 [ 23.977591] ? lock_release+0xa40/0xa40 [ 23.977852] ? trace_event_raw_event_sched_switch+0x8a0/0x8a0 [ 23.978263] ? _raw_spin_unlock_irqrestore+0x31/0xba [ 23.978562] ? __might_sleep+0x95/0x190 [ 23.978796] ? __might_fault+0x188/0x1d0 [ 23.979108] ? do_raw_spin_trylock+0x190/0x190 [ 23.979399] mm_release+0x46d/0x590 [ 23.979614] ? do_raw_spin_trylock+0x190/0x190 [ 23.979882] ? mm_access+0x140/0x140 [ 23.980179] ? _raw_spin_unlock_irq+0x27/0x70 [ 23.980478] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 23.980847] ? trace_hardirqs_on+0xd/0x10 [ 23.981210] ? _raw_spin_unlock_irq+0x27/0x70 [ 23.981531] ? acct_collect+0x637/0x800 [ 23.981815] do_exit+0x481/0x1ad0 [ 23.982068] ? _raw_spin_unlock_irqrestore+0x31/0xba [ 23.982436] ? trace_hardirqs_on_caller+0x3d0/0x5c0 [ 23.982794] ? mm_update_next_owner+0x930/0x930 [ 23.983131] ? trace_hardirqs_on+0xd/0x10 [ 23.983447] ? hrtimer_try_to_cancel+0x9a/0x5c0 [ 23.983831] ? __hrtimer_get_remaining+0x1c0/0x1c0 [ 23.984143] ? lock_downgrade+0x990/0x990 [ 23.984387] ? do_raw_spin_trylock+0x190/0x190 [ 23.984738] ? osq_unlock+0x350/0x350 [ 23.985143] ? futex_wake+0x680/0x680 [ 23.985481] ? memset+0x31/0x40 [ 23.985725] ? hrtimer_cancel+0x2e/0x40 [ 23.985959] ? futex_wait_requeue_pi.constprop.19+0x8a8/0x1300 [ 23.986350] ? check_noncircular+0x20/0x20 [ 23.986727] ? futex_requeue+0x2370/0x2370 [ 23.987108] ? futex_wake+0x680/0x680 [ 23.987384] ? __lock_acquire+0x6aa/0x3d50 [ 23.987633] ? drop_futex_key_refs.isra.13+0x63/0xa0 [ 23.988047] ? futex_wait+0x69e/0x990 [ 23.988384] ? find_held_lock+0x35/0x1d0 [ 23.988743] ? retint_kernel+0x10/0x10 [ 23.989084] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 23.989441] ? trace_hardirqs_on_thunk+0x1a/0x1c [ 23.989781] do_group_exit+0x149/0x400 [ 23.990066] ? SyS_exit+0x30/0x30 [ 23.990552] ? _raw_spin_unlock_irq+0x56/0x70 [ 23.990876] get_signal+0x73f/0x16d0 [ 23.991151] ? ptrace_notify+0x130/0x130 [ 23.991441] ? vma_wants_writenotify+0x3b0/0x3b0 [ 23.991782] ? exit_robust_list+0x240/0x240 [ 23.992096] ? find_held_lock+0x35/0x1d0 [ 23.992388] do_signal+0x94/0x1ee0 [ 23.992641] ? vm_mmap_pgoff+0x1ed/0x280 [ 23.992949] ? should_fail+0x23b/0xa40 [ 23.994864] ? fault_create_debugfs_attr+0x1f0/0x1f0 [ 23.995325] ? setup_sigcontext+0x7d0/0x7d0 [ 23.995718] ? find_held_lock+0x35/0x1d0 [ 23.996080] ? lock_downgrade+0x990/0x990 [ 23.996457] ? down_read_killable+0x180/0x180 [ 23.996858] ? lock_release+0xa40/0xa40 [ 23.997213] ? trace_event_raw_event_sched_switch+0x8a0/0x8a0 [ 23.997557] ? vm_mmap_pgoff+0x1fc/0x280 [ 23.997797] ? exit_to_usermode_loop+0x8c/0x310 [ 23.998085] exit_to_usermode_loop+0x214/0x310 [ 23.998369] ? trace_event_raw_event_sys_exit+0x260/0x260 [ 23.998690] ? kasan_check_write+0x14/0x20 [ 23.998942] syscall_return_slowpath+0x42f/0x510 [ 23.999244] ? prepare_exit_to_usermode+0x2d0/0x2d0 [ 23.999539] ? entry_SYSCALL_64_fastpath+0x91/0xbe [ 23.999843] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 24.000163] ? trace_hardirqs_on_thunk+0x1a/0x1c [ 24.000443] entry_SYSCALL_64_fastpath+0xbc/0xbe [ 24.000719] RIP: 0033:0x447c89 [ 24.000906] RSP: 002b:00007f501ff42bd8 EFLAGS: 00000246 ORIG_RAX: 00000000000000ca [ 24.001753] RAX: fffffffffffffdff RBX: 00007f501ff436cc RCX: 0000000000447c89 [ 24.002315] RDX: 0000000000000004 RSI: 000080000000000b RDI: 000000002000cffc [ 24.002833] RBP: 0000000000748020 R08: 0000000020048000 R09: 0000000000000000 [ 24.003431] R10: 0000000020edfff0 R11: 0000000000000246 R12: 00000000ffffffff [ 24.003947] R13: 0000000000000d08 R14: 00000000006e4da8 R15: 00007f501ff43700 [ 24.004472] [ 24.004591] Allocated by task 3086: [ 24.004851] save_stack+0x43/0xd0 [ 24.005127] kasan_kmalloc+0xad/0xe0 [ 24.005458] kmem_cache_alloc_trace+0x136/0x750 [ 24.005899] refill_pi_state_cache.part.6+0xa5/0x2f0 [ 24.006353] futex_requeue+0x1887/0x2370 [ 24.006716] do_futex+0x7f5/0x20d0 [ 24.007033] SyS_futex+0x260/0x390 [ 24.007355] entry_SYSCALL_64_fastpath+0x1f/0xbe [ 24.007779] [ 24.007926] Freed by task 3078: [ 24.008222] save_stack+0x43/0xd0 [ 24.008641] kasan_slab_free+0x71/0xc0 [ 24.008986] kfree+0xca/0x250 [ 24.009269] do_exit+0x1502/0x1ad0 [ 24.009588] do_group_exit+0x149/0x400 [ 24.009936] get_signal+0x73f/0x16d0 [ 24.010274] do_signal+0x94/0x1ee0 [ 24.010594] exit_to_usermode_loop+0x214/0x310 [ 24.011003] syscall_return_slowpath+0x42f/0x510 [ 24.011433] entry_SYSCALL_64_fastpath+0xbc/0xbe [ 24.011856] [ 24.012008] The buggy address belongs to the object at ffff8800397b8040 [ 24.012008] which belongs to the cache kmalloc-256 of size 256 [ 24.013222] The buggy address is located 40 bytes inside of [ 24.013222] 256-byte region [ffff8800397b8040, ffff8800397b8140) [ 24.014264] The buggy address belongs to the page: [ 24.015076] page:ffffea0000e5ee00 count:1 mapcount:0 mapping:ffff8800397b8040 index:0x0 [ 24.016190] flags: 0x100000000000100(slab) [ 24.016568] raw: 0100000000000100 ffff8800397b8040 0000000000000000 000000010000000c [ 24.017287] raw: ffffea0000f06920 ffffea0000f52320 ffff88003e8007c0 0000000000000000 [ 24.017991] page dumped because: kasan: bad access detected [ 24.018496] [ 24.018642] Memory state around the buggy address: [ 24.019079] ffff8800397b7f00: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fc [ 24.019725] ffff8800397b7f80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 24.020364] >ffff8800397b8000: fc fc fc fc fc fc fc fc fb fb fb fb fb fb fb fb [ 24.021004] ^ [ 24.021687] ffff8800397b8080: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 24.022343] ffff8800397b8100: fb fb fb fb fb fb fb fb fc fc fc fc fc fc fc fc [ 24.022998] ================================================================== [ 24.023648] Disabling lock debugging due to kernel taint [ 24.024126] Kernel panic - not syncing: panic_on_warn set ... [ 24.024126] [ 24.024780] CPU: 1 PID: 3069 Comm: syz-executor6 Tainted: G B 4.14.0-rc5-next-20171018+ #8 [ 24.026084] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS Bochs 01/01/2011 [ 24.026811] Call Trace: [ 24.027051] dump_stack+0x194/0x257 [ 24.027382] ? arch_local_irq_restore+0x53/0x53 [ 24.027799] ? kasan_end_report+0x32/0x50 [ 24.028158] ? lock_downgrade+0x990/0x990 [ 24.028527] ? vsnprintf+0x1ed/0x1900 [ 24.028867] ? __lock_acquire+0x3c50/0x3d50 [ 24.029473] panic+0x1e4/0x41c [ 24.029762] ? refcount_error_report+0x214/0x214 [ 24.030189] ? add_taint+0x40/0x50 [ 24.030442] ? add_taint+0x1c/0x50 [ 24.030650] ? __lock_acquire+0x3c9f/0x3d50 [ 24.030928] kasan_end_report+0x50/0x50 [ 24.031289] kasan_report+0x144/0x340 [ 24.031618] __asan_report_load8_noabort+0x14/0x20 [ 24.031906] __lock_acquire+0x3c9f/0x3d50 [ 24.032189] ? exit_pi_state_list+0x369/0x7a0 [ 24.032454] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 24.032757] ? mark_held_locks+0xaf/0x100 [ 24.033001] ? retint_kernel+0x10/0x10 [ 24.033397] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 24.033848] ? trace_hardirqs_on_thunk+0x1a/0x1c [ 24.034273] ? retint_kernel+0x10/0x10 [ 24.034615] ? exit_pi_state_list+0x361/0x7a0 [ 24.035016] ? queued_spin_lock_slowpath+0x1c4/0xfa0 [ 24.035477] ? osq_unlock+0x350/0x350 [ 24.035825] ? __lock_acquire+0x6aa/0x3d50 [ 24.036210] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 24.036676] ? check_noncircular+0x20/0x20 [ 24.037407] ? find_held_lock+0x35/0x1d0 [ 24.037657] ? finish_task_switch+0x1d3/0x740 [ 24.038189] ? lock_downgrade+0x990/0x990 [ 24.038503] ? load_balance+0x33b0/0x33b0 [ 24.038868] ? find_held_lock+0x35/0x1d0 [ 24.039627] lock_acquire+0x1d5/0x580 [ 24.040769] ? lock_acquire+0x1d5/0x580 [ 24.041168] ? exit_pi_state_list+0x369/0x7a0 [ 24.041638] ? lock_downgrade+0x990/0x990 [ 24.041966] ? lock_release+0xa40/0xa40 [ 24.042317] ? do_raw_spin_trylock+0x190/0x190 [ 24.042731] _raw_spin_lock_irq+0x5e/0x80 [ 24.043093] ? exit_pi_state_list+0x369/0x7a0 [ 24.043485] exit_pi_state_list+0x369/0x7a0 [ 24.044055] ? futex_wait_requeue_pi.constprop.19+0x1300/0x1300 [ 24.044678] ? lock_release+0xa40/0xa40 [ 24.045059] ? trace_event_raw_event_sched_switch+0x8a0/0x8a0 [ 24.045584] ? _raw_spin_unlock_irqrestore+0x31/0xba [ 24.046045] ? __might_sleep+0x95/0x190 [ 24.046405] ? __might_fault+0x188/0x1d0 [ 24.046767] ? do_raw_spin_trylock+0x190/0x190 [ 24.047181] mm_release+0x46d/0x590 [ 24.047507] ? do_raw_spin_trylock+0x190/0x190 [ 24.047920] ? mm_access+0x140/0x140 [ 24.048255] ? _raw_spin_unlock_irq+0x27/0x70 [ 24.048659] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 24.049918] ? trace_hardirqs_on+0xd/0x10 [ 24.050309] ? _raw_spin_unlock_irq+0x27/0x70 [ 24.050587] ? acct_collect+0x637/0x800 [ 24.050842] do_exit+0x481/0x1ad0 [ 24.051124] ? _raw_spin_unlock_irqrestore+0x31/0xba [ 24.051583] ? trace_hardirqs_on_caller+0x3d0/0x5c0 [ 24.052030] ? mm_update_next_owner+0x930/0x930 [ 24.052473] ? trace_hardirqs_on+0xd/0x10 [ 24.052843] ? hrtimer_try_to_cancel+0x9a/0x5c0 [ 24.053324] ? __hrtimer_get_remaining+0x1c0/0x1c0 [ 24.053764] ? lock_downgrade+0x990/0x990 [ 24.054137] ? do_raw_spin_trylock+0x190/0x190 [ 24.054548] ? osq_unlock+0x350/0x350 [ 24.054888] ? futex_wake+0x680/0x680 [ 24.055230] ? memset+0x31/0x40 [ 24.055530] ? hrtimer_cancel+0x2e/0x40 [ 24.055941] ? futex_wait_requeue_pi.constprop.19+0x8a8/0x1300 [ 24.056473] ? check_noncircular+0x20/0x20 [ 24.056850] ? futex_requeue+0x2370/0x2370 [ 24.057209] ? futex_wake+0x680/0x680 [ 24.057491] ? __lock_acquire+0x6aa/0x3d50 [ 24.057830] ? drop_futex_key_refs.isra.13+0x63/0xa0 [ 24.058312] ? futex_wait+0x69e/0x990 [ 24.058684] ? find_held_lock+0x35/0x1d0 [ 24.059050] ? retint_kernel+0x10/0x10 [ 24.059401] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 24.059854] ? trace_hardirqs_on_thunk+0x1a/0x1c [ 24.060285] do_group_exit+0x149/0x400 [ 24.060637] ? SyS_exit+0x30/0x30 [ 24.060955] ? _raw_spin_unlock_irq+0x56/0x70 [ 24.061745] get_signal+0x73f/0x16d0 [ 24.062084] ? ptrace_notify+0x130/0x130 [ 24.062481] ? vma_wants_writenotify+0x3b0/0x3b0 [ 24.062939] ? exit_robust_list+0x240/0x240 [ 24.063472] ? find_held_lock+0x35/0x1d0 [ 24.063841] do_signal+0x94/0x1ee0 [ 24.064163] ? vm_mmap_pgoff+0x1ed/0x280 [ 24.064526] ? should_fail+0x23b/0xa40 [ 24.064878] ? fault_create_debugfs_attr+0x1f0/0x1f0 [ 24.065353] ? setup_sigcontext+0x7d0/0x7d0 [ 24.065743] ? find_held_lock+0x35/0x1d0 [ 24.066110] ? lock_downgrade+0x990/0x990 [ 24.066483] ? down_read_killable+0x180/0x180 [ 24.066886] ? lock_release+0xa40/0xa40 [ 24.067245] ? trace_event_raw_event_sched_switch+0x8a0/0x8a0 [ 24.067764] ? vm_mmap_pgoff+0x1fc/0x280 [ 24.068130] ? exit_to_usermode_loop+0x8c/0x310 [ 24.068549] exit_to_usermode_loop+0x214/0x310 [ 24.068958] ? trace_event_raw_event_sys_exit+0x260/0x260 [ 24.069886] ? kasan_check_write+0x14/0x20 [ 24.070270] syscall_return_slowpath+0x42f/0x510 [ 24.070695] ? prepare_exit_to_usermode+0x2d0/0x2d0 [ 24.071139] ? entry_SYSCALL_64_fastpath+0x91/0xbe [ 24.071580] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 24.072029] ? trace_hardirqs_on_thunk+0x1a/0x1c [ 24.072455] entry_SYSCALL_64_fastpath+0xbc/0xbe [ 24.072880] RIP: 0033:0x447c89 [ 24.073211] RSP: 002b:00007f501ff42bd8 EFLAGS: 00000246 ORIG_RAX: 00000000000000ca [ 24.073891] RAX: fffffffffffffdff RBX: 00007f501ff436cc RCX: 0000000000447c89 [ 24.074533] RDX: 0000000000000004 RSI: 000080000000000b RDI: 000000002000cffc [ 24.075173] RBP: 0000000000748020 R08: 0000000020048000 R09: 0000000000000000 [ 24.075814] R10: 0000000020edfff0 R11: 0000000000000246 R12: 00000000ffffffff [ 24.076465] R13: 0000000000000d08 R14: 00000000006e4da8 R15: 00007f501ff43700 [ 24.081130] Dumping ftrace buffer: [ 24.081476] (ftrace buffer empty) [ 24.081808] Kernel Offset: disabled [ 24.082137] Rebooting in 86400 seconds..