[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20180723.120317.531173907106900965.davem@davemloft.net>
Date: Mon, 23 Jul 2018 12:03:17 -0700 (PDT)
From: David Miller <davem@...emloft.net>
To: edumazet@...gle.com
Cc: juha-matti.tilli@....fi, ycheng@...gle.com, soheil@...gle.com,
netdev@...r.kernel.org, eric.dumazet@...il.com
Subject: Re: [PATCH net 0/5] tcp: more robust ooo handling
From: Eric Dumazet <edumazet@...gle.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.
Thanks!
Powered by blists - more mailing lists