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-6,10.128.0.16' (ECDSA) to the list of known hosts. 2017/09/28 01:02:50 parsed 1 programs 2017/09/28 01:02:50 executed programs: 0 syzkaller login: [ 25.123779] ================================================================== [ 25.131202] BUG: KASAN: use-after-free in __lock_acquire+0x407b/0x4620 [ 25.137845] Read of size 8 at addr ffff8801cb6136e8 by task syz-executor7/4326 [ 25.145177] [ 25.146784] CPU: 1 PID: 4326 Comm: syz-executor7 Not tainted 4.14.0-rc2-next-20170927+ #30 [ 25.155159] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 25.164486] Call Trace: [ 25.167040] dump_stack+0x194/0x257 [ 25.170641] ? arch_local_irq_restore+0x53/0x53 [ 25.175292] ? show_regs_print_info+0x65/0x65 [ 25.179769] ? __kernel_text_address+0xd/0x40 [ 25.184247] ? __lock_acquire+0x407b/0x4620 [ 25.188545] print_address_description+0x73/0x250 [ 25.193356] ? __lock_acquire+0x407b/0x4620 [ 25.197647] kasan_report+0x25b/0x340 [ 25.201418] __asan_report_load8_noabort+0x14/0x20 [ 25.206326] __lock_acquire+0x407b/0x4620 [ 25.210452] ? unwind_dump+0x4c0/0x4c0 [ 25.214308] ? __unwind_start+0x169/0x330 [ 25.218426] ? __kernel_text_address+0xd/0x40 [ 25.222883] ? unwind_get_return_address+0x61/0xa0 [ 25.227782] ? debug_check_no_locks_freed+0x3d0/0x3d0 [ 25.232945] ? unwind_get_return_address+0x61/0xa0 [ 25.237856] ? __save_stack_trace+0x61/0xd0 [ 25.242600] ? get_signal+0x73f/0x16d0 [ 25.246461] ? save_stack_trace+0x16/0x20 [ 25.250580] ? __lock_acquire+0x20fd/0x4620 [ 25.254881] ? debug_check_no_locks_freed+0x3d0/0x3d0 [ 25.260061] ? debug_check_no_locks_freed+0x3d0/0x3d0 [ 25.265237] ? save_stack_trace+0x16/0x20 [ 25.269359] ? __lock_acquire+0x20fd/0x4620 [ 25.273648] ? osq_unlock+0x350/0x350 [ 25.277415] ? save_stack_trace+0x16/0x20 [ 25.281535] ? lock_release+0xd70/0xd70 [ 25.285486] ? check_noncircular+0x20/0x20 [ 25.289704] ? debug_check_no_locks_freed+0x3d0/0x3d0 [ 25.294869] ? debug_check_no_locks_freed+0x3d0/0x3d0 [ 25.300037] ? find_held_lock+0x39/0x1d0 [ 25.304073] ? lock_downgrade+0x990/0x990 [ 25.308186] ? check_noncircular+0x20/0x20 [ 25.312401] lock_acquire+0x1d5/0x580 [ 25.316184] ? exit_pi_state_list+0x369/0x7a0 [ 25.320646] ? lock_release+0xd70/0xd70 [ 25.324587] ? do_raw_spin_trylock+0x190/0x190 [ 25.329133] ? find_held_lock+0x39/0x1d0 [ 25.333173] _raw_spin_lock_irq+0x5e/0x80 [ 25.337294] ? exit_pi_state_list+0x369/0x7a0 [ 25.341763] exit_pi_state_list+0x369/0x7a0 [ 25.346063] ? futex_wait_requeue_pi.constprop.19+0x1300/0x1300 [ 25.352087] ? lock_release+0xd70/0xd70 [ 25.356034] ? trace_event_raw_event_sched_switch+0x770/0x770 [ 25.361895] ? _raw_spin_unlock_irqrestore+0x31/0xba [ 25.366977] ? __might_sleep+0x95/0x190 [ 25.370931] ? __might_fault+0x188/0x1d0 [ 25.374965] ? do_raw_spin_trylock+0x190/0x190 [ 25.379525] mm_release+0x46d/0x590 [ 25.383122] ? do_raw_spin_trylock+0x190/0x190 [ 25.387667] ? mm_access+0x140/0x140 [ 25.391354] ? _raw_spin_unlock_irq+0x27/0x70 [ 25.395829] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 25.400819] ? trace_hardirqs_on+0xd/0x10 [ 25.404933] ? _raw_spin_unlock_irq+0x27/0x70 [ 25.409392] ? acct_collect+0x637/0x800 [ 25.413340] do_exit+0x481/0x1b00 [ 25.416767] ? mm_update_next_owner+0x930/0x930 [ 25.421407] ? trace_event_raw_event_sched_switch+0x770/0x770 [ 25.427257] ? find_held_lock+0x39/0x1d0 [ 25.431287] ? refill_pi_state_cache.part.6+0x2f0/0x2f0 [ 25.436618] ? check_noncircular+0x20/0x20 [ 25.440821] ? fault_in_user_writeable+0x90/0x90 [ 25.445555] ? futex_wake+0x680/0x680 [ 25.449337] ? find_held_lock+0x39/0x1d0 [ 25.453375] ? lock_downgrade+0x990/0x990 [ 25.457491] ? recalc_sigpending_tsk+0x117/0x150 [ 25.462213] ? recalc_sigpending+0x103/0x160 [ 25.466587] ? recalc_sigpending_tsk+0x150/0x150 [ 25.471311] ? get_signal+0x2b2/0x16d0 [ 25.475173] do_group_exit+0x149/0x400 [ 25.479030] ? __lock_is_held+0xbc/0x140 [ 25.483056] ? SyS_exit+0x30/0x30 [ 25.486475] ? _raw_spin_unlock_irq+0x27/0x70 [ 25.490936] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 25.495925] get_signal+0x73f/0x16d0 [ 25.499625] ? ptrace_notify+0x130/0x130 [ 25.503672] ? __schedule+0x8f0/0x2070 [ 25.507550] ? exit_robust_list+0x240/0x240 [ 25.511850] ? lock_downgrade+0x990/0x990 [ 25.515972] ? SyS_brk+0x6f0/0x6f0 [ 25.519487] do_signal+0x94/0x1ee0 [ 25.523001] ? arch_get_unmapped_area+0x750/0x750 [ 25.527815] ? lock_acquire+0x1d5/0x580 [ 25.531755] ? find_held_lock+0x39/0x1d0 [ 25.535783] ? setup_sigcontext+0x7d0/0x7d0 [ 25.540075] ? lock_downgrade+0x990/0x990 [ 25.544198] ? down_write+0x120/0x120 [ 25.547974] ? lock_release+0xd70/0xd70 [ 25.551928] ? trace_event_raw_event_sched_switch+0x770/0x770 [ 25.557786] ? vm_mmap_pgoff+0x1fc/0x280 [ 25.561817] ? exit_to_usermode_loop+0x8c/0x310 [ 25.566454] exit_to_usermode_loop+0x214/0x310 [ 25.571000] ? trace_event_raw_event_sys_exit+0x260/0x260 [ 25.576507] ? kasan_check_write+0x14/0x20 [ 25.580707] syscall_return_slowpath+0x42f/0x510 [ 25.585427] ? prepare_exit_to_usermode+0x2d0/0x2d0 [ 25.590414] ? entry_SYSCALL_64_fastpath+0x91/0xbe [ 25.595316] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 25.600296] ? trace_hardirqs_on_thunk+0x1a/0x1c [ 25.605027] entry_SYSCALL_64_fastpath+0xbc/0xbe [ 25.609752] RIP: 0033:0x4520a9 [ 25.612908] RSP: 002b:00007fcc9f189cf8 EFLAGS: 00000246 ORIG_RAX: 00000000000000ca [ 25.620579] RAX: fffffffffffffe00 RBX: 0000000000718028 RCX: 00000000004520a9 [ 25.627815] RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000718028 [ 25.635055] RBP: 0000000000718000 R08: 0000000000000000 R09: 0000000000000000 [ 25.642296] R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 [ 25.649537] R13: 00007ffe741d6aff R14: 00007fcc9f18a9c0 R15: 0000000000000000 [ 25.656786] [ 25.658390] Allocated by task 4351: [ 25.661997] save_stack_trace+0x16/0x20 [ 25.665946] save_stack+0x43/0xd0 [ 25.669362] kasan_kmalloc+0xad/0xe0 [ 25.673039] kmem_cache_alloc_trace+0x136/0x750 [ 25.677671] refill_pi_state_cache.part.6+0xa5/0x2f0 [ 25.682737] futex_requeue+0x1887/0x2370 [ 25.686760] do_futex+0x7f5/0x20d0 [ 25.690261] SyS_futex+0x260/0x390 [ 25.693765] entry_SYSCALL_64_fastpath+0x1f/0xbe [ 25.698481] [ 25.700071] Freed by task 4340: [ 25.703313] save_stack_trace+0x16/0x20 [ 25.707250] save_stack+0x43/0xd0 [ 25.710668] kasan_slab_free+0x71/0xc0 [ 25.714520] kfree+0xca/0x250 [ 25.717591] put_pi_state+0x3f4/0x560 [ 25.721355] unqueue_me_pi+0x4a/0xc0 [ 25.725035] futex_wait_requeue_pi.constprop.19+0xc7f/0x1300 [ 25.730795] do_futex+0x825/0x20d0 [ 25.734299] SyS_futex+0x260/0x390 [ 25.737801] entry_SYSCALL_64_fastpath+0x1f/0xbe [ 25.742515] [ 25.744110] The buggy address belongs to the object at ffff8801cb6136c0 [ 25.744110] which belongs to the cache kmalloc-256 of size 256 [ 25.756726] The buggy address is located 40 bytes inside of [ 25.756726] 256-byte region [ffff8801cb6136c0, ffff8801cb6137c0) [ 25.768474] The buggy address belongs to the page: [ 25.773365] page:ffffea00072d84c0 count:1 mapcount:0 mapping:ffff8801cb613080 index:0x0 [ 25.781470] flags: 0x200000000000100(slab) [ 25.785673] raw: 0200000000000100 ffff8801cb613080 0000000000000000 000000010000000c [ 25.793516] raw: ffffea0007292120 ffffea00072814e0 ffff8801dac007c0 0000000000000000 [ 25.801357] page dumped because: kasan: bad access detected [ 25.807032] [ 25.808623] Memory state around the buggy address: [ 25.813514] ffff8801cb613580: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 25.820835] ffff8801cb613600: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 25.828155] >ffff8801cb613680: fc fc fc fc fc fc fc fc fb fb fb fb fb fb fb fb [ 25.835474] ^ [ 25.842186] ffff8801cb613700: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 25.849507] ffff8801cb613780: fb fb fb fb fb fb fb fb fc fc fc fc fc fc fc fc [ 25.856826] ================================================================== [ 25.864162] Disabling lock debugging due to kernel taint [ 25.869573] Kernel panic - not syncing: panic_on_warn set ... [ 25.869573] [ 25.876899] CPU: 1 PID: 4326 Comm: syz-executor7 Tainted: G B 4.14.0-rc2-next-20170927+ #30 [ 25.886476] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 25.895793] Call Trace: [ 25.898349] dump_stack+0x194/0x257 [ 25.901942] ? arch_local_irq_restore+0x53/0x53 [ 25.906582] ? vprintk_default+0x28/0x30 [ 25.910607] ? __lock_acquire+0x3f80/0x4620 [ 25.914892] panic+0x1e4/0x417 [ 25.918049] ? __warn+0x1d9/0x1d9 [ 25.921468] ? __lock_acquire+0x407b/0x4620 [ 25.925754] kasan_end_report+0x50/0x50 [ 25.929690] kasan_report+0x144/0x340 [ 25.933452] __asan_report_load8_noabort+0x14/0x20 [ 25.938344] __lock_acquire+0x407b/0x4620 [ 25.942457] ? unwind_dump+0x4c0/0x4c0 [ 25.946305] ? __unwind_start+0x169/0x330 [ 25.950416] ? __kernel_text_address+0xd/0x40 [ 25.954873] ? unwind_get_return_address+0x61/0xa0 [ 25.959766] ? debug_check_no_locks_freed+0x3d0/0x3d0 [ 25.964917] ? unwind_get_return_address+0x61/0xa0 [ 25.969809] ? __save_stack_trace+0x61/0xd0 [ 25.974095] ? get_signal+0x73f/0x16d0 [ 25.977944] ? save_stack_trace+0x16/0x20 [ 25.982058] ? __lock_acquire+0x20fd/0x4620 [ 25.986344] ? debug_check_no_locks_freed+0x3d0/0x3d0 [ 25.991506] ? debug_check_no_locks_freed+0x3d0/0x3d0 [ 25.996657] ? save_stack_trace+0x16/0x20 [ 26.000769] ? __lock_acquire+0x20fd/0x4620 [ 26.005057] ? osq_unlock+0x350/0x350 [ 26.008818] ? save_stack_trace+0x16/0x20 [ 26.012930] ? lock_release+0xd70/0xd70 [ 26.016868] ? check_noncircular+0x20/0x20 [ 26.021067] ? debug_check_no_locks_freed+0x3d0/0x3d0 [ 26.026223] ? debug_check_no_locks_freed+0x3d0/0x3d0 [ 26.031377] ? find_held_lock+0x39/0x1d0 [ 26.035404] ? lock_downgrade+0x990/0x990 [ 26.039516] ? check_noncircular+0x20/0x20 [ 26.043713] lock_acquire+0x1d5/0x580 [ 26.047479] ? exit_pi_state_list+0x369/0x7a0 [ 26.051938] ? lock_release+0xd70/0xd70 [ 26.055874] ? do_raw_spin_trylock+0x190/0x190 [ 26.060418] ? find_held_lock+0x39/0x1d0 [ 26.064458] _raw_spin_lock_irq+0x5e/0x80 [ 26.068572] ? exit_pi_state_list+0x369/0x7a0 [ 26.073028] exit_pi_state_list+0x369/0x7a0 [ 26.077316] ? futex_wait_requeue_pi.constprop.19+0x1300/0x1300 [ 26.083338] ? lock_release+0xd70/0xd70 [ 26.087276] ? trace_event_raw_event_sched_switch+0x770/0x770 [ 26.093508] ? _raw_spin_unlock_irqrestore+0x31/0xba [ 26.098585] ? __might_sleep+0x95/0x190 [ 26.102527] ? __might_fault+0x188/0x1d0 [ 26.106561] ? do_raw_spin_trylock+0x190/0x190 [ 26.111113] mm_release+0x46d/0x590 [ 26.114706] ? do_raw_spin_trylock+0x190/0x190 [ 26.119261] ? mm_access+0x140/0x140 [ 26.122946] ? _raw_spin_unlock_irq+0x27/0x70