]> www.infradead.org Git - users/dwmw2/linux.git/commit
mptcp: ensure snd_una is properly initialized on connect
authorPaolo Abeni <pabeni@redhat.com>
Fri, 7 Jun 2024 15:01:48 +0000 (17:01 +0200)
committerJakub Kicinski <kuba@kernel.org>
Tue, 11 Jun 2024 02:49:10 +0000 (19:49 -0700)
commit8031b58c3a9b1db3ef68b3bd749fbee2e1e1aaa3
treecd7a26a80cd752e166482cbed0fe7b4d56a13f24
parent44180feaccf266d9b0b28cc4ceaac019817deb5c
mptcp: ensure snd_una is properly initialized on connect

This is strictly related to commit fb7a0d334894 ("mptcp: ensure snd_nxt
is properly initialized on connect"). It turns out that syzkaller can
trigger the retransmit after fallback and before processing any other
incoming packet - so that snd_una is still left uninitialized.

Address the issue explicitly initializing snd_una together with snd_nxt
and write_seq.

Suggested-by: Mat Martineau <martineau@kernel.org>
Fixes: 8fd738049ac3 ("mptcp: fallback in case of simultaneous connect")
Cc: stable@vger.kernel.org
Reported-by: Christoph Paasch <cpaasch@apple.com>
Closes: https://github.com/multipath-tcp/mptcp_net-next/issues/485
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
Reviewed-by: Mat Martineau <martineau@kernel.org>
Signed-off-by: Matthieu Baerts (NGI0) <matttbe@kernel.org>
Link: https://lore.kernel.org/r/20240607-upstream-net-20240607-misc-fixes-v1-1-1ab9ddfa3d00@kernel.org
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
net/mptcp/protocol.c