diff options
author | Stanislav Fomichev <sdf@google.com> | 2019-09-23 20:41:12 +0200 |
---|---|---|
committer | Daniel Borkmann <daniel@iogearbox.net> | 2019-09-25 22:13:45 +0200 |
commit | 8a03222f508bf09e03cf38f6bd77b34b450c1d60 (patch) | |
tree | 700c5bce7174eb03d2fab2c678216603ac985872 /Documentation/mips | |
parent | xsk: relax UMEM headroom alignment (diff) | |
download | linux-8a03222f508bf09e03cf38f6bd77b34b450c1d60.tar.xz linux-8a03222f508bf09e03cf38f6bd77b34b450c1d60.zip |
selftests/bpf: test_progs: fix client/server race in tcp_rtt
This is the same problem I found earlier in test_sockopt_inherit:
there is a race between server thread doing accept() and client
thread doing connect(). Let's explicitly synchronize them via
pthread conditional variable.
v2:
* don't exit from server_thread without signaling condvar,
fixes possible issue where main() would wait forever (Andrii Nakryiko)
Fixes: b55873984dab ("selftests/bpf: test BPF_SOCK_OPS_RTT_CB")
Signed-off-by: Stanislav Fomichev <sdf@google.com>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Diffstat (limited to 'Documentation/mips')
0 files changed, 0 insertions, 0 deletions