]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commit
selftests: mptcp: be more conservative with cookie MPJ limits
authorPaolo Abeni <pabeni@redhat.com>
Fri, 18 Feb 2022 21:35:44 +0000 (13:35 -0800)
committerPaolo Pisati <paolo.pisati@canonical.com>
Mon, 7 Mar 2022 10:45:57 +0000 (11:45 +0100)
commitb706ba6d67e3d5ae977b58e0923f693506c00de6
treef09002d9b17bcf7c52be8ba559e3ad93ffd7c366
parent54c809ba6ced5fdedbece0c637015f42fd6a1a3e
selftests: mptcp: be more conservative with cookie MPJ limits

BugLink: https://bugs.launchpad.net/bugs/1963891
commit e35f885b357d47e04380a2056d1b2cc3e6f4f24b upstream.

Since commit 2843ff6f36db ("mptcp: remote addresses fullmesh"), an
MPTCP client can attempt creating multiple MPJ subflow simultaneusly.

In such scenario the server, when syncookies are enabled, could end-up
accepting incoming MPJ syn even above the configured subflow limit, as
the such limit can be enforced in a reliable way only after the subflow
creation. In case of syncookie, only after the 3rd ack reception.

As a consequence the related self-tests case sporadically fails, as it
verify that the server always accept the expected number of MPJ syn.

Address the issues relaxing the MPJ syn number constrain. Note that the
check on the accepted number of MPJ 3rd ack still remains intact.

Fixes: 2843ff6f36db ("mptcp: remote addresses fullmesh")
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
Signed-off-by: Mat Martineau <mathew.j.martineau@linux.intel.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Paolo Pisati <paolo.pisati@canonical.com>
tools/testing/selftests/net/mptcp/mptcp_join.sh