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-0,10.128.0.42' (ECDSA) to the list of known hosts. serialport: Connected to syzkaller.us-central1-c.ci-upstream-kasan-gce-0 port 1 (session ID: 0b153d4f51b1842ab25d23c8aa776735312097937eded66ba6775bf6704e074f, 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 2017/07/22 22:19:57 parsed 1 programs 2017/07/22 22:19:57 executed programs: 0 syzkaller login: [ 37.741871] refcount_t: underflow; use-after-free. [ 37.742805] ------------[ cut here ]------------ [ 37.743729] WARNING: CPU: 1 PID: 2939 at lib/refcount.c:186 refcount_sub_and_test+0x167/0x1b0 [ 37.744925] Kernel panic - not syncing: panic_on_warn set ... [ 37.744925] [ 37.745900] CPU: 1 PID: 2939 Comm: syz-executor0 Not tainted 4.13.0-rc1+ #1 [ 37.746898] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 37.748158] Call Trace: [ 37.748556] dump_stack+0x194/0x257 [ 37.749074] ? arch_local_irq_restore+0x53/0x53 [ 37.749715] panic+0x1e4/0x417 [ 37.750149] ? __warn+0x1d9/0x1d9 [ 37.750631] ? show_regs_print_info+0x65/0x65 [ 37.751246] ? refcount_sub_and_test+0x167/0x1b0 [ 37.751878] __warn+0x1c4/0x1d9 [ 37.752324] ? refcount_sub_and_test+0x167/0x1b0 [ 37.752962] report_bug+0x211/0x2d0 [ 37.753488] fixup_bug+0x40/0x90 [ 37.753945] do_trap+0x260/0x390 [ 37.754455] do_error_trap+0x120/0x390 [ 37.754984] ? do_trap+0x390/0x390 [ 37.755471] ? refcount_sub_and_test+0x167/0x1b0 [ 37.756106] ? vprintk_emit+0x3ea/0x590 [ 37.756663] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 37.757326] do_invalid_op+0x1b/0x20 [ 37.757830] invalid_op+0x1e/0x30 [ 37.758302] RIP: 0010:refcount_sub_and_test+0x167/0x1b0 [ 37.759013] RSP: 0018:ffff8801d1876330 EFLAGS: 00010286 [ 37.759727] RAX: 0000000000000026 RBX: 0000000000000001 RCX: 0000000000000000 [ 37.760686] RDX: 0000000000000026 RSI: 1ffff1003a30ec26 RDI: ffffed003a30ec5a [ 37.761641] RBP: ffff8801d18763c0 R08: 0000000000000001 R09: 0000000000000000 [ 37.766344] R10: 0000000000000000 R11: 0000000000000000 R12: 1ffff1003a30ec67 [ 37.773585] R13: 00000000ffffff01 R14: 0000000000000100 R15: ffff8801d264b2bc [ 37.780847] ? refcount_inc+0x50/0x50 [ 37.784627] ? __sctp_outq_teardown+0xc7d/0x15a0 [ 37.789354] ? sctp_association_free+0x2d0/0x930 [ 37.794077] ? sctp_do_sm+0x28e7/0x6d90 [ 37.798019] ? sctp_primitive_SHUTDOWN+0xa0/0xd0 [ 37.802744] ? sctp_close+0x3c6/0x980 [ 37.806514] ? inet_release+0xed/0x1c0 [ 37.810379] sctp_wfree+0x183/0x620 [ 37.813979] ? __sctp_write_space+0x910/0x910 [ 37.818451] skb_release_head_state+0x124/0x200 [ 37.823105] skb_release_all+0x15/0x60 [ 37.826964] consume_skb+0x153/0x490 [ 37.830645] ? sctp_chunk_put+0x99/0x420 [ 37.834676] ? pskb_carve+0x1db0/0x1db0 [ 37.838618] ? sctp_chunk_hold+0x20/0x20 [ 37.842654] ? refcount_sub_and_test+0x115/0x1b0 [ 37.847379] ? refcount_inc+0x50/0x50 [ 37.851157] ? mark_held_locks+0xaf/0x100 [ 37.855276] ? sctp_datamsg_put+0x456/0x560 [ 37.859574] sctp_chunk_put+0x29c/0x420 [ 37.863519] ? sctp_chunk_hold+0x20/0x20 [ 37.867556] ? sctp_transport_dst_confirm+0x50/0x50 [ 37.872542] ? find_held_lock+0x35/0x1d0 [ 37.876588] sctp_chunk_free+0x53/0x60 [ 37.880451] __sctp_outq_teardown+0xc7d/0x15a0 [ 37.885016] ? sctp_inq_set_th_handler+0x1b0/0x1b0 [ 37.889919] ? find_held_lock+0x35/0x1d0 [ 37.894663] ? print_usage_bug+0x480/0x480 [ 37.898867] ? do_raw_spin_trylock+0x190/0x190 [ 37.903421] ? print_usage_bug+0x480/0x480 [ 37.907634] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 37.912798] ? check_noncircular+0x20/0x20 [ 37.917005] ? print_usage_bug+0x480/0x480 [ 37.921204] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 37.926363] ? sock_destroy_inode+0x56/0x70 [ 37.930656] ? print_usage_bug+0x480/0x480 [ 37.934862] ? lock_acquire+0x1d5/0x580 [ 37.938800] ? lock_acquire+0x1d5/0x580 [ 37.942741] ? lock_timer_base+0x1a3/0x2b0 [ 37.946947] ? find_held_lock+0x35/0x1d0 [ 37.951004] ? sock_def_wakeup+0x1f9/0x350 [ 37.955211] ? lock_downgrade+0x990/0x990 [ 37.959328] ? lock_release+0xa40/0xa40 [ 37.963275] sctp_outq_free+0x15/0x20 [ 37.967047] sctp_association_free+0x2d0/0x930 [ 37.971602] ? sctp_asconf_queue_teardown+0x700/0x700 [ 37.976759] ? sock_def_wakeup+0x222/0x350 [ 37.980963] ? sk_dst_check+0x560/0x560 [ 37.984908] ? sctp_association_put+0x74/0x2f0 [ 37.989459] ? sctp_association_hold+0x20/0x20 [ 37.994013] ? find_held_lock+0x35/0x1d0 [ 37.998043] ? sctp_sm_lookup_event+0x95/0x3c0 [ 38.002597] sctp_do_sm+0x28e7/0x6d90 [ 38.006368] ? find_held_lock+0x35/0x1d0 [ 38.010405] ? sctp_do_8_2_transport_strike.isra.16+0x8a0/0x8a0 [ 38.016434] ? print_usage_bug+0x480/0x480 [ 38.020639] ? do_raw_spin_trylock+0x190/0x190 [ 38.025187] ? print_usage_bug+0x480/0x480 [ 38.029399] ? __kernel_text_address+0xae/0xe0 [ 38.033952] ? unwind_get_return_address+0x61/0xa0 [ 38.038858] ? find_held_lock+0x35/0x1d0 [ 38.042897] ? skb_dequeue+0x12a/0x180 [ 38.046752] ? lock_downgrade+0x990/0x990 [ 38.050884] ? do_raw_spin_trylock+0x190/0x190 [ 38.055437] ? mark_held_locks+0xaf/0x100 [ 38.059560] ? trace_hardirqs_on+0xd/0x10 [ 38.063684] sctp_primitive_SHUTDOWN+0xa0/0xd0 [ 38.068244] sctp_close+0x3c6/0x980 [ 38.071850] ? sctp_apply_peer_addr_params+0xf30/0xf30 [ 38.077098] ? dentry_free+0xcd/0x130 [ 38.080869] ? rcu_read_lock_sched_held+0x108/0x120 [ 38.085856] ? kmem_cache_free+0x200/0x240 [ 38.090061] ? dentry_free+0xd2/0x130 [ 38.093833] ? locks_remove_file+0x414/0x560 [ 38.098223] ? fcntl_setlk+0x10c0/0x10c0 [ 38.102256] ? __fsnotify_parent+0xb4/0x3a0 [ 38.106547] ? ip_mc_drop_socket+0x1ce/0x230 [ 38.110929] inet_release+0xed/0x1c0 [ 38.114618] sock_release+0x8d/0x1e0 [ 38.118313] ? sock_release+0x1e0/0x1e0 [ 38.122256] sock_close+0x16/0x20 [ 38.125681] __fput+0x327/0x7e0 [ 38.128932] ? fput+0x140/0x140 [ 38.132183] ? check_same_owner+0x320/0x320 [ 38.136475] ? do_raw_spin_trylock+0x190/0x190 [ 38.141035] ? check_same_owner+0x320/0x320 [ 38.145329] ____fput+0x15/0x20 [ 38.148579] task_work_run+0x18a/0x260 [ 38.152439] ? task_work_cancel+0x210/0x210 [ 38.156733] ? _raw_spin_unlock+0x22/0x30 [ 38.160852] ? switch_task_namespaces+0x87/0xc0 [ 38.165492] do_exit+0xa32/0x1b10 [ 38.168918] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 38.174092] ? print_usage_bug+0x480/0x480 [ 38.178302] ? prepare_to_wait_exclusive+0x192/0x530 [ 38.183374] ? lock_downgrade+0x941/0x990 [ 38.187493] ? exit_notify+0xb10/0xb10 [ 38.191348] ? do_raw_spin_trylock+0x190/0x190 [ 38.195904] ? find_held_lock+0x35/0x1d0 [ 38.199940] ? find_held_lock+0x35/0x1d0 [ 38.203982] ? check_noncircular+0x20/0x20 [ 38.208189] ? check_noncircular+0x20/0x20 [ 38.212392] ? lock_downgrade+0x990/0x990 [ 38.216512] ? do_raw_spin_trylock+0x190/0x190 [ 38.221069] ? reacquire_held_locks+0x1fd/0x3d0 [ 38.225707] ? mark_held_locks+0xaf/0x100 [ 38.229821] ? reacquire_held_locks+0x1fd/0x3d0 [ 38.234460] ? check_noncircular+0x20/0x20 [ 38.238667] ? find_held_lock+0x35/0x1d0 [ 38.242707] ? release_sock+0x1d4/0x2a0 [ 38.246651] ? lock_downgrade+0x990/0x990 [ 38.250767] ? lock_downgrade+0x990/0x990 [ 38.254892] ? find_held_lock+0x35/0x1d0 [ 38.258949] ? get_signal+0x855/0x17e0 [ 38.262807] ? lock_downgrade+0x990/0x990 [ 38.266932] do_group_exit+0x149/0x400 [ 38.270790] ? __lock_is_held+0xb6/0x140 [ 38.274822] ? SyS_exit+0x30/0x30 [ 38.278245] ? _raw_spin_unlock_irq+0x27/0x70 [ 38.282712] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 38.287703] get_signal+0x7e8/0x17e0 [ 38.291411] ? ptrace_notify+0x130/0x130 [ 38.295446] ? find_held_lock+0x35/0x1d0 [ 38.299483] ? __might_fault+0x110/0x1d0 [ 38.303538] ? selinux_tun_dev_create+0xc0/0xc0 [ 38.308186] do_signal+0x94/0x1ee0 [ 38.311702] ? inet_sendmsg+0x11f/0x5e0 [ 38.315642] ? inet_sendmsg+0x126/0x5e0 [ 38.319590] ? __might_sleep+0x95/0x190 [ 38.323538] ? setup_sigcontext+0x7d0/0x7d0 [ 38.327833] ? selinux_socket_sendmsg+0x36/0x40 [ 38.332475] ? security_socket_sendmsg+0x89/0xb0 [ 38.337199] ? inet_recvmsg+0x5f0/0x5f0 [ 38.341145] ? sock_sendmsg+0x4f/0x110 [ 38.345007] ? fput+0xd2/0x140 [ 38.348173] ? SYSC_sendto+0x40d/0x5a0 [ 38.352035] ? SYSC_connect+0x470/0x470 [ 38.355981] ? _raw_spin_unlock_bh+0x30/0x40 [ 38.360358] ? release_sock+0x1d4/0x2a0 [ 38.364303] ? __release_sock+0x360/0x360 [ 38.368422] ? exit_to_usermode_loop+0x98/0x2d0 [ 38.373064] exit_to_usermode_loop+0x21c/0x2d0 [ 38.377631] ? trace_event_raw_event_sys_exit+0x260/0x260 [ 38.383147] syscall_return_slowpath+0x3a7/0x450 [ 38.387874] ? prepare_exit_to_usermode+0x220/0x220 [ 38.392860] ? entry_SYSCALL_64_fastpath+0x91/0xbe [ 38.397760] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 38.402744] ? trace_hardirqs_on_thunk+0x1a/0x1c [ 38.407487] entry_SYSCALL_64_fastpath+0xbc/0xbe [ 38.412209] RIP: 0033:0x4512c9 [ 38.415366] RSP: 002b:00007f8d7e852c08 EFLAGS: 00000216 ORIG_RAX: 000000000000002c [ 38.423042] RAX: 000000000000001a RBX: 00000000007180a8 RCX: 00000000004512c9 [ 38.430277] RDX: 000000000000001a RSI: 0000000020001f98 RDI: 0000000000000003 [ 38.437514] RBP: 0000000000004330 R08: 0000000020001000 R09: 0000000000000010 [ 38.444753] R10: 0000000000000004 R11: 0000000000000216 R12: 00000000004b9d1d [ 38.451990] R13: 00000000ffffffff R14: 0000000000000003 R15: 0000000020001f98 [ 38.459786] Dumping ftrace buffer: [ 38.463368] (ftrace buffer empty) [ 38.467047] Kernel Offset: disabled [ 38.470646] Rebooting in 86400 seconds..