mptcp: avoid data corruption on reinsert
authorPaolo Abeni <pabeni@redhat.com>
Thu, 23 Jul 2020 11:02:30 +0000 (13:02 +0200)
committerDavid S. Miller <davem@davemloft.net>
Thu, 23 Jul 2020 18:47:24 +0000 (11:47 -0700)
commit53eb4c383deb97b59f1755fe3035ec7992488375
treeda573c7e720fe560e745789ad5ca6da2a16aaee7
parentb0977bb268db1df6decd3405903ca500721cdc5f
mptcp: avoid data corruption on reinsert

When updating a partially acked data fragment, we
actually corrupt it. This is irrelevant till we send
data on a single subflow, as retransmitted data, if
any are discarded by the peer as duplicate, but it
will cause data corruption as soon as we will start
creating non backup subflows.

Reviewed-by: Mat Martineau <mathew.j.martineau@linux.intel.com>
Tested-by: Christoph Paasch <cpaasch@apple.com>
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/mptcp/protocol.c