From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga18.intel.com (mga18.intel.com [134.134.136.126]) by dpdk.org (Postfix) with ESMTP id A70001BB18 for ; Thu, 10 May 2018 16:30:29 +0200 (CEST) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga002.jf.intel.com ([10.7.209.21]) by orsmga106.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 10 May 2018 07:30:28 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.49,385,1520924400"; d="scan'208";a="57533869" Received: from irsmsx109.ger.corp.intel.com ([163.33.3.23]) by orsmga002.jf.intel.com with ESMTP; 10 May 2018 07:30:27 -0700 Received: from irsmsx105.ger.corp.intel.com ([169.254.7.214]) by IRSMSX109.ger.corp.intel.com ([169.254.13.176]) with mapi id 14.03.0319.002; Thu, 10 May 2018 15:30:15 +0100 From: "Ananyev, Konstantin" To: "Burakov, Anatoly" , "dev@dpdk.org" CC: "Burakov, Anatoly" Thread-Topic: [dpdk-dev] [PATCH] memzone: fix race condition on alloc failure Thread-Index: AQHT4r0ll06oshDShEiECX4WEM1zBaQpESxA Date: Thu, 10 May 2018 14:30:15 +0000 Message-ID: <2601191342CEEE43887BDE71AB977258AEDC5595@irsmsx105.ger.corp.intel.com> References: In-Reply-To: Accept-Language: en-IE, en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-titus-metadata-40: eyJDYXRlZ29yeUxhYmVscyI6IiIsIk1ldGFkYXRhIjp7Im5zIjoiaHR0cDpcL1wvd3d3LnRpdHVzLmNvbVwvbnNcL0ludGVsMyIsImlkIjoiNzdmYWMwMzAtNmNhNy00ZTI0LWEzNjYtNmYxYWNmNzRjNWE0IiwicHJvcHMiOlt7Im4iOiJDVFBDbGFzc2lmaWNhdGlvbiIsInZhbHMiOlt7InZhbHVlIjoiQ1RQX05UIn1dfV19LCJTdWJqZWN0TGFiZWxzIjpbXSwiVE1DVmVyc2lvbiI6IjE2LjUuOS4zIiwiVHJ1c3RlZExhYmVsSGFzaCI6InB4MTA3TFwvV0tVcjRJSTA0QkJoRGJJN3ArWEdwcmlWbjQrR3VvTW5aZ1JNPSJ9 x-ctpclassification: CTP_NT dlp-product: dlpe-windows dlp-version: 11.0.200.100 dlp-reaction: no-action x-originating-ip: [163.33.239.180] Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Subject: Re: [dpdk-dev] [PATCH] memzone: fix race condition on alloc failure 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: Thu, 10 May 2018 14:30:30 -0000 > -----Original Message----- > From: dev [mailto:dev-bounces@dpdk.org] On Behalf Of Anatoly Burakov > Sent: Thursday, May 3, 2018 9:59 AM > To: dev@dpdk.org > Cc: Burakov, Anatoly > Subject: [dpdk-dev] [PATCH] memzone: fix race condition on alloc failure >=20 > Deallocation used the wrong function, which could have resulted in > race conditions because the function does not use locks internally. >=20 > Fixes: 1403f87d4fb8 ("malloc: enable memory hotplug support") > Cc: anatoly.burakov@intel.com >=20 > Signed-off-by: Anatoly Burakov > --- Acked-by: Konstantin Ananyev