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 7D51C43C60 for ; Thu, 7 Mar 2024 02:33:57 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 77D9F42E9C; Thu, 7 Mar 2024 02:33:57 +0100 (CET) Received: from mail-wm1-f48.google.com (mail-wm1-f48.google.com [209.85.128.48]) by mails.dpdk.org (Postfix) with ESMTP id 3A53E42E9C for ; Thu, 7 Mar 2024 02:33:56 +0100 (CET) Received: by mail-wm1-f48.google.com with SMTP id 5b1f17b1804b1-4130e293686so2314065e9.3 for ; Wed, 06 Mar 2024 17:33:56 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1709775236; x=1710380036; darn=dpdk.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=GkwJ1hzNcLrlnOgCzMoQa7Rbr2VzlD0DZLlsywj2T+c=; b=kc9wUkm1pqfgJ6MGl2xWxkO+7BsbGCUXGBHrRQcDLmSIXJ2lOvgAe18EaFJqnlAO1u o9E3zNLx9LwodX+9lDa1UeroGoLA7wEC+8hwdxu5qp6GvzYMfOFV8+a7iMbnktPuiqgT k6u6ujd4b7yF1OqzZV/7GipYqZCIqDTDa7H9KsALfc7UCAIDbVwTO8WwWMvEi5s1qYYt 3bdYNma/ckN7G8scgJXELgoVEBiZLe4filqYn8emgCdiYbkOtzG26jFZYDL99Wb0qQoa vVa7zo7SXxtBUqkT64UkS8nuZs8pXlGnJIN7gpTtNN83I6r7+DsMjfM20dnIpVaNyLCu HyEg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1709775236; x=1710380036; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=GkwJ1hzNcLrlnOgCzMoQa7Rbr2VzlD0DZLlsywj2T+c=; b=sI9ImjmUSsxjVxesRhWFYsL1aiotTexT7r/igHHVdPz40uEuNM/oNIgiBd6ZiQHrUp zCK6/7a369/WeIFr+qTsjaIqasgIUaSzWVmQ7Marz3dDXaEKmqAi12XxMISqXMrKfUSO jGSlnwtront669DmQQH4+TlDaCzsOr/og+QFafaR3lEXH4oEUu7MVVf9qh1pVERSsG8W 4W46dFJiWieExgL6KMiv7L+zILrfXCqKNbBqXObVU83/5EpQI2TbTqYxq2DGK+GNyQan 7cpSvldRjIL2F8TgIIk5vPkPPR2L6fU57flWkpeUdAhjc6xMcWOXwOgqHJMOoOGgMfhy KAqA== X-Gm-Message-State: AOJu0Ywxtq6oF2tvcO880AnhYtt9P04LB5+SiPdjyWy9uee7xbZSHVH6 ANH1v+eFRtjwkHVXZ4eX1nCspEkK1QNpzq2DKppvC5jhwW5Qm08w X-Google-Smtp-Source: AGHT+IFjHf5ykswuaOMq4ZYQlF0NswdTc4GFKM/SMCBdOr0hCT7mMXVizcSSYRPtRiMLDb6b1rJe8w== X-Received: by 2002:a05:600c:5493:b0:412:c288:d1ff with SMTP id iv19-20020a05600c549300b00412c288d1ffmr14270826wmb.36.1709775235865; Wed, 06 Mar 2024 17:33:55 -0800 (PST) Received: from localhost ([137.220.120.171]) by smtp.gmail.com with ESMTPSA id r11-20020a05600c35cb00b004127057d6b9sm867013wmq.35.2024.03.06.17.33.55 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 06 Mar 2024 17:33:55 -0800 (PST) From: luca.boccassi@gmail.com To: Chengwen Feng Cc: dpdk stable Subject: patch 'app/crypto-perf: verify strdup return' has been queued to stable release 22.11.5 Date: Thu, 7 Mar 2024 01:30:47 +0000 Message-Id: <20240307013159.1735343-30-luca.boccassi@gmail.com> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20240307013159.1735343-1-luca.boccassi@gmail.com> References: <20240307013159.1735343-1-luca.boccassi@gmail.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 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 Hi, FYI, your patch has been queued to stable release 22.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 03/09/24. So please shout if anyone has objections. Also note that after the patch there's a diff of the upstream commit vs the patch applied to the branch. This will indicate if there was any rebasing needed to apply to the stable branch. If there were code changes for rebasing (ie: not only metadata diffs), please double check that the rebase was correctly done. Queued patches are on a temporary branch at: https://github.com/bluca/dpdk-stable This queued commit can be viewed at: https://github.com/bluca/dpdk-stable/commit/3baa52908651b503c472e6c59f8d52d4842594c5 Thanks. Luca Boccassi --- >From 3baa52908651b503c472e6c59f8d52d4842594c5 Mon Sep 17 00:00:00 2001 From: Chengwen Feng Date: Fri, 10 Nov 2023 10:01:13 +0000 Subject: [PATCH] app/crypto-perf: verify strdup return [ upstream commit bf4728da1842bd264b2038e9f67e519ae9a0b4e3 ] Add verify strdup return value logic. Fixes: f8be1786b1b8 ("app/crypto-perf: introduce performance test application") Signed-off-by: Chengwen Feng --- app/test-crypto-perf/cperf_options_parsing.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/app/test-crypto-perf/cperf_options_parsing.c b/app/test-crypto-perf/cperf_options_parsing.c index 1f06e15d10..5c3acdabc7 100644 --- a/app/test-crypto-perf/cperf_options_parsing.c +++ b/app/test-crypto-perf/cperf_options_parsing.c @@ -516,6 +516,10 @@ parse_test_file(struct cperf_options *opts, const char *arg) { opts->test_file = strdup(arg); + if (opts->test_file == NULL) { + RTE_LOG(ERR, USER1, "Dup vector file failed!\n"); + return -1; + } if (access(opts->test_file, F_OK) != -1) return 0; RTE_LOG(ERR, USER1, "Test vector file doesn't exist\n"); -- 2.39.2 --- Diff of the applied patch vs upstream commit (please double-check if non-empty: --- --- - 2024-03-07 01:05:37.583686898 +0000 +++ 0030-app-crypto-perf-verify-strdup-return.patch 2024-03-07 01:05:34.714938233 +0000 @@ -1 +1 @@ -From bf4728da1842bd264b2038e9f67e519ae9a0b4e3 Mon Sep 17 00:00:00 2001 +From 3baa52908651b503c472e6c59f8d52d4842594c5 Mon Sep 17 00:00:00 2001 @@ -5,0 +6,2 @@ +[ upstream commit bf4728da1842bd264b2038e9f67e519ae9a0b4e3 ] + @@ -9 +10,0 @@ -Cc: stable@dpdk.org @@ -17 +18 @@ -index 75afedc7fd..8909b5690d 100644 +index 1f06e15d10..5c3acdabc7 100644