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 9430F47B408; Tue, 16 Jun 2026 17:06:44 +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=1781629605; cv=none; b=GU9GsdlPhHJ9hSCCcxz8X5nH0I5XYV769YPpfdQm+zkJcTiispGWjS80WRD6UWWfNX2FNG9RFl/EItwHWWxVUpoanxQBDKFWJ+oKjnCZlBmUiHUkiunQA6FaL6B1F0ErN6/kvPNGOahCPqA9ve4+Mc/lFUjfDFqcUEmD+RG6YlY= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1781629605; c=relaxed/simple; bh=kwOQqWxaraTnKWFtKrIPM/OdRCwjOGKpzMc3KKNbye8=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=Kg0SKrSybQgYbK1MG/RLi2eQXiW+atIjWTEficv6khPjYEDqhAVLbRwjWc0JCAlBBrzf5PyEluvGHf3y65512Wdt7kZAPX5FYNQbTWmh0Z3A+ywUbAA++8nhPpcTxCCIo144nRFS2Nb32hBoFO/eKkRgOuwS/PPoZmrWjmZy6n0= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=1PA9ruia; 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="1PA9ruia" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 8A6F21F000E9; Tue, 16 Jun 2026 17:06:43 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1781629604; bh=NnCgMoEgblXOhM1Db8Uqau62TVUdWrTMp5zU00PXNYw=; h=From:To:Cc:Subject:Date:In-Reply-To:References; b=1PA9ruiatNlhImD4Zk5JeQZEqmHE3f9VfVqKYiEymIY6QjzRbSgNrCppjNo/Bqvr1 WnhBADGmsvkcklTU3rMz0S59xjBoVjMcT54it/5WqgTy4jwl1wn1eRkIg2h6DpEt3+ ldbbg76xFLJNcWMDZfLmeUQc33KXaFKM2H6dDxFA= 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 6.6 318/452] selftests: mptcp: add test for extra_subflows underflow on userspace PM Date: Tue, 16 Jun 2026 20:29:05 +0530 Message-ID: <20260616145134.176839358@linuxfoundation.org> X-Mailer: git-send-email 2.54.0 In-Reply-To: <20260616145117.796205997@linuxfoundation.org> References: <20260616145117.796205997@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 6.6-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 @@ -3774,6 +3774,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