From mboxrd@z Thu Jan 1 00:00:00 1970 From: David Miller Subject: Re: [PATCH] tcp_lp: use 64-bit arithmetic instead of 32-bit Date: Thu, 01 Feb 2018 09:45:31 -0500 (EST) Message-ID: <20180201.094531.310132736141169083.davem@davemloft.net> References: <20180201002407.GA1608@embeddedgus> Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit Cc: hswong3i@gmail.com, hlhung3i@gmail.com, kuznet@ms2.inr.ac.ru, yoshfuji@linux-ipv6.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, garsilva@embeddedor.com To: gustavo@embeddedor.com Return-path: In-Reply-To: <20180201002407.GA1608@embeddedgus> Sender: linux-kernel-owner@vger.kernel.org List-Id: netdev.vger.kernel.org From: "Gustavo A. R. Silva" Date: Wed, 31 Jan 2018 18:24:07 -0600 > Cast to s64 some variables and a macro in order to give the > compiler complete information about the proper arithmetic to > use. Notice that these elements are used in contexts that > expect expressions of type s64 (64 bits, signed). > > Currently such expression are being evaluated using 32-bit > arithmetic. > > Addresses-Coverity-ID: 200687 > Addresses-Coverity-ID: 200688 > Addresses-Coverity-ID: 200689 > Signed-off-by: Gustavo A. R. Silva Sorry, I'm not applying this, the domain of the input values means that the calculation cannot overflow.