From: David Woodhouse <dwmw2@infradead.org>
To: David Miller <davem@davemloft.net>, edumazet@google.com
Cc: juha-matti.tilli@iki.fi, ycheng@google.com, soheil@google.com,
netdev@vger.kernel.org, eric.dumazet@gmail.com,
Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Subject: Re: [PATCH net 0/5] tcp: more robust ooo handling
Date: Fri, 03 Aug 2018 11:55:37 +0100 [thread overview]
Message-ID: <1533293737.16128.105.camel@infradead.org> (raw)
In-Reply-To: <20180723.120317.531173907106900965.davem@davemloft.net>
[-- Attachment #1: Type: text/plain, Size: 1050 bytes --]
On Mon, 2018-07-23 at 12:03 -0700, David Miller wrote:
> From: Eric Dumazet <edumazet@google.com>
> Date: Mon, 23 Jul 2018 09:28:16 -0700
>
> > Juha-Matti Tilli reported that malicious peers could inject tiny
> > packets in out_of_order_queue, forcing very expensive calls
> > to tcp_collapse_ofo_queue() and tcp_prune_ofo_queue() for
> > every incoming packet.
> >
> > With tcp_rmem[2] default of 6MB, the ooo queue could
> > contain ~7000 nodes.
> >
> > This patch series makes sure we cut cpu cycles enough to
> > render the attack not critical.
> >
> > We might in the future go further, like disconnecting
> > or black-holing proven malicious flows.
>
> Sucky...
>
> It took me a while to understand the sums_tiny logic, every
> time I read that function I forget that we reset all of the
> state and restart the loop after a coalesce inside the loop.
>
> Series applied, and queued up for -stable.
I see the first four in 4.9.116 but not the fifth (adding
tcp_ooo_try_coalesce()).
Is that intentional?
[-- Attachment #2: smime.p7s --]
[-- Type: application/x-pkcs7-signature, Size: 5213 bytes --]
next prev parent reply other threads:[~2018-08-03 12:51 UTC|newest]
Thread overview: 20+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-07-23 16:28 [PATCH net 0/5] tcp: more robust ooo handling Eric Dumazet
2018-07-23 16:28 ` [PATCH net 1/5] tcp: free batches of packets in tcp_prune_ofo_queue() Eric Dumazet
2018-07-23 16:28 ` [PATCH net 2/5] tcp: avoid collapses in tcp_prune_queue() if possible Eric Dumazet
2018-07-23 16:28 ` [PATCH net 3/5] tcp: detect malicious patterns in tcp_collapse_ofo_queue() Eric Dumazet
2018-07-23 16:28 ` [PATCH net 4/5] tcp: call tcp_drop() from tcp_data_queue_ofo() Eric Dumazet
2018-07-23 16:28 ` [PATCH net 5/5] tcp: add tcp_ooo_try_coalesce() helper Eric Dumazet
2018-07-23 19:03 ` [PATCH net 0/5] tcp: more robust ooo handling David Miller
2018-08-03 10:55 ` David Woodhouse [this message]
2018-08-03 23:53 ` David Miller
2018-08-04 7:05 ` Greg KH
2018-08-04 9:04 ` David Woodhouse
2018-08-04 9:10 ` [PATCH 4.9-stable] tcp: add tcp_ooo_try_coalesce() helper David Woodhouse
2018-08-07 13:22 ` Greg KH
2018-08-09 12:37 ` maowenan
2018-08-09 12:47 ` Greg KH
2018-08-09 12:52 ` David Woodhouse
2018-08-10 2:02 ` maowenan
2018-08-10 6:26 ` maowenan
2018-08-10 10:10 ` maowenan
2018-08-10 1:56 ` maowenan
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=1533293737.16128.105.camel@infradead.org \
--to=dwmw2@infradead.org \
--cc=davem@davemloft.net \
--cc=edumazet@google.com \
--cc=eric.dumazet@gmail.com \
--cc=gregkh@linuxfoundation.org \
--cc=juha-matti.tilli@iki.fi \
--cc=netdev@vger.kernel.org \
--cc=soheil@google.com \
--cc=ycheng@google.com \
/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;
as well as URLs for NNTP newsgroup(s).