mptcp: fix more tx path fields initialization
authorPaolo Abeni <pabeni@redhat.com>
Thu, 8 Feb 2024 18:03:51 +0000 (19:03 +0100)
committerDavid S. Miller <davem@davemloft.net>
Mon, 12 Feb 2024 10:08:13 +0000 (10:08 +0000)
commit3f83d8a77eeeb47011b990fd766a421ee64f1d73
tree3b2b2ca5e5e65ff59dfcd5b23716fcccc53ad1f7
parent013e3179dbd2bc756ce1dd90354abac62f65b739
mptcp: fix more tx path fields initialization

The 'msk->write_seq' and 'msk->snd_nxt' are always updated under
the msk socket lock, except at MPC handshake completiont time.

Builds-up on the previous commit to move such init under the relevant
lock.

There are no known problems caused by the potential race, the
primary goal is consistency.

Fixes: 6d0060f600ad ("mptcp: Write MPTCP DSS headers to outgoing data packets")
Cc: stable@vger.kernel.org
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
Reviewed-by: Mat Martineau <martineau@kernel.org>
Signed-off-by: Matthieu Baerts (NGI0) <matttbe@kernel.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/mptcp/protocol.c
net/mptcp/subflow.c