diff options
| author | John Fastabend <[email protected]> | 2019-05-14 04:42:03 +0000 |
|---|---|---|
| committer | Daniel Borkmann <[email protected]> | 2019-05-15 23:36:13 +0000 |
| commit | 5fa2ca7c4a3fc176f31b495e1a704862d8188b53 (patch) | |
| tree | 2f7430872ef925272582946476844d2d0bd3a61f /tools/bpf/bpftool/prog.c | |
| parent | selftests/bpf: add prog detach to flow_dissector test (diff) | |
| download | kernel-5fa2ca7c4a3fc176f31b495e1a704862d8188b53.tar.gz kernel-5fa2ca7c4a3fc176f31b495e1a704862d8188b53.zip | |
bpf, tcp: correctly handle DONT_WAIT flags and timeo == 0
The tcp_bpf_wait_data() routine needs to check timeo != 0 before
calling sk_wait_event() otherwise we may see unexpected stalls
on receiver.
Arika did all the leg work here I just formatted, posted and ran
a few tests.
Fixes: 604326b41a6fb ("bpf, sockmap: convert to generic sk_msg interface")
Reported-by: Arika Chen <[email protected]>
Suggested-by: Arika Chen <[email protected]>
Signed-off-by: John Fastabend <[email protected]>
Signed-off-by: Daniel Borkmann <[email protected]>
Diffstat (limited to 'tools/bpf/bpftool/prog.c')
0 files changed, 0 insertions, 0 deletions
