commit | fcdd1cf4dd63aecf86c987d7f4ec7187be5c2fbc | [log] [tgz] |
---|---|---|
author | Eric Dumazet <edumazet@google.com> | Mon Sep 22 13:19:44 2014 -0700 |
committer | David S. Miller <davem@davemloft.net> | Mon Sep 22 16:27:10 2014 -0400 |
tree | 9f74f24f8fe931ffac65805a30bf7e53de7e89b1 | |
parent | 35f7aa5309c048bb70e58571942795fa9411ce6a [diff] |
tcp: avoid possible arithmetic overflows icsk_rto is a 32bit field, and icsk_backoff can reach 15 by default, or more if some sysctl (eg tcp_retries2) are changed. Better use 64bit to perform icsk_rto << icsk_backoff operations As Joe Perches suggested, add a helper for this. Yuchung spotted the tcp_v4_err() case. Signed-off-by: Eric Dumazet <edumazet@google.com> Signed-off-by: David S. Miller <davem@davemloft.net>