]> git.baikalelectronics.ru Git - kernel.git/commit
mptcp: fix warn at shutdown time for unaccepted msk sockets
authorPaolo Abeni <pabeni@redhat.com>
Fri, 7 Aug 2020 17:03:53 +0000 (19:03 +0200)
committerDavid S. Miller <davem@davemloft.net>
Sat, 8 Aug 2020 00:26:16 +0000 (17:26 -0700)
commit3a60fc3fbd8775d630186c140736cf9717080bfc
tree7329742a968e4f3f25562f75c9defe83bb8f57a0
parentf2ad9d90451b09d98c9cbe23e8e6148563012a87
mptcp: fix warn at shutdown time for unaccepted msk sockets

With commit 084e8b62d5f1 ("mptcp: explicitly track the fully
established status"), the status of unaccepted mptcp closed in
mptcp_sock_destruct() changes from TCP_SYN_RECV to TCP_ESTABLISHED.

As a result mptcp_sock_destruct() does not perform the proper
cleanup and inet_sock_destruct() will later emit a warn.

Address the issue updating the condition tested in mptcp_sock_destruct().
Also update the related comment.

Closes: https://github.com/multipath-tcp/mptcp_net-next/issues/66
Reported-and-tested-by: Christoph Paasch <cpaasch@apple.com>
Fixes: 084e8b62d5f1 ("mptcp: explicitly track the fully established status")
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
Reviewed-by: Matthieu Baerts <matthieu.baerts@tessares.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/mptcp/subflow.c