Pseudo-terminal will not be allocated because stdin is not a terminal. Warning: Permanently added '[ssh-serialport.googleapis.com]:9600,[216.239.38.127]:9600' (RSA) to the list of known hosts. Warning: Permanently added 'ci-upstream-kasan-gce-3,10.128.0.23' (ECDSA) to the list of known hosts. executing program serialport: Connected to syzkaller.us-central1-c.ci-upstream-kasan-gce-3 port 1 (session ID: c2e1e2a403cf2d8d561c16a598d210aac395d7f4b6c6827be96f25fed40be3de, active connections: 1). 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 syzkaller login: [ 35.775605] refcount_t: underflow; use-after-free. [ 35.776515] ------------[ cut here ]------------ [ 35.777368] WARNING: CPU: 0 PID: 2918 at lib/refcount.c:186 refcount_sub_and_test+0x167/0x1b0 [ 35.778639] Kernel panic - not syncing: panic_on_warn set ... [ 35.778639] [ 35.779655] CPU: 0 PID: 2918 Comm: syzkaller551323 Not tainted 4.13.0-rc1+ #1 [ 35.780652] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 35.781876] Call Trace: [ 35.782247] dump_stack+0x194/0x257 [ 35.782744] ? arch_local_irq_restore+0x53/0x53 [ 35.783383] panic+0x1e4/0x417 [ 35.783820] ? __warn+0x1d9/0x1d9 [ 35.784288] ? show_regs_print_info+0x65/0x65 [ 35.784905] ? refcount_sub_and_test+0x167/0x1b0 [ 35.785541] __warn+0x1c4/0x1d9 [ 35.785988] ? refcount_sub_and_test+0x167/0x1b0 [ 35.786625] report_bug+0x211/0x2d0 [ 35.787124] fixup_bug+0x40/0x90 [ 35.787582] do_trap+0x260/0x390 [ 35.788044] do_error_trap+0x120/0x390 [ 35.788588] ? do_trap+0x390/0x390 [ 35.789066] ? refcount_sub_and_test+0x167/0x1b0 [ 35.789699] ? vprintk_emit+0x3ea/0x590 [ 35.790259] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 35.790911] do_invalid_op+0x1b/0x20 [ 35.791414] invalid_op+0x1e/0x30 [ 35.791881] RIP: 0010:refcount_sub_and_test+0x167/0x1b0 [ 35.792613] RSP: 0018:ffff8801d11ee310 EFLAGS: 00010282 [ 35.793399] RAX: 0000000000000026 RBX: 0000000000000001 RCX: 0000000000000000 [ 35.794354] RDX: 0000000000000026 RSI: 1ffff1003a23dc22 RDI: ffffed003a23dc56 [ 35.795308] RBP: ffff8801d11ee3a0 R08: 0000000000000001 R09: 0000000000000000 [ 35.799535] R10: 0000000000000000 R11: 0000000000000000 R12: 1ffff1003a23dc63 [ 35.806776] R13: 00000000ffffff01 R14: 0000000000000100 R15: ffff8801d350f23c [ 35.814036] ? refcount_inc+0x50/0x50 [ 35.817805] ? __sctp_outq_teardown+0xc7d/0x15a0 [ 35.822531] ? sctp_association_free+0x2d0/0x930 [ 35.827254] ? sctp_do_sm+0x28e7/0x6d90 [ 35.831196] ? sctp_primitive_SHUTDOWN+0xa0/0xd0 [ 35.835927] ? sctp_close+0x3c6/0x980 [ 35.839692] ? inet_release+0xed/0x1c0 [ 35.843549] sctp_wfree+0x183/0x620 [ 35.847145] ? __sctp_write_space+0x910/0x910 [ 35.851610] skb_release_head_state+0x124/0x200 [ 35.856249] skb_release_all+0x15/0x60 [ 35.860105] consume_skb+0x153/0x490 [ 35.863784] ? sctp_chunk_put+0x99/0x420 [ 35.867822] ? pskb_carve+0x1db0/0x1db0 [ 35.871763] ? sctp_chunk_hold+0x20/0x20 [ 35.875795] ? refcount_sub_and_test+0x115/0x1b0 [ 35.880517] ? refcount_inc+0x50/0x50 [ 35.884283] ? mark_held_locks+0xaf/0x100 [ 35.888402] ? sctp_datamsg_put+0x456/0x560 [ 35.892712] sctp_chunk_put+0x29c/0x420 [ 35.896656] ? sctp_chunk_hold+0x20/0x20 [ 35.900689] ? sctp_transport_dst_confirm+0x50/0x50 [ 35.905679] ? noop_count+0x40/0x40 [ 35.909281] sctp_chunk_free+0x53/0x60 [ 35.913136] __sctp_outq_teardown+0xc7d/0x15a0 [ 35.917693] ? sctp_inq_set_th_handler+0x1b0/0x1b0 [ 35.922603] ? lock_downgrade+0x990/0x990 [ 35.926722] ? lock_release+0xa40/0xa40 [ 35.930666] ? __free_insn_slot+0x5c0/0x5c0 [ 35.934959] ? update_stack_state+0x700/0x700 [ 35.939422] ? print_usage_bug+0x480/0x480 [ 35.943636] ? is_bpf_text_address+0xa4/0x120 [ 35.948105] ? __kernel_text_address+0xae/0xe0 [ 35.952654] ? unwind_get_return_address+0x61/0xa0 [ 35.957555] ? __save_stack_trace+0x7e/0xd0 [ 35.961851] ? check_noncircular+0x20/0x20 [ 35.966058] ? print_usage_bug+0x480/0x480 [ 35.970263] ? SOFTIRQ_verbose+0x10/0x10 [ 35.974292] ? save_stack_trace+0x16/0x20 [ 35.978409] ? save_trace+0x11f/0x350 [ 35.982187] ? lock_acquire+0x1d5/0x580 [ 35.986137] ? lock_acquire+0x1d5/0x580 [ 35.990080] ? lock_timer_base+0x1a3/0x2b0 [ 35.994286] ? find_held_lock+0x35/0x1d0 [ 35.998333] ? sock_def_wakeup+0x1f9/0x350 [ 36.002537] ? lock_downgrade+0x990/0x990 [ 36.006655] ? lock_release+0xa40/0xa40 [ 36.010603] sctp_outq_free+0x15/0x20 [ 36.014373] sctp_association_free+0x2d0/0x930 [ 36.018928] ? sctp_asconf_queue_teardown+0x700/0x700 [ 36.024084] ? sock_def_wakeup+0x222/0x350 [ 36.028285] ? sk_dst_check+0x560/0x560 [ 36.032235] ? sctp_association_put+0x74/0x2f0 [ 36.036783] ? sctp_association_hold+0x20/0x20 [ 36.041335] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 36.046495] ? unwind_get_return_address+0x61/0xa0 [ 36.051390] ? sctp_sm_lookup_event+0x95/0x3c0 [ 36.055960] sctp_do_sm+0x28e7/0x6d90 [ 36.059733] ? check_noncircular+0x20/0x20 [ 36.063947] ? sctp_do_8_2_transport_strike.isra.16+0x8a0/0x8a0 [ 36.069988] ? print_usage_bug+0x480/0x480 [ 36.074190] ? exit_to_usermode_loop+0x21c/0x2d0 [ 36.078915] ? syscall_return_slowpath+0x3a7/0x450 [ 36.083824] ? print_usage_bug+0x480/0x480 [ 36.088041] ? find_held_lock+0x35/0x1d0 [ 36.092076] ? skb_dequeue+0x12a/0x180 [ 36.095934] ? lock_downgrade+0x990/0x990 [ 36.100061] ? do_raw_spin_trylock+0x190/0x190 [ 36.104615] ? mark_held_locks+0xaf/0x100 [ 36.108739] ? trace_hardirqs_on+0xd/0x10 [ 36.112863] sctp_primitive_SHUTDOWN+0xa0/0xd0 [ 36.117418] sctp_close+0x3c6/0x980 [ 36.121023] ? sctp_apply_peer_addr_params+0xf30/0xf30 [ 36.126269] ? unwind_get_return_address+0x61/0xa0 [ 36.131179] ? trace_hardirqs_off+0xd/0x10 [ 36.135388] ? _raw_spin_unlock_irqrestore+0xa6/0xba [ 36.140461] ? depot_save_stack+0x3b5/0x490 [ 36.144761] ? ipv6_sock_ac_close+0x2e8/0x3e0 [ 36.149228] ? ipv6_sock_mc_close+0x148/0x1a0 [ 36.153693] ? ipv6_sock_ac_drop+0x580/0x580 [ 36.158069] ? ip_mc_drop_socket+0x1ce/0x230 [ 36.162448] ? __fsnotify_parent+0xb4/0x3a0 [ 36.166740] inet_release+0xed/0x1c0 [ 36.170434] inet6_release+0x50/0x70 [ 36.174118] sock_release+0x8d/0x1e0 [ 36.177800] ? sock_release+0x1e0/0x1e0 [ 36.181742] sock_close+0x16/0x20 [ 36.185167] __fput+0x327/0x7e0 [ 36.188423] ? fput+0x140/0x140 [ 36.191675] ? do_raw_spin_trylock+0x190/0x190 [ 36.196230] ? check_same_owner+0x320/0x320 [ 36.200525] ____fput+0x15/0x20 [ 36.203777] task_work_run+0x18a/0x260 [ 36.207636] ? task_work_cancel+0x210/0x210 [ 36.211941] ? _raw_spin_unlock+0x22/0x30 [ 36.216062] ? switch_task_namespaces+0x87/0xc0 [ 36.220704] do_exit+0xa32/0x1b10 [ 36.224129] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 36.229290] ? print_usage_bug+0x480/0x480 [ 36.233498] ? exit_notify+0xb10/0xb10 [ 36.237352] ? check_noncircular+0x20/0x20 [ 36.241557] ? check_noncircular+0x20/0x20 [ 36.245767] ? find_held_lock+0x35/0x1d0 [ 36.249803] ? find_held_lock+0x35/0x1d0 [ 36.253837] ? check_noncircular+0x20/0x20 [ 36.258039] ? check_noncircular+0x20/0x20 [ 36.262240] ? lock_downgrade+0x990/0x990 [ 36.266358] ? do_raw_spin_trylock+0x190/0x190 [ 36.270910] ? reacquire_held_locks+0x1fd/0x3d0 [ 36.275544] ? mark_held_locks+0xaf/0x100 [ 36.279658] ? reacquire_held_locks+0x1fd/0x3d0 [ 36.284295] ? check_noncircular+0x20/0x20 [ 36.288507] ? find_held_lock+0x35/0x1d0 [ 36.292546] ? release_sock+0x1d4/0x2a0 [ 36.296490] ? lock_downgrade+0x990/0x990 [ 36.300606] ? lock_downgrade+0x990/0x990 [ 36.304735] ? find_held_lock+0x35/0x1d0 [ 36.308771] ? get_signal+0x855/0x17e0 [ 36.312626] ? lock_downgrade+0x990/0x990 [ 36.316751] do_group_exit+0x149/0x400 [ 36.320608] ? __lock_is_held+0xb6/0x140 [ 36.324642] ? SyS_exit+0x30/0x30 [ 36.328065] ? _raw_spin_unlock_irq+0x27/0x70 [ 36.332529] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 36.337517] get_signal+0x7e8/0x17e0 [ 36.341241] ? ptrace_notify+0x130/0x130 [ 36.345268] ? inet_autobind+0x1f/0x180 [ 36.349209] ? __local_bh_enable_ip+0x9d/0x160 [ 36.353760] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 36.358742] ? release_sock+0x1d4/0x2a0 [ 36.362683] ? trace_hardirqs_on+0xd/0x10 [ 36.366807] ? __local_bh_enable_ip+0x9d/0x160 [ 36.371358] ? _raw_spin_unlock_bh+0x30/0x40 [ 36.375733] ? release_sock+0x1d4/0x2a0 [ 36.379673] ? __release_sock+0x360/0x360 [ 36.383788] ? trace_hardirqs_on+0xd/0x10 [ 36.387913] do_signal+0x94/0x1ee0 [ 36.391424] ? inet_sendmsg+0x11f/0x5e0 [ 36.395366] ? inet_sendmsg+0x126/0x5e0 [ 36.399310] ? __might_sleep+0x95/0x190 [ 36.403256] ? setup_sigcontext+0x7d0/0x7d0 [ 36.407549] ? selinux_socket_sendmsg+0x36/0x40 [ 36.412188] ? security_socket_sendmsg+0x89/0xb0 [ 36.416914] ? inet_recvmsg+0x5f0/0x5f0 [ 36.420859] ? sock_sendmsg+0x4f/0x110 [ 36.424724] ? fput+0xd2/0x140 [ 36.427886] ? SYSC_sendto+0x40d/0x5a0 [ 36.431742] ? SYSC_connect+0x470/0x470 [ 36.435691] ? find_held_lock+0x35/0x1d0 [ 36.439724] ? exit_to_usermode_loop+0x98/0x2d0 [ 36.444368] exit_to_usermode_loop+0x21c/0x2d0 [ 36.448925] ? trace_event_raw_event_sys_exit+0x260/0x260 [ 36.454431] ? down_read_trylock+0xdb/0x170 [ 36.458721] ? __do_page_fault+0x2b8/0xb60 [ 36.462929] syscall_return_slowpath+0x3a7/0x450 [ 36.467655] ? prepare_exit_to_usermode+0x220/0x220 [ 36.472648] ? entry_SYSCALL_64_fastpath+0x91/0xbe [ 36.477550] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 36.482533] ? trace_hardirqs_on_thunk+0x1a/0x1c [ 36.487261] entry_SYSCALL_64_fastpath+0xbc/0xbe [ 36.491981] RIP: 0033:0x446189 [ 36.495138] RSP: 002b:00007fd04c69adb8 EFLAGS: 00000212 ORIG_RAX: 000000000000002c [ 36.502814] RAX: 0000000000000001 RBX: 0000000000000000 RCX: 0000000000446189 [ 36.510052] RDX: 0000000000000001 RSI: 0000000020aa4000 RDI: 0000000000000003 [ 36.517292] RBP: 0000000000000000 R08: 0000000020aa4ff0 R09: 0000000000000010 [ 36.524533] R10: 0000000000000000 R11: 0000000000000212 R12: 0000000000000000 [ 36.531772] R13: 00000000007efe7f R14: 00007fd04c69b9c0 R15: 0000000000000000 [ 36.539553] Dumping ftrace buffer: [ 36.543145] (ftrace buffer empty) [ 36.546825] Kernel Offset: disabled [ 36.550427] Rebooting in 86400 seconds..