From mboxrd@z Thu Jan 1 00:00:00 1970 From: Sergio Gonzalez Monroy Subject: Re: [PATCH v3 2/2] eal/malloc: fix RTE malloc element free Date: Wed, 13 Sep 2017 13:06:23 +0100 Message-ID: References: <20170823022926.169272-1-xuemingl@mellanox.com> <20170909073319.73174-1-xuemingl@mellanox.com> <20170909073319.73174-2-xuemingl@mellanox.com> Mime-Version: 1.0 Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit Cc: dev@dpdk.org To: Xueming Li , Stephen Hemminger 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) In-Reply-To: <20170909073319.73174-2-xuemingl@mellanox.com> List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" 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