From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id E5F42A0579; Thu, 8 Apr 2021 16:17:47 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 6E8BC14106B; Thu, 8 Apr 2021 16:17:47 +0200 (CEST) Received: from mail-wm1-f49.google.com (mail-wm1-f49.google.com [209.85.128.49]) by mails.dpdk.org (Postfix) with ESMTP id 172724068B for ; Thu, 8 Apr 2021 16:17:47 +0200 (CEST) Received: by mail-wm1-f49.google.com with SMTP id y20-20020a1c4b140000b029011f294095d3so3027364wma.3 for ; Thu, 08 Apr 2021 07:17:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=6wind.com; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=u2oG/9D5erHKSQzon5VaK8Evj5fQtqrnNwzOnFWOZCA=; b=bO4FdlmsC9HSvJpL3iW/20jerWfJGa8cy/Ft/kgV7AYrE3PnG2SChvOu+7fcpzNXAX k9CUADMy1M0CvKxCSZwiPFHdMdLYva3dWsqMoLyofvEMocd9/MIyUvvAhtAmxuX29fgm +RE0t/TMRlnOPloWcqAFKEfYdDnjh/FfA614daySCsLcn/RAgDxGZVkSmPeo5W15+Lv3 u44YzivG2+0Rv3hwfJa/SsN3QqMd08iv5kY7QieX5hhaR9fYMcfSFVYr3iOdvahPBiCL 8SXy46BjjDTRqIpkyi1N18/B1qYkYMID4ZCOhI1JGwVfU7lg/nlcPOe3Qng09sQvwO9F OWJg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=u2oG/9D5erHKSQzon5VaK8Evj5fQtqrnNwzOnFWOZCA=; b=i5iYqFtSGostHnAa7/jED2l+11MoaYFNvGzekaeoha5VwKn7sdiIEWc41hn+J2HXjd wOt+M4SDj0HtbJGZUB914N0m844SP3YNR7KS5I6UWyHRVTCsZkBpKX+NrS3y6GIsROhi AZNQXknkQSg9f5EVDt/qHXl+B7Fl0jdtmitrM9jGzk6zoXshjSIX7lKhQG24kQPAPkPv 0KlbXIUEZAfVob8Y899Wx11qcQF5TXm/mTxisxPZp6ygw24OVGUifdQwzeAeMJADBpcV yh54arS8CZ6G/vcZU4nvkum3QolMT1r1BrlWUhuDPQyy6H5ujz4wpb7oe4U8MEHmUKva r8IA== X-Gm-Message-State: AOAM530lfJ/4l+IWLehfjIEbvkrZT52BuNzabIOv7GfyA9Y8MWH5FZzt APaDRKozuVivIA3BQhwCtLsl6Q== X-Google-Smtp-Source: ABdhPJyRFeeKNj+FYX68u6FmAXkvubo5xJhTIvqmltdPUnMzNmFxUT4thm8kZ1R+KDbf+6NhE+HGAw== X-Received: by 2002:a05:600c:4d96:: with SMTP id v22mr9003440wmp.21.1617891466770; Thu, 08 Apr 2021 07:17:46 -0700 (PDT) Received: from 6wind.com ([2a01:e0a:5ac:6460:c065:401d:87eb:9b25]) by smtp.gmail.com with ESMTPSA id m14sm3230340wrh.28.2021.04.08.07.17.46 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 08 Apr 2021 07:17:46 -0700 (PDT) Date: Thu, 8 Apr 2021 16:17:45 +0200 From: Olivier Matz To: Luc Pelletier Cc: jianfeng.tan@intel.com, Honnappa.Nagarahalli@arm.com, dev@dpdk.org, stable@dpdk.org Message-ID: <20210408141745.GZ1650@platinum> References: <20210407201603.149234-1-lucp.at.work@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20210407201603.149234-1-lucp.at.work@gmail.com> User-Agent: Mutt/1.10.1 (2018-07-13) Subject: Re: [dpdk-dev] [PATCH 1/2] eal: fix race in ctrl thread creation X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" On Wed, Apr 07, 2021 at 04:16:04PM -0400, Luc Pelletier wrote: > The creation of control threads uses a pthread barrier for > synchronization. This patch fixes a race condition where the pthread > barrier could get destroyed while one of the threads has not yet > returned from the pthread_barrier_wait function, which could result in > undefined behaviour. > > Fixes: 3a0d465 ("eal: fix use-after-free on control thread creation") > Cc: jianfeng.tan@intel.com > Cc: stable@dpdk.org > > Signed-off-by: Luc Pelletier Acked-by: Olivier Matz