Eric Dumazet a09abc44c7 tcp: make tcp_read_sock() more robust
[ Upstream commit e3d5ea2c011ecb16fb94c56a659364e6b30fac94 ]

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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2022-03-23 09:00:33 +01:00
..
2018-04-13 19:48:32 +02:00
2021-12-08 08:45:05 +01:00
2021-09-03 09:44:40 +02:00
2016-09-21 00:23:01 -04:00
2022-02-08 18:15:28 +01:00
2019-04-17 08:36:45 +02:00
2017-05-14 14:00:21 +02:00
2016-09-01 14:09:01 -07:00
2022-03-23 09:00:33 +01:00