]> 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)
commit1b8e0e3b85fd52e7ccdd6263a72f5bf76eb8491f
tree4bd2dc5e7e82339d6a60ed8e48a3cced9583b4de
parent882049ba7c905638aa3275147b2667f0ba78602e
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: e52a254a52f1 ("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