From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id EB021A0569 for ; Wed, 11 Mar 2020 18:08:29 +0100 (CET) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id DAD891BFFC; Wed, 11 Mar 2020 18:08:29 +0100 (CET) Received: from us-smtp-1.mimecast.com (us-smtp-delivery-1.mimecast.com [205.139.110.120]) by dpdk.org (Postfix) with ESMTP id A8CFE1BFA5 for ; Wed, 11 Mar 2020 18:08:27 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1583946507; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=SiGlDlduWwxzh2toAmUt73vMzeLApsK1CSJejD6wp3k=; b=PqzH1F3N1i2w7uM/+Qw++4gJ4IUFe8QoXmiz2ONCWtxiCiLLkDFuyuLpACbxQgWwg/Y8pY GlV9cM8I0RqO4VUuvSCf1MUSUy9z3fE9xPrXQsqrX9zVGB5bs4FhKaCky5hdbhUcCfNyuM aLBjZPZnm1XOcT5IJrqFeEH/66QrbxU= Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-370-0edLdSo4M3eKI86I5S0M0g-1; Wed, 11 Mar 2020 13:08:23 -0400 X-MC-Unique: 0edLdSo4M3eKI86I5S0M0g-1 Received: from smtp.corp.redhat.com (int-mx08.intmail.prod.int.phx2.redhat.com [10.5.11.23]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 7A6E28010EB; Wed, 11 Mar 2020 17:08:22 +0000 (UTC) Received: from dhcp-25.97.bos.redhat.com (unknown [10.18.25.84]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 50E1C19C6A; Wed, 11 Mar 2020 17:08:19 +0000 (UTC) From: Aaron Conole To: David Marchand Cc: Harry van Haaren , dev , dpdk stable References: <20200310133304.39951-1-harry.van.haaren@intel.com> <20200311143927.76021-1-harry.van.haaren@intel.com> Date: Wed, 11 Mar 2020 13:08:18 -0400 In-Reply-To: (David Marchand's message of "Wed, 11 Mar 2020 17:15:49 +0100") Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.3 (gnu/linux) MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.84 on 10.5.11.23 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Type: text/plain Content-Transfer-Encoding: quoted-printable Subject: Re: [dpdk-stable] [PATCH v2] eal/service: fix exit by resetting service lcores X-BeenThere: stable@dpdk.org X-Mailman-Version: 2.1.15 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" David Marchand writes: > On Wed, Mar 11, 2020 at 3:39 PM Harry van Haaren > wrote: >> >> This commit releases all service cores from their role, >> returning them to ROLE_RTE on rte_service_finalize(). >> >> This may fix an issue relating to the service cores causing > > You don't seem convinced. > > >> a race-condition on eal_cleanup(), where the service core >> could still be executing while the main thread has already >> free-d the service memory, leading to a segfault. >> >> Fixes: 21698354c832 ("service: introduce service cores concept") >> Cc: stable@dpdk.org >> >> Reported-by: David Marchand >> Reported-by: Aaron Conole >> Signed-off-by: David Marchand >> Signed-off-by: Harry van Haaren >> Acked-by: Aaron Conole > > I am okay with merging this so that we stop getting random failures of th= e ut. I think it could also potentially cause errors in user applications that regularly exit, and which use the service core architecture. So it's worth getting in now, anyway. > I will let this patch on the ml and apply on Friday at worse. > > Please take the time to reply to my question. > Thanks.