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

From: Eric Dumazet

Date: Mon Nov 23 2026 - 04:57:31 EST


Le lun. 23 nov. 2026 à 10:34, Yingjie Wang <x-professor@xxxxxxxxxxx> a écrit :
>
> 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.

Reviewed-by: Eric Dumazet <edumazet@xxxxxxxxxx>