From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from out4-smtp.messagingengine.com (out4-smtp.messagingengine.com [66.111.4.28]) by dpdk.org (Postfix) with ESMTP id A530B1B615; Sun, 25 Nov 2018 11:53:32 +0100 (CET) Received: from compute1.internal (compute1.nyi.internal [10.202.2.41]) by mailout.nyi.internal (Postfix) with ESMTP id 3A5F021563; Sun, 25 Nov 2018 05:53:32 -0500 (EST) Received: from mailfrontend1 ([10.202.2.162]) by compute1.internal (MEProxy); Sun, 25 Nov 2018 05:53:32 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=monjalon.net; h= from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding:content-type; s=mesmtp; bh=4YeHAnTM04NPlWA1fyK1CQu+oClTY/O8UBh3R4F2Cz0=; b=iZlfdcNnT9z1 HcVwuAax+3TR8FZAskDrJDAu3k3BOvA1DKwenWhftbHIdBbCDAiHbM5Qn1rQBG8s 5I4YZyfJ1wnxxkmkedAVUWFnmIJDG0984fJ0/LLvSOwZAkfJYToRApiG9btsaqm3 OlACmfY8mYOCjlfd8jME2+l3gvnDQ9o= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:references :subject:to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender :x-sasl-enc; s=fm1; bh=4YeHAnTM04NPlWA1fyK1CQu+oClTY/O8UBh3R4F2C z0=; b=HemUv0s6fx5OyXOGD4gol1Bzob+pzWQcBjiK3P/Xnd8cmWWJxMspiVSVt zaQfQ2aJ4hH2Gcps6NbtxQy3O8l8ibN/rb7YHTjqMgCg/fPNAkPiGBnM3N1FFpfX gFESrWlvsa5/pqmv1xLO8smn4e9IbJqvR6IAEm1subPqTOJwdeKtJ+dxMprGoTVi hM0xTVBwzEJMZwHpgtMqXzUdBO0N26aovpaydbN+s5hcLHDZ0oCamobY/RT9SQSR YNMR3dU+PVznWIyqpkMwkGqooa8fiPtRuHURHRpnOPxb3YrPfw4r/rTZAlyf+RfJ Mb8lvuG6giYGB4SS5lZditiuPu5Jw== X-ME-Sender: X-ME-Proxy: Received: from xps.localnet (184.203.134.77.rev.sfr.net [77.134.203.184]) by mail.messagingengine.com (Postfix) with ESMTPA id A3BC4E407B; Sun, 25 Nov 2018 05:53:29 -0500 (EST) From: Thomas Monjalon To: Ferruh Yigit Cc: dev@dpdk.org, Maxime Coquelin , stable@dpdk.org, Stephen Hemminger Date: Sun, 25 Nov 2018 11:53:28 +0100 Message-ID: <8388084.hrQdYZYyag@xps> In-Reply-To: References: <20181106214901.1392-2-stephen@networkplumber.org> <20181123002945.36697-1-ferruh.yigit@intel.com> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" Subject: Re: [dpdk-stable] [dpdk-dev] [PATCH] bus/pci: fix allocation of PCI device path X-BeenThere: stable@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: patches for DPDK stable branches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 25 Nov 2018 10:53:32 -0000 23/11/2018 12:01, Maxime Coquelin: > On 11/23/18 1:29 AM, Ferruh Yigit wrote: > > The pci_resource_by_index called strlen() on uninitialized > > memory which would lead to the wrong size of memory allocated > > for the path portion of the resource map. This would either cause > > excessively large allocation, or worse memory corruption. > > > > Coverity Issue: 300868 > > Fixes: ea9d56226e72 ("pci: introduce function to map uio resource by index") > > Cc: stable@dpdk.org > > > > Signed-off-by: Stephen Hemminger > > Signed-off-by: Ferruh Yigit > > Reviewed-by: Maxime Coquelin Applied, thanks