From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga11.intel.com (mga11.intel.com [192.55.52.93]) by dpdk.org (Postfix) with ESMTP id BB81123C for ; Fri, 20 Jul 2018 15:09:21 +0200 (CEST) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga001.fm.intel.com ([10.253.24.23]) by fmsmga102.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 20 Jul 2018 06:09:20 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.51,379,1526367600"; d="scan'208";a="74067526" Received: from aburakov-mobl.ger.corp.intel.com (HELO [10.252.5.71]) ([10.252.5.71]) by fmsmga001.fm.intel.com with ESMTP; 20 Jul 2018 06:09:10 -0700 To: Stephen Hemminger , dev@dpdk.org References: <20180719162029.30962-1-stephen@networkplumber.org> From: "Burakov, Anatoly" Message-ID: Date: Fri, 20 Jul 2018 14:09:10 +0100 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: <20180719162029.30962-1-stephen@networkplumber.org> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit Subject: Re: [dpdk-dev] [RFC v2] mem: poison memory when freed 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: Fri, 20 Jul 2018 13:09:22 -0000 On 19-Jul-18 5:20 PM, Stephen Hemminger wrote: > DPDK malloc library allows broken programs to work because > the semantics of zmalloc and malloc are the same. > > This patch enables a more secure model which will catch > (and crash) programs that reuse memory already freed if > RTE_MALLOC_DEBUG is enabled. > > Signed-off-by: Stephen Hemminger > --- Making it not default behavior makes it suitable for inclusion without deprecation notices IMO. Reviewed-by: Anatoly Burakov -- Thanks, Anatoly