summaryrefslogtreecommitdiff
path: root/net/ipv4/tcp_output.c
diff options
context:
space:
mode:
authorEric Dumazet <edumazet@google.com>2022-03-02 19:17:23 +0300
committerJakub Kicinski <kuba@kernel.org>2022-03-03 09:49:03 +0300
commite3d5ea2c011ecb16fb94c56a659364e6b30fac94 (patch)
tree361ec8c7f3966ec8bf73cf545132efb58aaa730f /net/ipv4/tcp_output.c
parent60ce37b03917e593d8e5d8bcc7ec820773daf81d (diff)
downloadlinux-e3d5ea2c011ecb16fb94c56a659364e6b30fac94.tar.xz
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>
Diffstat (limited to 'net/ipv4/tcp_output.c')
0 files changed, 0 insertions, 0 deletions