Files
erofs-linux/include/net
Sabrina Dubroca dfbafc9953 tcp: fix recv with flags MSG_WAITALL | MSG_PEEK
Currently, tcp_recvmsg enters a busy loop in sk_wait_data if called
with flags = MSG_WAITALL | MSG_PEEK.

sk_wait_data waits for sk_receive_queue not empty, but in this case,
the receive queue is not empty, but does not contain any skb that we
can use.

Add a "last skb seen on receive queue" argument to sk_wait_data, so
that it sleeps until the receive queue has new skbs.

Link: https://bugzilla.kernel.org/show_bug.cgi?id=99461
Link: https://sourceware.org/bugzilla/show_bug.cgi?id=18493
Link: https://bugzilla.redhat.com/show_bug.cgi?id=1205258
Reported-by: Enrico Scholz <[email protected]>
Reported-by: Dan Searle <[email protected]>
Signed-off-by: Sabrina Dubroca <[email protected]>
Acked-by: Eric Dumazet <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
2015-07-27 01:06:53 -07:00
..
…
2015-06-11 23:37:37 +02:00
2015-06-14 12:55:49 -07:00
…
2014-09-18 10:54:36 +02:00
2015-03-04 00:23:23 -05:00
…
2015-06-28 16:55:44 -07:00
…
2015-03-06 21:50:02 -05:00
…
…
…
…
…
2015-05-12 23:19:49 -04:00
…
…
…
…
2014-09-30 01:02:26 -04:00
2015-03-12 14:39:40 -04:00
…
2015-01-18 01:56:32 -05:00
…
2015-05-25 13:25:35 -04:00
2015-03-12 14:39:40 -04:00
…
…
…
…
…
…
…
…
…
…
2015-06-10 12:24:33 +02:00
…
…
…
…
…
…
2015-01-15 18:26:16 -05:00
…
…
…
…
2015-03-12 22:58:12 -04:00
…
…
…