From mboxrd@z Thu Jan 1 00:00:00 1970 From: Thomas Monjalon Subject: Re: [PATCH v2] ivshmem: fix race condition Date: Fri, 01 Apr 2016 15:35:51 +0200 Message-ID: <1964824.KaEgL2OUl9@xps13> References: <1459498608-10789-1-git-send-email-mauricio.vasquezbernal@studenti.polito.it> <1459509732-22664-1-git-send-email-mauricio.vasquezbernal@studenti.polito.it> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7Bit Cc: dev@dpdk.org, "Burakov, Anatoly" To: Mauricio Vasquez B Return-path: Received: from mail-wm0-f48.google.com (mail-wm0-f48.google.com [74.125.82.48]) by dpdk.org (Postfix) with ESMTP id 68E0C2BA3 for ; Fri, 1 Apr 2016 15:37:47 +0200 (CEST) Received: by mail-wm0-f48.google.com with SMTP id 20so23500365wmh.1 for ; Fri, 01 Apr 2016 06:37:47 -0700 (PDT) In-Reply-To: List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" > > The memory zone could be freed just after adding it to the metadata > > file and just before marking it as not freeable. > > This patch changes the locking logic in order to prevent it. > > > > Fixes: cd10c42eb5bc ("mem: fix ivshmem freeing") > > > > Signed-off-by: Mauricio Vasquez B > > > > Acked-by: Anatoly Burakov Applied, thanks