From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wm0-f46.google.com (mail-wm0-f46.google.com [74.125.82.46]) by dpdk.org (Postfix) with ESMTP id 5CC08568F for ; Mon, 25 Jul 2016 22:22:01 +0200 (CEST) Received: by mail-wm0-f46.google.com with SMTP id o80so172992680wme.1 for ; Mon, 25 Jul 2016 13:22:01 -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:user-agent:in-reply-to :references:mime-version:content-transfer-encoding; bh=+QXZHBHu2ouYJxD/echFfu8ATcI0FBYo8h9MOvec7Y0=; b=Zhddnbe/ZPq33MLoqR1Zl+t66irJ5unjWGB6jaOWVgkrXdsgeiOG/fezYYoQbqIc9f NhuOzkKxfUNGvsdav+Kjr/hSgbgXu4OdL++0PtLEV1vQHfJvJt36MRjRxWgZ8qebftem EEnaYl82KOsG38Sbn7R2EFc196H87iJwST28sKyE2dnioFOekySOS2230ZT7auP4WDk1 jTIyLYPEvp+I6pGieCKsEVpJiqr1JMhT3DXlOJiSG0yu6BOHW+inu7pv7l5zSL0QU2gp JziWPonwwyFltmTENQHPWQegUMnRstirbXWLkTIz06K5h63GiAvUqXQdwY7fDvEJqury F9uQ== 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:user-agent :in-reply-to:references:mime-version:content-transfer-encoding; bh=+QXZHBHu2ouYJxD/echFfu8ATcI0FBYo8h9MOvec7Y0=; b=BGzG9x0NfD6VgJ2OBD/AhdVg0lQw05XYCTLzeK97Co7TIkhFQR/CCoZ+YGHt6Dqwmf 5/x+cJzAqJ7YT2h9bRClbktb0pUQIArj03X5aa068n+BRpKDxChjySAnvb/SXvxfEAP2 j6vI4XbMXkpJYPuqxSVBywHMj1OIxENZGdv9BgsrLJsFuPwCNyJZR8NicDwKJJ/zcvmy yl4VWaGOlGFDaR7z10dEzurJSlz+aUc3609r0+9r6truUvtztu9VIqUe2jkb+rzXEitV SshPaBDBZQtG7PP9O8PRe8bX/tmSoGYyfvbjdqYmo9/RpUP393gBqASfC21BVVARiDC2 KIsw== X-Gm-Message-State: AEkoousigs1N7Nw+rg4SuaN6JRIz8US8IdflGhJ55FULfv1TAzfCPCisAN/5i9ls+P++zPSr X-Received: by 10.194.7.100 with SMTP id i4mr19064427wja.154.1469478121100; Mon, 25 Jul 2016 13:22:01 -0700 (PDT) Received: from xps13.localnet (184.203.134.77.rev.sfr.net. [77.134.203.184]) by smtp.gmail.com with ESMTPSA id a21sm29163502wma.10.2016.07.25.13.22.00 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 25 Jul 2016 13:22:00 -0700 (PDT) From: Thomas Monjalon To: Olivier Matz Cc: dev@dpdk.org Date: Mon, 25 Jul 2016 22:21:57 +0200 Message-ID: <13482188.oq4p9ccHem@xps13> User-Agent: KMail/4.14.10 (Linux/4.5.4-1-ARCH; KDE/4.14.11; x86_64; ; ) In-Reply-To: <72f68706-51c1-693c-cb66-7824be2baeba@6wind.com> References: <1469476476-2148-1-git-send-email-thomas.monjalon@6wind.com> <72f68706-51c1-693c-cb66-7824be2baeba@6wind.com> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" Subject: Re: [dpdk-dev] [PATCH v2] mempool: fix unsafe removal from list by callback 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: Mon, 25 Jul 2016 20:22:01 -0000 > > If a mempool is removed from the list by a callback function > > during rte_mempool_walk(), the TAILQ_FOREACH loop will fail unexpectedly. > > It is fixed by using the safe version of the loop macro. > > > > Reported-by: Sergio Gonzalez Monroy > > Signed-off-by: Thomas Monjalon > > Acked-by: Olivier Matz Applied, thanks