From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: <thomas@monjalon.net> Received: from out1-smtp.messagingengine.com (out1-smtp.messagingengine.com [66.111.4.25]) by dpdk.org (Postfix) with ESMTP id 89E311B247 for <dev@dpdk.org>; Mon, 9 Oct 2017 22:56:02 +0200 (CEST) Received: from compute1.internal (compute1.nyi.internal [10.202.2.41]) by mailout.nyi.internal (Postfix) with ESMTP id E2F9A20DD7; Mon, 9 Oct 2017 16:56:01 -0400 (EDT) Received: from frontend1 ([10.202.2.160]) by compute1.internal (MEProxy); Mon, 09 Oct 2017 16:56:01 -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:x-sasl-enc; s=mesmtp; bh=fwWRuvlEyNbvW91 mS7W6uWmOHinjDSPdUJPDxqCW/74=; b=Sml2Q+Q44JBYMBnRecjo0+eyJuqIr2Z wXil7Wz+8MyvniR8Z57dqWLrWosmicua6JQjfwBiY6eVGEFJdzHr49MESe8P3GUS jdsLmkfa1YOTyfPuWN8xayABt941AJv+2d+p64btNYKbs2EP1SBU06H8DbADkWM8 3Shmbt5x3BH8= 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:x-sasl-enc; s= fm1; bh=fwWRuvlEyNbvW91mS7W6uWmOHinjDSPdUJPDxqCW/74=; b=hlCyyqzk iVmH4HLECOBYtIupWt47emdWRM79bL5d9pNjffdkoVHDPd41mI/X9rf8MxGuIhBC iV5Ps3DyPuTMRAfVCzqANx3TvnNKK662ZtyccXmiE45WjEEr6Kpze90kAyvHzEdR zb5TbEaKhBTixLpjN6MaOlYMpUGrlbhA9OjZAHOCmy5NMUbqz9ndNIy20HUGudMO xLcVpaMwHMv0bEZlL1jw9NHinHSV0difgQ7suGmGgXv/XiRMCzC5eqXz2r+J9jRr q3/hUu4bvEBhpwoInKbmY8i5tRXu/Bn9wH0JqKCJOsEktTGOT+v8VFiHqOjutYaH 3QBP+iuWGFLOvQ== X-ME-Sender: <xms:YeLbWSZ6PxdfiLvniPvpROfymIPExTbQYSNdurozkJg9JyzF7tYuFQ> X-Sasl-enc: D8ghGuGPJd5T8acUJs0omfXZybh/JkYnXGQhNYv3DIZ/ 1507582561 Received: from xps.localnet (184.203.134.77.rev.sfr.net [77.134.203.184]) by mail.messagingengine.com (Postfix) with ESMTPA id 84AD77F92C; Mon, 9 Oct 2017 16:56:01 -0400 (EDT) From: Thomas Monjalon <thomas@monjalon.net> To: Sergio Gonzalez Monroy <sergio.gonzalez.monroy@intel.com> Cc: dev@dpdk.org, Xueming Li <xuemingl@mellanox.com>, Stephen Hemminger <stephen@networkplumber.org> Date: Mon, 09 Oct 2017 22:56:00 +0200 Message-ID: <2516029.gVLHQDShuA@xps> In-Reply-To: <d2037a6d-4af9-c1cc-9127-6541182a91f6@intel.com> References: <20170823022926.169272-1-xuemingl@mellanox.com> <20170909073319.73174-2-xuemingl@mellanox.com> <d2037a6d-4af9-c1cc-9127-6541182a91f6@intel.com> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" Subject: Re: [dpdk-dev] [PATCH v3 2/2] eal/malloc: fix RTE malloc element free X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions <dev.dpdk.org> List-Unsubscribe: <http://dpdk.org/ml/options/dev>, <mailto:dev-request@dpdk.org?subject=unsubscribe> List-Archive: <http://dpdk.org/ml/archives/dev/> List-Post: <mailto:dev@dpdk.org> List-Help: <mailto:dev-request@dpdk.org?subject=help> List-Subscribe: <http://dpdk.org/ml/listinfo/dev>, <mailto:dev-request@dpdk.org?subject=subscribe> X-List-Received-Date: Mon, 09 Oct 2017 20:56:02 -0000 13/09/2017 14:06, Sergio Gonzalez Monroy: > On 09/09/2017 08:33, Xueming Li wrote: > > malloc_elem_free() is clearing(setting to 0) the trailer cookie when > > RTE_MALLOC_DEBUG is enabled. In case of joining free neighbor element, > > part of joined memory is not getting cleared due to missing the length > > of trailer cookie in the middle. > > > > This patch fixes calculation of free memory length to be cleared in > > malloc_elem_free() by including trailer cookie. > > > > Fixes: af75078fece3 ("first public release") > > > > Cc: Sergio Gonzalez Monroy <sergio.gonzalez.monroy@intel.com> > > Signed-off-by: Xueming Li <xuemingl@mellanox.com> > > Acked-by: Sergio Gonzalez Monroy <sergio.gonzalez.monroy@intel.com> Applied, thanks