[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20140922.162703.824025819934075774.davem@davemloft.net>
Date: Mon, 22 Sep 2014 16:27:03 -0400 (EDT)
From: David Miller <davem@...emloft.net>
To: eric.dumazet@...il.com
Cc: ycheng@...gle.com, joe@...ches.com, netdev@...r.kernel.org,
ncardwell@...gle.com
Subject: Re: [PATCH v3 net-next] tcp: avoid possible arithmetic overflows
From: Eric Dumazet <eric.dumazet@...il.com>
Date: Mon, 22 Sep 2014 13:19:44 -0700
> From: Eric Dumazet <edumazet@...gle.com>
>
> 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 <edumazet@...gle.com>
I assume you meant "Signed-off-by: " on that last line, not "From: " :-)
Applied,
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists