From mboxrd@z Thu Jan 1 00:00:00 1970 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) Received: from fmsmga004.fm.intel.com ([10.253.24.48]) by orsmga102.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 20 Jun 2017 03:18:12 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.39,364,1493708400"; d="scan'208";a="276386069" Received: from smonroyx-mobl.ger.corp.intel.com (HELO [10.237.221.32]) ([10.237.221.32]) by fmsmga004.fm.intel.com with ESMTP; 20 Jun 2017 03:18:11 -0700 To: Jamie Lavigne , dev@dpdk.org References: <1496189818-2307-1-git-send-email-lavignen@amazon.com> <1496949137-8106-1-git-send-email-lavignen@amazon.com> From: Sergio Gonzalez Monroy Message-ID: <2e4d0d34-626c-0ac2-6c46-c2b1086c3397@intel.com> Date: Tue, 20 Jun 2017 11:18:10 +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: <1496949137-8106-1-git-send-email-lavignen@amazon.com> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: [dpdk-dev] [PATCH v3] mem: fix malloc_elem resize with padding 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: Tue, 20 Jun 2017 10:18:14 -0000 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