From mboxrd@z Thu Jan 1 00:00:00 1970 From: Thomas Monjalon Subject: Re: [RFC 1/5] bus/pci: fix allocation of pci device path Date: Sun, 18 Nov 2018 16:03:26 +0100 Message-ID: <128547554.QZfPCpo1WU@xps> References: <20181106214901.1392-1-stephen@networkplumber.org> <20181106214901.1392-2-stephen@networkplumber.org> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7Bit Cc: dev@dpdk.org, Ferruh Yigit To: Stephen Hemminger Return-path: Received: from out4-smtp.messagingengine.com (out4-smtp.messagingengine.com [66.111.4.28]) by dpdk.org (Postfix) with ESMTP id 14628322C for ; Sun, 18 Nov 2018 16:03:29 +0100 (CET) In-Reply-To: <20181106214901.1392-2-stephen@networkplumber.org> List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" 06/11/2018 22:48, Stephen Hemminger: > 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") > Signed-off-by: Stephen Hemminger This patch is RFC but Ferruh (UIO maintainer) was not Cc'ed. I feel this bug is critical. Please advise.