tcp: more robust ooo handling
Get series with b4
b4 am [email protected]Versions newest first
- v1 Latest5 patches 5 repliesIn review
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/5 | tcp: free batches of packets in tcp_prune_ofo_queue()net/ | +11 | 0 replies | |
| 2/5 | tcp: avoid collapses in tcp_prune_queue() if possiblenet/ | +3 | 0 replies | |
| 3/5 | tcp: detect malicious patterns in tcp_collapse_ofo_queue()net/ | +13 | 0 replies | |
| 4/5 | tcp: call tcp_drop() from tcp_data_queue_ofo()net/ | +2 | 0 replies | |
| 5/5 | tcp: add tcp_ooo_try_coalesce() helpernet/ | +21 | 0 replies |
Reviews trailers per patch
All 5 patches have a Reviewed-by or Acked-by of their own; the series has one for all of them.
| Patch | Yuchung Cheng | Soheil Hassas Yeganeh |
|---|---|---|
| Series | A-b | A-b |
| 1/5 | A-b | A-b |
| 2/5 | A-b | A-b |
| 3/5 | A-b | |
| 4/5 | A-b | A-b |
| 5/5 | A-b | A-b |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.
Cover letter [PATCH net 0/5] tcp: more robust ooo handling
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.
Eric Dumazet (5):
tcp: free batches of packets in tcp_prune_ofo_queue()
tcp: avoid collapses in tcp_prune_queue() if possible
tcp: detect malicious patterns in tcp_collapse_ofo_queue()
tcp: call tcp_drop() from tcp_data_queue_ofo()
tcp: add tcp_ooo_try_coalesce() helper
net/ipv4/tcp_input.c | 62 +++++++++++++++++++++++++++++++++++--------- 1 file changed, 50 insertions(+), 12 deletions(-)
Signature · 1 line
2.18.0.233.g985f88cf7e-goog