diff options
author | Christoph Paasch <[email protected]> | 2014-07-29 13:40:57 +0200 |
---|---|---|
committer | David S. Miller <[email protected]> | 2014-07-30 17:31:06 -0700 |
commit | 1f74e613ded11517db90b2bd57e9464d9e0fb161 (patch) | |
tree | 502d5bf7e8ce71e1ff94570ebe4755502327a80d /tools/perf/util/scripting-engines/trace-event-python.c | |
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 <[email protected]>
Cc: Neal Cardwell <[email protected]>
Cc: Eric Dumazet <[email protected]>
Cc: David Laight <[email protected]>
Cc: Doug Leith <[email protected]>
Fixes: 8d3a564da34e (tcp: tcp_vegas cong avoid fix)
Signed-off-by: Christoph Paasch <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'tools/perf/util/scripting-engines/trace-event-python.c')
0 files changed, 0 insertions, 0 deletions