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 14628322C for ; Sun, 18 Nov 2018 16:03:29 +0100 (CET) Received: from compute1.internal (compute1.nyi.internal [10.202.2.41]) by mailout.nyi.internal (Postfix) with ESMTP id 7D6BF20E69; Sun, 18 Nov 2018 10:03:28 -0500 (EST) Received: from mailfrontend2 ([10.202.2.163]) by compute1.internal (MEProxy); Sun, 18 Nov 2018 10:03:28 -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=WseGXmGcZa73vIaNHldNaXMJiWm6k47ohQWraLAE0P4=; b=TJmr/oUGXZ/J 7iX0hnEzQR56sSl6qPIB4RcB1kFAyUJ+ruOIWYI/0aAY8UPbY9H/KN5BcixY1+Hr Dnm71L1EKECopOBFn1GcerkQXOJgHJgVz+PwAKx7vrqB246iLQXamfPC6ByoNmK+ bhrP7fgceyofDSdofAl04asNmofNqyc= 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=WseGXmGcZa73vIaNHldNaXMJiWm6k47ohQWraLAE0 P4=; b=goZ6LCydTTTynmr5eaCpipS1yIri7EvkHDnXECFk6Vjr0uKPd3F3sFJ4S M6WEb92IP9ObRQjLvB/XFm+f0O3E+zy6NMMEKadO3DQSbAfWsikekrQ/nVVPnu34 m3kRPWp6MKiJ6VkMZuBYK/jg6PRm8gnwbhpcMySRV9twVrNrxTxDeNmCxk6yS4AC XLUTfXaokWtRmiqy6ehZdMWOMeCvviBId/TnIUP1ZJ516KaVmo971Wrt7d4ucN4x qRZl0cJAuEGXNjEhBFU9+3uwHonAHHFWXSc1uIpELgKtAQ74fpH3Wbhi+a3r70kg 9glWE0KdQUKjR/cw+p2skfHPrYW4w== 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 39639102F0; Sun, 18 Nov 2018 10:03:27 -0500 (EST) From: Thomas Monjalon To: Stephen Hemminger Cc: dev@dpdk.org, Ferruh Yigit Date: Sun, 18 Nov 2018 16:03:26 +0100 Message-ID: <128547554.QZfPCpo1WU@xps> In-Reply-To: <20181106214901.1392-2-stephen@networkplumber.org> References: <20181106214901.1392-1-stephen@networkplumber.org> <20181106214901.1392-2-stephen@networkplumber.org> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" Subject: Re: [dpdk-dev] [RFC 1/5] bus/pci: fix allocation of pci device path 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: Sun, 18 Nov 2018 15:03:29 -0000 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.