Skip to contentSkip to conversation

TCP receive windows broken in 4.14.48

DISCUSSION Benjamin Gilbert 3 participants 5 messages Jun 14, 2018 – Jun 18, 2018 Stable branch

lore
Share & tools
lore
#0 lore raw

Hi,

4.14.48 can cause abnormally small TCP receive windows when the sender is faster than the receiver; see https://github.com/coreos/bugs/issues/2457 for details. Reverting "tcp: avoid integer overflows in tcp_rcv_space_adjust()" fixes it. Backporting 02db55718d53 ("tcp: do not overshoot window_clamp in tcp_rcv_space_adjust()"), which is its parent commit upstream, also fixes it.

--Benjamin Gilbert

#1 lore raw
Quoted 9 lines · Benjamin Gilbert

Hi,

4.14.48 can cause abnormally small TCP receive windows when the sender is faster than the receiver; see https://github.com/coreos/bugs/issues/2457 for details. Reverting "tcp: avoid integer overflows in tcp_rcv_space_adjust()" fixes it. Backporting 02db55718d53 ("tcp: do not overshoot window_clamp in tcp_rcv_space_adjust()"), which is its parent commit upstream, also fixes it.

02db55718d53 applies cleanly, so I would suggest we go along that route instead of a revert.

Greg - given that the problematic commit is in all stable releases, it would probably make sense to apply 02db55718d53 to pre-4.14 kernels as well. It does apply clean to all kernels all the way back to 3.18.y.

Thanks,
Guenter

#2 lore raw
Quoted 10 lines · Guenter Roeck
Quoted 9 lines · Benjamin Gilbert

Hi,

4.14.48 can cause abnormally small TCP receive windows when the sender is faster than the receiver; see https://github.com/coreos/bugs/issues/2457 for details. Reverting "tcp: avoid integer overflows in tcp_rcv_space_adjust()" fixes it. Backporting 02db55718d53 ("tcp: do not overshoot window_clamp in tcp_rcv_space_adjust()"), which is its parent commit upstream, also fixes it.

Quoted 6 lines

02db55718d53 applies cleanly, so I would suggest we go along that route instead of a revert.

Greg - given that the problematic commit is in all stable releases, it would probably make sense to apply 02db55718d53 to pre-4.14 kernels as well. It does apply clean to all kernels all the way back to 3.18.y.

Now done, thanks.

greg k-h

#3 lore raw
In reply to Guenter Roeck
Quoted 10 lines · Guenter Roeck
Quoted 9 lines · Benjamin Gilbert

Hi,

4.14.48 can cause abnormally small TCP receive windows when the sender is faster than the receiver; see https://github.com/coreos/bugs/issues/2457 for details. Reverting "tcp: avoid integer overflows in tcp_rcv_space_adjust()" fixes it. Backporting 02db55718d53 ("tcp: do not overshoot window_clamp in tcp_rcv_space_adjust()"), which is its parent commit upstream, also fixes it.

Quoted 6 lines

02db55718d53 applies cleanly, so I would suggest we go along that route instead of a revert.

Greg - given that the problematic commit is in all stable releases, it would probably make sense to apply 02db55718d53 to pre-4.14 kernels as well. It does apply clean to all kernels all the way back to 3.18.y.

Ah, but it breaks the build everywhere, so I've dropped it :(

Can someone please backport it? I'll be glad to queue it up then.

thanks,

greg k-h

#4 lore raw
Quoted 11 lines · Greg Kroah-Hartman
Quoted 10 lines · Guenter Roeck
Quoted 9 lines · Benjamin Gilbert

Hi,

4.14.48 can cause abnormally small TCP receive windows when the sender is faster than the receiver; see https://github.com/coreos/bugs/issues/2457 for details. Reverting "tcp: avoid integer overflows in tcp_rcv_space_adjust()" fixes it. Backporting 02db55718d53 ("tcp: do not overshoot window_clamp in tcp_rcv_space_adjust()"), which is its parent commit upstream, also fixes it.

Quoted 9 lines
Quoted 6 lines

02db55718d53 applies cleanly, so I would suggest we go along that route instead of a revert.

Greg - given that the problematic commit is in all stable releases, it would probably make sense to apply 02db55718d53 to pre-4.14 kernels as well. It does apply clean to all kernels all the way back to 3.18.y.

Ah, but it breaks the build everywhere, so I've dropped it :(

Sigh. Maybe I'll learn to compile test at some point.

Quoted 2 lines

Can someone please backport it? I'll be glad to queue it up then.

Just sent a backport, though with a bit confused subject. I did compile test it this time with 4.14.y and 4.9.y.

Guenter