From mboxrd@z Thu Jan 1 00:00:00 1970 From: David Miller Subject: Re: [PATCH v3 net-next] tcp: avoid possible arithmetic overflows Date: Mon, 22 Sep 2014 16:27:03 -0400 (EDT) Message-ID: <20140922.162703.824025819934075774.davem@davemloft.net> References: <1411389739.26859.113.camel@edumazet-glaptop2.roam.corp.google.com> <1411417184.26859.147.camel@edumazet-glaptop2.roam.corp.google.com> Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit Cc: ycheng@google.com, joe@perches.com, netdev@vger.kernel.org, ncardwell@google.com To: eric.dumazet@gmail.com Return-path: Received: from shards.monkeyblade.net ([149.20.54.216]:53652 "EHLO shards.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753128AbaIVU1F (ORCPT ); Mon, 22 Sep 2014 16:27:05 -0400 In-Reply-To: <1411417184.26859.147.camel@edumazet-glaptop2.roam.corp.google.com> Sender: netdev-owner@vger.kernel.org List-ID: From: Eric Dumazet Date: Mon, 22 Sep 2014 13:19:44 -0700 > From: Eric Dumazet > > 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. > > From: Eric Dumazet I assume you meant "Signed-off-by: " on that last line, not "From: " :-) Applied,