Star64_linux/net/mptcp
Paolo Abeni 945dfa7ce8 mptcp: do not wait for bare sockets' timeout
commit d4e85922e3 upstream.

If the peer closes all the existing subflows for a given
mptcp socket and later the application closes it, the current
implementation let it survive until the timewait timeout expires.

While the above is allowed by the protocol specification it
consumes resources for almost no reason and additionally
causes sporadic self-tests failures.

Let's move the mptcp socket to the TCP_CLOSE state when there are
no alive subflows at close time, so that the allocated resources
will be freed immediately.

Fixes: e16163b6e2 ("mptcp: refactor shutdown and close")
Cc: stable@vger.kernel.org
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
Reviewed-by: Matthieu Baerts <matthieu.baerts@tessares.net>
Signed-off-by: Matthieu Baerts <matthieu.baerts@tessares.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Matthieu Baerts <matthieu.baerts@tessares.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2023-04-19 17:59:26 +08:00
..
crypto.c
crypto_test.c
ctrl.c
diag.c
Kconfig
Makefile
mib.c mptcp: add mibs counter for ignored incoming options 2023-04-19 17:45:39 +08:00
mib.h mptcp: add mibs counter for ignored incoming options 2023-04-19 17:45:39 +08:00
mptcp_diag.c
options.c mptcp: fix checksum byte order 2023-04-19 17:48:59 +08:00
pm.c mptcp: add mibs counter for ignored incoming options 2023-04-19 17:45:39 +08:00
pm_netlink.c mptcp: fix locking for in-kernel listener creation 2023-04-19 17:59:24 +08:00
protocol.c mptcp: do not wait for bare sockets' timeout 2023-04-19 17:59:26 +08:00
protocol.h mptcp: Do TCP fallback on early DSS checksum failure 2023-04-19 17:49:02 +08:00
sockopt.c mptcp: remove tcp ulp setsockopt support 2023-04-19 17:43:12 +08:00
subflow.c mptcp: fix locking for in-kernel listener creation 2023-04-19 17:59:24 +08:00
syncookies.c
token.c
token_test.c