OSDN Git Service

mptcp: fix DATA_FIN processing for orphaned sockets
authorPaolo Abeni <pabeni@redhat.com>
Fri, 19 Feb 2021 17:35:37 +0000 (18:35 +0100)
committerJakub Kicinski <kuba@kernel.org>
Tue, 23 Feb 2021 02:54:58 +0000 (18:54 -0800)
commit341c65242fe18aac8900e4291d472df9f7ba7bc7
treee606c01acb1027e8c3b9be6ed37acc4546d5ee7b
parent94ead4caa0615f4b0719ffcb4dbd0907fe2f9265
mptcp: fix DATA_FIN processing for orphaned sockets

Currently we move orphaned msk sockets directly from FIN_WAIT2
state to CLOSE, with the rationale that incoming additional
data could be just dropped by the TCP stack/TW sockets.

Anyhow we miss sending MPTCP-level ack on incoming DATA_FIN,
and that may hang the peers.

Fixes: e16163b6e2b7 ("mptcp: refactor shutdown and close")
Reviewed-by: Mat Martineau <mathew.j.martineau@linux.intel.com>
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
net/mptcp/protocol.c