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 96966A04DB for ; Tue, 17 Nov 2020 12:16:12 +0100 (CET) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 2F5C3C8B2; Tue, 17 Nov 2020 12:16:11 +0100 (CET) Received: from mail-wr1-f44.google.com (mail-wr1-f44.google.com [209.85.221.44]) by dpdk.org (Postfix) with ESMTP id C26DD5937 for ; Tue, 17 Nov 2020 12:16:08 +0100 (CET) Received: by mail-wr1-f44.google.com with SMTP id k2so22814140wrx.2 for ; Tue, 17 Nov 2020 03:16:08 -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 :mime-version:content-transfer-encoding; bh=ey3rf++TVVUBv3KhWERtBOmBWHZJ8sAmKguxX3inBg8=; b=QoKyYxHIWRT5os0uNrptdxSsVGfC093jDi+eZNbw3aTr9mGMll1HrawyRMkhgZAYag yETxcpzYoKIVfb99O70beSBiYxerbjPFhd2MPejeK2xsHdPzOTsKDDZeM1kBBJWG6xyb GQ03zQAgo6HHjNlGvD2dgWxQ0n4IH8BWafdm8mt46U9VRYf0HQYFtekmnGe/2dne5/f4 ez6EoEP3luruP9On+TKQpxUADd4DICqsCp38jekqUtTiacYqne0zWh+Zi/jF6P09r6w7 /w2BXj6G5xthccEz82eIQbHFByfwBW2R2p2g5IwT1b3Zf46+8WrAL1TCwFrZQ235sJfY tzXw== 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:mime-version:content-transfer-encoding; bh=ey3rf++TVVUBv3KhWERtBOmBWHZJ8sAmKguxX3inBg8=; b=WMBcSZpshVEyBteeBhyUwpd1iacjFheet3c5AcAl6QC9tceIwxw2EROlV7h5aCaN/Q boPswbhYlk43V2rPFjijIoEiDwf032vzN7BLeSWuSaRgM2OWjndc9wtq9jO+e8cXfNxW AlK8pj9vxccDlibwU3Svfz1Jq9d5ooxcThAwT2ri9WqPX7l3IJDLi96xY7B2w0wittcN sECEDT+psdjg4ub8uwta0UOkE0bnxHVl5uD994TgzwNeFNvmEJ4TkLDpbDnhGeCdmMQt ug7Rr4ip//aQutbaZcNOSFoOUyoEhqbmIuOjGhiq5PKDSteCLv9rGbHme86HoUvvh1Ee t6FA== X-Gm-Message-State: AOAM532hMUElXHS2wrwG76acCW458p7y/9ACXXY61hiGrKO4Pfjp5NVi cOJyDM4FsyC9zfiG7uKlu3I= X-Google-Smtp-Source: ABdhPJwJB5nhBac0NBcvc0KBn8UoiWEwPJa72Ark7FleGodXTZutSTdnwNkIWAJPkox2VfEZXcHEVA== X-Received: by 2002:adf:e3cf:: with SMTP id k15mr24298230wrm.259.1605611768377; Tue, 17 Nov 2020 03:16:08 -0800 (PST) Received: from localhost ([88.98.246.218]) by smtp.gmail.com with ESMTPSA id l24sm3099778wmi.7.2020.11.17.03.16.07 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 17 Nov 2020 03:16:07 -0800 (PST) From: luca.boccassi@gmail.com To: Pavan Nikhilesh Cc: dpdk stable Date: Tue, 17 Nov 2020 11:14:09 +0000 Message-Id: <20201117111416.1961049-35-luca.boccassi@gmail.com> X-Mailer: git-send-email 2.27.0 In-Reply-To: <20201117111416.1961049-1-luca.boccassi@gmail.com> References: <20201109185030.3478760-2-luca.boccassi@gmail.com> <20201117111416.1961049-1-luca.boccassi@gmail.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: [dpdk-stable] patch 'app/eventdev: check timer adadpters number' has been queued to stable release 19.11.6 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" Hi, FYI, your patch has been queued to stable release 19.11.6 Note it hasn't been pushed to http://dpdk.org/browse/dpdk-stable yet. It will be pushed if I get no objections before 11/19/20. 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/82091c3e07e67ea0e7db4983c5a1cc4a2c41107a Thanks. Luca Boccassi --- >From 82091c3e07e67ea0e7db4983c5a1cc4a2c41107a Mon Sep 17 00:00:00 2001 From: Pavan Nikhilesh Date: Thu, 12 Nov 2020 23:13:29 +0530 Subject: [PATCH] app/eventdev: check timer adadpters number [ upstream commit 15c19f36f59ed56b87ab4eb192a859bf273dbccc ] Fix SEGFAULT when nb_timer_adapters command line parameter is set to 0. Fixes: 98c6292105d4 ("app/eventdev: add options for event timer adapter") Signed-off-by: Pavan Nikhilesh --- app/test-eventdev/evt_options.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/app/test-eventdev/evt_options.c b/app/test-eventdev/evt_options.c index c60b61a904..4f4800d99d 100644 --- a/app/test-eventdev/evt_options.c +++ b/app/test-eventdev/evt_options.c @@ -197,6 +197,10 @@ evt_parse_nb_timer_adptrs(struct evt_options *opt, const char *arg) int ret; ret = parser_read_uint8(&(opt->nb_timer_adptrs), arg); + if (opt->nb_timer_adptrs <= 0) { + evt_err("Number of timer adapters cannot be <= 0"); + return -EINVAL; + } return ret; } -- 2.27.0 --- Diff of the applied patch vs upstream commit (please double-check if non-empty: --- --- - 2020-11-17 11:13:14.466432833 +0000 +++ 0035-app-eventdev-check-timer-adadpters-number.patch 2020-11-17 11:13:12.953117254 +0000 @@ -1 +1 @@ -From 15c19f36f59ed56b87ab4eb192a859bf273dbccc Mon Sep 17 00:00:00 2001 +From 82091c3e07e67ea0e7db4983c5a1cc4a2c41107a Mon Sep 17 00:00:00 2001 @@ -5,0 +6,2 @@ +[ upstream commit 15c19f36f59ed56b87ab4eb192a859bf273dbccc ] + @@ -10 +11,0 @@ -Cc: stable@dpdk.org @@ -18 +19 @@ -index 6994ac453c..0d04ea9f8d 100644 +index c60b61a904..4f4800d99d 100644