From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga05.intel.com (mga05.intel.com [192.55.52.43]) by dpdk.org (Postfix) with ESMTP id 01EEE4C91; Wed, 14 Nov 2018 17:04:46 +0100 (CET) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga005.fm.intel.com ([10.253.24.32]) by fmsmga105.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 14 Nov 2018 08:04:47 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.56,233,1539673200"; d="scan'208";a="279787951" Received: from aburakov-mobl1.ger.corp.intel.com (HELO [10.237.220.124]) ([10.237.220.124]) by fmsmga005.fm.intel.com with ESMTP; 14 Nov 2018 08:04:45 -0800 To: dev@dpdk.org Cc: yuwei1.zhang@intel.com, stable@dpdk.org References: <8533ab3a49f63e9700764ead8b9147a098911b41.1542204687.git.anatoly.burakov@intel.com> <6a0a1a54d58a7c72380860c1da9e36d512c0ccd2.1542207435.git.anatoly.burakov@intel.com> From: "Burakov, Anatoly" Message-ID: <09796c6c-2428-7c88-14bf-a09d4d6e85b1@intel.com> Date: Wed, 14 Nov 2018 16:04:44 +0000 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.9.1 MIME-Version: 1.0 In-Reply-To: <6a0a1a54d58a7c72380860c1da9e36d512c0ccd2.1542207435.git.anatoly.burakov@intel.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit Subject: Re: [dpdk-dev] [PATCH v2] malloc: fix adjacency check to also include segment list 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, 14 Nov 2018 16:04:47 -0000 On 14-Nov-18 3:00 PM, Anatoly Burakov wrote: > It may so happen that two memory locations may be adjacent in > virtual memory, but belong to different segment lists. With > current code, such segments will be concatenated. Fix the > adjacency checking code to also check if the adjacent malloc > elements belong to the same memseg list. > > Fixes: 66cc45e293ed ("mem: replace memseg with memseg lists") > > Cc: stable@dpdk.org > > Signed-off-by: Anatoly Burakov > --- Oops, reply tag was set wrong. -- Thanks, Anatoly