From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from out1-smtp.messagingengine.com (out1-smtp.messagingengine.com [66.111.4.25]) by dpdk.org (Postfix) with ESMTP id 89E311B247 for ; 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: 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 To: Sergio Gonzalez Monroy Cc: dev@dpdk.org, Xueming Li , Stephen Hemminger Date: Mon, 09 Oct 2017 22:56:00 +0200 Message-ID: <2516029.gVLHQDShuA@xps> In-Reply-To: References: <20170823022926.169272-1-xuemingl@mellanox.com> <20170909073319.73174-2-xuemingl@mellanox.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 List-Unsubscribe: , List-Archive: List-Post: List-Help: List-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 > > Signed-off-by: Xueming Li > > Acked-by: Sergio Gonzalez Monroy Applied, thanks