diff options
author | Christoph Paasch <christoph.paasch@uclouvain.be> | 2014-07-29 13:40:57 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2014-07-30 17:31:06 -0700 |
commit | 1f74e613ded11517db90b2bd57e9464d9e0fb161 (patch) | |
tree | 502d5bf7e8ce71e1ff94570ebe4755502327a80d /drivers | |
parent | 45a07695bc64b3ab5d6d2215f9677e5b8c05a7d0 (diff) |
tcp: Fix integer-overflow in TCP vegas
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 <eric.dumazet@gmail.com>
Cc: David Laight <David.Laight@ACULAB.COM>
Cc: Doug Leith <doug.leith@nuim.ie>
Fixes: 8d3a564da34e (tcp: tcp_vegas cong avoid fix)
Signed-off-by: Christoph Paasch <christoph.paasch@uclouvain.be>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers')
0 files changed, 0 insertions, 0 deletions