Skip to content

RDS: TCP: socket locking RDS packet assembly fixes

Sowmini Varadhan netdev 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest3 patches 4 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3RDS: TCP: Add/use rds_tcp_reset_callbacks to reset tcp socket safelynet/rds/tcp.c net/rds/tcp.h net/rds/tcp_listen.c+67 -121 reply
2/3RDS: TCP: Retransmit half-sent datagrams when switching sockets in rds_tcp_reset_callbacksnet/rds/send.c net/rds/tcp.c+2 -01 reply
3/3RDS: TCP: fix race windows in send-path quiescence by rds_tcp_accept_one()net/rds/rds.h net/rds/tcp.c net/rds/tcp_connect.c +2 more+27 -81 reply

Reviews trailers per patch

All 3 patches have a Reviewed-by or Acked-by.

PatchSantosh Shilimkar
1/3A-b
2/3A-b
3/3A-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH net 0/3] RDS: TCP: socket locking RDS packet assembly fixes

This three part patchset fixes bugs in synchronization between rds_tcp_accept_one() and the rds-tcp send/recv path.

Patch 1 ensures that the lock_sock() is taken appropriately and the RDS datagram reassembly state is reset to synchronize with the receive path.

Patch 2 ensures that partially sent RDS datagrams will get retransmitted after rds_tcp_accept_one() switches sockets.

Patch 3 fixes a race window which would prematurely re-enable rds_send_xmit() before the rds_tcp_connection setup has been completed in rds_tcp_accept_one().

Sowmini Varadhan (3):
RDS: TCP: Add/use rds_tcp_reset_callbacks to reset tcp socket safely
RDS: TCP: Retransmit half-sent datagrams when switching sockets in
rds_tcp_reset_callbacks
RDS: TCP: fix race windows in send-path quiescence by
rds_tcp_accept_one()

 net/rds/rds.h         |    2 +
 net/rds/send.c        |    1 +
 net/rds/tcp.c         |   78 +++++++++++++++++++++++++++++++++++++++++++++++--
 net/rds/tcp.h         |    1 +
 net/rds/tcp_connect.c |    2 +-
 net/rds/tcp_listen.c  |   20 ++++--------
 net/rds/threads.c     |   10 +++++-
 7 files changed, 95 insertions(+), 19 deletions(-)