Received: by 2002:ab2:7b86:0:b0:1f7:5705:b850 with SMTP id q6csp375382lqh; Sat, 4 May 2024 05:08:56 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWErFuWvBssGQpHarhdMVW7zYEdG6YFy5jQ6H4Pvd0/eVss/z4lucrJk+v8RCLqZuZaN0AXHXdZxSv+VzBLH9GFrK+Li4hwf9xLmWKkOw== X-Google-Smtp-Source: AGHT+IFlJBLzAUlzN2z4OeDvOEvA/iMUdLz8SZmT1zbQahaN0fAjH01L29yEllXvEXyLBnc/kvRJ X-Received: by 2002:a17:906:a404:b0:a59:a016:323b with SMTP id l4-20020a170906a40400b00a59a016323bmr1562883ejz.7.1714824536156; Sat, 04 May 2024 05:08:56 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1714824536; cv=pass; d=google.com; s=arc-20160816; b=swcj0AD+E9L3Gsuo59c/UpTK6JAtu6gBmPEDWZNChahG/XobZHfBWILmtatF07Y3Z2 3nZbv0ugsvFlYrGE0Pj56nuQY7Ku4nW+UliDoo9PCq3ZbeYwKU6DlyH2IC0EQBBrpShC EwlbS48Y/oqYRgYleXiWBzG9nanKaCp4KzwzkwnSZqdA0UP0TIOubcquiYYkBFhuzwKN VX8v6K8EZwgpmdkCaBkYKl2DxG0qKeu3QSUFqSPTE6B7sSqQAXLiQhIE/BRD347C0R2I WoKac8FoZXeF6hVvZcZfSsbUQp9V2oT3IgJDqgh5KdEdt3/KvimMZ45Nv1luC9ya/K+p ibew== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:dkim-signature; bh=Cxi2xIblwS9mptHHfMVehasWNU2Xj3zceCDJW5esh28=; fh=Ha8n5gEjl10OFXlcf38bxzHV2cpOoWoVJJMCLDfwGvQ=; b=r2wwnDevvCc0G/0om50ZwMN3CoJrLrTc6NL6DyWQ9TsUTIJ48abTgzV2OKf2gF9mrC XcOqlw7JA1KoE2kVQ7AEsAMD6BSsJgZjvGuxYrYmUaoubl1uSr2eKd16ZC7/LInfMCno RIH3Q9x6sVI6cMkEDNazzI06KKWhjEX1F7RpDTNDlSdjfGu2Lt9x0cx17B60QO9iP35p h28RX+zh/006R7MHLNzQ1xzqRHPJYIyMJGMxRci7QC/Jf8BffcdoQjKfRhPwdIicK94u fkFx/pbO4BtFyR3tsCp8Xf1B6pjMAR9qUUGMJE3bVzBchSoS+3oku/nCJi5Z0b1vSEFQ KXpQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@dolcini.it header.s=default header.b=0+jhOA9f; arc=pass (i=1 spf=pass spfdomain=dolcini.it dkim=pass dkdomain=dolcini.it dmarc=pass fromdomain=dolcini.it); spf=pass (google.com: domain of linux-kernel+bounces-168632-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-168632-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=dolcini.it Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id hq36-20020a1709073f2400b00a59a0b2cf62si969140ejc.13.2024.05.04.05.08.56 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 04 May 2024 05:08:56 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-168632-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@dolcini.it header.s=default header.b=0+jhOA9f; arc=pass (i=1 spf=pass spfdomain=dolcini.it dkim=pass dkdomain=dolcini.it dmarc=pass fromdomain=dolcini.it); spf=pass (google.com: domain of linux-kernel+bounces-168632-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-168632-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=dolcini.it Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id C0D031F22057 for ; Sat, 4 May 2024 12:08:55 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 3094A20DC8; Sat, 4 May 2024 12:08:50 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=dolcini.it header.i=@dolcini.it header.b="0+jhOA9f" Received: from mail11.truemail.it (mail11.truemail.it [217.194.8.81]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 1BB1E1CA92; Sat, 4 May 2024 12:08:47 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=217.194.8.81 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714824529; cv=none; b=JeX4f8P/k44Yqtby/U4ueZ9bWiex6DLPOqA/mk/PfDMwf7Mmk3eaUVa6/0zRo82J6YzGQiEKlgcqJgSk9bKU7yYINNNxD16+Tydd+SoRfqvdOjyD6Z6IRUmmWEl9WLE6wOgAZSUPGN7irErr9996Z1WWxQahJd8pyJqB7Sk7Shs= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714824529; c=relaxed/simple; bh=0fbCjFhfYivYU11Wu3h38hXHo8+BtXT5qZrpETfvx4U=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=Xp4+LZqk8aUpHlhO7ksUpvIXmsmBcy7QyN1BS7Ni1WTvHnELoyNP2VaFaNH9OOeFZ62Jsn1tN4lsM4sdM0hGFiIAFCfzo+qbW97xMD1BmJzAyDnQt3bueoOrPYJAEwnaXu/SYRm070vBgbazlrc3Hph0VXA88De+RAT9uSTQtUY= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=dolcini.it; spf=pass smtp.mailfrom=dolcini.it; dkim=pass (2048-bit key) header.d=dolcini.it header.i=@dolcini.it header.b=0+jhOA9f; arc=none smtp.client-ip=217.194.8.81 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=dolcini.it Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=dolcini.it 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> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20240504-imx-clk-v1-7-f7915489d58d@nxp.com> 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