INIT: Entering runlevel: 2 [info] Using makefile-style concurrent boot in runlevel 2. [....] Starting enhanced syslogd: rsyslogd[?25l[?1c7[ ok 8[?25h[?0c. [....] Starting periodic command scheduler: cron[?25l[?1c7[ ok 8[?25h[?0c. [....] Starting OpenBSD Secure Shell server: sshd[?25l[?1c7[ ok 8[?25h[?0c. Debian GNU/Linux 7 syzkaller ttyS0 Warning: Permanently added 'ci-upstream-next-kasan-gce-1,10.128.0.3' (ECDSA) to the list of known hosts. 2017/11/01 17:01:38 parsed 1 programs 2017/11/01 17:01:38 executed programs: 0 syzkaller login: [ 21.376856] ================================================================== [ 21.377957] BUG: KASAN: use-after-free in __lock_acquire+0x3c9f/0x3d50 [ 21.378863] Read of size 8 at addr ffff8801d2496e28 by task syz-executor0/3111 [ 21.379839] [ 21.380073] CPU: 0 PID: 3111 Comm: syz-executor0 Not tainted 4.14.0-rc5-next-20171018+ #36 [ 21.381214] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 21.382434] Call Trace: [ 21.382799] dump_stack+0x194/0x257 [ 21.383302] ? arch_local_irq_restore+0x53/0x53 [ 21.383922] ? show_regs_print_info+0x65/0x65 [ 21.384521] ? print_irqtrace_events+0x270/0x270 [ 21.385152] ? print_irqtrace_events+0x270/0x270 [ 21.385795] ? __lock_acquire+0x3c9f/0x3d50 [ 21.386372] print_address_description+0x73/0x250 [ 21.387027] ? __lock_acquire+0x3c9f/0x3d50 [ 21.387605] kasan_report+0x25b/0x340 [ 21.388117] __asan_report_load8_noabort+0x14/0x20 [ 21.388770] __lock_acquire+0x3c9f/0x3d50 [ 21.389330] ? exit_pi_state_list+0x369/0x7a0 [ 21.389928] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 21.390615] ? __lock_acquire+0x6aa/0x3d50 [ 21.391179] ? __lock_acquire+0x6aa/0x3d50 [ 21.391743] ? __lock_acquire+0x6aa/0x3d50 [ 21.392307] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 21.392995] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 21.393682] ? osq_unlock+0x350/0x350 [ 21.394191] ? __lock_acquire+0x6aa/0x3d50 [ 21.394757] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 21.395444] ? check_noncircular+0x20/0x20 [ 21.396012] ? check_noncircular+0x20/0x20 [ 21.396594] ? get_user_pages_fast+0x277/0x340 [ 21.397227] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 21.402209] ? trace_hardirqs_on+0xd/0x10 [ 21.406329] ? get_user_pages_fast+0x14e/0x340 [ 21.410877] ? find_held_lock+0x35/0x1d0 [ 21.414903] lock_acquire+0x1d5/0x580 [ 21.418666] ? lock_acquire+0x1d5/0x580 [ 21.422608] ? exit_pi_state_list+0x369/0x7a0 [ 21.427069] ? lock_downgrade+0x990/0x990 [ 21.431184] ? lock_release+0xa40/0xa40 [ 21.435124] ? do_raw_spin_trylock+0x190/0x190 [ 21.439670] ? lock_downgrade+0x990/0x990 [ 21.443786] _raw_spin_lock_irq+0x5e/0x80 [ 21.447898] ? exit_pi_state_list+0x369/0x7a0 [ 21.452377] exit_pi_state_list+0x369/0x7a0 [ 21.456667] ? futex_wait_requeue_pi.constprop.19+0x1300/0x1300 [ 21.462691] ? lock_release+0xa40/0xa40 [ 21.466630] ? trace_event_raw_event_sched_switch+0x8a0/0x8a0 [ 21.472479] ? _raw_spin_unlock_irqrestore+0x31/0xba [ 21.477549] ? __might_sleep+0x95/0x190 [ 21.481488] ? __might_fault+0x188/0x1d0 [ 21.485515] ? do_raw_spin_trylock+0x190/0x190 [ 21.490064] mm_release+0x46d/0x590 [ 21.493656] ? do_raw_spin_trylock+0x190/0x190 [ 21.498210] ? mm_access+0x140/0x140 [ 21.501887] ? _raw_spin_unlock_irq+0x27/0x70 [ 21.506349] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 21.511328] ? trace_hardirqs_on+0xd/0x10 [ 21.515443] ? _raw_spin_unlock_irq+0x27/0x70 [ 21.519904] ? acct_collect+0x637/0x800 [ 21.523859] do_exit+0x481/0x1ad0 [ 21.527281] ? mm_update_next_owner+0x930/0x930 [ 21.531918] ? trace_event_raw_event_sched_switch+0x8a0/0x8a0 [ 21.537781] ? rcu_note_context_switch+0x710/0x710 [ 21.542678] ? futex_wait_setup+0x14a/0x3d0 [ 21.546964] ? __might_sleep+0x95/0x190 [ 21.550903] ? osq_unlock+0x350/0x350 [ 21.554667] ? futex_wait_queue_me+0x524/0x7e0 [ 21.559222] ? refill_pi_state_cache.part.6+0x2f0/0x2f0 [ 21.564550] ? memset+0x31/0x40 [ 21.567794] ? get_futex_value_locked+0xc3/0xf0 [ 21.572427] ? futex_wait_setup+0x22e/0x3d0 [ 21.576722] ? check_noncircular+0x20/0x20 [ 21.580930] ? futex_wake+0x680/0x680 [ 21.584698] ? mmdrop+0x18/0x30 [ 21.587942] ? drop_futex_key_refs.isra.13+0x63/0xa0 [ 21.593010] ? futex_wait+0x69e/0x990 [ 21.596776] ? find_held_lock+0x35/0x1d0 [ 21.600805] ? get_signal+0x7ae/0x16d0 [ 21.604657] ? lock_downgrade+0x990/0x990 [ 21.608770] do_group_exit+0x149/0x400 [ 21.612625] ? __lock_is_held+0xb6/0x140 [ 21.616651] ? SyS_exit+0x30/0x30 [ 21.620071] ? _raw_spin_unlock_irq+0x27/0x70 [ 21.624532] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 21.629515] get_signal+0x73f/0x16d0 [ 21.633196] ? ptrace_notify+0x130/0x130 [ 21.637224] ? vma_wants_writenotify+0x3b0/0x3b0 [ 21.641948] ? exit_robust_list+0x240/0x240 [ 21.646234] ? find_held_lock+0x35/0x1d0 [ 21.650265] do_signal+0x94/0x1ee0 [ 21.653775] ? vm_mmap_pgoff+0x1ed/0x280 [ 21.657803] ? should_fail+0x23b/0xa40 [ 21.661657] ? fault_create_debugfs_attr+0x1f0/0x1f0 [ 21.666724] ? setup_sigcontext+0x7d0/0x7d0 [ 21.671012] ? find_held_lock+0x35/0x1d0 [ 21.675041] ? lock_downgrade+0x990/0x990 [ 21.679163] ? down_read_killable+0x180/0x180 [ 21.683624] ? lock_release+0xa40/0xa40 [ 21.687564] ? trace_event_raw_event_sched_switch+0x8a0/0x8a0 [ 21.693417] ? vm_mmap_pgoff+0x1fc/0x280 [ 21.697445] ? exit_to_usermode_loop+0x8c/0x310 [ 21.702080] exit_to_usermode_loop+0x214/0x310 [ 21.706630] ? trace_event_raw_event_sys_exit+0x260/0x260 [ 21.712134] ? kasan_check_write+0x14/0x20 [ 21.716338] syscall_return_slowpath+0x42f/0x510 [ 21.721494] ? prepare_exit_to_usermode+0x2d0/0x2d0 [ 21.726476] ? entry_SYSCALL_64_fastpath+0x91/0xbe [ 21.731371] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 21.736353] ? trace_hardirqs_on_thunk+0x1a/0x1c [ 21.741075] entry_SYSCALL_64_fastpath+0xbc/0xbe [ 21.745794] RIP: 0033:0x452869 [ 21.748948] RSP: 002b:00007f1b857d9ce8 EFLAGS: 00000246 ORIG_RAX: 00000000000000ca [ 21.756619] RAX: 0000000000000000 RBX: 00000000007581b8 RCX: 0000000000452869 [ 21.763855] RDX: 0000000000000000 RSI: 0000000000000000 RDI: 00000000007581b8 [ 21.771092] RBP: 00000000007581b8 R08: 0000000000000000 R09: 0000000000758190 [ 21.778329] R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 [ 21.785566] R13: 0000000000a6f7ff R14: 00007f1b857da9c0 R15: 000000000000000b [ 21.792807] [ 21.794403] Allocated by task 3112: [ 21.797998] save_stack+0x43/0xd0 [ 21.801417] kasan_kmalloc+0xad/0xe0 [ 21.805097] kmem_cache_alloc_trace+0x136/0x750 [ 21.809733] refill_pi_state_cache.part.6+0xa5/0x2f0 [ 21.814801] futex_requeue+0x1887/0x2370 [ 21.818826] do_futex+0x7f5/0x20d0 [ 21.822331] SyS_futex+0x260/0x390 [ 21.825838] entry_SYSCALL_64_fastpath+0x1f/0xbe [ 21.830555] [ 21.832146] Freed by task 3110: [ 21.835401] save_stack+0x43/0xd0 [ 21.838818] kasan_slab_free+0x71/0xc0 [ 21.842670] kfree+0xca/0x250 [ 21.845748] put_pi_state+0x3f4/0x560 [ 21.849520] unqueue_me_pi+0x4a/0xc0 [ 21.853199] futex_wait_requeue_pi.constprop.19+0xc7f/0x1300 [ 21.858961] do_futex+0x825/0x20d0 [ 21.862466] SyS_futex+0x260/0x390 [ 21.865974] entry_SYSCALL_64_fastpath+0x1f/0xbe [ 21.870692] [ 21.872286] The buggy address belongs to the object at ffff8801d2496e00 [ 21.872286] which belongs to the cache kmalloc-256 of size 256 [ 21.884906] The buggy address is located 40 bytes inside of [ 21.884906] 256-byte region [ffff8801d2496e00, ffff8801d2496f00) [ 21.896657] The buggy address belongs to the page: [ 21.901549] page:ffffea0007492580 count:1 mapcount:0 mapping:ffff8801d2496040 index:0x0 [ 21.909657] flags: 0x200000000000100(slab) [ 21.913857] raw: 0200000000000100 ffff8801d2496040 0000000000000000 000000010000000c [ 21.921709] raw: ffffea0007492460 ffffea00074998a0 ffff8801dac007c0 0000000000000000 [ 21.929550] page dumped because: kasan: bad access detected [ 21.935222] [ 21.936911] Memory state around the buggy address: [ 21.941803] ffff8801d2496d00: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 21.949124] ffff8801d2496d80: fb fb fb fb fb fb fb fb fc fc fc fc fc fc fc fc [ 21.956448] >ffff8801d2496e00: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 21.963769] ^ [ 21.968403] ffff8801d2496e80: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 21.975726] ffff8801d2496f00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 21.983048] ================================================================== [ 21.990695] Disabling lock debugging due to kernel taint [ 21.996117] Kernel panic - not syncing: panic_on_warn set ... [ 21.996117] [ 22.003446] CPU: 0 PID: 3111 Comm: syz-executor0 Tainted: G B 4.14.0-rc5-next-20171018+ #36 [ 22.013123] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 22.022441] Call Trace: [ 22.025000] dump_stack+0x194/0x257 [ 22.028595] ? arch_local_irq_restore+0x53/0x53 [ 22.033229] ? kasan_end_report+0x32/0x50 [ 22.037341] ? lock_downgrade+0x990/0x990 [ 22.041455] ? vsnprintf+0x1ed/0x1900 [ 22.045221] ? __lock_acquire+0x3c50/0x3d50 [ 22.049511] panic+0x1e4/0x41c [ 22.052672] ? refcount_error_report+0x214/0x214 [ 22.057917] ? add_taint+0x40/0x50 [ 22.061421] ? add_taint+0x1c/0x50 [ 22.064924] ? __lock_acquire+0x3c9f/0x3d50 [ 22.069211] kasan_end_report+0x50/0x50 [ 22.073151] kasan_report+0x144/0x340 [ 22.076925] __asan_report_load8_noabort+0x14/0x20 [ 22.081819] __lock_acquire+0x3c9f/0x3d50 [ 22.085935] ? exit_pi_state_list+0x369/0x7a0 [ 22.090399] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 22.095555] ? __lock_acquire+0x6aa/0x3d50 [ 22.099755] ? __lock_acquire+0x6aa/0x3d50 [ 22.103957] ? __lock_acquire+0x6aa/0x3d50 [ 22.108160] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 22.113316] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 22.118471] ? osq_unlock+0x350/0x350 [ 22.122236] ? __lock_acquire+0x6aa/0x3d50 [ 22.126438] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 22.131593] ? check_noncircular+0x20/0x20 [ 22.135796] ? check_noncircular+0x20/0x20 [ 22.139997] ? get_user_pages_fast+0x277/0x340 [ 22.144543] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 22.149525] ? trace_hardirqs_on+0xd/0x10 [ 22.153638] ? get_user_pages_fast+0x14e/0x340 [ 22.158189] ? find_held_lock+0x35/0x1d0 [ 22.162305] lock_acquire+0x1d5/0x580 [ 22.166071] ? lock_acquire+0x1d5/0x580 [ 22.170011] ? exit_pi_state_list+0x369/0x7a0 [ 22.174472] ? lock_downgrade+0x990/0x990 [ 22.178586] ? lock_release+0xa40/0xa40 [ 22.182523] ? do_raw_spin_trylock+0x190/0x190 [ 22.187068] ? lock_downgrade+0x990/0x990 [ 22.191271] _raw_spin_lock_irq+0x5e/0x80 [ 22.195385] ? exit_pi_state_list+0x369/0x7a0 [ 22.199849] exit_pi_state_list+0x369/0x7a0 [ 22.204138] ? futex_wait_requeue_pi.constprop.19+0x1300/0x1300 [ 22.210160] ? lock_release+0xa40/0xa40 [ 22.214103] ? trace_event_raw_event_sched_switch+0x8a0/0x8a0 [ 22.219955] ? _raw_spin_unlock_irqrestore+0x31/0xba [ 22.225029] ? __might_sleep+0x95/0x190 [ 22.228970] ? __might_fault+0x188/0x1d0 [ 22.232998] ? do_raw_spin_trylock+0x190/0x190 [ 22.237546] mm_release+0x46d/0x590 [ 22.241149] ? do_raw_spin_trylock+0x190/0x190 [ 22.245697] ? mm_access+0x140/0x140 [ 22.249388] ? _raw_spin_unlock_irq+0x27/0x70 [ 22.253855] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 22.258838] ? trace_hardirqs_on+0xd/0x10 [ 22.262956] ? _raw_spin_unlock_irq+0x27/0x70 [ 22.267417] ? acct_collect+0x637/0x800 [ 22.271359] do_exit+0x481/0x1ad0 [ 22.274780] ? mm_update_next_owner+0x930/0x930 [ 22.279416] ? trace_event_raw_event_sched_switch+0x8a0/0x8a0 [ 22.285269] ? rcu_note_context_switch+0x710/0x710 [ 22.290164] ? futex_wait_setup+0x14a/0x3d0 [ 22.294451] ? __might_sleep+0x95/0x190 [ 22.298392] ? osq_unlock+0x350/0x350 [ 22.302157] ? futex_wait_queue_me+0x524/0x7e0 [ 22.306802] ? refill_pi_state_cache.part.6+0x2f0/0x2f0 [ 22.312130] ? memset+0x31/0x40 [ 22.315375] ? get_futex_value_locked+0xc3/0xf0 [ 22.320010] ? futex_wait_setup+0x22e/0x3d0 [ 22.324297] ? check_noncircular+0x20/0x20 [ 22.328499] ? futex_wake+0x680/0x680 [ 22.332264] ? mmdrop+0x18/0x30 [ 22.335509] ? drop_futex_key_refs.isra.13+0x63/0xa0 [ 22.340580] ? futex_wait+0x69e/0x990 [ 22.344352] ? find_held_lock+0x35/0x1d0 [ 22.348384] ? get_signal+0x7ae/0x16d0 [ 22.352240] ? lock_downgrade+0x990/0x990 [ 22.356354] do_group_exit+0x149/0x400 [ 22.360230] ? __lock_is_held+0xb6/0x140 [ 22.364256] ? SyS_exit+0x30/0x30 [ 22.367674] ? _raw_spin_unlock_irq+0x27/0x70 [ 22.372134] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 22.377125] get_signal+0x73f/0x16d0