Hello, On 03/12/2026 22:51, netd…@kernel.org wrote: (...)
> [Severity: High] > Does this cover connections that fell back to plain TCP?
(...)
> Should the keep check also account for data queued in the subflows on > fallback, or should fallback orphans be left to TCP's orphan handling?
The latter. This is a separate issue, since v6.1, so a different patch: after a fallback, these orphans were already reset before this patch. It is fixed by a patch already in the MPTCP tree, but with the "please send smaller series" request, I couldn't add it here: https://lore.kernel.org/2026…@kernel.org
>> + >> + mptcp_for_each_subflow(msk, subflow) { >> + struct sock *ssk = mptcp_subflow_tcp_sock(subflow); >> + >> + /* a live peer acks at least the probes, every TCP_RTO_MAX */ >> + if (__mptcp_subflow_active(subflow) && >> + tcp_jiffies32 - READ_ONCE(tcp_sk(ssk)->rcv_tstamp) < >> + 2 * TCP_RTO_MAX) >> + return true;
> > [Severity: Low] > Can this unsigned subtraction underflow?
(...)
> Would taking a single tcp_jiffies32 snapshot and using a signed > comparison avoid this? mptcp_close_tout_expired() just above already > uses time_after32().
Yes, as in tcp_rtx_probe0_timed_out(). In this rare case, the orphan is reset, as before this patch: this can be improved in net-next.
> [Severity: Medium] > With only this patch applied, what limits how long an orphan can be > kept?
(...)
> Since this patch has Cc: stable, could it be backported without those > follow-ups?
No: the next two patches have the same Fixes tag, and the next one has a note for the backports about that.
> [Severity: Low] > Can this restart overwrite a close timeout that was backdated on > purpose?
(...)
> Would the orphan then stay around for another TCP_TIMEWAIT_LEN with no > usable subflow, instead of being destroyed in this worker run as it > was before?
Yes, in this rare case, the orphan is freed one close timeout later. This can be improved in net-next too. Cheers, Matt
-- Sponsored by the NGI0 Core fund.