gvisor/test/syscalls/linux
Andrei Vagin 37f863f628 tcp: handle listen after shutdown properly
Right now, sentry panics in this case:
panic: close of nil channel

goroutine 67 [running]:
pkg/tcpip/transport/tcp/tcp.(*endpoint).listen(0xc0000ce000, 0x9, 0x0)
        pkg/tcpip/transport/tcp/endpoint.go:2208 +0x170
pkg/tcpip/transport/tcp/tcp.(*endpoint).Listen(0xc0000ce000, 0x9, 0xc0003a1ad0)
        pkg/tcpip/transport/tcp/endpoint.go:2179 +0x50

Fixes #2468

PiperOrigin-RevId: 307896725
2020-04-22 14:17:11 -07:00
..
rseq Merge pull request #2060 from xiaobo55x:rseq 2020-04-20 12:31:22 -07:00
32bit.cc arm64: add a travis build ci 2020-02-21 22:44:19 -08:00
BUILD Merge pull request #2375 from lubinszARM:pr_exec_binary 2020-04-14 07:12:06 -07:00
accept_bind.cc
accept_bind_stream.cc
access.cc
affinity.cc
aio.cc
alarm.cc
arch_prctl.cc Create platform_util for tests. 2020-01-27 22:28:43 -08:00
bad.cc
base_poll_test.cc
base_poll_test.h
bind.cc
brk.cc
chdir.cc
chmod.cc
chown.cc Change to standard types. 2020-01-21 17:28:57 -08:00
chroot.cc
clock_getres.cc Change copyright notice to "The gVisor Authors" 2019-04-29 14:26:23 -07:00
clock_gettime.cc
clock_nanosleep.cc Only copy out remaining time on nanosleep success 2019-09-30 13:07:32 -07:00
concurrency.cc Add notes to relevant tests. 2020-02-05 22:46:35 -08:00
connect_external.cc
creat.cc Change copyright notice to "The gVisor Authors" 2019-04-29 14:26:23 -07:00
dev.cc Hide /dev/net/tun when using hostinet. 2020-02-28 10:39:12 -08:00
dup.cc Change copyright notice to "The gVisor Authors" 2019-04-29 14:26:23 -07:00
epoll.cc
eventfd.cc fs/splice: don't report partial errors for special files 2020-01-28 13:37:19 -08:00
exceptions.cc Create platform_util for tests. 2020-01-27 22:28:43 -08:00
exec.cc
exec.h
exec_assert_closed_workload.cc
exec_basic_workload.cc
exec_binary.cc
exec_proc_exe_workload.cc
exec_state_workload.cc
exit.cc Extract SleepSafe from test_util 2019-05-24 12:58:46 -07:00
exit_script.sh
fadvise64.cc
fallocate.cc Deflake fallocate syscall test. 2020-02-18 12:02:05 -08:00
fault.cc
fchdir.cc
fcntl.cc
file_base.h
flock.cc
fork.cc
fpsig_fork.cc
fpsig_nested.cc Fix header ordering and format all C++ code. 2020-01-27 18:27:20 -08:00
fsync.cc
futex.cc Change to standard types. 2020-01-21 17:28:57 -08:00
getcpu.cc
getdents.cc
getrandom.cc
getrusage.cc Prefer Type& over Type & 2020-01-28 11:18:17 -08:00
inotify.cc
ioctl.cc
ip_socket_test_util.cc
ip_socket_test_util.h Make some functions in IfAddrHelper const. 2020-04-09 16:22:02 -07:00
iptables.cc
iptables.h
itimer.cc
kill.cc
link.cc
lseek.cc
madvise.cc
memfd.cc Don't allow read/write when offset+size overflows. 2020-04-13 18:00:17 -07:00
memory_accounting.cc
mempolicy.cc
mincore.cc Change copyright notice to "The gVisor Authors" 2019-04-29 14:26:23 -07:00
mkdir.cc mkdir test: Address TODOs and re-enable a test. 2020-04-07 13:28:33 -07:00
mknod.cc
mlock.cc
mmap.cc
mount.cc
mremap.cc
msync.cc
munmap.cc
network_namespace.cc
open.cc
open_create.cc
packet_socket.cc
packet_socket_raw.cc
partial_bad_buffer.cc
pause.cc
pipe.cc Implement pipe(2) and pipe2(2) for VFS2. 2020-04-16 19:27:03 -07:00
poll.cc
ppoll.cc
prctl.cc
prctl_setuid.cc Add basic microbenchmarks. 2020-02-19 18:21:54 -08:00
pread64.cc
preadv.cc
preadv2.cc
priority.cc
priority_execve.cc
proc.cc
proc_net.cc
proc_net_tcp.cc
proc_net_udp.cc
proc_net_unix.cc
proc_pid_oomscore.cc
proc_pid_smaps.cc
proc_pid_uid_gid_map.cc
pselect.cc Change copyright notice to "The gVisor Authors" 2019-04-29 14:26:23 -07:00
ptrace.cc
pty.cc
pty_root.cc
pwrite64.cc
pwritev2.cc
raw_socket_hdrincl.cc
raw_socket_icmp.cc
raw_socket_ipv4.cc
read.cc
readahead.cc
readv.cc
readv_common.cc
readv_common.h Fix suggestions from clang. 2019-06-28 15:32:29 -07:00
readv_socket.cc
rename.cc
rlimits.cc
rseq.cc Add notes to relevant tests. 2020-02-05 22:46:35 -08:00
rtsignal.cc Add basic microbenchmarks. 2020-02-19 18:21:54 -08:00
sched.cc
sched_yield.cc
seccomp.cc
select.cc
semaphore.cc
sendfile.cc
sendfile_socket.cc
shm.cc
sigaction.cc
sigaltstack.cc
sigaltstack_check.cc
sigiret.cc
signalfd.cc
sigprocmask.cc
sigstop.cc
sigtimedwait.cc
socket.cc
socket_abstract.cc
socket_bind_to_device.cc
socket_bind_to_device_distribution.cc
socket_bind_to_device_sequence.cc Prefer Type& over Type & 2020-01-28 11:18:17 -08:00
socket_bind_to_device_util.cc
socket_bind_to_device_util.h
socket_blocking.cc
socket_blocking.h
socket_filesystem.cc
socket_generic.cc
socket_generic.h Change copyright notice to "The gVisor Authors" 2019-04-29 14:26:23 -07:00
socket_generic_stress.cc Add socket connection stress test. 2020-02-04 15:54:49 -08:00
socket_inet_loopback.cc
socket_ip_loopback_blocking.cc
socket_ip_tcp_generic.cc
socket_ip_tcp_generic.h
socket_ip_tcp_generic_loopback.cc
socket_ip_tcp_loopback.cc Put GetSocketPairs() in unnamed namespace 2019-12-18 12:50:04 -08:00
socket_ip_tcp_loopback_blocking.cc
socket_ip_tcp_loopback_nonblock.cc
socket_ip_tcp_udp_generic.cc
socket_ip_udp_generic.cc Enable IPV6_RECVTCLASS socket option for datagram sockets 2020-02-18 15:45:36 -08:00
socket_ip_udp_generic.h
socket_ip_udp_loopback.cc Wrap all GetSocketPairs() in unnamed namespaces 2020-01-30 14:17:58 -08:00
socket_ip_udp_loopback_blocking.cc
socket_ip_udp_loopback_nonblock.cc Wrap all GetSocketPairs() in unnamed namespaces 2020-01-30 14:17:58 -08:00
socket_ip_unbound.cc
socket_ipv4_tcp_unbound_external_networking.cc Import and structure cleanup. 2019-11-21 11:41:30 -08:00
socket_ipv4_tcp_unbound_external_networking.h
socket_ipv4_tcp_unbound_external_networking_test.cc
socket_ipv4_udp_unbound.cc Internal change. 2020-02-13 10:59:52 -08:00
socket_ipv4_udp_unbound.h
socket_ipv4_udp_unbound_external_networking.cc
socket_ipv4_udp_unbound_external_networking.h
socket_ipv4_udp_unbound_external_networking_test.cc
socket_ipv4_udp_unbound_loopback.cc
socket_netdevice.cc Prefer Type& over Type & 2020-01-28 11:18:17 -08:00
socket_netlink.cc
socket_netlink_route.cc
socket_netlink_route_util.cc
socket_netlink_route_util.h Dedup netlink utility functions in tests. 2020-04-09 13:34:31 -07:00
socket_netlink_uevent.cc Add NETLINK_KOBJECT_UEVENT socket support 2019-11-04 10:07:52 -08:00
socket_netlink_util.cc
socket_netlink_util.h
socket_non_blocking.cc test/syscall: Remove duplicated gtest/gtest.h. 2019-10-25 12:40:36 -07:00
socket_non_blocking.h
socket_non_stream.cc
socket_non_stream.h
socket_non_stream_blocking.cc
socket_non_stream_blocking.h Change copyright notice to "The gVisor Authors" 2019-04-29 14:26:23 -07:00
socket_stream.cc Return correct length with MSG_TRUNC for unix sockets. 2020-01-08 17:24:05 -08:00
socket_stream.h
socket_stream_blocking.cc
socket_stream_blocking.h
socket_stream_nonblock.cc test/syscall: Remove duplicated gtest/gtest.h. 2019-10-25 12:40:36 -07:00
socket_stream_nonblock.h
socket_test_util.cc
socket_test_util.h Refactor syscall tests 2020-02-07 13:19:18 -08:00
socket_test_util_impl.cc Internal change. 2019-08-26 14:07:17 -07:00
socket_unix.cc
socket_unix.h
socket_unix_abstract_nonblock.cc
socket_unix_blocking_local.cc
socket_unix_cmsg.cc strace: don't create a slice with a negative value 2019-12-03 13:49:38 -08:00
socket_unix_cmsg.h
socket_unix_dgram.cc
socket_unix_dgram.h
socket_unix_dgram_local.cc
socket_unix_dgram_non_blocking.cc Import and structure cleanup. 2019-11-21 11:41:30 -08:00
socket_unix_domain.cc Wrap all GetSocketPairs() in unnamed namespaces 2020-01-30 14:17:58 -08:00
socket_unix_filesystem_nonblock.cc
socket_unix_non_stream.cc
socket_unix_non_stream.h
socket_unix_non_stream_blocking_local.cc Wrap all GetSocketPairs() in unnamed namespaces 2020-01-30 14:17:58 -08:00
socket_unix_pair.cc
socket_unix_pair_nonblock.cc
socket_unix_seqpacket.cc Import and structure cleanup. 2019-11-21 11:41:30 -08:00
socket_unix_seqpacket.h
socket_unix_seqpacket_local.cc
socket_unix_stream.cc
socket_unix_stream_blocking_local.cc
socket_unix_stream_local.cc Wrap all GetSocketPairs() in unnamed namespaces 2020-01-30 14:17:58 -08:00
socket_unix_stream_nonblock_local.cc
socket_unix_unbound_abstract.cc Import and structure cleanup. 2019-11-21 11:41:30 -08:00
socket_unix_unbound_dgram.cc
socket_unix_unbound_filesystem.cc Import and structure cleanup. 2019-11-21 11:41:30 -08:00
socket_unix_unbound_seqpacket.cc
socket_unix_unbound_stream.cc Import and structure cleanup. 2019-11-21 11:41:30 -08:00
splice.cc Don't allow read/write when offset+size overflows. 2020-04-13 18:00:17 -07:00
stat.cc
stat_times.cc Fix incorrect tmpfs timestamp updates 2019-05-20 13:35:17 -07:00
statfs.cc Change copyright notice to "The gVisor Authors" 2019-04-29 14:26:23 -07:00
sticky.cc Open a temp directory before changing capabilities and user ID-s 2020-03-24 10:58:51 -07:00
symlink.cc
sync.cc Import and structure cleanup. 2019-11-21 11:41:30 -08:00
sync_file_range.cc
sysinfo.cc
syslog.cc
sysret.cc
tcp_socket.cc shutdown(s, SHUT_WR) in TIME-WAIT returns ENOTCONN 2020-03-06 11:42:34 -08:00
tgkill.cc
time.cc
timerfd.cc Change to standard types. 2020-01-21 17:28:57 -08:00
timers.cc
tkill.cc
truncate.cc
tuntap.cc
tuntap_hostinet.cc test/runner: use proper filters for test cases 2020-03-04 12:52:13 -08:00
udp_bind.cc
udp_socket.cc Port tests in udp_socket.cc to Fuchsia 2019-12-02 05:38:30 -08:00
udp_socket_errqueue_test_case.cc
udp_socket_test_cases.cc arm64: add a travis build ci 2020-02-21 22:44:19 -08:00
udp_socket_test_cases.h
uidgid.cc
uname.cc
unix_domain_socket_test_util.cc
unix_domain_socket_test_util.h
unlink.cc
unshare.cc
utimes.cc
vdso.cc
vdso_clock_gettime.cc
vfork.cc Add basic microbenchmarks. 2020-02-19 18:21:54 -08:00
vsyscall.cc
wait.cc Change to standard types. 2020-01-21 17:28:57 -08:00
write.cc
xattr.cc