Re: [PATCH net-next v4 0/2] tcp/mptcp: prevent blackhole timeout arithmetic wraparound

From: Matthieu Baerts

Date: Mon Nov 23 2026 - 05:18:29 EST


Hi Yingjie,

On 23/11/2026 10:04, Yingjie Wang wrote:
> The TCP Fast Open and MPTCP blackhole timeout calculations can wrap in
> 32-bit unsigned arithmetic, even on 64-bit kernels. With HZ=1000 and a
> 64-fold backoff, 67109 seconds becomes 8.7 seconds instead of about
> 50 days.
>
> Compute both delays in u64, cap them at MAX_JIFFY_OFFSET, and limit both
> initial timeout sysctls to one day. The new input limits reject values
> that were previously accepted, so this series remains for net-next and
> is not intended for stable.

Thank you for the v4, it looks good to me:

Reviewed-by: Matthieu Baerts (NGI0) <matttbe@xxxxxxxxxx>

> Changes since v3:

Note for next time: you can put the ChangeLog in a "notes" section, so
under "---"

Cheers,
Matt
--
Sponsored by the NGI0 Core fund.