gvisor/pkg
Ian Gudger c6bdc6b05b Fix a race in TCP endpoint teardown and teardown the stack in tcp_test.
Call stack.Close on stacks when we are done with them in tcp_test. This avoids
leaking resources and reduces the test's flakiness when race/gotsan is enabled.
It also provides test coverage for the race also fixed in this change, which
can be reliably triggered with the stack.Close change (and without the other
changes) when race/gotsan is enabled.

The race was possible when calling Abort (via stack.Close) on an endpoint
processing a SYN segment as part of a passive connect.

Updates #1564

PiperOrigin-RevId: 297685432
2020-02-27 14:15:44 -08:00
..
abi Port most syscalls to VFS2. 2020-02-25 13:37:34 -08:00
amutex Standardize on tools directory. 2020-01-27 12:21:00 -08:00
atomicbitops Re-add atomicbitops_arm64.s to BUILD. 2020-02-20 11:16:08 -08:00
binary Move Align{Up,Down} into binary package. 2020-02-11 11:09:31 -08:00
bits Standardize on tools directory. 2020-01-27 12:21:00 -08:00
bpf Standardize on tools directory. 2020-01-27 12:21:00 -08:00
compressio Standardize on tools directory. 2020-01-27 12:21:00 -08:00
context Update package locations. 2020-01-27 15:31:32 -08:00
control Standardize on tools directory. 2020-01-27 12:21:00 -08:00
cpuid cpuid: cache the maximum size of xsave state 2020-02-18 13:50:07 -08:00
eventchannel Standardize on tools directory. 2020-01-27 12:21:00 -08:00
fd Standardize on tools directory. 2020-01-27 12:21:00 -08:00
fdchannel Standardize on tools directory. 2020-01-27 12:21:00 -08:00
fdnotifier Standardize on tools directory. 2020-01-27 12:21:00 -08:00
flipcall Standardize on tools directory. 2020-01-27 12:21:00 -08:00
fspath Port most syscalls to VFS2. 2020-02-25 13:37:34 -08:00
gate Standardize on tools directory. 2020-01-27 12:21:00 -08:00
gohacks Port most syscalls to VFS2. 2020-02-25 13:37:34 -08:00
goid Standardize on tools directory. 2020-01-27 12:21:00 -08:00
ilist Standardize on tools directory. 2020-01-27 12:21:00 -08:00
linewriter Standardize on tools directory. 2020-01-27 12:21:00 -08:00
log Fix nested logging. 2020-02-25 12:25:38 -08:00
memutil Standardize on tools directory. 2020-01-27 12:21:00 -08:00
metric Add notes to relevant tests. 2020-02-05 22:46:35 -08:00
p9 Un-export p9 message encode/decode functions. 2020-02-14 12:23:10 -08:00
pool Move p9.pool to a separate package 2020-02-06 10:07:45 -08:00
procid Standardize on tools directory. 2020-01-27 12:21:00 -08:00
rand Standardize on tools directory. 2020-01-27 12:21:00 -08:00
refs Standardize on tools directory. 2020-01-27 12:21:00 -08:00
safecopy Fix safecopy test. 2020-02-04 12:47:06 -08:00
safemem VFS2 gofer client 2020-02-04 11:29:22 -08:00
seccomp Update visibility. 2020-02-10 11:30:21 -08:00
secio Standardize on tools directory. 2020-01-27 12:21:00 -08:00
segment Standardize on tools directory. 2020-01-27 12:21:00 -08:00
sentry Merge of a369c88c0c 2020-02-27 13:34:23 -08:00
sleep Simplify atomic operations 2020-02-11 20:37:01 -08:00
state Standardize on tools directory. 2020-01-27 12:21:00 -08:00
sync Standardize on tools directory. 2020-01-27 12:21:00 -08:00
syncevent Add //pkg/syncevent. 2020-02-18 15:18:48 -08:00
syserr Standardize on tools directory. 2020-01-27 12:21:00 -08:00
syserror Implement tap/tun device in vfs. 2020-02-21 15:42:56 -08:00
tcpip Fix a race in TCP endpoint teardown and teardown the stack in tcp_test. 2020-02-27 14:15:44 -08:00
tmutex Standardize on tools directory. 2020-01-27 12:21:00 -08:00
unet Standardize on tools directory. 2020-01-27 12:21:00 -08:00
urpc Standardize on tools directory. 2020-01-27 12:21:00 -08:00
usermem Port most syscalls to VFS2. 2020-02-25 13:37:34 -08:00
waiter Standardize on tools directory. 2020-01-27 12:21:00 -08:00