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 8ED7BA0A0C for ; Thu, 8 Apr 2021 16:17:48 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 79B471410AD; Thu, 8 Apr 2021 16:17:48 +0200 (CEST) Received: from mail-wm1-f53.google.com (mail-wm1-f53.google.com [209.85.128.53]) by mails.dpdk.org (Postfix) with ESMTP id 1876C14106B for ; Thu, 8 Apr 2021 16:17:47 +0200 (CEST) Received: by mail-wm1-f53.google.com with SMTP id 12so1288037wmf.5 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=CRye2JREJAvM2duNiWPpUzIXx05JKZo6BAtXE9pX2Sg8bZ5tKbWb0hmr+1sA88hrBu ezsoReTajV+B74j8gT715Cn9TiowQq9rpEb/fe1zL2rhJPw7QC37sfZF0tpam4Amv7DT q+XzOLVmo/iYWKGW3gsV6JT4qHr8Ukhr6tZtmvm4txVVsWNTjpnvRx3li8xgJYsdlBuj pFgeedWReWwdcG7FZ6G7HP46ThkVHNPvXtoEKl7cReJvdhAqLdEF668hPXFGhP/PobtE gd9MECVExEnLnKgpf+ZOvhINBNNweK3q07+vuIZClU+xChwUott+dS7yND0ksSvLnpe8 swsQ== X-Gm-Message-State: AOAM533HgpqlfQssY3q+rRdmyCVvuf78wdLUzHREVOTILSwy7R2I8J8x yl+yMZW0Bb4eS3KWP2AI6n5rbw== 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-stable] [PATCH 1/2] eal: fix race in ctrl thread creation X-BeenThere: stable@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: patches for DPDK stable branches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: stable-bounces@dpdk.org Sender: "stable" 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