From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id A3DD0454E3; Mon, 1 Jul 2024 17:23:15 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 8F78C42686; Mon, 1 Jul 2024 17:23:15 +0200 (CEST) Received: from NAM12-BN8-obe.outbound.protection.outlook.com (mail-bn8nam12on2047.outbound.protection.outlook.com [40.107.237.47]) by mails.dpdk.org (Postfix) with ESMTP id 3F3EC402CE for ; Mon, 1 Jul 2024 17:23:13 +0200 (CEST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=IJATaQ0lbu/FEh/h5N7jHxwnIap2pIKHWqbIIn8hlLREaC0kyadf/O0fQeKT6tREt9C7PLVmbOy4Eu5veXMI19V9AKc7kqiGptwITMJCb4FIZQel/XD+u5OSFhpRLWgzqTqWxVG8yO7xPTrh/NKsaJ9K7w1/wMAS/gf46MUXoM3MmbJBY8KDd/advP2Ua81bTBIIntiTusaPJw/zt9Lj4b7SLob49Ot0T4HwBe2jaY9ImMyJ6jXEalxDZt9yYzy/GhFAJ4XT6SNEsTNrunDX4xLSz1pnWgGezFhfWkxie1gZjB8daDJ9H62c4LDE1CexwY32X9ESz5Fv1WVbAey+0g== 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=4StcYCYmcmzhexBVhVzyTkfin5USHpkK6Y5h0qvsBBc=; b=DBMiBeK3UmdxS4xIglKU+jkRl5LO4gT4flMSLm62i9SKp91LjC+hahS0PD+I1C+8AtmLOjhAqELY4TXrjSRX5yIxzuMdEtDurRMtq3076JYLitL9kyOxLJntXipx11/1LcjYvAujEXNNcClXsRMLzr3t1zsxDKFegx1TxEcvyeKauwnWzt184kwHkagS7DcJQ19U+U8eR7Nygv+0lw6MTwF6XSC2GRYNsRX1kUU6Oce5RLUstvBe67l6eu2oVDfEAdnhdB4z+0CRUAd4VT4RWECzfD+OaZsuuTrvN4bIshVGzK71T0tPfBbrsv3wxXE7KwtmOyTHJh0p9+X25O/OZg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 165.204.84.17) smtp.rcpttodomain=dpdk.org smtp.mailfrom=amd.com; dmarc=pass (p=quarantine sp=quarantine pct=100) action=none header.from=amd.com; dkim=none (message not signed); arc=none (0) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amd.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=4StcYCYmcmzhexBVhVzyTkfin5USHpkK6Y5h0qvsBBc=; b=MDxqKuPY9Tsh1o5+nDZJvFvY5Zhc5MGMf/VCpPesMhgz6g54y4o3jmqsft9z77/yWgE4Kb1UxVQRunG/TjtmnaKf5ziDwp9px5VaEyJF1uTkQjrcxIj8HBtJmhPEt97qO2b+ym6SitYjtt6L+p3jeAG3BqCfDsdR/IT5Kri+7xQ= Received: from BL1P223CA0005.NAMP223.PROD.OUTLOOK.COM (2603:10b6:208:2c4::10) by SN7PR12MB6792.namprd12.prod.outlook.com (2603:10b6:806:267::16) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7719.33; Mon, 1 Jul 2024 15:23:05 +0000 Received: from BL6PEPF00022570.namprd02.prod.outlook.com (2603:10b6:208:2c4:cafe::ec) by BL1P223CA0005.outlook.office365.com (2603:10b6:208:2c4::10) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7719.33 via Frontend Transport; Mon, 1 Jul 2024 15:23:05 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 165.204.84.17) smtp.mailfrom=amd.com; dkim=none (message not signed) header.d=none;dmarc=pass action=none header.from=amd.com; Received-SPF: Pass (protection.outlook.com: domain of amd.com designates 165.204.84.17 as permitted sender) receiver=protection.outlook.com; client-ip=165.204.84.17; helo=SATLEXMB04.amd.com; pr=C Received: from SATLEXMB04.amd.com (165.204.84.17) by BL6PEPF00022570.mail.protection.outlook.com (10.167.249.38) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.20.7741.18 via Frontend Transport; Mon, 1 Jul 2024 15:23:05 +0000 Received: from driver-dev1.pensando.io (10.180.168.240) by SATLEXMB04.amd.com (10.181.40.145) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.39; Mon, 1 Jul 2024 10:23:03 -0500 From: Andrew Boyer To: CC: Andrew Boyer Subject: [PATCH 2/2] crypto/ionic: fix sign extension in queue allocation Date: Mon, 1 Jul 2024 08:22:50 -0700 Message-ID: <20240701152250.46978-2-andrew.boyer@amd.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20240701152250.46978-1-andrew.boyer@amd.com> References: <20240701152250.46978-1-andrew.boyer@amd.com> MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [10.180.168.240] X-ClientProxiedBy: SATLEXMB04.amd.com (10.181.40.145) To SATLEXMB04.amd.com (10.181.40.145) X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: BL6PEPF00022570:EE_|SN7PR12MB6792:EE_ X-MS-Office365-Filtering-Correlation-Id: 0cb2f7de-3c15-4888-f3bd-08dc99e1b465 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; ARA:13230040|82310400026|1800799024|376014|36860700013; X-Microsoft-Antispam-Message-Info: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Onf394hcw7pUtTXsVf/9P0tzFhnQ3TSL/i/b?= =?us-ascii?Q?/fb//eCugit5dIh9ySSJm8CCcawmgRw1S4LJTyiYmm3HZFBRZgckZXJ4sbry?= =?us-ascii?Q?YYf0QN15f0jKurR1yO46yE2zLGqMQ5o4RFyM3qVtNrBgSNfiVWEGHfrO0T8S?= =?us-ascii?Q?GVS9epdl79B8CZ2Ddavh3FQr0P/uyK7tguY/B06EY5nrsvvBauvRxOnB2q/P?= =?us-ascii?Q?JrShpaFIaNy+nfNK9Rznnj+HACleCKo8nMEGQhJv8TzopljmiEBD1KW0ZGO8?= =?us-ascii?Q?QnrxCaYeuIEM/Dgwkexx6VDbC7idWdBT5KmoIOqJqMnm+KBTW7hz6XcanEvJ?= =?us-ascii?Q?0M7smIMMsBzLTKqO3iqOsR+yi3h/OwJhnM/MIJ/Gj/3Zcwz9F5k+fEEMPev3?= =?us-ascii?Q?R7vEG258zPriyXbh1eh+rTHOST2vSpoHxEjq4yipQVk/uDb24QnQDQNTRPat?= =?us-ascii?Q?Nnv9Ih42t69AH5BBbIc+aZboYW1rM/vEBqeFRwiuM9XBJRo5QDjOsyygtyVq?= =?us-ascii?Q?xkblQvNjG7xNGPxmczZTMeiiTrPDpFFjzZRL/Jw4H7kj1ocNSYPMK6WyEWYg?= =?us-ascii?Q?Lv4i4mKgco3IAKHzIJ8OiQxF2Rr7y8K8?= X-Forefront-Antispam-Report: CIP:165.204.84.17; CTRY:US; LANG:en; SCL:1; SRV:; IPV:CAL; SFV:NSPM; H:SATLEXMB04.amd.com; PTR:InfoDomainNonexistent; CAT:NONE; SFS:(13230040)(82310400026)(1800799024)(376014)(36860700013); DIR:OUT; SFP:1101; X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 01 Jul 2024 15:23:05.0539 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 0cb2f7de-3c15-4888-f3bd-08dc99e1b465 X-MS-Exchange-CrossTenant-Id: 3dd8961f-e488-4e60-8e11-a82d994e183d X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=3dd8961f-e488-4e60-8e11-a82d994e183d; Ip=[165.204.84.17]; Helo=[SATLEXMB04.amd.com] X-MS-Exchange-CrossTenant-AuthSource: BL6PEPF00022570.namprd02.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: SN7PR12MB6792 X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org (uint16_t * uint16_t) promoted to uint64_t has a sign extension problem reported by Coverity. Cast one arg to uint64_t first to eliminate the sign extension. Coverity issue: 426422 Coverity issue: 426427 Fixes: 2c1662bb53ca ("crypto/ionic: add adminq command") Signed-off-by: Andrew Boyer --- drivers/crypto/ionic/ionic_crypto_main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/crypto/ionic/ionic_crypto_main.c b/drivers/crypto/ionic/ionic_crypto_main.c index 9960dc3a6d..f670d6e658 100644 --- a/drivers/crypto/ionic/ionic_crypto_main.c +++ b/drivers/crypto/ionic/ionic_crypto_main.c @@ -88,7 +88,7 @@ iocpt_q_init(struct iocpt_queue *q, uint8_t type, uint32_t index, q->tail_idx = 0; q->info = rte_calloc_socket("iocpt", - num_descs * num_segs, sizeof(void *), + (uint64_t)num_descs * num_segs, sizeof(void *), rte_mem_page_size(), socket_id); if (q->info == NULL) { IOCPT_PRINT(ERR, "Cannot allocate queue info"); -- 2.17.1