OSDN Git Service

Merge branch 'tcp-take-care-of-empty-skbs-in-write-queue'
authorJakub Kicinski <jakub.kicinski@netronome.com>
Sat, 14 Dec 2019 17:57:36 +0000 (09:57 -0800)
committerJakub Kicinski <jakub.kicinski@netronome.com>
Sat, 14 Dec 2019 17:57:36 +0000 (09:57 -0800)
commitcd1263b6dcfdf0e938946441295d8fcfe1654d3a
tree99e290567b1943af5cf51b3cdfbf9f8f3752b6e8
parent5c9934b6767b16ba60be22ec3cbd4379ad64170d
parent216808c6ba6d00169fd2aa928ec3c0e63bef254f
Merge branch 'tcp-take-care-of-empty-skbs-in-write-queue'

Eric Dumazet says:
====================
tcp: take care of empty skbs in write queue

We understood recently that TCP sockets could have an empty
skb at the tail of the write queue, leading to various problems.

This patch series :

1) Make sure we do not send an empty packet since this
   was unintended and causing crashes in old kernels.

2) Change tcp_write_queue_empty() to not be fooled by
   the presence of an empty skb.

3) Fix a bug that could trigger suboptimal epoll()
   application behavior under memory pressure.
====================

Signed-off-by: Jakub Kicinski <jakub.kicinski@netronome.com>