From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wr0-f196.google.com (mail-wr0-f196.google.com [209.85.128.196]) by dpdk.org (Postfix) with ESMTP id EE238A84E for ; Fri, 26 Jan 2018 14:16:55 +0100 (CET) Received: by mail-wr0-f196.google.com with SMTP id d9so520387wre.3 for ; Fri, 26 Jan 2018 05:16:55 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=+Piilj8yOJd9PMf9Qyjr7SJKn4fpvwpKhtzt5ypuTK0=; b=jOpXGF7HMX9Kt6BkbJbeMSMXyCDINk1NNuY6dvbdFkJ9WVg+SgEKiwAtr3kWnkkkCW cPMWoqwb6JpYVHWxKKwuwCrT+9OIy/VnyLdIeA5VYWUCgnJT2p8rW4PB9uSNRQcaUCcX YzMf8bUnWDMbPQ2u9FUP++3+tWyt07ntC8nnTEcFgzGRljgRiE/rIjyUvC/98YNeEe7g 91x62AUk/yIFf1UKIsuczUGmzB0Zq/rSwmqGjtedlFqAG4kYph2y1g7fpJc5zwJPFahZ 5jBYmGLYZa6NU9LYoLPu5ncKH1THUM3l5rApEni4vtpGI/8R62RgBbBOCID/XQksXtdj oBSA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=+Piilj8yOJd9PMf9Qyjr7SJKn4fpvwpKhtzt5ypuTK0=; b=PvvrB/0YU91YwWvmMQR5icIFd7nBwmYcnuPiQ3cqTy1ks9Gv7EcQjevfsfFq5ZWUtf 0j6JsesqvNDeUXkfnWiHGuzawYjhNPvCaSaXHF0FZhDZB1/7Z9vTbOhYhpMVeSoZYb2O c/IOAEIKnwGYSmrB+mAPFwz/fis+J/C8TK7swlVxK+dy6w24q4qpWu3IhKYYQp5qFKOv xCPLaKTg+Brgt3ojKf0z5b0EPq2zwVLffn6hsJEYXxV35WNiazHt62USnZ/DU0/f8lyp wFkXmZXjAgbv0eQC7SY0vFrxtCTYjs7OgNeB5hw1kugPtXEH7pbJwvOR2Ux5r1/tGprf cpuA== X-Gm-Message-State: AKwxytc+1BEyVi/AsNBALd3Wo3zyz/SuDTNIcv4X3w4kAOs1NUraOmUP Z1DOx/SDfkuIGfOgK6S1+Yc= X-Google-Smtp-Source: AH8x224wc/CmAvkGhJvD4ViMm26wRbRwg3it7bQjCSOMbUDjrqrgAJO5vrVJjK5EoMy0JlCtEs1TUQ== X-Received: by 10.223.135.78 with SMTP id 14mr1675503wrz.238.1516972615705; Fri, 26 Jan 2018 05:16:55 -0800 (PST) Received: from localhost ([2a00:23c5:bef3:400:9531:588b:44ae:bec4]) by smtp.gmail.com with ESMTPSA id k20sm1506920wmh.20.2018.01.26.05.16.55 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Fri, 26 Jan 2018 05:16:55 -0800 (PST) From: luca.boccassi@gmail.com To: Phil Yang Cc: Jianbo Liu , Anatoly Burakov , dpdk stable Date: Fri, 26 Jan 2018 13:13:27 +0000 Message-Id: <20180126131332.15346-57-luca.boccassi@gmail.com> X-Mailer: git-send-email 2.14.2 In-Reply-To: <20180126131332.15346-1-luca.boccassi@gmail.com> References: <20180126131332.15346-1-luca.boccassi@gmail.com> Subject: [dpdk-stable] patch 'test/memzone: fix freeing test' has been queued to LTS release 16.11.5 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: , X-List-Received-Date: Fri, 26 Jan 2018 13:16:56 -0000 Hi, FYI, your patch has been queued to LTS release 16.11.5 Note it hasn't been pushed to http://dpdk.org/browse/dpdk-stable yet. It will be pushed if I get no objections before 01/28/18. So please shout if anyone has objections. Thanks. Luca Boccassi --- >>From 843f976ae13e79a7a828486ecf0efcbcab1e4cb6 Mon Sep 17 00:00:00 2001 From: Phil Yang Date: Mon, 15 Jan 2018 13:43:33 +0800 Subject: [PATCH] test/memzone: fix freeing test [ upstream commit c281b4fc71ddefe809994be10f53b87e1ba6c669 ] When reserving memzone for mz[], it will out of mz[RTE_MAX_MEMZONE] memory bound after the counter reached to RTE_MAX_MEMZONE. It will flush the counter's memory and lead to mz[] memory cannot be freed. Fixd by extend to mz[RTE_MAX_MEMZONE + 1]. Fixes: ff909fe21f0a ("mem: introduce memzone freeing") Signed-off-by: Phil Yang Acked-by: Jianbo Liu Acked-by: Anatoly Burakov --- app/test/test_memzone.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/test/test_memzone.c b/app/test/test_memzone.c index 545cbe647..91d8e6a87 100644 --- a/app/test/test_memzone.c +++ b/app/test/test_memzone.c @@ -789,7 +789,7 @@ test_memzone_bounded(void) static int test_memzone_free(void) { - const struct rte_memzone *mz[RTE_MAX_MEMZONE]; + const struct rte_memzone *mz[RTE_MAX_MEMZONE + 1]; int i; char name[20]; -- 2.14.2