netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH net 0/3] tcp: take care of empty skbs in write queue
@ 2019-12-12 20:55 Eric Dumazet
  2019-12-12 20:55 ` [PATCH net 1/3] tcp: do not send empty skb from tcp_write_xmit() Eric Dumazet
                   ` (3 more replies)
  0 siblings, 4 replies; 8+ messages in thread
From: Eric Dumazet @ 2019-12-12 20:55 UTC (permalink / raw)
  To: David S . Miller
  Cc: netdev, Eric Dumazet, Neal Cardwell, Jason Baron, Eric Dumazet

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.

Eric Dumazet (3):
  tcp: do not send empty skb from tcp_write_xmit()
  tcp: refine tcp_write_queue_empty() implementation
  tcp: refine rule to allow EPOLLOUT generation under mem pressure

 include/net/tcp.h     | 11 ++++++++++-
 net/ipv4/tcp.c        |  6 ++----
 net/ipv4/tcp_output.c | 13 +++++++++++--
 3 files changed, 23 insertions(+), 7 deletions(-)

-- 
2.24.1.735.g03f4e72817-goog


^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2019-12-14 18:06 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-12-12 20:55 [PATCH net 0/3] tcp: take care of empty skbs in write queue Eric Dumazet
2019-12-12 20:55 ` [PATCH net 1/3] tcp: do not send empty skb from tcp_write_xmit() Eric Dumazet
2019-12-12 22:52   ` Soheil Hassas Yeganeh
2019-12-12 20:55 ` [PATCH net 2/3] tcp: refine tcp_write_queue_empty() implementation Eric Dumazet
2019-12-12 22:54   ` Soheil Hassas Yeganeh
2019-12-12 20:55 ` [PATCH net 3/3] tcp: refine rule to allow EPOLLOUT generation under mem pressure Eric Dumazet
2019-12-12 22:56   ` Soheil Hassas Yeganeh
2019-12-14 18:06 ` [PATCH net 0/3] tcp: take care of empty skbs in write queue Jakub Kicinski

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).