2017/10/25 18:30:43 parsed 1 programs 2017/10/25 18:30:43 executed programs: 0 syzkaller login: [ 22.259517] ================================================================== [ 22.260365] BUG: KASAN: use-after-free in __lock_acquire+0x3c9f/0x3d50 [ 22.260815] Read of size 8 at addr ffff88003db51068 by task syz-executor0/3260 [ 22.261480] [ 22.261631] CPU: 2 PID: 3260 Comm: syz-executor0 Not tainted 4.14.0-rc5-next-20171018+ #8 [ 22.262380] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS Bochs 01/01/2011 [ 22.263121] Call Trace: [ 22.263387] dump_stack+0x194/0x257 [ 22.263681] ? arch_local_irq_restore+0x53/0x53 [ 22.264465] ? show_regs_print_info+0x65/0x65 [ 22.264786] ? print_irqtrace_events+0x270/0x270 [ 22.265123] ? print_irqtrace_events+0x270/0x270 [ 22.265526] ? __lock_acquire+0x3c9f/0x3d50 [ 22.265880] print_address_description+0x73/0x250 [ 22.266355] ? __lock_acquire+0x3c9f/0x3d50 [ 22.266697] kasan_report+0x25b/0x340 [ 22.267033] __asan_report_load8_noabort+0x14/0x20 [ 22.267444] __lock_acquire+0x3c9f/0x3d50 [ 22.267775] ? exit_pi_state_list+0x369/0x7a0 [ 22.268175] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 22.268566] ? __lock_acquire+0x6aa/0x3d50 [ 22.268932] ? __lock_acquire+0x6aa/0x3d50 [ 22.269287] ? __lock_acquire+0x6aa/0x3d50 [ 22.269719] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 22.270181] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 22.270609] ? check_noncircular+0x20/0x20 [ 22.270985] ? osq_unlock+0x350/0x350 [ 22.271289] ? __lock_acquire+0x6aa/0x3d50 [ 22.271626] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 22.272071] ? check_noncircular+0x20/0x20 [ 22.272503] ? print_irqtrace_events+0x270/0x270 [ 22.273011] ? check_noncircular+0x20/0x20 [ 22.273460] ? lock_release+0xa40/0xa40 [ 22.273878] ? switched_to_fair+0xb0/0xb0 [ 22.274254] ? __lock_is_held+0xb6/0x140 [ 22.274628] ? find_held_lock+0x35/0x1d0 [ 22.275027] lock_acquire+0x1d5/0x580 [ 22.275375] ? lock_acquire+0x1d5/0x580 [ 22.275735] ? exit_pi_state_list+0x369/0x7a0 [ 22.276172] ? lock_downgrade+0x990/0x990 [ 22.276542] ? lock_release+0xa40/0xa40 [ 22.276954] ? do_raw_spin_trylock+0x190/0x190 [ 22.277376] ? lock_downgrade+0x990/0x990 [ 22.277770] _raw_spin_lock_irq+0x5e/0x80 [ 22.278150] ? exit_pi_state_list+0x369/0x7a0 [ 22.278561] exit_pi_state_list+0x369/0x7a0 [ 22.278945] ? futex_wait_requeue_pi.constprop.19+0x1300/0x1300 [ 22.279487] ? lock_release+0xa40/0xa40 [ 22.279840] ? trace_event_raw_event_sched_switch+0x8a0/0x8a0 [ 22.280420] ? _raw_spin_unlock_irqrestore+0x31/0xba [ 22.280866] ? __might_sleep+0x95/0x190 [ 22.281221] ? __might_fault+0x188/0x1d0 [ 22.281610] ? do_raw_spin_trylock+0x190/0x190 [ 22.282016] mm_release+0x46d/0x590 [ 22.282371] ? do_raw_spin_trylock+0x190/0x190 [ 22.282816] ? mm_access+0x140/0x140 [ 22.283159] ? _raw_spin_unlock_irq+0x27/0x70 [ 22.283575] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 22.284088] ? trace_hardirqs_on+0xd/0x10 [ 22.284520] ? _raw_spin_unlock_irq+0x27/0x70 [ 22.285326] ? acct_collect+0x637/0x800 [ 22.285683] do_exit+0x481/0x1ad0 [ 22.285991] ? mm_update_next_owner+0x930/0x930 [ 22.286416] ? trace_event_raw_event_sched_switch+0x8a0/0x8a0 [ 22.286946] ? rcu_note_context_switch+0x710/0x710 [ 22.287391] ? futex_wait_setup+0x14a/0x3d0 [ 22.287756] ? __might_sleep+0x95/0x190 [ 22.288119] ? osq_unlock+0x350/0x350 [ 22.288518] ? find_held_lock+0x35/0x1d0 [ 22.288886] ? futex_wait+0x402/0x990 [ 22.289229] ? lock_downgrade+0x990/0x990 [ 22.289601] ? do_raw_spin_trylock+0x190/0x190 [ 22.290130] ? check_noncircular+0x20/0x20 [ 22.290514] ? futex_wake+0x680/0x680 [ 22.290858] ? mmdrop+0x18/0x30 [ 22.291153] ? drop_futex_key_refs.isra.13+0x63/0xa0 [ 22.291606] ? futex_wait+0x69e/0x990 [ 22.291941] ? find_held_lock+0x35/0x1d0 [ 22.292321] ? get_signal+0x7ae/0x16d0 [ 22.292660] ? lock_downgrade+0x990/0x990 [ 22.293036] do_group_exit+0x149/0x400 [ 22.293383] ? __lock_is_held+0xb6/0x140 [ 22.293746] ? SyS_exit+0x30/0x30 [ 22.294061] ? _raw_spin_unlock_irq+0x27/0x70 [ 22.294468] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 22.294908] get_signal+0x73f/0x16d0 [ 22.295245] ? ptrace_notify+0x130/0x130 [ 22.295605] ? vma_wants_writenotify+0x3b0/0x3b0 [ 22.296081] ? vma_link+0xe9/0x170 [ 22.296407] ? exit_robust_list+0x240/0x240 [ 22.296792] ? find_held_lock+0x35/0x1d0 [ 22.297160] do_signal+0x94/0x1ee0 [ 22.297514] ? vm_mmap_pgoff+0x1ed/0x280 [ 22.297883] ? should_fail+0x23b/0xa40 [ 22.298234] ? fault_create_debugfs_attr+0x1f0/0x1f0 [ 22.298689] ? setup_sigcontext+0x7d0/0x7d0 [ 22.299081] ? find_held_lock+0x35/0x1d0 [ 22.299481] ? lock_downgrade+0x990/0x990 [ 22.299855] ? down_read_killable+0x180/0x180 [ 22.300275] ? lock_release+0xa40/0xa40 [ 22.300628] ? trace_event_raw_event_sched_switch+0x8a0/0x8a0 [ 22.301135] ? vm_mmap_pgoff+0x1fc/0x280 [ 22.301494] ? exit_to_usermode_loop+0x8c/0x310 [ 22.301915] exit_to_usermode_loop+0x214/0x310 [ 22.302363] ? trace_event_raw_event_sys_exit+0x260/0x260 [ 22.302893] ? kasan_check_write+0x14/0x20 [ 22.303277] syscall_return_slowpath+0x42f/0x510 [ 22.303745] ? prepare_exit_to_usermode+0x2d0/0x2d0 [ 22.304244] ? entry_SYSCALL_64_fastpath+0x91/0xbe [ 22.304677] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 22.305132] ? trace_hardirqs_on_thunk+0x1a/0x1c [ 22.305568] entry_SYSCALL_64_fastpath+0xbc/0xbe [ 22.305992] RIP: 0033:0x447c89 [ 22.306278] RSP: 002b:00007fc037136ce8 EFLAGS: 00000246 ORIG_RAX: 00000000000000ca [ 22.307369] RAX: fffffffffffffe00 RBX: 0000000000748048 RCX: 0000000000447c89 [ 22.308050] RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000748048 [ 22.308739] RBP: 0000000000748048 R08: 0000000000000000 R09: 0000000000748020 [ 22.309386] R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 [ 22.310061] R13: 0000000000000000 R14: 00007fc0371379c0 R15: 00007fc037137700 [ 22.310731] [ 22.310906] Allocated by task 3262: [ 22.311276] save_stack+0x43/0xd0 [ 22.311612] kasan_kmalloc+0xad/0xe0 [ 22.311932] kmem_cache_alloc_trace+0x136/0x750 [ 22.312398] refill_pi_state_cache.part.6+0xa5/0x2f0 [ 22.312827] futex_requeue+0x1887/0x2370 [ 22.313194] do_futex+0x7f5/0x20d0 [ 22.313522] SyS_futex+0x260/0x390 [ 22.313868] entry_SYSCALL_64_fastpath+0x1f/0xbe [ 22.314330] [ 22.314473] Freed by task 3261: [ 22.314752] save_stack+0x43/0xd0 [ 22.315074] kasan_slab_free+0x71/0xc0 [ 22.315412] kfree+0xca/0x250 [ 22.315687] put_pi_state+0x3f4/0x560 [ 22.316080] unqueue_me_pi+0x4a/0xc0 [ 22.316466] futex_wait_requeue_pi.constprop.19+0xc7f/0x1300 [ 22.316950] do_futex+0x825/0x20d0 [ 22.317302] SyS_futex+0x260/0x390 [ 22.317639] entry_SYSCALL_64_fastpath+0x1f/0xbe [ 22.318068] [ 22.318223] The buggy address belongs to the object at ffff88003db51040 [ 22.318223] which belongs to the cache kmalloc-256 of size 256 [ 22.319410] The buggy address is located 40 bytes inside of [ 22.319410] 256-byte region [ffff88003db51040, ffff88003db51140) [ 22.320589] The buggy address belongs to the page: [ 22.321071] page:ffffea0000f6d440 count:1 mapcount:0 mapping:ffff88003db51040 index:0xffff88003db51540 [ 22.322082] flags: 0x100000000000100(slab) [ 22.322513] raw: 0100000000000100 ffff88003db51040 ffff88003db51540 000000010000000b [ 22.323300] raw: ffffea0000f7ee60 ffffea0000f5b420 ffff88003e8007c0 0000000000000000 [ 22.324196] page dumped because: kasan: bad access detected [ 22.324814] [ 22.324985] Memory state around the buggy address: [ 22.325497] ffff88003db50f00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 22.326238] ffff88003db50f80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 22.326902] >ffff88003db51000: fc fc fc fc fc fc fc fc fb fb fb fb fb fb fb fb [ 22.327557] ^ [ 22.328805] ffff88003db51080: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 22.329482] ffff88003db51100: fb fb fb fb fb fb fb fb fc fc fc fc fc fc fc fc [ 22.330134] ================================================================== [ 22.330785] Disabling lock debugging due to kernel taint [ 22.331272] Kernel panic - not syncing: panic_on_warn set ... [ 22.331272] [ 22.331943] CPU: 2 PID: 3260 Comm: syz-executor0 Tainted: G B 4.14.0-rc5-next-20171018+ #8 [ 22.332865] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS Bochs 01/01/2011 [ 22.333605] Call Trace: [ 22.333847] dump_stack+0x194/0x257 [ 22.334184] ? arch_local_irq_restore+0x53/0x53 [ 22.334608] ? kasan_end_report+0x32/0x50 [ 22.334984] ? lock_downgrade+0x990/0x990 [ 22.335361] ? vsnprintf+0x1ed/0x1900 [ 22.335716] ? __lock_acquire+0x3c50/0x3d50 [ 22.336162] panic+0x1e4/0x41c [ 22.336453] ? refcount_error_report+0x214/0x214 [ 22.336892] ? add_taint+0x40/0x50 [ 22.337213] ? add_taint+0x1c/0x50 [ 22.337536] ? __lock_acquire+0x3c9f/0x3d50 [ 22.337934] kasan_end_report+0x50/0x50 [ 22.338293] kasan_report+0x144/0x340 [ 22.338638] __asan_report_load8_noabort+0x14/0x20 [ 22.339091] __lock_acquire+0x3c9f/0x3d50 [ 22.339471] ? exit_pi_state_list+0x369/0x7a0 [ 22.339880] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 22.340412] ? __lock_acquire+0x6aa/0x3d50 [ 22.340795] ? __lock_acquire+0x6aa/0x3d50 [ 22.341178] ? __lock_acquire+0x6aa/0x3d50 [ 22.341576] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 22.342056] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 22.342526] ? check_noncircular+0x20/0x20 [ 22.342919] ? osq_unlock+0x350/0x350 [ 22.343265] ? __lock_acquire+0x6aa/0x3d50 [ 22.343651] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 22.344187] ? check_noncircular+0x20/0x20 [ 22.344576] ? print_irqtrace_events+0x270/0x270 [ 22.345008] ? check_noncircular+0x20/0x20 [ 22.345399] ? lock_release+0xa40/0xa40 [ 22.345761] ? switched_to_fair+0xb0/0xb0 [ 22.346142] ? __lock_is_held+0xb6/0x140 [ 22.346524] ? find_held_lock+0x35/0x1d0 [ 22.346895] lock_acquire+0x1d5/0x580 [ 22.347240] ? lock_acquire+0x1d5/0x580 [ 22.347607] ? exit_pi_state_list+0x369/0x7a0 [ 22.348073] ? lock_downgrade+0x990/0x990 [ 22.348522] ? lock_release+0xa40/0xa40 [ 22.348949] ? do_raw_spin_trylock+0x190/0x190 [ 22.349826] ? lock_downgrade+0x990/0x990 [ 22.350262] _raw_spin_lock_irq+0x5e/0x80 [ 22.350710] ? exit_pi_state_list+0x369/0x7a0 [ 22.351201] exit_pi_state_list+0x369/0x7a0 [ 22.351669] ? futex_wait_requeue_pi.constprop.19+0x1300/0x1300 [ 22.352343] ? lock_release+0xa40/0xa40 [ 22.352775] ? trace_event_raw_event_sched_switch+0x8a0/0x8a0 [ 22.353419] ? _raw_spin_unlock_irqrestore+0x31/0xba [ 22.353973] ? __might_sleep+0x95/0x190 [ 22.354401] ? __might_fault+0x188/0x1d0 [ 22.354854] ? do_raw_spin_trylock+0x190/0x190 [ 22.355349] mm_release+0x46d/0x590 [ 22.355750] ? do_raw_spin_trylock+0x190/0x190 [ 22.356247] ? mm_access+0x140/0x140 [ 22.356649] ? _raw_spin_unlock_irq+0x27/0x70 [ 22.357141] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 22.357681] ? trace_hardirqs_on+0xd/0x10 [ 22.358138] ? _raw_spin_unlock_irq+0x27/0x70 [ 22.358622] ? acct_collect+0x637/0x800 [ 22.359052] do_exit+0x481/0x1ad0 [ 22.359435] ? mm_update_next_owner+0x930/0x930 [ 22.359940] ? trace_event_raw_event_sched_switch+0x8a0/0x8a0 [ 22.360592] ? rcu_note_context_switch+0x710/0x710 [ 22.361121] ? futex_wait_setup+0x14a/0x3d0 [ 22.361590] ? __might_sleep+0x95/0x190 [ 22.362020] ? osq_unlock+0x350/0x350 [ 22.362430] ? find_held_lock+0x35/0x1d0 [ 22.362877] ? futex_wait+0x402/0x990 [ 22.363286] ? lock_downgrade+0x990/0x990 [ 22.363735] ? do_raw_spin_trylock+0x190/0x190 [ 22.364248] ? check_noncircular+0x20/0x20 [ 22.364709] ? futex_wake+0x680/0x680 [ 22.365104] ? mmdrop+0x18/0x30 [ 22.365431] ? drop_futex_key_refs.isra.13+0x63/0xa0 [ 22.365905] ? futex_wait+0x69e/0x990 [ 22.366259] ? find_held_lock+0x35/0x1d0 [ 22.366646] ? get_signal+0x7ae/0x16d0 [ 22.367008] ? lock_downgrade+0x990/0x990 [ 22.367421] do_group_exit+0x149/0x400 [ 22.367848] ? __lock_is_held+0xb6/0x140 [ 22.368294] ? SyS_exit+0x30/0x30 [ 22.368671] ? _raw_spin_unlock_irq+0x27/0x70 [ 22.369160] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 22.369692] get_signal+0x73f/0x16d0 [ 22.370106] ? ptrace_notify+0x130/0x130 [ 22.370879] ? vma_wants_writenotify+0x3b0/0x3b0 [ 22.371332] ? vma_link+0xe9/0x170 [ 22.371658] ? exit_robust_list+0x240/0x240 [ 22.372077] ? find_held_lock+0x35/0x1d0 [ 22.372455] do_signal+0x94/0x1ee0 [ 22.372779] ? vm_mmap_pgoff+0x1ed/0x280 [ 22.373150] ? should_fail+0x23b/0xa40 [ 22.373511] ? fault_create_debugfs_attr+0x1f0/0x1f0 [ 22.373976] ? setup_sigcontext+0x7d0/0x7d0 [ 22.374371] ? find_held_lock+0x35/0x1d0 [ 22.374751] ? lock_downgrade+0x990/0x990 [ 22.375129] ? down_read_killable+0x180/0x180 [ 22.375608] ? lock_release+0xa40/0xa40 [ 22.376050] ? trace_event_raw_event_sched_switch+0x8a0/0x8a0 [ 22.376672] ? vm_mmap_pgoff+0x1fc/0x280 [ 22.377108] ? exit_to_usermode_loop+0x8c/0x310 [ 22.377591] exit_to_usermode_loop+0x214/0x310 [ 22.378080] ? trace_event_raw_event_sys_exit+0x260/0x260 [ 22.378675] ? kasan_check_write+0x14/0x20 [ 22.379140] syscall_return_slowpath+0x42f/0x510 [ 22.379658] ? prepare_exit_to_usermode+0x2d0/0x2d0 [ 22.380199] ? entry_SYSCALL_64_fastpath+0x91/0xbe [ 22.380703] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 22.381171] ? trace_hardirqs_on_thunk+0x1a/0x1c [ 22.381613] entry_SYSCALL_64_fastpath+0xbc/0xbe [ 22.382050] RIP: 0033:0x447c89 [ 22.382339] RSP: 002b:00007fc037136ce8 EFLAGS: 00000246 ORIG_RAX: 00000000000000ca [ 22.383048] RAX: fffffffffffffe00 RBX: 0000000000748048 RCX: 0000000000447c89 [ 22.383714] RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000748048 [ 22.384430] RBP: 0000000000748048 R08: 0000000000000000 R09: 0000000000748020 [ 22.385161] R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 [ 22.385900] R13: 0000000000000000 R14: 00007fc0371379c0 R15: 00007fc037137700 [ 22.388116] Dumping ftrace buffer: [ 22.388517] (ftrace buffer empty) [ 22.388895] Kernel Offset: disabled [ 22.389334] Rebooting in 86400 seconds..