From: David Miller <davem@davemloft.net>
To: doronrk@fb.com
Cc: davejwatson@fb.com, tom@quantonium.net, netdev@vger.kernel.org
Subject: Re: [PATCH net] strparser: Remove early eaten to fix full tcp receive buffer stall
Date: Thu, 28 Jun 2018 21:43:16 +0900 (KST) [thread overview]
Message-ID: <20180628.214316.1810821427583973651.davem@davemloft.net> (raw)
In-Reply-To: <20180627013333.3584797-1-doronrk@fb.com>
From: Doron Roberts-Kedes <doronrk@fb.com>
Date: Tue, 26 Jun 2018 18:33:33 -0700
> On receving an incomplete message, the existing code stores the
> remaining length of the cloned skb in the early_eaten field instead of
> incrementing the value returned by __strp_recv. This defers invocation
> of sock_rfree for the current skb until the next invocation of
> __strp_recv, which returns early_eaten if early_eaten is non-zero.
>
> This behavior causes a stall when the current message occupies the very
> tail end of a massive skb, and strp_peek/need_bytes indicates that the
> remainder of the current message has yet to arrive on the socket. The
> TCP receive buffer is totally full, causing the TCP window to go to
> zero, so the remainder of the message will never arrive.
>
> Incrementing the value returned by __strp_recv by the amount otherwise
> stored in early_eaten prevents stalls of this nature.
>
> Signed-off-by: Doron Roberts-Kedes <doronrk@fb.com>
Applied and queued up for -stable.
prev parent reply other threads:[~2018-06-28 12:43 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-06-27 1:33 [PATCH net] strparser: Remove early eaten to fix full tcp receive buffer stall Doron Roberts-Kedes
2018-06-28 12:43 ` David Miller [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20180628.214316.1810821427583973651.davem@davemloft.net \
--to=davem@davemloft.net \
--cc=davejwatson@fb.com \
--cc=doronrk@fb.com \
--cc=netdev@vger.kernel.org \
--cc=tom@quantonium.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox