From: Eric Dumazet Date: Mon, 22 Sep 2014 20:19:44 +0000 (-0700) Subject: tcp: avoid possible arithmetic overflows X-Git-Tag: fixes-against-v3.18-rc2~81^2~12 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=fcdd1cf4dd63aecf86c987d7f4ec7187be5c2fbc;p=pandora-kernel.git 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 Signed-off-by: David S. Miller --- Reading git-diff-tree failed