From mboxrd@z Thu Jan 1 00:00:00 1970 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) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=6wind-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:organization:user-agent :in-reply-to:references:mime-version:content-transfer-encoding; bh=eqIMT1AUlPHzCq99nOPSiUw1C5daRCMq02HWbMRUoEk=; b=njLvpOU+D9szwwDd7VIqGYf5mt2QcMYPJZ6bNV6kSteI0hZL5Xuu8Wi0ojpdM+pfYN deN8kXBbAkRsTbq20vVnB4onUnkI3V6eWk6xpAR0bKOrPW+O8ZzSMG1RV2Ri/c4pziAG NQACrZCAyMG9tDBc+dXR3DanFhst5WmK1Ct+ZaZ1s1ypIAJhlI2fMNDHQ2107naqJmDr 9kS/vVIkGlw+2Ik6xPWxwTZGYl1zZxbJW/AXQ6SWy5Oywa5/81B+BhdpD5WzTyLwK6xU +RiknRzAtzbQTMxSSzk967RHMuha6Y76h+qB6bxsekrJYM2zc9kIcT9XjRrOAKgkP4f2 dIZw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:organization :user-agent:in-reply-to:references:mime-version :content-transfer-encoding; bh=eqIMT1AUlPHzCq99nOPSiUw1C5daRCMq02HWbMRUoEk=; b=Hx/F9j+zMx9qO67QaLdF9QQ6IAfvqOp1V6smXLfnvYS86Ex7yRsh3z9wulnm92qQZb pfXDAxTnBY9JMhbhdMzrYxnwzDP+mEjTQVM+Hw1AUuKJXYAfyOkeQOlX7y63toYbkPG9 7w44qNsE5X4okKYGoV0FqUlm5o2paiLQ8P8sm0BfG8lNVLLETIQ1vUlqiNCGfmbQrxH2 ku1aGZ7NcMZfREG+KgxB5H3gx59Z9Ofqyi+xaiUoeN7zUcWnbdt6Mw7pf+KtSHV4tygj SqrxfwCfp6NK52DC/Azd/WJqBQMYVNExGZhriEzqI+gHbj+L2vhm0h7JKNS57e2uYmi4 DKrQ== X-Gm-Message-State: AD7BkJI9G+dO2IOGeqkoq/ZWbQGQHeHySR1h/06sz1lutqvsQZb7P+milV6YO9jcYNahYMbR X-Received: by 10.194.105.42 with SMTP id gj10mr1927104wjb.49.1459517867261; Fri, 01 Apr 2016 06:37:47 -0700 (PDT) Received: from xps13.localnet (91.111.75.86.rev.sfr.net. [86.75.111.91]) by smtp.gmail.com with ESMTPSA id e25sm29832327wmi.21.2016.04.01.06.37.46 (version=TLSv1/SSLv3 cipher=OTHER); Fri, 01 Apr 2016 06:37:46 -0700 (PDT) From: Thomas Monjalon To: Mauricio Vasquez B Cc: dev@dpdk.org, "Burakov, Anatoly" Date: Fri, 01 Apr 2016 15:35:51 +0200 Message-ID: <1964824.KaEgL2OUl9@xps13> Organization: 6WIND User-Agent: KMail/4.14.10 (Linux/4.1.6-1-ARCH; KDE/4.14.11; x86_64; ; ) In-Reply-To: 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-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" Subject: Re: [dpdk-dev] [PATCH v2] ivshmem: fix race condition X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 01 Apr 2016 13:37:47 -0000 > > 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