From mboxrd@z Thu Jan 1 00:00:00 1970 From: Sergio Gonzalez Monroy Subject: Re: [PATCH v3] mem: fix malloc_elem resize with padding Date: Tue, 20 Jun 2017 11:18:10 +0100 Message-ID: <2e4d0d34-626c-0ac2-6c46-c2b1086c3397@intel.com> References: <1496189818-2307-1-git-send-email-lavignen@amazon.com> <1496949137-8106-1-git-send-email-lavignen@amazon.com> Mime-Version: 1.0 Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit To: Jamie Lavigne , dev@dpdk.org Return-path: Received: from mga09.intel.com (mga09.intel.com [134.134.136.24]) by dpdk.org (Postfix) with ESMTP id 170A72C72 for ; Tue, 20 Jun 2017 12:18:13 +0200 (CEST) In-Reply-To: <1496949137-8106-1-git-send-email-lavignen@amazon.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 08/06/2017 20:12, Jamie Lavigne wrote: > Currently when a malloc_elem is split after resizing, any padding > present in the elem is ignored. This causes the resized elem to be too > small when padding is present, and user data can overwrite the beginning > of the following malloc_elem. > > Solve this by including the size of the padding when computing where to > split the malloc_elem. > > Fixes: af75078fece3 ("first public release") > > Signed-off-by: Jamie Lavigne > --- Acked-by: Sergio Gonzalez Monroy