Message ID | fdabc9134c7ceb7177cae88e457d4d829d5662d7.1729797209.git.davthompson@nvidia.com |
---|---|
State | New |
Headers | show
Return-Path: <kernel-team-bounces@lists.ubuntu.com> X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=lists.ubuntu.com (client-ip=185.125.189.65; helo=lists.ubuntu.com; envelope-from=kernel-team-bounces@lists.ubuntu.com; receiver=patchwork.ozlabs.org) Received: from lists.ubuntu.com (lists.ubuntu.com [185.125.189.65]) (using TLSv1.2 with cipher ECDHE-ECDSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4XZG5m0vglz1xx6 for <incoming@patchwork.ozlabs.org>; Fri, 25 Oct 2024 06:22:52 +1100 (AEDT) Received: from localhost ([127.0.0.1] helo=lists.ubuntu.com) by lists.ubuntu.com with esmtp (Exim 4.86_2) (envelope-from <kernel-team-bounces@lists.ubuntu.com>) id 1t43Pw-0005E2-RK; Thu, 24 Oct 2024 19:22:44 +0000 Received: from mail-mw2nam12on2047.outbound.protection.outlook.com ([40.107.244.47] helo=NAM12-MW2-obe.outbound.protection.outlook.com) by lists.ubuntu.com with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.86_2) (envelope-from <davthompson@nvidia.com>) id 1t43Pu-000591-LC for kernel-team@lists.ubuntu.com; Thu, 24 Oct 2024 19:22:42 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=rMGq11msQUR2ZNdSFhnZdfFHbDJFgXTkGuJgnx3cEg61ClJvQFi28Wy2+VpxceSKeWjSGBPYPUeVl0giNTTNpNOoUP1kKKJsxe1qwBVIWxDsxUB6/nEq/7V0dlZ6Cxu1cbvQ6yuOq8JOlUUCrvG7IiiH7G7b5ioRA3OX4tdy2kws2iJPr75eUlTyFNWRXIyari3D3DZdJX8WS8Fx8wVLWnyzIPAoQ+Eyh+o83m82RaUD37cYbgggom8GFCjbmsnVdTmSuklGH1vwTpCY7fQIzOTS0fHquWRBTFqr6xeqAh0aPKrCiYITOwt70/vKO8yXdBnMRcI7u7zZkLjOSob5tw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector10001; 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=UMr67loFIJcWNHyaHiCUFSwYf6zuXUAya8qSVCiJWDw=; b=AkVfqjeEf9PgxiVuUweJOp/Ps2hj9UUTzUDA2haQDK9qaNgNo5Shh4dbkvVLVGVgxFEg4tb+yMo3b1jHi8GivrOFieVXcJuGRquVhQUYLiTcmirCAFocC7CZ4zELyiHY/hwAOgql2Rawo6VdfNpBpKOTnx/EBpBmQut6NQ0XgtCIWFTye2V37Kwr7xAevSG+bgmS8c5U+w896OQEPrCZqJvFuasYj+MSkYwTUtc6EtTfufDMydE3UMtX2uB7A0sPtAwB2WGD3taiWP/stk4/j+pLixzytQ44DduLumYfpnE+hsKt0bf2SDhY5/LItK69ANM8js7r1WBeexn2vFqmhw== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 216.228.118.232) smtp.rcpttodomain=lists.ubuntu.com smtp.mailfrom=nvidia.com; dmarc=pass (p=reject sp=reject pct=100) action=none header.from=nvidia.com; dkim=none (message not signed); arc=none (0) Received: from DS7PR03CA0021.namprd03.prod.outlook.com (2603:10b6:5:3b8::26) by SA3PR12MB8801.namprd12.prod.outlook.com (2603:10b6:806:312::17) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8069.28; Thu, 24 Oct 2024 19:22:38 +0000 Received: from CY4PEPF0000E9DC.namprd05.prod.outlook.com (2603:10b6:5:3b8:cafe::80) by DS7PR03CA0021.outlook.office365.com (2603:10b6:5:3b8::26) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8093.18 via Frontend Transport; Thu, 24 Oct 2024 19:22:38 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 216.228.118.232) smtp.mailfrom=nvidia.com; dkim=none (message not signed) header.d=none;dmarc=pass action=none header.from=nvidia.com; Received-SPF: Pass (protection.outlook.com: domain of nvidia.com designates 216.228.118.232 as permitted sender) receiver=protection.outlook.com; client-ip=216.228.118.232; helo=mail.nvidia.com; pr=C Received: from mail.nvidia.com (216.228.118.232) by CY4PEPF0000E9DC.mail.protection.outlook.com (10.167.241.75) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8093.14 via Frontend Transport; Thu, 24 Oct 2024 19:22:37 +0000 Received: from drhqmail202.nvidia.com (10.126.190.181) by mail.nvidia.com (10.127.129.5) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1544.4; Thu, 24 Oct 2024 12:22:27 -0700 Received: from drhqmail201.nvidia.com (10.126.190.180) by drhqmail202.nvidia.com (10.126.190.181) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1544.4; Thu, 24 Oct 2024 12:22:27 -0700 Received: from vdi.nvidia.com (10.127.8.14) by mail.nvidia.com (10.126.190.180) with Microsoft SMTP Server id 15.2.1544.4 via Frontend Transport; Thu, 24 Oct 2024 12:22:27 -0700 From: David Thompson <davthompson@nvidia.com> To: <kernel-team@lists.ubuntu.com>, <davthompson@nvidia.com> Subject: [SRU][J:linux-bluefield][PATCH v2 5/6] EDAC/bluefield: Fix potential integer overflow Date: Thu, 24 Oct 2024 15:22:21 -0400 Message-ID: <fdabc9134c7ceb7177cae88e457d4d829d5662d7.1729797209.git.davthompson@nvidia.com> X-Mailer: git-send-email 2.30.1 In-Reply-To: <cover.1729797209.git.davthompson@nvidia.com> References: <cover.1729797209.git.davthompson@nvidia.com> MIME-Version: 1.0 X-NV-OnPremToCloud: ExternallySecured X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: CY4PEPF0000E9DC:EE_|SA3PR12MB8801:EE_ X-MS-Office365-Filtering-Correlation-Id: 5f77527c-ab46-4b5e-31be-08dcf4613895 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; ARA:13230040|36860700013|376014|1800799024|82310400026; X-Microsoft-Antispam-Message-Info: wPFS2xDIz8IYocTb94aV6CBFtUAWN4/ekNpAOEtTbs8o7Rbk78xuTA/vnhTORCEYuu/fXfVJvwxXFvVJwzwGL4xTFuZN1+qOjWU5gIxqWjv4d5V7HrpcnY798kMFKktqhqKLIRtSxGngq8SotPbhRKBcPmN/MT/H4U3g8fJOqc6FlzCQdX0Z7GdQSOyU620BrrZC8WABSKV9iOTP+jyJaDOWbYrOWrIso6LZYTFWa/1u9ewPOmtEpszzeSiU3kFaK5ZZv1apYBIk4ZR7LJmH6hMNd7zRnWTHfHBzEPQI8DAM/Hfoy2grhD+E4/EETw9ZugcIW1MQo7QZkrfiP5eRDvwUlqDHC9pb0UfC52sTLyLh5toBVzSHLXGcVXvkwDBp3h9z2Wtz0HObEDQIdrGCt3jwKT4BDoBipFRjqgAerYYt80pto1k866rIgF3jsO0QMb6VzamiSiAus7/PQrOKH6Uox0txC8yd5fT7v6pDx6CnFBSlVCrGm1JXfWOEvOwrqR5Nttlb+L7nWFtSM63YxMRfDNQ2hJJJKJ4O5xix7i7xOyRA78WbYFbO/mmG4rc5SJa7XXvnne/JCTRuKHSoMc5DpwNhGdS1iJ+/EVB6cNhYWxJHpExplw9OKI5miPLKK0wzbJQDCnr4UkXvElNM2klPMHkI8r8E5Tvih8DVOoP1qBhzNUTfvqHwt4vJuH9FcdKJTHdOFL80PpWO+RECVPUF3i1we13EW/NQlRDza7raVFWrfAzwNvU5V5qfbz7g/1qBtAaf8MOS38qjcLW1VObIWmlt/ZvwT2jB/pDLGKHXRzexRZJomd6IAb15kZsdBoB5JTygdRZYSiYRRS4aqeE2qSefP0+LGCmOGNXk7aVDEYCIc29QCv5Nsk9D+n660iKiAw7IWl/pRWIK+tHEmy6VOT7MLAmkIszbFdwNk1qylBj2jESC4QwrYEU6vHh1fPcMl8ChLqG9HFEXN9/VtPWJSD7UFO1fzFPXCHlT1Qb/CeuEbVDc0A9JfCP9fNQHZ8Hq5kcsA0FdSitHW0BbiNDjZZIKuuZAhoHE0FIciF0mh7PpYNBItfoZXbMlpuQBWzbMRqm6XFry1voNYtd9Q9KWhG0Pl2jEV+AA52GhBawyjsOgz8zQwWuomucguYrjDD59xzpvvaGWev1P/lisW8nDeVdAAtRlu6GP26c/rtKQDyOenmyqLxdqghZdpJKLZyX6e0N9mbARVX/2Vq0A5mwSG2fNPPiu4p5+9cD8B1xJOlnsXbSDASHPF76D0GXPvrUuDnTRrcaVbHi+6SCanIyJEW0n+RSsztxk18SxuC4He8vcP2+MYW5nFkXca0mmoonMiALW7z1qSu7pPH6QLv69WIizxK5N1Es8RSQLUbE1UVgD2svbdgldYUU2shDm2WDz7dVi5orbkDrKwPwukQ== X-Forefront-Antispam-Report: CIP:216.228.118.232; CTRY:US; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:mail.nvidia.com; PTR:dc7edge1.nvidia.com; CAT:NONE; SFS:(13230040)(36860700013)(376014)(1800799024)(82310400026); DIR:OUT; SFP:1101; X-OriginatorOrg: Nvidia.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 24 Oct 2024 19:22:37.7137 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 5f77527c-ab46-4b5e-31be-08dcf4613895 X-MS-Exchange-CrossTenant-Id: 43083d15-7273-40c1-b7db-39efd9ccc17a X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=43083d15-7273-40c1-b7db-39efd9ccc17a; Ip=[216.228.118.232]; Helo=[mail.nvidia.com] X-MS-Exchange-CrossTenant-AuthSource: CY4PEPF0000E9DC.namprd05.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: SA3PR12MB8801 Received-SPF: softfail client-ip=40.107.244.47; envelope-from=davthompson@nvidia.com; helo=NAM12-MW2-obe.outbound.protection.outlook.com X-BeenThere: kernel-team@lists.ubuntu.com X-Mailman-Version: 2.1.20 Precedence: list List-Id: Kernel team discussions <kernel-team.lists.ubuntu.com> List-Unsubscribe: <https://lists.ubuntu.com/mailman/options/kernel-team>, <mailto:kernel-team-request@lists.ubuntu.com?subject=unsubscribe> List-Archive: <https://lists.ubuntu.com/archives/kernel-team> List-Post: <mailto:kernel-team@lists.ubuntu.com> List-Help: <mailto:kernel-team-request@lists.ubuntu.com?subject=help> List-Subscribe: <https://lists.ubuntu.com/mailman/listinfo/kernel-team>, <mailto:kernel-team-request@lists.ubuntu.com?subject=subscribe> Cc: shravankr@nvidia.com Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: base64 Errors-To: kernel-team-bounces@lists.ubuntu.com Sender: "kernel-team" <kernel-team-bounces@lists.ubuntu.com> |
Series |
[SRU,J:linux-bluefield,v2,1/6] Revert "UBUNTU: SAUCE: bluefield-edac: Fix potential integer overflow"
|
expand
|
diff --git a/drivers/edac/bluefield_edac.c b/drivers/edac/bluefield_edac.c index 5b3164560648..0e539c107351 100644 --- a/drivers/edac/bluefield_edac.c +++ b/drivers/edac/bluefield_edac.c @@ -180,7 +180,7 @@ static void bluefield_edac_check(struct mem_ctl_info *mci) static void bluefield_edac_init_dimms(struct mem_ctl_info *mci) { struct bluefield_edac_priv *priv = mci->pvt_info; - int mem_ctrl_idx = mci->mc_idx; + u64 mem_ctrl_idx = mci->mc_idx; struct dimm_info *dimm; u64 smc_info, smc_arg; int is_empty = 1, i;