2017/10/26 07:00:59 parsed 1 programs 2017/10/26 07:00:59 executed programs: 0 2017/10/26 07:01:04 executed programs: 78 syzkaller login: [ 30.813673] ================================================================== [ 30.814237] BUG: KASAN: use-after-free in __lock_acquire+0x3c9f/0x3d50 [ 30.814634] Read of size 8 at addr ffff88006bcaa1a8 by task syz-executor0/3648 [ 30.815072] [ 30.815171] CPU: 1 PID: 3648 Comm: syz-executor0 Not tainted 4.14.0-rc5-next-20171018+ #8 [ 30.815667] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS Bochs 01/01/2011 [ 30.816297] Call Trace: [ 30.816532] dump_stack+0x194/0x257 [ 30.816857] ? arch_local_irq_restore+0x53/0x53 [ 30.817276] ? show_regs_print_info+0x65/0x65 [ 30.817649] ? print_irqtrace_events+0x270/0x270 [ 30.818631] ? print_irqtrace_events+0x270/0x270 [ 30.819062] ? __lock_acquire+0x3c9f/0x3d50 [ 30.819455] print_address_description+0x73/0x250 [ 30.819891] ? __lock_acquire+0x3c9f/0x3d50 [ 30.820279] kasan_report+0x25b/0x340 [ 30.821749] __asan_report_load8_noabort+0x14/0x20 [ 30.822198] __lock_acquire+0x3c9f/0x3d50 [ 30.822580] ? exit_pi_state_list+0x369/0x7a0 [ 30.822993] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 30.823471] ? __lock_acquire+0x6aa/0x3d50 [ 30.823857] ? __lock_acquire+0x6aa/0x3d50 [ 30.824246] ? __lock_acquire+0x6aa/0x3d50 [ 30.824636] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 30.825100] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 30.825655] ? check_noncircular+0x20/0x20 [ 30.826061] ? osq_unlock+0x350/0x350 [ 30.826345] ? __lock_acquire+0x6aa/0x3d50 [ 30.826592] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 30.826968] ? check_noncircular+0x20/0x20 [ 30.827354] ? print_irqtrace_events+0x270/0x270 [ 30.827645] ? check_noncircular+0x20/0x20 [ 30.827891] ? lock_release+0xa40/0xa40 [ 30.828139] ? switched_to_fair+0xb0/0xb0 [ 30.828384] ? __lock_is_held+0xb6/0x140 [ 30.828618] ? find_held_lock+0x35/0x1d0 [ 30.828851] lock_acquire+0x1d5/0x580 [ 30.829092] ? lock_acquire+0x1d5/0x580 [ 30.829320] ? exit_pi_state_list+0x369/0x7a0 [ 30.829586] ? lock_downgrade+0x990/0x990 [ 30.829920] ? lock_release+0xa40/0xa40 [ 30.830276] ? do_raw_spin_trylock+0x190/0x190 [ 30.830693] ? lock_downgrade+0x990/0x990 [ 30.831078] _raw_spin_lock_irq+0x5e/0x80 [ 30.831546] ? exit_pi_state_list+0x369/0x7a0 [ 30.831952] exit_pi_state_list+0x369/0x7a0 [ 30.832344] ? futex_wait_requeue_pi.constprop.19+0x1300/0x1300 [ 30.832926] ? lock_release+0xa40/0xa40 [ 30.833175] ? trace_event_raw_event_sched_switch+0x8a0/0x8a0 [ 30.833510] ? _raw_spin_unlock_irqrestore+0x31/0xba [ 30.833802] ? __might_sleep+0x95/0x190 [ 30.834067] ? __might_fault+0x188/0x1d0 [ 30.834333] ? do_raw_spin_trylock+0x190/0x190 [ 30.834610] mm_release+0x46d/0x590 [ 30.834820] ? do_raw_spin_trylock+0x190/0x190 [ 30.835093] ? mm_access+0x140/0x140 [ 30.835404] ? _raw_spin_unlock_irq+0x27/0x70 [ 30.835710] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 30.836009] ? trace_hardirqs_on+0xd/0x10 [ 30.836342] ? _raw_spin_unlock_irq+0x27/0x70 [ 30.836653] ? acct_collect+0x637/0x800 [ 30.836895] do_exit+0x481/0x1ad0 [ 30.837142] ? mm_update_next_owner+0x930/0x930 [ 30.837419] ? trace_event_raw_event_sched_switch+0x8a0/0x8a0 [ 30.837792] ? rcu_note_context_switch+0x710/0x710 [ 30.838107] ? futex_wait_setup+0x14a/0x3d0 [ 30.838383] ? __might_sleep+0x95/0x190 [ 30.839047] ? find_held_lock+0x35/0x1d0 [ 30.839435] ? futex_wait+0x402/0x990 [ 30.839832] ? lock_downgrade+0x990/0x990 [ 30.840204] ? do_raw_spin_trylock+0x190/0x190 [ 30.841300] ? check_noncircular+0x20/0x20 [ 30.841686] ? futex_wake+0x680/0x680 [ 30.842029] ? mmdrop+0x18/0x30 [ 30.842332] ? drop_futex_key_refs.isra.13+0x63/0xa0 [ 30.842788] ? futex_wait+0x69e/0x990 [ 30.843136] ? find_held_lock+0x35/0x1d0 [ 30.843401] ? get_signal+0x7ae/0x16d0 [ 30.843640] ? lock_downgrade+0x990/0x990 [ 30.843882] do_group_exit+0x149/0x400 [ 30.844121] ? __lock_is_held+0xb6/0x140 [ 30.844456] ? SyS_exit+0x30/0x30 [ 30.844774] ? _raw_spin_unlock_irq+0x27/0x70 [ 30.845197] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 30.845646] get_signal+0x73f/0x16d0 [ 30.846041] ? ptrace_notify+0x130/0x130 [ 30.846408] ? vma_wants_writenotify+0x3b0/0x3b0 [ 30.846841] ? vma_link+0xe9/0x170 [ 30.847168] ? exit_robust_list+0x240/0x240 [ 30.847573] ? find_held_lock+0x35/0x1d0 [ 30.847960] do_signal+0x94/0x1ee0 [ 30.848327] ? vm_mmap_pgoff+0x1ed/0x280 [ 30.848558] ? should_fail+0x23b/0xa40 [ 30.848906] ? fault_create_debugfs_attr+0x1f0/0x1f0 [ 30.849418] ? setup_sigcontext+0x7d0/0x7d0 [ 30.849738] ? find_held_lock+0x35/0x1d0 [ 30.849984] ? lock_downgrade+0x990/0x990 [ 30.850278] ? down_read_killable+0x180/0x180 [ 30.850575] ? lock_release+0xa40/0xa40 [ 30.850833] ? trace_event_raw_event_sched_switch+0x8a0/0x8a0 [ 30.851217] ? vm_mmap_pgoff+0x1fc/0x280 [ 30.851537] ? exit_to_usermode_loop+0x8c/0x310 [ 30.851827] exit_to_usermode_loop+0x214/0x310 [ 30.852172] ? trace_event_raw_event_sys_exit+0x260/0x260 [ 30.852541] ? kasan_check_write+0x14/0x20 [ 30.852814] syscall_return_slowpath+0x42f/0x510 [ 30.853106] ? prepare_exit_to_usermode+0x2d0/0x2d0 [ 30.853396] ? entry_SYSCALL_64_fastpath+0x91/0xbe [ 30.853680] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 30.854145] ? trace_hardirqs_on_thunk+0x1a/0x1c [ 30.854575] entry_SYSCALL_64_fastpath+0xbc/0xbe [ 30.854879] RIP: 0033:0x447c89 [ 30.855092] RSP: 002b:00007f1e68b2ece8 EFLAGS: 00000246 ORIG_RAX: 00000000000000ca [ 30.855734] RAX: fffffffffffffe00 RBX: 0000000000748048 RCX: 0000000000447c89 [ 30.856373] RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000748048 [ 30.857011] RBP: 0000000000748048 R08: 0000000000000000 R09: 0000000000748020 [ 30.857651] R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 [ 30.858290] R13: 0000000000000000 R14: 00007f1e68b2f9c0 R15: 00007f1e68b2f700 [ 30.858937] [ 30.859063] Allocated by task 3650: [ 30.859412] save_stack+0x43/0xd0 [ 30.859736] kasan_kmalloc+0xad/0xe0 [ 30.860106] kmem_cache_alloc_trace+0x136/0x750 [ 30.860733] refill_pi_state_cache.part.6+0xa5/0x2f0 [ 30.861066] futex_requeue+0x1887/0x2370 [ 30.861301] do_futex+0x7f5/0x20d0 [ 30.861506] SyS_futex+0x260/0x390 [ 30.861712] entry_SYSCALL_64_fastpath+0x1f/0xbe [ 30.861986] [ 30.862110] Freed by task 3649: [ 30.862325] save_stack+0x43/0xd0 [ 30.862521] kasan_slab_free+0x71/0xc0 [ 30.862782] kfree+0xca/0x250 [ 30.862970] put_pi_state+0x3f4/0x560 [ 30.863201] unqueue_me_pi+0x4a/0xc0 [ 30.863561] futex_wait_requeue_pi.constprop.19+0xc7f/0x1300 [ 30.864091] do_futex+0x825/0x20d0 [ 30.864393] SyS_futex+0x260/0x390 [ 30.864694] entry_SYSCALL_64_fastpath+0x1f/0xbe [ 30.865095] [ 30.865237] The buggy address belongs to the object at ffff88006bcaa180 [ 30.865237] which belongs to the cache kmalloc-256 of size 256 [ 30.866302] The buggy address is located 40 bytes inside of [ 30.866302] 256-byte region [ffff88006bcaa180, ffff88006bcaa280) [ 30.867484] The buggy address belongs to the page: [ 30.867929] page:ffffea0001af2a80 count:1 mapcount:0 mapping:ffff88006bcaa040 index:0x0 [ 30.868658] flags: 0x500000000000100(slab) [ 30.869066] raw: 0500000000000100 ffff88006bcaa040 0000000000000000 000000010000000c [ 30.869817] raw: ffffea0001af2820 ffffea0001af63a0 ffff88003e8007c0 0000000000000000 [ 30.870514] page dumped because: kasan: bad access detected [ 30.871015] [ 30.871163] Memory state around the buggy address: [ 30.871667] ffff88006bcaa080: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 30.872325] ffff88006bcaa100: fb fb fb fb fb fb fb fb fc fc fc fc fc fc fc fc [ 30.872975] >ffff88006bcaa180: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 30.873645] ^ [ 30.874080] ffff88006bcaa200: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 30.874786] ffff88006bcaa280: fc fc fc fc fc fc fc fc fb fb fb fb fb fb fb fb [ 30.875522] ================================================================== [ 30.876085] Disabling lock debugging due to kernel taint [ 30.876486] Kernel panic - not syncing: panic_on_warn set ... [ 30.876486] [ 30.877108] CPU: 1 PID: 3648 Comm: syz-executor0 Tainted: G B 4.14.0-rc5-next-20171018+ #8 [ 30.878352] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS Bochs 01/01/2011 [ 30.878842] Call Trace: [ 30.878998] dump_stack+0x194/0x257 [ 30.879233] ? arch_local_irq_restore+0x53/0x53 [ 30.879550] ? kasan_end_report+0x32/0x50 [ 30.879798] ? lock_downgrade+0x990/0x990 [ 30.880063] ? vsnprintf+0x1ed/0x1900 [ 30.880296] ? __lock_acquire+0x3c50/0x3d50 [ 30.880563] panic+0x1e4/0x41c [ 30.880756] ? refcount_error_report+0x214/0x214 [ 30.881049] ? add_taint+0x40/0x50 [ 30.881262] ? add_taint+0x1c/0x50 [ 30.881475] ? __lock_acquire+0x3c9f/0x3d50 [ 30.882141] kasan_end_report+0x50/0x50 [ 30.882505] kasan_report+0x144/0x340 [ 30.882852] __asan_report_load8_noabort+0x14/0x20 [ 30.883313] __lock_acquire+0x3c9f/0x3d50 [ 30.883687] ? exit_pi_state_list+0x369/0x7a0 [ 30.884096] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 30.884563] ? __lock_acquire+0x6aa/0x3d50 [ 30.884945] ? __lock_acquire+0x6aa/0x3d50 [ 30.885363] ? __lock_acquire+0x6aa/0x3d50 [ 30.885748] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 30.886238] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 30.886704] ? check_noncircular+0x20/0x20 [ 30.887090] ? osq_unlock+0x350/0x350 [ 30.887439] ? __lock_acquire+0x6aa/0x3d50 [ 30.887823] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 30.888336] ? check_noncircular+0x20/0x20 [ 30.888722] ? print_irqtrace_events+0x270/0x270 [ 30.889155] ? check_noncircular+0x20/0x20 [ 30.889542] ? lock_release+0xa40/0xa40 [ 30.889900] ? switched_to_fair+0xb0/0xb0 [ 30.890275] ? __lock_is_held+0xb6/0x140 [ 30.890639] ? find_held_lock+0x35/0x1d0 [ 30.891005] lock_acquire+0x1d5/0x580 [ 30.891351] ? lock_acquire+0x1d5/0x580 [ 30.891624] ? exit_pi_state_list+0x369/0x7a0 [ 30.891883] ? lock_downgrade+0x990/0x990 [ 30.892123] ? lock_release+0xa40/0xa40 [ 30.892353] ? do_raw_spin_trylock+0x190/0x190 [ 30.892619] ? lock_downgrade+0x990/0x990 [ 30.892862] _raw_spin_lock_irq+0x5e/0x80 [ 30.893106] ? exit_pi_state_list+0x369/0x7a0 [ 30.893366] exit_pi_state_list+0x369/0x7a0 [ 30.893671] ? futex_wait_requeue_pi.constprop.19+0x1300/0x1300 [ 30.894218] ? lock_release+0xa40/0xa40 [ 30.894589] ? trace_event_raw_event_sched_switch+0x8a0/0x8a0 [ 30.894961] ? _raw_spin_unlock_irqrestore+0x31/0xba [ 30.895329] ? __might_sleep+0x95/0x190 [ 30.895699] ? __might_fault+0x188/0x1d0 [ 30.896112] ? do_raw_spin_trylock+0x190/0x190 [ 30.896529] mm_release+0x46d/0x590 [ 30.896860] ? do_raw_spin_trylock+0x190/0x190 [ 30.897273] ? mm_access+0x140/0x140 [ 30.897613] ? _raw_spin_unlock_irq+0x27/0x70 [ 30.898016] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 30.898341] ? trace_hardirqs_on+0xd/0x10 [ 30.898581] ? _raw_spin_unlock_irq+0x27/0x70 [ 30.898872] ? acct_collect+0x637/0x800 [ 30.899230] do_exit+0x481/0x1ad0 [ 30.899566] ? mm_update_next_owner+0x930/0x930 [ 30.899838] ? trace_event_raw_event_sched_switch+0x8a0/0x8a0 [ 30.900191] ? rcu_note_context_switch+0x710/0x710 [ 30.900476] ? futex_wait_setup+0x14a/0x3d0 [ 30.900841] ? __might_sleep+0x95/0x190 [ 30.901250] ? find_held_lock+0x35/0x1d0 [ 30.901489] ? futex_wait+0x402/0x990 [ 30.901708] ? lock_downgrade+0x990/0x990 [ 30.901947] ? do_raw_spin_trylock+0x190/0x190 [ 30.902222] ? check_noncircular+0x20/0x20 [ 30.902472] ? futex_wake+0x680/0x680 [ 30.902692] ? mmdrop+0x18/0x30 [ 30.902882] ? drop_futex_key_refs.isra.13+0x63/0xa0 [ 30.903263] ? futex_wait+0x69e/0x990 [ 30.904209] ? find_held_lock+0x35/0x1d0 [ 30.904445] ? get_signal+0x7ae/0x16d0 [ 30.904668] ? lock_downgrade+0x990/0x990 [ 30.904907] do_group_exit+0x149/0x400 [ 30.905168] ? __lock_is_held+0xb6/0x140 [ 30.905401] ? SyS_exit+0x30/0x30 [ 30.905602] ? _raw_spin_unlock_irq+0x27/0x70 [ 30.905860] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 30.906169] get_signal+0x73f/0x16d0 [ 30.906387] ? ptrace_notify+0x130/0x130 [ 30.906623] ? vma_wants_writenotify+0x3b0/0x3b0 [ 30.906898] ? vma_link+0xe9/0x170 [ 30.907158] ? exit_robust_list+0x240/0x240 [ 30.907531] ? find_held_lock+0x35/0x1d0 [ 30.907889] do_signal+0x94/0x1ee0 [ 30.908266] ? vm_mmap_pgoff+0x1ed/0x280 [ 30.908506] ? should_fail+0x23b/0xa40 [ 30.908732] ? fault_create_debugfs_attr+0x1f0/0x1f0 [ 30.909033] ? setup_sigcontext+0x7d0/0x7d0 [ 30.909302] ? find_held_lock+0x35/0x1d0 [ 30.909537] ? lock_downgrade+0x990/0x990 [ 30.909776] ? down_read_killable+0x180/0x180 [ 30.910045] ? lock_release+0xa40/0xa40 [ 30.910279] ? trace_event_raw_event_sched_switch+0x8a0/0x8a0 [ 30.910628] ? vm_mmap_pgoff+0x1fc/0x280 [ 30.910862] ? exit_to_usermode_loop+0x8c/0x310 [ 30.911143] exit_to_usermode_loop+0x214/0x310 [ 30.911457] ? trace_event_raw_event_sys_exit+0x260/0x260 [ 30.911776] ? kasan_check_write+0x14/0x20 [ 30.912025] syscall_return_slowpath+0x42f/0x510 [ 30.912305] ? prepare_exit_to_usermode+0x2d0/0x2d0 [ 30.912606] ? entry_SYSCALL_64_fastpath+0x91/0xbe [ 30.912903] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 30.913215] ? trace_hardirqs_on_thunk+0x1a/0x1c [ 30.913504] entry_SYSCALL_64_fastpath+0xbc/0xbe [ 30.913779] RIP: 0033:0x447c89 [ 30.913963] RSP: 002b:00007f1e68b2ece8 EFLAGS: 00000246 ORIG_RAX: 00000000000000ca [ 30.914415] RAX: fffffffffffffe00 RBX: 0000000000748048 RCX: 0000000000447c89 [ 30.914829] RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000748048 [ 30.915253] RBP: 0000000000748048 R08: 0000000000000000 R09: 0000000000748020 [ 30.915946] R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 [ 30.916590] R13: 0000000000000000 R14: 00007f1e68b2f9c0 R15: 00007f1e68b2f700 [ 30.917283] Dumping ftrace buffer: [ 30.917601] (ftrace buffer empty) [ 30.917930] Kernel Offset: disabled [ 30.918256] Rebooting in 86400 seconds..