Received: by 10.223.176.5 with SMTP id f5csp213274wra; Thu, 1 Feb 2018 18:47:48 -0800 (PST) X-Google-Smtp-Source: AH8x224/z7bv4tDujnPbG6aNz24sqBfJ1DCNxAodBOTpOYcrjb/Z/zyv+uJFOrQ6MFq4JEvxnmWv X-Received: by 2002:a17:902:6d09:: with SMTP id s9-v6mr34105396plk.176.1517539668778; Thu, 01 Feb 2018 18:47:48 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1517539668; cv=none; d=google.com; s=arc-20160816; b=xbpNtBPxgh3yQLG8kL0dEKcROdOu6CLN90SEV2Fzdy0LlMHOqnN3Ib8K8VaLJ8gF23 M5kpXwQIRi4TZLFyvsYlG6/iwwvjTRlED46DKu4Rb7pvPxOMCYihBLT7RmqjvdiDYGDn 43na/S3wYSK5LRnlW2Uji6dpDgCEfehVrur3HeBhcYXR9AkC/mmEDlYrpGhO/kQsG22M Aa4QtFiyyXuBnbuSu23+X+zUbHQkoFUzGdQ9U05Y2nIpYmOiYfi9ubc/0Z2D6XNZ5Ulx BAC35z6Y8XzI9B24fUPJGemNu6q9/EPhcOXy6ppD7BbZvvNHcPnB0y0bMVkRFWDHhC9d /xMA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-disposition:mime-version :user-agent:in-reply-to:references:subject:cc:to:from:message-id :date:arc-authentication-results; bh=Rt4gv00yNQWsdp0D0arJG2uyJGnHeTRVQ6uX1UXZ74E=; b=ZmwdWx0o5Ld9ZpMRG3ctANV3dNLi+U0V0Xy6cs9GCdtn3k3Zco0HEO+UruVcJ6MeiJ mVihPj4KQjpEzDzCtQFRRCoY7gtBS4TGIpektvPWNmch1GLLWhkjG/q7yYSGQ8AM51YT G8hKRj1A6vtKBlSqbPGO+OOflHlixKvKwpB5MwOrGFGHLCWgfCoAafeTVoWkE+yjB6SE CfPRWw6KmVcw6C8kLa2JRX+3+BX99VXc+83/53Avd6xQ4Hk3pRTxhfEJS9Wwi0UN7Oj6 IHtk0BsDl5U8T/KlNeSk4Clw+5R9plt87u6z7wk2FB37gHeCmSQjEZYhTqtJpiHDAk4T sPEQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id a3si675756pgn.429.2018.02.01.18.47.33; Thu, 01 Feb 2018 18:47:48 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755249AbeBBCjC (ORCPT + 99 others); Thu, 1 Feb 2018 21:39:02 -0500 Received: from gateway32.websitewelcome.com ([192.185.145.113]:11103 "EHLO gateway32.websitewelcome.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754124AbeBBCiw (ORCPT ); Thu, 1 Feb 2018 21:38:52 -0500 Received: from cm13.websitewelcome.com (cm13.websitewelcome.com [100.42.49.6]) by gateway32.websitewelcome.com (Postfix) with ESMTP id A2FB68AE1 for ; Thu, 1 Feb 2018 20:38:51 -0600 (CST) Received: from gator4166.hostgator.com ([108.167.133.22]) by cmsmtp with SMTP id hRFbeIdp3BUMKhRFbeMkF5; Thu, 01 Feb 2018 20:38:51 -0600 Received: from gator4166.hostgator.com ([108.167.133.22]:57693) by gator4166.hostgator.com with esmtpsa (TLSv1.2:ECDHE-RSA-AES128-GCM-SHA256:128) (Exim 4.89_1) (envelope-from ) id 1ehRFb-000ym8-8A; Thu, 01 Feb 2018 20:38:51 -0600 Received: from 189.152.201.65 ([189.152.201.65]) by gator4166.hostgator.com (Horde Framework) with HTTPS; Thu, 01 Feb 2018 20:38:51 -0600 Date: Thu, 01 Feb 2018 20:38:51 -0600 Message-ID: <20180201203851.Horde.ldq0eUL3uh14qcIIJ75epb2@gator4166.hostgator.com> From: "Gustavo A. R. Silva" To: David Miller Cc: gustavo@embeddedor.com, hswong3i@gmail.com, hlhung3i@gmail.com, kuznet@ms2.inr.ac.ru, yoshfuji@linux-ipv6.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] tcp_lp: use 64-bit arithmetic instead of 32-bit References: <20180201002407.GA1608@embeddedgus> <20180201.094531.310132736141169083.davem@davemloft.net> In-Reply-To: <20180201.094531.310132736141169083.davem@davemloft.net> User-Agent: Horde Application Framework 5 Content-Type: text/plain; charset=utf-8; format=flowed; DelSp=Yes MIME-Version: 1.0 Content-Disposition: inline X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - gator4166.hostgator.com X-AntiAbuse: Original Domain - vger.kernel.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - embeddedor.com X-BWhitelist: no X-Source-IP: 108.167.133.22 X-Source-L: Yes X-Exim-ID: 1ehRFb-000ym8-8A X-Source: X-Source-Args: X-Source-Dir: X-Source-Sender: gator4166.hostgator.com [108.167.133.22]:57693 X-Source-Auth: garsilva@embeddedor.com X-Email-Count: 20 X-Source-Cap: Z3V6aWRpbmU7Z3V6aWRpbmU7Z2F0b3I0MTY2Lmhvc3RnYXRvci5jb20= X-Local-Domain: yes Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi David, Quoting David Miller : > 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. Yep, that's fine. Thanks for the feedback. -- Gustavo