Eric Dumazet e3d5ea2c01 tcp: make tcp_read_sock() more robust
If recv_actor() returns an incorrect value, tcp_read_sock()
might loop forever.

Instead, issue a one time warning and make sure to make progress.

Signed-off-by: Eric Dumazet <edumazet@google.com>
Acked-by: John Fastabend <john.fastabend@gmail.com>
Acked-by: Jakub Sitnicki <jakub@cloudflare.com>
Acked-by: Daniel Borkmann <daniel@iogearbox.net>
Link: https://lore.kernel.org/r/20220302161723.3910001-2-eric.dumazet@gmail.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
2022-03-02 22:49:03 -08:00
..
2021-06-30 15:51:09 -07:00
2021-11-22 14:34:07 +00:00
2021-05-17 15:29:35 -07:00
2021-11-14 12:20:44 +00:00
2021-10-13 09:41:37 -07:00
2021-10-13 09:41:37 -07:00
2021-06-30 15:51:09 -07:00
2021-10-13 09:41:37 -07:00
2022-02-24 09:18:29 -08:00
2021-05-17 15:29:35 -07:00
2021-11-16 19:07:54 -08:00
2020-03-16 18:26:54 -07:00
2021-03-28 17:31:13 -07:00
2020-12-14 16:40:27 -08:00
2022-03-02 22:49:03 -08:00
2021-05-17 15:29:35 -07:00
2022-01-22 08:33:37 +02:00
2021-05-17 15:29:35 -07:00