From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga07.intel.com (mga07.intel.com [134.134.136.100]) by dpdk.org (Postfix) with ESMTP id D893614EC for ; Fri, 12 May 2017 13:04:17 +0200 (CEST) Received: from fmsmga006.fm.intel.com ([10.253.24.20]) by orsmga105.jf.intel.com with ESMTP; 12 May 2017 04:04:16 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.38,329,1491289200"; d="scan'208";a="101257015" Received: from irsmsx154.ger.corp.intel.com ([163.33.192.96]) by fmsmga006.fm.intel.com with ESMTP; 12 May 2017 04:04:16 -0700 Received: from irsmsx109.ger.corp.intel.com ([169.254.13.12]) by IRSMSX154.ger.corp.intel.com ([169.254.12.233]) with mapi id 14.03.0319.002; Fri, 12 May 2017 12:04:15 +0100 From: "Burakov, Anatoly" To: Alejandro Lucero , "dev@dpdk.org" Thread-Topic: [PATCH] vfio: fix array bounds check Thread-Index: AQHSywkhRQkoUe6CyUSWvzVlR/E8XqHwiNMg Date: Fri, 12 May 2017 11:04:15 +0000 Message-ID: References: <1494584305-36279-1-git-send-email-alejandro.lucero@netronome.com> In-Reply-To: <1494584305-36279-1-git-send-email-alejandro.lucero@netronome.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-ctpclassification: CTP_PUBLIC x-titus-metadata-40: eyJDYXRlZ29yeUxhYmVscyI6IiIsIk1ldGFkYXRhIjp7Im5zIjoiaHR0cDpcL1wvd3d3LnRpdHVzLmNvbVwvbnNcL0ludGVsMyIsImlkIjoiNGMwNjYzM2ItYmUwOS00ZmU2LWJjNTQtOWRlMDQ2MzEyYmQ0IiwicHJvcHMiOlt7Im4iOiJDVFBDbGFzc2lmaWNhdGlvbiIsInZhbHMiOlt7InZhbHVlIjoiQ1RQX1BVQkxJQyJ9XX1dfSwiU3ViamVjdExhYmVscyI6W10sIlRNQ1ZlcnNpb24iOiIxNi41LjkuMyIsIlRydXN0ZWRMYWJlbEhhc2giOiJ2SEk3ZmdXelZEZUFsU0h0aFpxWnF2czBOZTllRzRmUkQyU0hDZjdOS1JZPSJ9 dlp-product: dlpe-windows dlp-version: 10.0.102.7 dlp-reaction: no-action x-originating-ip: [163.33.239.180] Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Subject: Re: [dpdk-dev] [PATCH] vfio: fix array bounds check X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 12 May 2017 11:04:18 -0000 > From: Alejandro Lucero [mailto:alejandro.lucero@netronome.com] > Sent: Friday, May 12, 2017 11:18 AM > To: dev@dpdk.org > Cc: Burakov, Anatoly > Subject: [PATCH] vfio: fix array bounds check >=20 > Checking against VFIO_MAX_GROUPS goes beyond the maximum array > index which should be (VFIO_MAX_GROUPS - 1). >=20 > Fixes: 94c0776b1bad("support hotplug") > Coverity issue: 144555 > Coverity issue: 144556 > Coverity issue: 144557 >=20 > Signed-off-by: Alejandro Lucero Acked-by: Anatoly Burakov