Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp201509ybi; Thu, 13 Jun 2019 14:19:32 -0700 (PDT) X-Google-Smtp-Source: APXvYqzk/Zx8vJIzQ7UHqsif0wS2FXaoLn94yVoxrirt41WR1WIfNh7CazPmY6aOUKPQMuGRDYnv X-Received: by 2002:a17:902:7007:: with SMTP id y7mr35462787plk.28.1560460772698; Thu, 13 Jun 2019 14:19:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1560460772; cv=none; d=google.com; s=arc-20160816; b=m0MBzlDef1b9Rf5LucPS0r6YuOlARqGtSsgSJwQ1HsoUZPmT736jaWNOShhhGhwbnC 8KL3izVA+mSGzl9J9Fiso4TmH8TTU4vZrkl1ABfNwf0YjrFPXoS7/HNxqmHSazpR/NjX wNg2prRuNn35iNt5xDoeoB80qhdB8E51/B+1pd+IqKXdddse9BHg1EzJd+tjhcwgtuUi qIR5RmTjqmnHeVfDeRydB20eqUEs4amiYMJCc1bVx0+7cv1p+Lowfj+/j+K6+anP41Fh tWymTY5rsk6kvqF8w+BFF2NkMrFvUME0D5BjL5yv5gIFSbxS5wHVFwpiUboGNty8hHKz FjhQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:content-transfer-encoding :dlp-reaction:dlp-version:dlp-product:content-language :accept-language:in-reply-to:references:message-id:date:thread-index :thread-topic:subject:cc:to:from; bh=NiB3EQVj9hkixySrOAknqvLMF6CmRcnIuBIcL+zPzq0=; b=efIZHXJcwN1MS/8qlbt3H9LTNnnGpmYpSIVt8mwA4DzH9+uOcJS/aDVGNkPqpVYZ1E E0Tsbd0f4Cextd3nN2kFy7CH7DuWwl8IuYkx3B+FjasUrkVjLik93ruvwKQ965aMFOyB CJeUg1FBNB6LdcGXG+FN4X/T1bXap7lVpJT6f0N0jfTdtkMq0dYE9xzQLr/2R15XyWyO TbnL1xvPIxwpCvhJtkXZt7GUA4U7qUGNkJPX1aUbimCTgk4TSOHyW3SnRoTuxOR8Y4kD zmEI0823yMM9j+EmKabahMAUYjiALRh7xQXdZb9wd15dcGe/o0s4XvaMnYJ0G8VrkWC4 rzpQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id i1si487436pld.344.2019.06.13.14.19.16; Thu, 13 Jun 2019 14:19:32 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728333AbfFMVR5 convert rfc822-to-8bit (ORCPT + 99 others); Thu, 13 Jun 2019 17:17:57 -0400 Received: from mga02.intel.com ([134.134.136.20]:28342 "EHLO mga02.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725747AbfFMVR4 (ORCPT ); Thu, 13 Jun 2019 17:17:56 -0400 X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga003.jf.intel.com ([10.7.209.27]) by orsmga101.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 13 Jun 2019 14:17:56 -0700 X-ExtLoop1: 1 Received: from orsmsx105.amr.corp.intel.com ([10.22.225.132]) by orsmga003.jf.intel.com with ESMTP; 13 Jun 2019 14:17:56 -0700 Received: from orsmsx153.amr.corp.intel.com (10.22.226.247) by ORSMSX105.amr.corp.intel.com (10.22.225.132) with Microsoft SMTP Server (TLS) id 14.3.408.0; Thu, 13 Jun 2019 14:17:55 -0700 Received: from orsmsx104.amr.corp.intel.com ([169.254.4.84]) by ORSMSX153.amr.corp.intel.com ([169.254.12.125]) with mapi id 14.03.0415.000; Thu, 13 Jun 2019 14:17:55 -0700 From: "Bowers, AndrewX" To: "intel-wired-lan@lists.osuosl.org" , "netdev@vger.kernel.org" CC: "kernel-janitors@vger.kernel.org" , "linux-kernel@vger.kernel.org" Subject: RE: [Intel-wired-lan] [PATCH][next] ixgbe: fix potential u32 overflow on shift Thread-Topic: [Intel-wired-lan] [PATCH][next] ixgbe: fix potential u32 overflow on shift Thread-Index: AQHVHGlXeNde2QC2RkO3vXKBp913h6aaIfLA Date: Thu, 13 Jun 2019 21:17:55 +0000 Message-ID: <26D9FDECA4FBDD4AADA65D8E2FC68A4A1D3ED66D@ORSMSX104.amr.corp.intel.com> References: <20190606131053.25103-1-colin.king@canonical.com> In-Reply-To: <20190606131053.25103-1-colin.king@canonical.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-titus-metadata-40: eyJDYXRlZ29yeUxhYmVscyI6IiIsIk1ldGFkYXRhIjp7Im5zIjoiaHR0cDpcL1wvd3d3LnRpdHVzLmNvbVwvbnNcL0ludGVsMyIsImlkIjoiOGEyYTkwNjQtMDBhYi00ZTdmLTk3MTUtNjMyNjI5NjA3NWU2IiwicHJvcHMiOlt7Im4iOiJDVFBDbGFzc2lmaWNhdGlvbiIsInZhbHMiOlt7InZhbHVlIjoiQ1RQX05UIn1dfV19LCJTdWJqZWN0TGFiZWxzIjpbXSwiVE1DVmVyc2lvbiI6IjE3LjEwLjE4MDQuNDkiLCJUcnVzdGVkTGFiZWxIYXNoIjoiZEMwc3NYdjBLRzhScytHdUx0dklDWnRkT1JhK3Q2Y3NJbHJBS0VMU0hTZnB0VnQ0RHF0ZDNpXC8xbEtUNzhCUXYifQ== x-ctpclassification: CTP_NT dlp-product: dlpe-windows dlp-version: 11.0.400.15 dlp-reaction: no-action x-originating-ip: [10.22.254.138] Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 8BIT MIME-Version: 1.0 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org > -----Original Message----- > From: Intel-wired-lan [mailto:intel-wired-lan-bounces@osuosl.org] On > Behalf Of Colin King > Sent: Thursday, June 6, 2019 6:11 AM > To: Keller, Jacob E ; Kirsher, Jeffrey T > ; David S . Miller ; > intel-wired-lan@lists.osuosl.org; netdev@vger.kernel.org > Cc: kernel-janitors@vger.kernel.org; linux-kernel@vger.kernel.org > Subject: [Intel-wired-lan] [PATCH][next] ixgbe: fix potential u32 overflow on > shift > > From: Colin Ian King > > The u32 variable rem is being shifted using u32 arithmetic however it is being > passed to div_u64 that expects the expression to be a u64. > The 32 bit shift may potentially overflow, so cast rem to a u64 before shifting > to avoid this. > > Addresses-Coverity: ("Unintentional integer overflow") > Fixes: cd4583206990 ("ixgbe: implement support for SDP/PPS output on X550 > hardware") > Fixes: 68d9676fc04e ("ixgbe: fix PTP SDP pin setup on X540 hardware") > Signed-off-by: Colin Ian King > --- > drivers/net/ethernet/intel/ixgbe/ixgbe_ptp.c | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) Tested-by: Andrew Bowers