Files
linux/net/ipv4
Christoph Paasch 310dfd63ac tcp: Fix integer-overflow in TCP vegas
[ Upstream commit 1f74e613de ]

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: 8d3a564da3 (tcp: tcp_vegas cong avoid fix)
Signed-off-by: Christoph Paasch <christoph.paasch@uclouvain.be>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Jiri Slaby <jslaby@suse.cz>
2014-09-07 18:19:53 +01:00
..
2013-09-03 21:41:43 -04:00
2014-04-18 11:07:11 +02:00
2014-09-07 18:19:52 +01:00
2013-03-17 14:35:13 -04:00
2014-09-07 18:19:52 +01:00
2014-09-07 18:19:52 +01:00
2014-07-29 16:56:56 +02:00
2014-09-07 18:19:52 +01:00
2013-09-03 21:41:43 -04:00
2014-09-07 18:19:52 +01:00
2012-01-20 14:17:26 -05:00
2012-05-17 14:59:59 -04:00
2014-07-29 17:01:36 +02:00
2011-03-31 11:26:23 -03:00
2014-07-29 17:01:36 +02:00
2013-03-21 11:47:50 -04:00
2013-03-21 11:47:50 -04:00
2011-03-31 11:26:23 -03:00
2012-03-11 23:42:51 -07:00
2012-04-15 12:37:19 -04:00
2013-05-31 17:19:05 -07:00