From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id C697BC4345F for ; Sat, 4 May 2024 11:59:10 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:In-Reply-To:MIME-Version:References: Message-ID:Subject:Cc:To:From:Date:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=LOoeACCCP6jTWkeX/Z/pdpWfKF26/XEv595PaF0rSNY=; b=K7iwvN8dNumeo2 MHawQWkwON4nq7Il8J3IX9T0JM+hpbeh25uV8VnnXjnBePJOtilBlNk4r7/zIUMZfHERJlzcfiHX7 dsdKCBW7ELLyGKjf7bOQFKfEHvUtzKaLTrqDQHhP1m57Sy0ylJMRWDICQbSB1FswncZldIBxFJitw QLJsbIxHpxcsPlCcqy4SrStT/4Ko2u5+mif5BQblCfPb6lZJUZeMtLTEsiaNdxrAd1IsbEwDz0tkJ h+Eh82nv2+pVWGTiF1gKR+4u/i8nqcJNOJDddVRBnvbHJxoHOAwAAasBbKXUyhfr8aZo71xJeNjdS OrP/BCyvtLd4aSg9GjVQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1s3E2b-00000001w4n-1sox; Sat, 04 May 2024 11:58:57 +0000 Received: from mail11.truemail.it ([217.194.8.81]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1s3E2W-00000001w0J-38By for linux-arm-kernel@lists.infradead.org; Sat, 04 May 2024 11:58:55 +0000 Received: from francesco-nb (93-49-2-63.ip317.fastwebnet.it [93.49.2.63]) by mail11.truemail.it (Postfix) with ESMTPA id 358DF1FC05; Sat, 4 May 2024 13:58:34 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=dolcini.it; s=default; t=1714823914; bh=Cxi2xIblwS9mptHHfMVehasWNU2Xj3zceCDJW5esh28=; h=From:To:Subject; b=0+jhOA9f8ALr+I2+CVVeXivn1jsPLgkjgQzNMkSP67tVBmbNWhaEDK7XMui370Tav QJH/Gbab/x1vGoOa6aULtSDxQbjUoeGtjaqbmdm+r4lg4/V/83uMNNWwLQOPN97Kuo FhxeB9Jg7DOA9q14ZAT9tt357TJKap9imbN/ctgawj91nGOOz3YOZXC9Ldwe54elGO YZ/hkc814KoX8VFz/XcOe8a34vlfzgkXcEZ3VMuq+0Qdlmy9zhxU3bD9Lb16jq2j3m 7rabgG7d42kr0USzKSaw7Mg1yUe6aVLpZVACwe13D9KDW/cJR6d1W7jk5Zjze9N/1C ZbVpGVPTNkkyQ== Date: Sat, 4 May 2024 13:58:28 +0200 From: Francesco Dolcini To: "Peng Fan (OSS)" Cc: Abel Vesa , Michael Turquette , Stephen Boyd , Shawn Guo , Sascha Hauer , Pengutronix Kernel Team , Fabio Estevam , Jacky Bai , Ye Li , Dong Aisheng , linux-clk@vger.kernel.org, imx@lists.linux.dev, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Abel Vesa , Peng Fan , Florin Pavelescu , Viorel Suman Subject: Re: [PATCH 07/18] clk: imx: pll14xx: potential integer overflow eliminated by casting to u64 Message-ID: <20240504115828.GA3666@francesco-nb> References: <20240504-imx-clk-v1-0-f7915489d58d@nxp.com> <20240504-imx-clk-v1-7-f7915489d58d@nxp.com> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <20240504-imx-clk-v1-7-f7915489d58d@nxp.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240504_045853_685885_691AB594 X-CRM114-Status: UNSURE ( 7.44 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Hello Peng, On Sat, May 04, 2024 at 08:49:00AM +0800, Peng Fan (OSS) wrote: > From: Florin Pavelescu > > Cast to u64, so that multiplications and additions will be done > in 64-bit arithmetic (and the results will also be 64-bit) > and the possibility of integer overflow is eliminated. > > Fix Unintentional integer overflow reported by Coverity Fixes tag if this is a fix? It would be interesting in general if this can be trigger in real life and with which side effects or if we are just silencing the tool _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel