From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga14.intel.com (mga14.intel.com [192.55.52.115]) by dpdk.org (Postfix) with ESMTP id CAAA17CBD for ; Wed, 13 Sep 2017 14:06:45 +0200 (CEST) Received: from fmsmga003.fm.intel.com ([10.253.24.29]) by fmsmga103.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 13 Sep 2017 05:06:24 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.42,387,1500966000"; d="scan'208";a="899834706" Received: from smonroyx-mobl.ger.corp.intel.com (HELO [10.237.221.28]) ([10.237.221.28]) by FMSMGA003.fm.intel.com with ESMTP; 13 Sep 2017 05:06:23 -0700 To: Xueming Li , Stephen Hemminger References: <20170823022926.169272-1-xuemingl@mellanox.com> <20170909073319.73174-1-xuemingl@mellanox.com> <20170909073319.73174-2-xuemingl@mellanox.com> Cc: dev@dpdk.org From: Sergio Gonzalez Monroy Message-ID: Date: Wed, 13 Sep 2017 13:06:23 +0100 User-Agent: Mozilla/5.0 (Windows NT 6.3; WOW64; rv:45.0) Gecko/20100101 Thunderbird/45.1.1 MIME-Version: 1.0 In-Reply-To: <20170909073319.73174-2-xuemingl@mellanox.com> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit 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: Wed, 13 Sep 2017 12:06:46 -0000 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