Skip to content

Commit 64d950a

Browse files
cpaaschdavem330
authored andcommitted
mptcp: Initialize map_seq upon subflow establishment
When the other MPTCP-peer uses 32-bit data-sequence numbers, we rely on map_seq to indicate how to expand to a 64-bit data-sequence number in expand_seq() when receiving data. For new subflows, this field is not initialized, thus results in an "invalid" mapping being discarded. Fix this by initializing map_seq upon subflow establishment time. Fixes: f296234 ("mptcp: Add handling of incoming MP_JOIN requests") Signed-off-by: Christoph Paasch <[email protected]> Reviewed-by: Paolo Abeni <[email protected]> Signed-off-by: David S. Miller <[email protected]>
1 parent 1abfb18 commit 64d950a

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

net/mptcp/protocol.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1629,6 +1629,8 @@ bool mptcp_finish_join(struct sock *sk)
16291629

16301630
ret = mptcp_pm_allow_new_subflow(msk);
16311631
if (ret) {
1632+
subflow->map_seq = msk->ack_seq;
1633+
16321634
/* active connections are already on conn_list */
16331635
spin_lock_bh(&msk->join_list_lock);
16341636
if (!WARN_ON_ONCE(!list_empty(&subflow->node)))

0 commit comments

Comments
 (0)