Received: by 2002:ab2:7b86:0:b0:1f7:5705:b850 with SMTP id q6csp160882lqh; Fri, 3 May 2024 17:42:45 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXny9YLCYvST5bwCcdJcF0qe2B73i4yuOFFvpK6A3h0XNYmH9Jko7Uw0ZmkGoAQbXTKdpjnFqXjNW0GjJfJEcsoyyMKoXOdlAw88JWC1A== X-Google-Smtp-Source: AGHT+IEK0yBXU8Qh2P6AwtxuSpdTk6e86ga4BnPymnwSSbBiJBm0o1pN654zh+OHmZrGSdU45+FZ X-Received: by 2002:a17:902:ac98:b0:1ea:274:756e with SMTP id h24-20020a170902ac9800b001ea0274756emr4218175plr.21.1714783364890; Fri, 03 May 2024 17:42:44 -0700 (PDT) Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id c4-20020a170902c1c400b001df846506f5si1361996plc.584.2024.05.03.17.42.44 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 03 May 2024 17:42:44 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-168466-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@NXP1.onmicrosoft.com header.s=selector2-NXP1-onmicrosoft-com header.b=YTPSITgO; arc=fail (signature failed); spf=pass (google.com: domain of linux-kernel+bounces-168466-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-168466-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=nxp.com 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 sv.mirrors.kernel.org (Postfix) with ESMTPS id 56E75286011 for ; Sat, 4 May 2024 00:42:44 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 209A8185E; Sat, 4 May 2024 00:41:48 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=NXP1.onmicrosoft.com header.i=@NXP1.onmicrosoft.com header.b="YTPSITgO" Received: from EUR03-AM7-obe.outbound.protection.outlook.com (mail-am7eur03on2082.outbound.protection.outlook.com [40.107.105.82]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 1A2AA1AACC; Sat, 4 May 2024 00:41:43 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=40.107.105.82 ARC-Seal:i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714783307; cv=fail; b=QIGISLP1FDLJ+4R+8cbXnDiqevHfRTPD5n/hvtKdiKEVw1agxFz/OWZqFjHklndNNXvYb5v4k4Ld7YQwOfCiW+SII0Omcx8wHJJbzntaDcyIw9ipU6IkOaNzaRriEIKwEqaIzNH9X5+Q+05Lj394atphWAlBntmWl8GtVCek4Yw= ARC-Message-Signature:i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714783307; c=relaxed/simple; bh=ALKKAIPLFtEvvSEnwT7GaTl1G+mKLBFTKWPRdBXUeVk=; h=From:Date:Subject:Content-Type:Message-Id:References:In-Reply-To: To:Cc:MIME-Version; b=d6HTj8WILVLYCSyQA6iescVO0UA9/fgblsj0xcBosDmU+a3+A/LGk0wpzIgqAO2sNBEJbnh58iIHHLggZQvx9UWTUjBGrKXE7jWoNQp/Mq6ex8gQIBSLCAf0PyI5btmIv7JC0KZiubwSJ5vKS/BA65ZcTsl1p1k/m+VYRntYb2c= ARC-Authentication-Results:i=2; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=oss.nxp.com; spf=pass smtp.mailfrom=oss.nxp.com; dkim=pass (1024-bit key) header.d=NXP1.onmicrosoft.com header.i=@NXP1.onmicrosoft.com header.b=YTPSITgO; arc=fail smtp.client-ip=40.107.105.82 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=oss.nxp.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=oss.nxp.com ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=CdXXZ+fqxUnZuecoBlyRWhPPrFbGqJLCUx7+sc8UIytdJX3TpVrsp8yDeFQ/W1fp2RgIO6wG3c0N0oEA4laKa0SkNSVRKYDKGBHoAXxLQAHpD5jrRFIuR4f5boyPO2ywhxkyW5T2vEIXNNhBBZ47mprICR8NLSxZj2oyT+DzivQ3PBB/6gtAX0+l+t7sAmqAEe/yj729NDePCqlNjXs/doAu8fAY1xJVeLwVQkujHcxgGhcF40KLYsUEoLcVGKI9+fb5/Ts19bVYox8H931b4GiXM/7NQsx/eswUFgOIS9TlAk0FImPqDaKCocwqdm9uXIWizk/JJoRbxvhfEG4Vuw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=Gd6H0t/yI/bSoUA0/9la81Hj7KLRUVbJaaIyMyJ4tb4=; b=Kz32p+dufuC2WnmpECJ6bAsPEIXovRKfKDQze2vzYYnzgAoSZxG/0LJ0IKq95GTn3b2yBQ32Do/WbuhqoAPpZ4Zj7ojpb2ZKoLnDya1yE5eL8qtVpL2KR+sMkVTvU4afXfTz1faaul95P7w/wT/BrA1VufHOZVwSvT4J7BXgjQXceNzPGlLuzqKvkmyzKE28Nlxyy/mK0FvHO9Kj0I38bM2Uu1B5/UqFKEUaT3sGMXriQ3VEOwfKPJDZPlLkdwbqIf12/pbKAc4OseK1fgNl+Q7ogm1ktIK2NjwM/eIYZfgnH8uJLtqBfxv5S4RbeJZjc5yGjkIVZLf+j1dtdUqX6Q== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=oss.nxp.com; dmarc=pass action=none header.from=oss.nxp.com; dkim=pass header.d=oss.nxp.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=NXP1.onmicrosoft.com; s=selector2-NXP1-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=Gd6H0t/yI/bSoUA0/9la81Hj7KLRUVbJaaIyMyJ4tb4=; b=YTPSITgOd3akPj0oOnAfA/adnGYWU/jO/betVZMAttbHcYv2R+ZBpuvnfj9AdOn1hrD02XncqWyYpJ2lxxESBPhO/vBtTkx2d04aYDspuku/paUzuNgtfQ0Y69VxHKrLvPbDLlu9JFv3z0bAeeu4Wen1Acj7bmn5yEaeLCt1Weg= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=oss.nxp.com; Received: from DU0PR04MB9417.eurprd04.prod.outlook.com (2603:10a6:10:358::11) by PA4PR04MB7726.eurprd04.prod.outlook.com (2603:10a6:102:ea::6) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7544.29; Sat, 4 May 2024 00:41:41 +0000 Received: from DU0PR04MB9417.eurprd04.prod.outlook.com ([fe80::d30b:44e7:e78e:662d]) by DU0PR04MB9417.eurprd04.prod.outlook.com ([fe80::d30b:44e7:e78e:662d%4]) with mapi id 15.20.7544.029; Sat, 4 May 2024 00:41:41 +0000 From: "Peng Fan (OSS)" Date: Sat, 04 May 2024 08:49:00 +0800 Subject: [PATCH 07/18] clk: imx: pll14xx: potential integer overflow eliminated by casting to u64 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Message-Id: <20240504-imx-clk-v1-7-f7915489d58d@nxp.com> References: <20240504-imx-clk-v1-0-f7915489d58d@nxp.com> In-Reply-To: <20240504-imx-clk-v1-0-f7915489d58d@nxp.com> To: Abel Vesa , Michael Turquette , Stephen Boyd , Shawn Guo , Sascha Hauer , Pengutronix Kernel Team , Fabio Estevam , Jacky Bai , Ye Li , Dong Aisheng Cc: 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 X-Mailer: b4 0.12.3 X-Developer-Signature: v=1; a=ed25519-sha256; t=1714783747; l=1012; i=peng.fan@nxp.com; s=20230812; h=from:subject:message-id; bh=2UdxVIeKUK80+gL9caamcVMcYBZoguh0p2StT5CJdjU=; b=mAWBjvNWQhykSMMFGDAo5tfYl/Ef1TVTWQ/b1pc2IojjxoOMZdo+qn6NZ8QaxHr9aXGVayd7v Q0i60dKL0cKDgxO5nNpxRvuLFOT4Q9f3lOZgdG0ldocHmY71YPh30+G X-Developer-Key: i=peng.fan@nxp.com; a=ed25519; pk=I4sJg7atIT1g63H7bb5lDRGR2gJW14RKDD0wFL8TT1g= X-ClientProxiedBy: SI1PR02CA0055.apcprd02.prod.outlook.com (2603:1096:4:1f5::16) To DU0PR04MB9417.eurprd04.prod.outlook.com (2603:10a6:10:358::11) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: DU0PR04MB9417:EE_|PA4PR04MB7726:EE_ X-MS-Office365-Filtering-Correlation-Id: cf4feb8b-cbeb-4ead-615b-08dc6bd2f71a X-MS-Exchange-SharedMailbox-RoutingAgent-Processed: True X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230031|7416005|52116005|366007|1800799015|376005|921011|38350700005; X-Microsoft-Antispam-Message-Info: =?utf-8?B?SU5FZlVXUDg1VkdhcDlQOE9wcERZTDFZclMwRDlxSUhOTWd3UVBodFYyUUhs?= =?utf-8?B?c3BrdXM1aW9aZmpZWC9pYndPandXQU5RK2FTaHFXV0UySGJxcnE1UWovc3VQ?= =?utf-8?B?TU8wU1BleXBQcWFqaWJaR0twOENhWkRPK3ZJWGJ5ZTFwZUp5TG4rdS9aTkZ0?= =?utf-8?B?SFcrM004RVp1Y0lIUlNXMWlMbmtTWE9PekJNWVZEaloycmhKdThRN3lJdXB3?= =?utf-8?B?SDc4engzazVEVnBHYURTelBIWVFrWnlUYjAwZ1VJY3dIa0lId2kwblpvV2lQ?= =?utf-8?B?RnFTb0VheW42bHpEWlJpNFhNMGFRQjk4NkhQNHE4dys0RldMaTRBbjdnY0FK?= =?utf-8?B?d3p1ajRZd3EvUDRQZG9VNmkwV0RhSElBMkIrMy82MlNJT1M3VzBHaDQxTk5R?= =?utf-8?B?a0FwcVlaOVduY21ONnF5L3V5UW1nVGJkdmZncDRkcnVGcFlKUjY5VUZMT0p3?= =?utf-8?B?NlEySURRUHpIVEgxTHVKUzJOcmxmSXgvUjVOWk5BSmVCN2N4NGNYSm45cHVt?= =?utf-8?B?N3dkL1BCZGVFM2NEajh0V0ZoV2piRXl4ZUZLRmg1bHBYdXRTT1dYczgwWFdM?= =?utf-8?B?RVJ4MHI0aEZ3RXFKdllFY1U3cmZ5bjl3VE1ZeCtxaG93WC9pa1JQQkNlbVJO?= =?utf-8?B?ZXpsZXRvREptMjN5ZWEzdUpWTnlzT3p2emJ2elp5ZEVPTDBIb05MVkEyUlVn?= =?utf-8?B?cGc5cXllNGIzNEhvUHM4ZTFNUzFpa1p6TDdRb1g0U1ZMQjYvaHdzcGxBN0Mv?= =?utf-8?B?U21tTCtXVFZpSGk1bktZanZlS09ockdjbmFOUGRFV3RJTHFkb04yby9xYU1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KVlc5ek5DU3VjMkpi?= =?utf-8?B?ZzFBeDNCNGxRVGJhQ2FST0VWK1dpWnNqTmFTS3h3c3M2T3FvZW5tUUxwb2w5?= =?utf-8?Q?wEeLajY6c9roudl71DHvTkUJkZLtDUVz25b60=3D?= X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:DU0PR04MB9417.eurprd04.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230031)(7416005)(52116005)(366007)(1800799015)(376005)(921011)(38350700005);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?B?QWlENk9PcGJlUXVxUDgrNEZYaTBuc2I5amVHS2J3Z2tOTzdjY3RZQ1V3dGVE?= =?utf-8?B?QzdId01USXZERnQyaHhlRDArUGs4T3daZW1qTlZGOG9lUFd6V05obk1Ebk5q?= =?utf-8?B?MkRiSXZCbit1S2ZlcFFva3F1K3oxVkpTNFJTOHdRUUpiRjlrVzNNTkJzK3Nw?= =?utf-8?B?YWhxSnlzVHF1TzhOL3JHbGd6KzZoR0laV0JIVEZ6NmdxODEzdjJlMWtFVTN3?= =?utf-8?B?Y1BMTHdVeEVtaTc5TlRMYUg4Q3BlejhtSHBqR2lIZHVOdGJZWEV6UkU2MFZN?= =?utf-8?B?L3RQeTlwN1Y1ZG5UWXlPdTMxTFpYTUxiMmRSN2VoeTZMcndNSVV6VGJOando?= =?utf-8?B?bmdFOGVYRnhiSG9odzdaVjFVb2hZRVF0cXRxY3RqY2tpem9qOGljeWJMMTcr?= =?utf-8?B?c0F6RlZoTWp4N1VJRkZOUERBZlhlNXhtbGVpQmNuZzdSd01MdGxzYmZVcmpC?= =?utf-8?B?aGNQaTlVRlYvY3RxT01kMWRVZWpjZ2s4MjVOalBDVndyZldSL2g2RDBlYzdy?= =?utf-8?B?YjcwMmJHMmdzMW8zTDZ2N0Z6MkRjY1FO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RWw3ZDJUendISS9nUlF2SHRLU3NRT3ozdFVHaUl2QUlJOTNrM3dHRCt4SUVX?= =?utf-8?B?Y203TXk5UlhzVS9zMmgyWnh0NTQvYnpKcWNFemFUdjFjQ2w3MmplMkNRSzA3?= =?utf-8?B?Q3l2b1FBYTZEL21Scnk0TTZEVkNqY0RYWEFVVUczeEtNNC9TVFR1QmIzY0NO?= =?utf-8?B?Y2NHMHlxN2taT0k5Q0FocktQVEpVc3JwRnVaSThYcmg2TGd1dUMydzhhSTRQ?= =?utf-8?B?TFBLN0cyM1ZJOUswV2lqd2dqVlp6MXV1ek5pKy9ZeU5XTHVjcDNyOXJTZTA0?= =?utf-8?B?WWhtdHA1dGpXYXJBRFBDbUhzK21Gbnk4VUdhUDNMcnFTeVNiakNNeGJpdmpP?= =?utf-8?B?SzVTZFRWSyt6NDZySlFVeTdsVFRKSU9JekZ2UTVoUngrZnZ2OUJMbXlIRXY5?= =?utf-8?B?N1E0dHdRenduWmF5a3hpWFY3SWRVdWdpbnJ1RGpBclUvWml2NEEyelFBS0xQ?= =?utf-8?B?KzQram9xa3NNNnVKTmkrS1BJTHQrTFl3a0s5WitCdU1yTC8vRFdTdklidTlX?= =?utf-8?B?M0ZjQnE0VTRXZE5oL2hjVGxoZnlXcnI0QzBEYS95QnFUSGQ5U016VFNIK1dQ?= =?utf-8?B?N0dvVmhKVllCa3VzOS94ZXlDWWtSZ3pWYXRrWTllcmVvVloyMlJlQTZoZzhI?= =?utf-8?Q?vPJ7vaAHkZJfcwEhFZor1bNf6?= X-OriginatorOrg: oss.nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: cf4feb8b-cbeb-4ead-615b-08dc6bd2f71a X-MS-Exchange-CrossTenant-AuthSource: DU0PR04MB9417.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 04 May 2024 00:41:41.3516 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: 9+HsixEc4V9jtZdHKnMuJjLkDUP1W3YovuQgWleVt96+zD7bgI27hR1VCxTGxOLcxayfyr0jG04oji6FWsLAsA== X-MS-Exchange-Transport-CrossTenantHeadersStamped: PA4PR04MB7726 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 Reviewed-by: Viorel Suman Signed-off-by: Florin Pavelescu Signed-off-by: Peng Fan --- drivers/clk/imx/clk-pll14xx.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/clk/imx/clk-pll14xx.c b/drivers/clk/imx/clk-pll14xx.c index 6b2c849f8b71..78eedb1f4a79 100644 --- a/drivers/clk/imx/clk-pll14xx.c +++ b/drivers/clk/imx/clk-pll14xx.c @@ -118,7 +118,7 @@ static long pll14xx_calc_rate(struct clk_pll14xx *pll, int mdiv, int pdiv, u64 fout = prate; /* fout = (m * 65536 + k) * Fin / (p * 65536) / (1 << sdiv) */ - fout *= (mdiv * 65536 + kdiv); + fout *= ((u64)mdiv * 65536 + (u64)kdiv); pdiv *= 65536; do_div(fout, pdiv << sdiv); -- 2.37.1