Thread (2 messages) flat view 2 messages, 2 authors, 2014-07-31

Re: [PATCH v3 net] tcp: Fix integer-overflow in TCP vegas

From: David Miller <davem@davemloft.net>
Date: 2014-07-31 00:31:48

From: Christoph Paasch <redacted>
Date: Tue, 29 Jul 2014 13:40:57 +0200
In vegas we do a multiplication of the cwnd and the rtt. This
may overflow and thus their result is stored in a u64. However, we first
need to cast the cwnd so that actually 64-bit arithmetic is done.

Then, we need to do do_div to allow this to be used on 32-bit arches.

Cc: Stephen Hemminger <stephen@networkplumber.org>
Cc: Neal Cardwell <ncardwell@google.com>
Cc: Eric Dumazet <redacted>
Cc: David Laight <redacted>
Cc: Doug Leith <redacted>
Fixes: 8d3a564da34e (tcp: tcp_vegas cong avoid fix)
Signed-off-by: Christoph Paasch <redacted>
Applied and queued up for -stable, thanks.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help