Patch "mptcp: don't send RST for single subflow" has been added to the 5.18-stable tree
A message that is not in the archive (sent off-list or not yet received): [email protected]
Hi Mat,
(cc: MPTCP ML)
Quoted 7 lines · Sasha Levin
This is a note to let you know that I've just added the patch titled
mptcp: don't send RST for single subflow
to the 5.18-stable tree which can be found at:
http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary
Quoted 6 lines
The filename of the patch is:
mptcp-don-t-send-rst-for-single-subflow.patch
and it can be found in the queue-5.18 subdirectory.If you, or anyone else, feels it should not be added to the stable tree, please let <[email protected]> know about it.
I just noticed the patch below is being backported to v5.18 while it doesn't have any "Fixes" tag.
It slightly changes the behaviour on v5.18 but I don't think that's an issue, it could even be seen as a bug-fix for me.
I just double-checked and the selftests are still OK with this patch.
Also OK for you to have it in v5.18?
Cheers,
Matt
Quoted 43 lines
commit
0a782d12ad419f820fbaf1d637a788097014b5b1Author: Geliang Tang <[email protected]> Date: Fri Apr 22 14:55:36 2022 -0700mptcp: don't send RST for single subflow
[ Upstream commit
1761fed2567807f26fbd53032ff622f55978c7a9]When a bad checksum is detected and a single subflow is in use, don't send RST +
MP_FAIL, senddata_ack+MP_FAILinstead.So invoke
tcp_send_active_reset()only whenmptcp_has_another_subflow()is true.Signed-off-by Geliang Tang <[email protected]>Signed-off-by Mat Martineau <[email protected]>Signed-off-by David S. Miller <[email protected]>Signed-off-by Sasha Levin <[email protected]>net/mptcp/subflow.c +5
-5@@ -1221,14 +1221,14 @@ static bool subflow_check_data_avail(struct sock *ssk)/* RFC 8684 section 3.7. */ if (subflow->send_mp_fail) {if (mptcp_has_another_subflow (ssk)) { + ssk->sk_err =EBADMSG ; +tcp_set_state (ssk,TCP_CLOSE ); + subflow->reset_transient =0 ; + subflow->reset_reason =MPTCP_RST_EMIDDLEBOX ; +tcp_send_active_reset (ssk,GFP_ATOMIC );while ((skb =skb_peek (&ssk->sk_receive_queue)))sk_eat_skb (ssk, skb); } - ssk->sk_err =EBADMSG ; -tcp_set_state (ssk,TCP_CLOSE ); - subflow->reset_transient =0 ; - subflow->reset_reason =MPTCP_RST_EMIDDLEBOX ; -tcp_send_active_reset (ssk,GFP_ATOMIC );WRITE_ONCE (subflow->data_avail,MPTCP_SUBFLOW_NODATA );return true; }
Signature · 2 lines
Tessares | Belgium | Hybrid Access Solutions www.tessares.net
Quoted 22 lines · Matthieu Baerts
Hi Mat,
(cc: MPTCP ML)
Quoted 7 lines · Sasha Levin
This is a note to let you know that I've just added the patch titled
mptcp: don't send RST for single subflow
to the 5.18-stable tree which can be found at:
http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summaryQuoted 6 lines
The filename of the patch is:
mptcp-don-t-send-rst-for-single-subflow.patch
and it can be found in the queue-5.18 subdirectory.If you, or anyone else, feels it should not be added to the stable tree, please let <[email protected]> know about it.
I just noticed the patch below is being backported to v5.18 while it doesn't have any "Fixes" tag.
Quoted 7 lines
It slightly changes the behaviour on v5.18 but I don't think that's an issue, it could even be seen as a bug-fix for me.
I just double-checked and the selftests are still OK with this patch.
Also OK for you to have it in v5.18?
I noticed this too - I'm going to ask Greg to drop it. Without the infinite mapping support that follows in the series I think it's better to keep the RST behavior.
- Mat
Quoted 36 lines
Quoted 36 lines
commit
0a782d12ad419f820fbaf1d637a788097014b5b1Author: Geliang Tang <[email protected]> Date: Fri Apr 22 14:55:36 2022 -0700mptcp: don't send RST for single subflow
[ Upstream commit
1761fed2567807f26fbd53032ff622f55978c7a9]When a bad checksum is detected and a single subflow is in use, don't send RST +
MP_FAIL, senddata_ack+MP_FAILinstead.So invoke
tcp_send_active_reset()only whenmptcp_has_another_subflow()is true.Signed-off-by Geliang Tang <[email protected]>Signed-off-by Mat Martineau <[email protected]>Signed-off-by David S. Miller <[email protected]>Signed-off-by Sasha Levin <[email protected]>net/mptcp/subflow.c +5
-0@@ -1221,14 +1221,14 @@ static bool subflow_check_data_avail(struct sock *ssk)/* RFC 8684 section 3.7. */ if (subflow->send_mp_fail) {if (mptcp_has_another_subflow (ssk)) { + ssk->sk_err =EBADMSG ; +tcp_set_state (ssk,TCP_CLOSE ); + subflow->reset_transient =0 ; + subflow->reset_reason =MPTCP_RST_EMIDDLEBOX ; +tcp_send_active_reset (ssk,GFP_ATOMIC );while ((skb =skb_peek (&ssk->sk_receive_queue)))sk_eat_skb (ssk, skb); }
Quoted 13 lines
Quoted 8 lines
net/mptcp/subflow.c +0
-5- ssk->sk_err =EBADMSG ; -tcp_set_state (ssk,TCP_CLOSE ); - subflow->reset_transient =0 ; - subflow->reset_reason =MPTCP_RST_EMIDDLEBOX ; -tcp_send_active_reset (ssk,GFP_ATOMIC );WRITE_ONCE (subflow->data_avail,MPTCP_SUBFLOW_NODATA );return true; }Signature · 2 lines
Tessares | Belgium | Hybrid Access Solutions www.tessares.net
--
Mat Martineau
Intel