Skip to content

Commit 6f5ba49

Browse files
matttbegregkh
authored andcommitted
mptcp: pm: prio: skip closed subflows
commit 166b783 upstream. When sending an MP_PRIO, closed subflows need to be skipped. This fixes the case where the initial subflow got closed, re-opened later, then an MP_PRIO is needed for the same local address. Note that explicit MP_PRIO cannot be sent during the 3WHS, so it is fine to use __mptcp_subflow_active(). Fixes: 0670654 ("mptcp: add the outgoing MP_PRIO support") Cc: stable@vger.kernel.org Fixes: b29fcfb ("mptcp: full disconnect implementation") Reviewed-by: Mat Martineau <martineau@kernel.org> Signed-off-by: Matthieu Baerts (NGI0) <matttbe@kernel.org> Link: https://patch.msgid.link/20260505-net-mptcp-pm-fixes-7-1-rc3-v1-9-fca8091060a4@kernel.org Signed-off-by: Jakub Kicinski <kuba@kernel.org> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
1 parent 8a005fe commit 6f5ba49

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

net/mptcp/pm.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -283,6 +283,9 @@ int mptcp_pm_mp_prio_send_ack(struct mptcp_sock *msk,
283283
struct sock *ssk = mptcp_subflow_tcp_sock(subflow);
284284
struct mptcp_addr_info local, remote;
285285

286+
if (!__mptcp_subflow_active(subflow))
287+
continue;
288+
286289
mptcp_local_address((struct sock_common *)ssk, &local);
287290
if (!mptcp_addresses_equal(&local, addr, addr->port))
288291
continue;

0 commit comments

Comments
 (0)