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.55' (ECDSA) to the list of known hosts. 2017/09/27 09:48:34 parsed 1 programs 2017/09/27 09:48:34 executed programs: 0 syzkaller login: [ 45.995964] ================================================================== [ 46.003366] BUG: KASAN: use-after-free in __lock_acquire+0x407b/0x4620 [ 46.010020] Read of size 8 at addr ffff8801c70f6068 by task syz-executor0/5591 [ 46.017350] [ 46.018948] CPU: 1 PID: 5591 Comm: syz-executor0 Not tainted 4.14.0-rc2-next-20170927+ #30 [ 46.027317] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 46.036647] Call Trace: [ 46.039214] dump_stack+0x194/0x257 [ 46.042823] ? arch_local_irq_restore+0x53/0x53 [ 46.047467] ? show_regs_print_info+0x65/0x65 [ 46.051938] ? __kernel_text_address+0xd/0x40 [ 46.056407] ? __lock_acquire+0x407b/0x4620 [ 46.060723] print_address_description+0x73/0x250 [ 46.065553] ? __lock_acquire+0x407b/0x4620 [ 46.069968] kasan_report+0x25b/0x340 [ 46.073747] __asan_report_load8_noabort+0x14/0x20 [ 46.078652] __lock_acquire+0x407b/0x4620 [ 46.082766] ? unwind_dump+0x4c0/0x4c0 [ 46.086617] ? __unwind_start+0x169/0x330 [ 46.090731] ? __kernel_text_address+0xd/0x40 [ 46.095202] ? unwind_get_return_address+0x61/0xa0 [ 46.100119] ? debug_check_no_locks_freed+0x3d0/0x3d0 [ 46.105281] ? unwind_get_return_address+0x61/0xa0 [ 46.110192] ? __save_stack_trace+0x61/0xd0 [ 46.114486] ? get_signal+0x73f/0x16d0 [ 46.118351] ? save_stack_trace+0x16/0x20 [ 46.122477] ? __lock_acquire+0x20fd/0x4620 [ 46.126782] ? debug_check_no_locks_freed+0x3d0/0x3d0 [ 46.131960] ? debug_check_no_locks_freed+0x3d0/0x3d0 [ 46.137128] ? save_stack_trace+0x16/0x20 [ 46.141245] ? __lock_acquire+0x20fd/0x4620 [ 46.145532] ? osq_unlock+0x350/0x350 [ 46.149296] ? save_stack_trace+0x16/0x20 [ 46.153418] ? lock_release+0xd70/0xd70 [ 46.157378] ? check_noncircular+0x20/0x20 [ 46.161586] ? debug_check_no_locks_freed+0x3d0/0x3d0 [ 46.166745] ? debug_check_no_locks_freed+0x3d0/0x3d0 [ 46.171904] ? find_held_lock+0x39/0x1d0 [ 46.175939] ? lock_downgrade+0x990/0x990 [ 46.180066] ? check_noncircular+0x20/0x20 [ 46.184274] lock_acquire+0x1d5/0x580 [ 46.188049] ? exit_pi_state_list+0x369/0x7a0 [ 46.192520] ? lock_release+0xd70/0xd70 [ 46.196461] ? do_raw_spin_trylock+0x190/0x190 [ 46.201019] ? find_held_lock+0x39/0x1d0 [ 46.205056] _raw_spin_lock_irq+0x5e/0x80 [ 46.209168] ? exit_pi_state_list+0x369/0x7a0 [ 46.213625] exit_pi_state_list+0x369/0x7a0 [ 46.217914] ? futex_wait_requeue_pi.constprop.19+0x1300/0x1300 [ 46.223939] ? lock_release+0xd70/0xd70 [ 46.227888] ? trace_event_raw_event_sched_switch+0x770/0x770 [ 46.233758] ? _raw_spin_unlock_irqrestore+0x31/0xba [ 46.238831] ? __might_sleep+0x95/0x190 [ 46.242773] ? __might_fault+0x188/0x1d0 [ 46.246808] ? do_raw_spin_trylock+0x190/0x190 [ 46.251363] mm_release+0x46d/0x590 [ 46.254955] ? do_raw_spin_trylock+0x190/0x190 [ 46.259500] ? mm_access+0x140/0x140 [ 46.263183] ? _raw_spin_unlock_irq+0x27/0x70 [ 46.267660] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 46.272641] ? trace_hardirqs_on+0xd/0x10 [ 46.276755] ? _raw_spin_unlock_irq+0x27/0x70 [ 46.281222] ? acct_collect+0x637/0x800 [ 46.285167] do_exit+0x481/0x1b00 [ 46.288593] ? mm_update_next_owner+0x930/0x930 [ 46.293235] ? trace_event_raw_event_sched_switch+0x770/0x770 [ 46.299093] ? find_held_lock+0x39/0x1d0 [ 46.303125] ? refill_pi_state_cache.part.6+0x2f0/0x2f0 [ 46.308454] ? check_noncircular+0x20/0x20 [ 46.312660] ? fault_in_user_writeable+0x90/0x90 [ 46.317384] ? futex_wake+0x680/0x680 [ 46.321150] ? find_held_lock+0x39/0x1d0 [ 46.325179] ? lock_downgrade+0x990/0x990 [ 46.329293] ? recalc_sigpending_tsk+0x117/0x150 [ 46.334016] ? recalc_sigpending+0x103/0x160 [ 46.338396] ? recalc_sigpending_tsk+0x150/0x150 [ 46.343116] ? get_signal+0x2b2/0x16d0 [ 46.346972] do_group_exit+0x149/0x400 [ 46.350823] ? __lock_is_held+0xbc/0x140 [ 46.354851] ? SyS_exit+0x30/0x30 [ 46.358271] ? _raw_spin_unlock_irq+0x27/0x70 [ 46.362731] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 46.367715] get_signal+0x73f/0x16d0 [ 46.371402] ? ptrace_notify+0x130/0x130 [ 46.375428] ? lock_release+0xd70/0xd70 [ 46.379377] ? __lock_is_held+0xbc/0x140 [ 46.383406] ? exit_robust_list+0x240/0x240 [ 46.387697] ? __fget+0x362/0x580 [ 46.391118] ? lock_downgrade+0x990/0x990 [ 46.395238] do_signal+0x94/0x1ee0 [ 46.398742] ? iterate_fd+0x3f0/0x3f0 [ 46.402506] ? lock_acquire+0x1d5/0x580 [ 46.406449] ? find_held_lock+0x39/0x1d0 [ 46.410479] ? setup_sigcontext+0x7d0/0x7d0 [ 46.414768] ? lock_downgrade+0x990/0x990 [ 46.418884] ? __fget_light+0x29d/0x390 [ 46.422829] ? down_write+0x120/0x120 [ 46.426600] ? lock_release+0xd70/0xd70 [ 46.430545] ? trace_event_raw_event_sched_switch+0x770/0x770 [ 46.436400] ? vm_mmap_pgoff+0x1fc/0x280 [ 46.440439] ? exit_to_usermode_loop+0x8c/0x310 [ 46.445076] exit_to_usermode_loop+0x214/0x310 [ 46.449622] ? trace_event_raw_event_sys_exit+0x260/0x260 [ 46.455124] ? kasan_check_write+0x14/0x20 [ 46.459326] syscall_return_slowpath+0x42f/0x510 [ 46.464054] ? prepare_exit_to_usermode+0x2d0/0x2d0 [ 46.469053] ? entry_SYSCALL_64_fastpath+0x91/0xbe [ 46.473963] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 46.478948] ? trace_hardirqs_on_thunk+0x1a/0x1c [ 46.483670] entry_SYSCALL_64_fastpath+0xbc/0xbe [ 46.488390] RIP: 0033:0x4520a9 [ 46.491546] RSP: 002b:00007f237f21ecf8 EFLAGS: 00000246 ORIG_RAX: 00000000000000ca [ 46.499220] RAX: fffffffffffffe00 RBX: 0000000000718028 RCX: 00000000004520a9 [ 46.506469] RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000718028 [ 46.513703] RBP: 0000000000718000 R08: 0000000000000000 R09: 0000000000000000 [ 46.520937] R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 [ 46.528171] R13: 00007ffff69fceef R14: 00007f237f21f9c0 R15: 0000000000000000 [ 46.535408] [ 46.537005] Allocated by task 5614: [ 46.540604] save_stack_trace+0x16/0x20 [ 46.544545] save_stack+0x43/0xd0 [ 46.547959] kasan_kmalloc+0xad/0xe0 [ 46.551637] kmem_cache_alloc_trace+0x136/0x750 [ 46.556267] refill_pi_state_cache.part.6+0xa5/0x2f0 [ 46.561337] futex_requeue+0x1887/0x2370 [ 46.565368] do_futex+0x7f5/0x20d0 [ 46.568871] SyS_futex+0x260/0x390 [ 46.572374] entry_SYSCALL_64_fastpath+0x1f/0xbe [ 46.577088] [ 46.578680] Freed by task 5603: [ 46.581926] save_stack_trace+0x16/0x20 [ 46.585872] save_stack+0x43/0xd0 [ 46.589292] kasan_slab_free+0x71/0xc0 [ 46.593144] kfree+0xca/0x250 [ 46.596212] put_pi_state+0x3f4/0x560 [ 46.599974] unqueue_me_pi+0x4a/0xc0 [ 46.603655] futex_wait_requeue_pi.constprop.19+0xc7f/0x1300 [ 46.609413] do_futex+0x825/0x20d0 [ 46.612917] SyS_futex+0x260/0x390 [ 46.616423] entry_SYSCALL_64_fastpath+0x1f/0xbe [ 46.621137] [ 46.622728] The buggy address belongs to the object at ffff8801c70f6040 [ 46.622728] which belongs to the cache kmalloc-256 of size 256 [ 46.635345] The buggy address is located 40 bytes inside of [ 46.635345] 256-byte region [ffff8801c70f6040, ffff8801c70f6140) [ 46.647093] The buggy address belongs to the page: [ 46.651990] page:ffffea00071c3d80 count:1 mapcount:0 mapping:ffff8801c70f6040 index:0x0 [ 46.660095] flags: 0x200000000000100(slab) [ 46.664296] raw: 0200000000000100 ffff8801c70f6040 0000000000000000 000000010000000c [ 46.672144] raw: ffffea00071d4c60 ffffea00071ca720 ffff8801dac007c0 0000000000000000 [ 46.679985] page dumped because: kasan: bad access detected [ 46.685654] [ 46.687246] Memory state around the buggy address: [ 46.692140] ffff8801c70f5f00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 46.699462] ffff8801c70f5f80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 46.706785] >ffff8801c70f6000: fc fc fc fc fc fc fc fc fb fb fb fb fb fb fb fb [ 46.714116] ^ [ 46.720834] ffff8801c70f6080: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 46.728157] ffff8801c70f6100: fb fb fb fb fb fb fb fb fc fc fc fc fc fc fc fc [ 46.735483] ================================================================== [ 46.742809] Disabling lock debugging due to kernel taint [ 46.748222] Kernel panic - not syncing: panic_on_warn set ... [ 46.748222] [ 46.755549] CPU: 1 PID: 5591 Comm: syz-executor0 Tainted: G B 4.14.0-rc2-next-20170927+ #30 [ 46.765128] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 46.774443] Call Trace: [ 46.777002] dump_stack+0x194/0x257 [ 46.780610] ? arch_local_irq_restore+0x53/0x53 [ 46.785248] ? vprintk_default+0x28/0x30 [ 46.789274] ? __lock_acquire+0x3f80/0x4620 [ 46.793561] panic+0x1e4/0x417 [ 46.796726] ? __warn+0x1d9/0x1d9 [ 46.800147] ? __lock_acquire+0x407b/0x4620 [ 46.804432] kasan_end_report+0x50/0x50 [ 46.808377] kasan_report+0x144/0x340 [ 46.812151] __asan_report_load8_noabort+0x14/0x20 [ 46.817046] __lock_acquire+0x407b/0x4620 [ 46.821159] ? unwind_dump+0x4c0/0x4c0 [ 46.825015] ? __unwind_start+0x169/0x330 [ 46.829131] ? __kernel_text_address+0xd/0x40 [ 46.833591] ? unwind_get_return_address+0x61/0xa0 [ 46.838488] ? debug_check_no_locks_freed+0x3d0/0x3d0 [ 46.843639] ? unwind_get_return_address+0x61/0xa0 [ 46.848531] ? __save_stack_trace+0x61/0xd0 [ 46.852817] ? get_signal+0x73f/0x16d0 [ 46.856668] ? save_stack_trace+0x16/0x20 [ 46.860780] ? __lock_acquire+0x20fd/0x4620 [ 46.865066] ? debug_check_no_locks_freed+0x3d0/0x3d0 [ 46.870220] ? debug_check_no_locks_freed+0x3d0/0x3d0 [ 46.875374] ? save_stack_trace+0x16/0x20 [ 46.879484] ? __lock_acquire+0x20fd/0x4620 [ 46.883769] ? osq_unlock+0x350/0x350 [ 46.887533] ? save_stack_trace+0x16/0x20 [ 46.891645] ? lock_release+0xd70/0xd70 [ 46.895583] ? check_noncircular+0x20/0x20 [ 46.899782] ? debug_check_no_locks_freed+0x3d0/0x3d0 [ 46.904934] ? debug_check_no_locks_freed+0x3d0/0x3d0 [ 46.910089] ? find_held_lock+0x39/0x1d0 [ 46.914115] ? lock_downgrade+0x990/0x990 [ 46.918225] ? check_noncircular+0x20/0x20 [ 46.922424] lock_acquire+0x1d5/0x580 [ 46.926190] ? exit_pi_state_list+0x369/0x7a0 [ 46.930651] ? lock_release+0xd70/0xd70 [ 46.934587] ? do_raw_spin_trylock+0x190/0x190 [ 46.939129] ? find_held_lock+0x39/0x1d0 [ 46.943156] _raw_spin_lock_irq+0x5e/0x80