]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit6d8d777067fe47ab95e71fbe85cca2daceaf4b63
treee606c01acb1027e8c3b9be6ed37acc4546d5ee7b
parentb7f043a6284bda789a081beafe73452d87a1dad7
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: 294cadabd6a5 ("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