]> git.baikalelectronics.ru Git - kernel.git/commit
mptcp: Initialize map_seq upon subflow establishment
authorChristoph Paasch <cpaasch@apple.com>
Mon, 11 May 2020 16:24:42 +0000 (09:24 -0700)
committerDavid S. Miller <davem@davemloft.net>
Tue, 12 May 2020 19:08:22 +0000 (12:08 -0700)
commit76c34d73b0c1ccdef2c8709fbee5bc174aa9f1a9
tree8231999311a1140e6a5226c396d2ed998a733629
parent733ff005acb1d711079c2062c99a1d31dbb3b1db
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: fb5f5519370c ("mptcp: Add handling of incoming MP_JOIN requests")
Signed-off-by: Christoph Paasch <cpaasch@apple.com>
Reviewed-by: Paolo Abeni <pabeni@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/mptcp/protocol.c