Files
linux/net
John Fastabend d63eddddcc bpf, tcp: correctly handle DONT_WAIT flags and timeo == 0
[ Upstream commit 5fa2ca7c4a ]

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: 604326b41a ("bpf, sockmap: convert to generic sk_msg interface")
Reported-by: Arika Chen <eaglesora@gmail.com>
Suggested-by: Arika Chen <eaglesora@gmail.com>
Signed-off-by: John Fastabend <john.fastabend@gmail.com>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2019-06-19 08:00:08 +02:00
..
2019-01-23 11:18:00 -08:00
2019-03-26 08:35:36 +01:00
2019-04-30 11:35:48 -04:00
2019-03-19 16:00:22 -07:00
2019-02-21 16:23:56 -08:00
2019-04-30 10:50:50 -04:00
2019-06-11 12:19:09 +02:00
2019-03-11 15:40:14 -07:00
2019-03-16 01:27:51 +01:00
2019-03-15 15:29:47 -07:00