Skip to content

Commit 84722b6

Browse files
matttbegregkh
authored andcommitted
mptcp: sockopt: increase seq in mptcp_setsockopt_all_sf
commit 70ece9d upstream. mptcp_setsockopt_all_sf() was missing a call to sockopt_seq_inc(). This is required not to cause missing synchronization for newer subflows created later on. This helper is called each time a socket option is set on subflows, and future ones will need to inherit this option after their creation. Fixes: 51c5fd0 ("mptcp: add TCP_MAXSEG sockopt support") Cc: stable@vger.kernel.org Suggested-by: Paolo Abeni <pabeni@redhat.com> Reviewed-by: Mat Martineau <martineau@kernel.org> Signed-off-by: Matthieu Baerts (NGI0) <matttbe@kernel.org> Link: https://patch.msgid.link/20260501-net-mptcp-misc-fixes-7-1-rc3-v1-4-b70118df778e@kernel.org Signed-off-by: Jakub Kicinski <kuba@kernel.org> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
1 parent 7abf71f commit 84722b6

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

net/mptcp/sockopt.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -812,6 +812,10 @@ static int mptcp_setsockopt_all_sf(struct mptcp_sock *msk, int level,
812812
if (ret)
813813
break;
814814
}
815+
816+
if (!ret)
817+
sockopt_seq_inc(msk);
818+
815819
return ret;
816820
}
817821

0 commit comments

Comments
 (0)