]> git.baikalelectronics.ru Git - kernel.git/commit
mptcp: mark as fallback even early ones
authorPaolo Abeni <pabeni@redhat.com>
Thu, 23 Jul 2020 11:02:31 +0000 (13:02 +0200)
committerDavid S. Miller <davem@davemloft.net>
Thu, 23 Jul 2020 18:47:24 +0000 (11:47 -0700)
commit436fc1bda0a5dce33793bff3f05db8ad08c52009
tree4bd2dc5e7e82339d6a60ed8e48a3cced9583b4de
parent227790c820ce8c4ab3e151bd61771bd2409a2af8
mptcp: mark as fallback even early ones

In the unlikely event of a failure at connect time,
we currently clear the request_mptcp flag - so that
the MPC handshake is not started at all, but the msk
is not explicitly marked as fallback.

This would lead to later insertion of wrong DSS options
in the xmitted packets, in violation of RFC specs and
possibly fooling the peer.

Fixes: c5be4bc9a7f5 ("net: mptcp: improve fallback to TCP")
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