IPv4: Attempt to release alive inet socket 00000000bd4a093a ------------[ cut here ]------------ refcount_t: increment on 0; use-after-free. WARNING: CPU: 0 PID: 18384 at lib/refcount.c:153 refcount_inc+0x5d/0x70 lib/refcount.c:153 Kernel panic - not syncing: panic_on_warn set ... CPU: 0 PID: 18384 Comm: syz-executor6 Not tainted 4.18.0-rc5+ #152 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 Call Trace: __dump_stack lib/dump_stack.c:77 [inline] dump_stack+0x1c9/0x2b4 lib/dump_stack.c:113 panic+0x238/0x4e7 kernel/panic.c:184 __warn.cold.8+0x163/0x1ba kernel/panic.c:536 report_bug+0x252/0x2d0 lib/bug.c:186 fixup_bug arch/x86/kernel/traps.c:178 [inline] do_error_trap+0x1fc/0x4d0 arch/x86/kernel/traps.c:296 do_invalid_op+0x1b/0x20 arch/x86/kernel/traps.c:316 invalid_op+0x14/0x20 arch/x86/entry/entry_64.S:992 RIP: 0010:refcount_inc+0x5d/0x70 lib/refcount.c:153 Code: 1d 70 5d 3a 06 31 ff 89 de e8 af a2 1c fe 84 db 75 df e8 d6 a1 1c fe 48 c7 c7 80 4a 1a 88 c6 05 50 5d 3a 06 01 e8 f3 c4 e7 fd <0f> 0b eb c3 0f 1f 44 00 00 66 2e 0f 1f 84 00 00 00 00 00 55 48 89 RSP: 0018:ffff88018f6e78a8 EFLAGS: 00010286 RAX: 0000000000000000 RBX: 0000000000000000 RCX: ffffc90007841000 RDX: 0000000000003423 RSI: ffffffff81631841 RDI: ffff88018f6e7580 RBP: ffff88018f6e78b0 R08: ffff880194a080c0 R09: 0000000000000002 R10: ffff880194a080c0 R11: 0000000000000000 R12: ffff8801aedd3400 R13: ffff88019d2cf3c0 R14: ffff8801d87e2df0 R15: dffffc0000000000 sock_hold include/net/sock.h:627 [inline] inet_csk_listen_stop+0x20b/0xa80 net/ipv4/inet_connection_sock.c:979 dccp_disconnect+0x98f/0xc13 net/dccp/proto.c:277 __inet_stream_connect+0x243/0x1150 net/ipv4/af_inet.c:624 inet_stream_connect+0x58/0xa0 net/ipv4/af_inet.c:719 __sys_connect+0x37d/0x4c0 net/socket.c:1673 __do_sys_connect net/socket.c:1684 [inline] __se_sys_connect net/socket.c:1681 [inline] __x64_sys_connect+0x73/0xb0 net/socket.c:1681 do_syscall_64+0x1b9/0x820 arch/x86/entry/common.c:290 entry_SYSCALL_64_after_hwframe+0x49/0xbe RIP: 0033:0x455ab9 Code: 1d ba fb ff c3 66 2e 0f 1f 84 00 00 00 00 00 66 90 48 89 f8 48 89 f7 48 89 d6 48 89 ca 4d 89 c2 4d 89 c8 4c 8b 4c 24 08 0f 05 <48> 3d 01 f0 ff ff 0f 83 eb b9 fb ff c3 66 2e 0f 1f 84 00 00 00 00 RSP: 002b:00007f7adcf1ec68 EFLAGS: 00000246 ORIG_RAX: 000000000000002a RAX: ffffffffffffffda RBX: 00007f7adcf1f6d4 RCX: 0000000000455ab9 RDX: 0000000000000080 RSI: 00000000207a8000 RDI: 0000000000000015 RBP: 000000000072bf48 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 00000000ffffffff R13: 00000000004bb863 R14: 00000000004c8d58 R15: 0000000000000001 Dumping ftrace buffer: (ftrace buffer empty) Kernel Offset: disabled Rebooting in 86400 seconds..