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 32AC71B063; Thu, 12 Jul 2018 23:44:48 +0200 (CEST) Received: from compute1.internal (compute1.nyi.internal [10.202.2.41]) by mailout.nyi.internal (Postfix) with ESMTP id CA55F2244A; Thu, 12 Jul 2018 17:44:47 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute1.internal (MEProxy); Thu, 12 Jul 2018 17:44:47 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=monjalon.net; h= cc:content-transfer-encoding:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-me-sender :x-me-sender:x-sasl-enc; s=mesmtp; bh=TMmn3NYVz98PM4FyPPOAMFomWh bKPLkWIzuUgLHrp6k=; b=MtxQ03WmuuYC2qdm3xCSuNHZXnKBQTkNPxVI/dcwOD Rtmmv3Lj4qdADZhQdp+UhE4ufMcHMJ3qNftB9hUbL2FEwKBeHpcRhxRu6qzeRL9d C8ppA5hTWWn87bfjRlX61xnrRb+QGCxLfqK1VYNnrNzIAHlwJZquG8JqxUCN/ard Y= 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-sender:x-me-sender:x-sasl-enc; s=fm3; bh=TMmn3N YVz98PM4FyPPOAMFomWhbKPLkWIzuUgLHrp6k=; b=RC488QFC7BB8tLcM1Ih/CA WAcBGGRC9m7YUeX0FgDi5tCXu13ktyUGn40FWi3IxbHKeMxLXOPPq5XXkoeIpemH oi43olE/aXzVaI7yxO8yZLqUQM5e08R07nO4GbVjc+YhvMzSg4vqGWuVSBfGUjMA WHPOgU0aJlR+3tQzXZYEJV5KKfLylF3yin53qVn4rSJbwpy8IFejTtcPJShQKv+v 8vWQtwdzCL86W6tZwmaxZtF1gLB44ZjyTpggWiO97tplzyH9kRdyU+LdfmJD84We /g8/gyuskJQVgs2HYMIjcNL/s9q/kiF848Dm5kTNcN+4jSswi8oqd7UmgLXFPtnA == X-ME-Proxy: X-ME-Sender: Received: from xps.localnet (184.203.134.77.rev.sfr.net [77.134.203.184]) by mail.messagingengine.com (Postfix) with ESMTPA id D9F2E10277; Thu, 12 Jul 2018 17:44:46 -0400 (EDT) From: Thomas Monjalon To: Dariusz Stojaczyk Cc: stable@dpdk.org, dev@dpdk.org, Anatoly Burakov Date: Thu, 12 Jul 2018 23:44:45 +0200 Message-ID: <14585841.IaoissdTeI@xps> In-Reply-To: <1528090421-175748-1-git-send-email-dariuszx.stojaczyk@intel.com> References: <1527860679-110206-1-git-send-email-dariuszx.stojaczyk@intel.com> <1528090421-175748-1-git-send-email-dariuszx.stojaczyk@intel.com> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" Subject: Re: [dpdk-dev] [dpdk-stable] [PATCH v3] memory: fix segfault on rte_mem_virt2memseg() call with invalid addr 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: Thu, 12 Jul 2018 21:44:48 -0000 04/06/2018 07:33, Dariusz Stojaczyk: > When trying to use it with an address that's not > managed by DPDK it would segfault due to a missing > check. The doc says this function returns either > a pointer or NULL, so let it do so. > > Fixes: 66cc45e293ed ("mem: replace memseg with memseg lists") > Cc: anatoly.burakov@intel.com > Cc: stable@dpdk.org > > Signed-off-by: Dariusz Stojaczyk > Acked-by: Anatoly Burakov Applied, thanks