From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-alma10-1.taild15c8.ts.net [100.103.45.18]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 96431449EAB; Tue, 16 Jun 2026 15:31:42 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=100.103.45.18 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1781623903; cv=none; b=ZC+nTUqrb7vy0u3DEpqY6fhSzu4Bhqyo7h2q/v8uWfjefBT52ib9PnFcWenjqqlx28oQvJgBu/6DV9cXAmwoBdNJkL0Q0yBMyCBRbAPD9zZrRpO36epbMWG9vSJRDg76Fx6Xt4VbWySBAqMtyUxjWjqnIPGqPG5QWrWmoYprEyA= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1781623903; c=relaxed/simple; bh=KHp2bYdZWaD/VOgNiSozfu90otSaqVpGYw1SkYt5Zcc=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=aBPugzGVMeQorOtrPdY0Kz8a1VCjvGPcA4SZxahv5gydLhz2z8FkGCll63C+65sFqW1s4QIQI1d0BLmcAj03L6nuYPHD/FckGKufEq0yRcAYdzDAc6+fQbAuIlQwZJnGXq3CKMfUhYcBmAk5bTnAdONvYUayNaorrc1BkSw0tgc= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=1Wa7TpUr; arc=none smtp.client-ip=100.103.45.18 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="1Wa7TpUr" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 227DA1F000E9; Tue, 16 Jun 2026 15:31:40 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1781623902; bh=lyqegWc+yhyQq4QSfic8r1FoW4GPH19kb7mGPrCouyM=; h=From:To:Cc:Subject:Date:In-Reply-To:References; b=1Wa7TpUrfdmhGQ6pbnFX1S9YGPIILOxTQNYlYIr3ow1EYJL8erLPChBwMN51D0sTU br/QZagCPmJ3kgkhdEbgTr+bFhGgqic0NGzlGihx12J8iUts80KDz9UCUhGPNhhWth jouaOkv9CGFA6iMN25+bz/uRCViDtQIeZarxqW2U= From: Greg Kroah-Hartman To: stable@vger.kernel.org Cc: Greg Kroah-Hartman , patches@lists.linux.dev, Tao Cui , "Matthieu Baerts (NGI0)" , Jakub Kicinski Subject: [PATCH 7.0 238/378] selftests: mptcp: add test for extra_subflows underflow on userspace PM Date: Tue, 16 Jun 2026 20:27:49 +0530 Message-ID: <20260616145122.757899592@linuxfoundation.org> X-Mailer: git-send-email 2.54.0 In-Reply-To: <20260616145109.744539446@linuxfoundation.org> References: <20260616145109.744539446@linuxfoundation.org> User-Agent: quilt/0.69 X-stable: review X-Patchwork-Hint: ignore Precedence: bulk X-Mailing-List: patches@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 7.0-stable review patch. If anyone has any objections, please let me know. ------------------ From: Tao Cui commit 06fd2bec7aebf393288e4b78924482fe170caabc upstream. Add a test to verify that when userspace PM fails to create a subflow (e.g. using an unreachable address), the extra_subflows counter is not decremented below zero. Fixes: 77e4b94a3de6 ("mptcp: update userspace pm infos") Cc: stable@vger.kernel.org Signed-off-by: Tao Cui Reviewed-by: Matthieu Baerts (NGI0) Signed-off-by: Matthieu Baerts (NGI0) Link: https://patch.msgid.link/20260602-net-mptcp-misc-fixes-7-1-rc7-v2-6-856831229976@kernel.org Signed-off-by: Jakub Kicinski Signed-off-by: Greg Kroah-Hartman --- tools/testing/selftests/net/mptcp/mptcp_join.sh | 4 ++++ 1 file changed, 4 insertions(+) --- a/tools/testing/selftests/net/mptcp/mptcp_join.sh +++ b/tools/testing/selftests/net/mptcp/mptcp_join.sh @@ -4069,6 +4069,10 @@ userspace_tests() chk_rm_nr 0 1 chk_mptcp_info subflows 0 subflows 0 chk_subflows_total 1 1 + # check counters are not affected by errors at creation time + userspace_pm_add_sf $ns2 10.0.12.2 10 2>/dev/null + chk_mptcp_info subflows 0 subflows 0 + chk_subflows_total 1 1 kill_events_pids mptcp_lib_kill_group_wait $tests_pid fi