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-0,10.128.0.62' (ECDSA) to the list of known hosts. 2017/09/29 08:28:54 parsed 1 programs 2017/09/29 08:28:54 executed programs: 0 syzkaller login: [ 36.036129] ================================================================== [ 36.043521] BUG: KASAN: use-after-free in __lock_acquire+0x407b/0x4620 [ 36.050152] Read of size 8 at addr ffff8801cd2095a8 by task syz-executor6/3224 [ 36.057479] [ 36.059078] CPU: 0 PID: 3224 Comm: syz-executor6 Not tainted 4.14.0-rc2-next-20170929+ #32 [ 36.067439] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 36.076758] Call Trace: [ 36.079314] dump_stack+0x194/0x257 [ 36.082910] ? arch_local_irq_restore+0x53/0x53 [ 36.087546] ? show_regs_print_info+0x65/0x65 [ 36.092015] ? __kernel_text_address+0xd/0x40 [ 36.096476] ? __lock_acquire+0x407b/0x4620 [ 36.100768] print_address_description+0x73/0x250 [ 36.105581] ? __lock_acquire+0x407b/0x4620 [ 36.109872] kasan_report+0x25b/0x340 [ 36.113640] __asan_report_load8_noabort+0x14/0x20 [ 36.118536] __lock_acquire+0x407b/0x4620 [ 36.122649] ? unwind_dump+0x4c0/0x4c0 [ 36.126508] ? __unwind_start+0x169/0x330 [ 36.130628] ? __kernel_text_address+0xd/0x40 [ 36.135093] ? unwind_get_return_address+0x61/0xa0 [ 36.139989] ? debug_check_no_locks_freed+0x3d0/0x3d0 [ 36.145236] ? unwind_get_return_address+0x61/0xa0 [ 36.150132] ? __save_stack_trace+0x61/0xd0 [ 36.154417] ? get_signal+0x73f/0x16d0 [ 36.158270] ? save_stack_trace+0x16/0x20 [ 36.162392] ? __lock_acquire+0x20fd/0x4620 [ 36.166680] ? debug_check_no_locks_freed+0x3d0/0x3d0 [ 36.171845] ? debug_check_no_locks_freed+0x3d0/0x3d0 [ 36.177000] ? save_stack_trace+0x16/0x20 [ 36.181114] ? __lock_acquire+0x20fd/0x4620 [ 36.185401] ? osq_unlock+0x350/0x350 [ 36.189167] ? save_stack_trace+0x16/0x20 [ 36.193284] ? lock_release+0xd70/0xd70 [ 36.197225] ? check_noncircular+0x20/0x20 [ 36.201439] ? debug_check_no_locks_freed+0x3d0/0x3d0 [ 36.206602] ? debug_check_no_locks_freed+0x3d0/0x3d0 [ 36.211761] ? find_held_lock+0x39/0x1d0 [ 36.215790] ? lock_downgrade+0x990/0x990 [ 36.219903] ? check_noncircular+0x20/0x20 [ 36.224104] lock_acquire+0x1d5/0x580 [ 36.227879] ? exit_pi_state_list+0x369/0x7a0 [ 36.232343] ? lock_release+0xd70/0xd70 [ 36.236289] ? do_raw_spin_trylock+0x190/0x190 [ 36.240833] ? find_held_lock+0x39/0x1d0 [ 36.244863] _raw_spin_lock_irq+0x5e/0x80 [ 36.248973] ? exit_pi_state_list+0x369/0x7a0 [ 36.253430] exit_pi_state_list+0x369/0x7a0 [ 36.257719] ? futex_wait_requeue_pi.constprop.19+0x1300/0x1300 [ 36.263741] ? lock_release+0xd70/0xd70 [ 36.267681] ? trace_event_raw_event_sched_switch+0x770/0x770 [ 36.273536] ? _raw_spin_unlock_irqrestore+0x31/0xba [ 36.278603] ? __might_sleep+0x95/0x190 [ 36.282543] ? __might_fault+0x188/0x1d0 [ 36.286569] ? do_raw_spin_trylock+0x190/0x190 [ 36.291126] mm_release+0x46d/0x590 [ 36.294718] ? do_raw_spin_trylock+0x190/0x190 [ 36.299266] ? mm_access+0x140/0x140 [ 36.302946] ? _raw_spin_unlock_irq+0x27/0x70 [ 36.307420] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 36.312402] ? trace_hardirqs_on+0xd/0x10 [ 36.316514] ? _raw_spin_unlock_irq+0x27/0x70 [ 36.320972] ? acct_collect+0x637/0x800 [ 36.324911] do_exit+0x481/0x1b00 [ 36.328329] ? mm_update_next_owner+0x930/0x930 [ 36.332961] ? trace_event_raw_event_sched_switch+0x770/0x770 [ 36.338809] ? find_held_lock+0x39/0x1d0 [ 36.342837] ? refill_pi_state_cache.part.6+0x2f0/0x2f0 [ 36.348178] ? check_noncircular+0x20/0x20 [ 36.352402] ? fault_in_user_writeable+0x90/0x90 [ 36.357121] ? futex_wake+0x680/0x680 [ 36.360886] ? find_held_lock+0x39/0x1d0 [ 36.364913] ? lock_downgrade+0x990/0x990 [ 36.369027] ? recalc_sigpending_tsk+0x117/0x150 [ 36.373750] ? recalc_sigpending+0x103/0x160 [ 36.378125] ? recalc_sigpending_tsk+0x150/0x150 [ 36.382842] ? get_signal+0x2b2/0x16d0 [ 36.386697] do_group_exit+0x149/0x400 [ 36.390548] ? __lock_is_held+0xbc/0x140 [ 36.394573] ? SyS_exit+0x30/0x30 [ 36.397997] ? _raw_spin_unlock_irq+0x27/0x70 [ 36.402455] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 36.407522] get_signal+0x73f/0x16d0 [ 36.411199] ? ptrace_notify+0x130/0x130 [ 36.415225] ? vma_wants_writenotify+0x3b0/0x3b0 [ 36.419949] ? exit_robust_list+0x240/0x240 [ 36.424237] ? lock_downgrade+0x990/0x990 [ 36.428351] ? SyS_brk+0x6f0/0x6f0 [ 36.431865] do_signal+0x94/0x1ee0 [ 36.435368] ? arch_get_unmapped_area+0x750/0x750 [ 36.440171] ? lock_acquire+0x1d5/0x580 [ 36.444114] ? find_held_lock+0x39/0x1d0 [ 36.448139] ? setup_sigcontext+0x7d0/0x7d0 [ 36.452426] ? lock_downgrade+0x990/0x990 [ 36.456542] ? down_write+0x120/0x120 [ 36.460309] ? lock_release+0xd70/0xd70 [ 36.464255] ? trace_event_raw_event_sched_switch+0x770/0x770 [ 36.470107] ? vm_mmap_pgoff+0x1fc/0x280 [ 36.474138] ? exit_to_usermode_loop+0x8c/0x310 [ 36.478772] exit_to_usermode_loop+0x214/0x310 [ 36.483320] ? trace_event_raw_event_sys_exit+0x260/0x260 [ 36.488821] ? kasan_check_write+0x14/0x20 [ 36.493031] syscall_return_slowpath+0x42f/0x510 [ 36.497762] ? prepare_exit_to_usermode+0x2d0/0x2d0 [ 36.502748] ? entry_SYSCALL_64_fastpath+0x91/0xbe [ 36.507642] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 36.512623] ? trace_hardirqs_on_thunk+0x1a/0x1c [ 36.517345] entry_SYSCALL_64_fastpath+0xbc/0xbe [ 36.522062] RIP: 0033:0x4520a9 [ 36.525218] RSP: 002b:00007f85114b2cf8 EFLAGS: 00000246 ORIG_RAX: 00000000000000ca [ 36.532891] RAX: fffffffffffffe00 RBX: 0000000000718028 RCX: 00000000004520a9 [ 36.540129] RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000718028 [ 36.547362] RBP: 0000000000718000 R08: 0000000000000000 R09: 0000000000000000 [ 36.554598] R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 [ 36.561834] R13: 00007ffdf37776ef R14: 00007f85114b39c0 R15: 0000000000000000 [ 36.569076] [ 36.570671] Allocated by task 3251: [ 36.574266] save_stack_trace+0x16/0x20 [ 36.578205] save_stack+0x43/0xd0 [ 36.581628] kasan_kmalloc+0xad/0xe0 [ 36.585316] kmem_cache_alloc_trace+0x136/0x750 [ 36.589949] refill_pi_state_cache.part.6+0xa5/0x2f0 [ 36.595016] futex_requeue+0x1887/0x2370 [ 36.599048] do_futex+0x7f5/0x20d0 [ 36.602552] SyS_futex+0x260/0x390 [ 36.606067] entry_SYSCALL_64_fastpath+0x1f/0xbe [ 36.610791] [ 36.612383] Freed by task 3243: [ 36.615626] save_stack_trace+0x16/0x20 [ 36.619566] save_stack+0x43/0xd0 [ 36.622984] kasan_slab_free+0x71/0xc0 [ 36.626834] kfree+0xca/0x250 [ 36.629931] put_pi_state+0x3f4/0x560 [ 36.633699] unqueue_me_pi+0x4a/0xc0 [ 36.637378] futex_wait_requeue_pi.constprop.19+0xc7f/0x1300 [ 36.643147] do_futex+0x825/0x20d0 [ 36.646652] SyS_futex+0x260/0x390 [ 36.650166] entry_SYSCALL_64_fastpath+0x1f/0xbe [ 36.654892] [ 36.656489] The buggy address belongs to the object at ffff8801cd209580 [ 36.656489] which belongs to the cache kmalloc-256 of size 256 [ 36.669373] The buggy address is located 40 bytes inside of [ 36.669373] 256-byte region [ffff8801cd209580, ffff8801cd209680) [ 36.681123] The buggy address belongs to the page: [ 36.686020] page:ffffea0007348240 count:1 mapcount:0 mapping:ffff8801cd209080 index:0x0 [ 36.694126] flags: 0x200000000000100(slab) [ 36.698332] raw: 0200000000000100 ffff8801cd209080 0000000000000000 000000010000000c [ 36.706178] raw: ffffea000735ec20 ffffea00073468e0 ffff8801dac007c0 0000000000000000 [ 36.714020] page dumped because: kasan: bad access detected [ 36.719691] [ 36.721283] Memory state around the buggy address: [ 36.726176] ffff8801cd209480: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 36.733507] ffff8801cd209500: fb fb fb fb fb fb fb fb fc fc fc fc fc fc fc fc [ 36.740830] >ffff8801cd209580: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 36.748160] ^ [ 36.752793] ffff8801cd209600: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 36.760120] ffff8801cd209680: fc fc fc fc fc fc fc fc fb fb fb fb fb fb fb fb [ 36.767443] ================================================================== [ 36.774768] Disabling lock debugging due to kernel taint [ 36.780187] Kernel panic - not syncing: panic_on_warn set ... [ 36.780187] [ 36.787516] CPU: 0 PID: 3224 Comm: syz-executor6 Tainted: G B 4.14.0-rc2-next-20170929+ #32 [ 36.797184] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 36.806501] Call Trace: [ 36.809058] dump_stack+0x194/0x257 [ 36.812651] ? arch_local_irq_restore+0x53/0x53 [ 36.817285] ? vprintk_default+0x28/0x30 [ 36.821314] ? __lock_acquire+0x4000/0x4620 [ 36.825604] panic+0x1e4/0x41c [ 36.828763] ? refcount_error_report+0x214/0x214 [ 36.833488] ? __lock_acquire+0x407b/0x4620 [ 36.837776] kasan_end_report+0x50/0x50 [ 36.841715] kasan_report+0x144/0x340 [ 36.845481] __asan_report_load8_noabort+0x14/0x20 [ 36.850377] __lock_acquire+0x407b/0x4620 [ 36.854499] ? unwind_dump+0x4c0/0x4c0 [ 36.858358] ? __unwind_start+0x169/0x330 [ 36.862482] ? __kernel_text_address+0xd/0x40 [ 36.866941] ? unwind_get_return_address+0x61/0xa0 [ 36.871838] ? debug_check_no_locks_freed+0x3d0/0x3d0 [ 36.876992] ? unwind_get_return_address+0x61/0xa0 [ 36.881889] ? __save_stack_trace+0x61/0xd0 [ 36.886175] ? get_signal+0x73f/0x16d0 [ 36.890024] ? save_stack_trace+0x16/0x20 [ 36.894136] ? __lock_acquire+0x20fd/0x4620 [ 36.898425] ? debug_check_no_locks_freed+0x3d0/0x3d0 [ 36.903583] ? debug_check_no_locks_freed+0x3d0/0x3d0 [ 36.908735] ? save_stack_trace+0x16/0x20 [ 36.912847] ? __lock_acquire+0x20fd/0x4620 [ 36.917134] ? osq_unlock+0x350/0x350 [ 36.920908] ? save_stack_trace+0x16/0x20 [ 36.925023] ? lock_release+0xd70/0xd70 [ 36.928970] ? check_noncircular+0x20/0x20 [ 36.933171] ? debug_check_no_locks_freed+0x3d0/0x3d0 [ 36.938328] ? debug_check_no_locks_freed+0x3d0/0x3d0 [ 36.943485] ? find_held_lock+0x39/0x1d0 [ 36.947512] ? lock_downgrade+0x990/0x990 [ 36.951624] ? check_noncircular+0x20/0x20 [ 36.955823] lock_acquire+0x1d5/0x580 [ 36.959595] ? exit_pi_state_list+0x369/0x7a0 [ 36.964059] ? lock_release+0xd70/0xd70 [ 36.968082] ? do_raw_spin_trylock+0x190/0x190 [ 36.972627] ? find_held_lock+0x39/0x1d0 [ 36.976658] _raw_spin_lock_irq+0x5e/0x80 [ 36.980770] ? exit_pi_state_list+0x369/0x7a0 [ 36.985242] exit_pi_state_list+0x369/0x7a0 [ 36.989535] ? futex_wait_requeue_pi.constprop.19+0x1300/0x1300 [ 36.995558] ? lock_release+0xd70/0xd70 [ 36.999499] ? trace_event_raw_event_sched_switch+0x770/0x770 [ 37.005356] ? _raw_spin_unlock_irqrestore+0x31/0xba [ 37.010432] ? __might_sleep+0x95/0x190 [ 37.014380] ? __might_fault+0x188/0x1d0 [ 37.018414] ? do_raw_spin_trylock+0x190/0x190 [ 37.022973] mm_release+0x46d/0x590 [ 37.026565] ? do_raw_spin_trylock+0x190/0x190 [ 37.031112] ? mm_access+0x140/0x140 [ 37.034800] ? _raw_spin_unlock_irq+0x27/0x70