Skip to content

tcp/dccp: make our listener code more robust

Eric Dumazet netdev 2 versions In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest3 patches 1 replyIn review
  2. v13 patches 1 replySuperseded

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3Revert "inet: fix double request socket freeing"net/dccp/ipv4.c net/ipv4/tcp_ipv4.c+3 -30 replies
2/3tcp/dccp: add inet_csk_reqsk_queue_drop_and_put() helperinclude/net/inet_connection_sock.h net/dccp/ipv4.c net/dccp/ipv6.c +3 more+13 -60 replies
3/3tcp/dccp: fix race at listener dismantle phaseinclude/net/inet_connection_sock.h include/net/request_sock.h net/ipv4/inet_connection_sock.c+51 -480 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v2 yet.

Read the v2 thread

Cover letter [PATCH v2 net-next 0/3] tcp/dccp: make our listener code more robust

This patch series addresses request sockets leaks and listener dismantle phase. This survives a stress test with listeners being added/removed quite randomly.

Eric Dumazet (3):
Revert "inet: fix double request socket freeing" tcp/dccp: add inet_csk_reqsk_queue_drop_and_put() helper tcp/dccp: fix race at listener dismantle phase

 include/net/inet_connection_sock.h | 10 ++---
 include/net/request_sock.h         | 19 ---------
 net/dccp/ipv4.c                    |  4 +-
 net/dccp/ipv6.c                    |  2 +-
 net/ipv4/inet_connection_sock.c    | 81 +++++++++++++++++++++++++++-----------
 net/ipv4/tcp_ipv4.c                |  6 +--
 net/ipv6/tcp_ipv6.c                |  2 +-
 7 files changed, 67 insertions(+), 57 deletions(-)
Signature · 1 line
2.6.0.rc2.230.g3dd15c0