From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wr0-f194.google.com (mail-wr0-f194.google.com [209.85.128.194]) by dpdk.org (Postfix) with ESMTP id 38877F64 for ; Mon, 30 Apr 2018 16:42:55 +0200 (CEST) Received: by mail-wr0-f194.google.com with SMTP id c14-v6so8283378wrd.4 for ; Mon, 30 Apr 2018 07:42:55 -0700 (PDT) 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=r1+VWMnDhawqo93sbXSOZZqwdjIBJv5g/hshOBAplLw=; b=ZMF257/3oQld+Sd01xJll7AuWX23Jq2jP950uoQwncD91h2/TEx8bFZxpKJiGKQbkA MuCUi+l6rpl0E8FoGYRsm5PeLxfZwSSBgxGfTe6ZUoiOVZkACKCL25bQXh1WtZkT180N OWdCZ5ERTXsNenlwNjlz4EPr5QT7hIlkewP4BzLUsXIvlL5bgXDICmVqKi94rYnRRuzR 1c0MAjXTvZ5FAQeuUqCTZ1S2KlSGCWlLrtsE/UJwZF7X/wLc+kcqroiRn9mHvnVcBrKG rDT9wBn4PBNNVzfHZRVogg+lzFI/L8JyHldfEL6ayktK49wf3zIx8S8NkbP2cOH0Yb3t 6Qsw== 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=r1+VWMnDhawqo93sbXSOZZqwdjIBJv5g/hshOBAplLw=; b=OWh+c1KuXzy4OFUFTm2bwdeohMhzkN5A6ncAevPwFyMiYHTsrAedarDoPaxeLw7B6w 9T8eD71S3PvDQrqoy6FOPFOi4xQ/F0JtwMnpcxdIlACRNawxH7EtNlOvR0reDee49ERY P5fSQlJnTzq3dyRpyWD2rqtlzKKZtBnGLYc5UZiXYQtHl1mdmp63BwCaCwcmj/9f3gVY laQgV0UbxYiM8j4zYQEtl4anwkU1QOuC3YPbl2hxEg2D2DYeDu+OyOLN+G3ddNw1ZRwt 0n8ZnzgSVDktgfNl8UCIqYWOloxHaMi6p7yxYn07XlGHNQ4vuyGY5WvY0D6t41otT+OI BwHg== X-Gm-Message-State: ALQs6tAa6J2nwnVD0ay+/zQ5LG5IsYARw74i0JwJxMnh49cGvPMIHu8X /dt87lncszw8sdoil7B9Xl8= X-Google-Smtp-Source: AB8JxZpa6NF47cFLVbs/d0C2bOUTqzVrrlx4ZZ/YAPxSXS/Xzfuhp4GbmMqq5YIJzNX0xL5DRhSfvA== X-Received: by 2002:adf:be83:: with SMTP id i3-v6mr8827097wrh.166.1525099375328; Mon, 30 Apr 2018 07:42:55 -0700 (PDT) Received: from localhost ([2a00:23c5:be9a:5200:ce4c:82c0:d567:ecbb]) by smtp.gmail.com with ESMTPSA id d9sm14502652wmh.38.2018.04.30.07.42.54 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Mon, 30 Apr 2018 07:42:54 -0700 (PDT) From: luca.boccassi@gmail.com To: Hemant Agrawal Cc: Shreyansh Jain , dpdk stable Date: Mon, 30 Apr 2018 15:40:34 +0100 Message-Id: <20180430144223.18657-19-luca.boccassi@gmail.com> X-Mailer: git-send-email 2.14.2 In-Reply-To: <20180430144223.18657-1-luca.boccassi@gmail.com> References: <20180430140606.4615-80-luca.boccassi@gmail.com> <20180430144223.18657-1-luca.boccassi@gmail.com> Subject: [dpdk-stable] patch 'net/dpaa: fix oob access' has been queued to stable release 18.02.2 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: Mon, 30 Apr 2018 14:42:56 -0000 Hi, FYI, your patch has been queued to stable release 18.02.2 Note it hasn't been pushed to http://dpdk.org/browse/dpdk-stable yet. It will be pushed if I get no objections before 05/02/18. So please shout if anyone has objections. Thanks. Luca Boccassi --- >>From c038124399990c93e8548fe95b364ea535afdaf3 Mon Sep 17 00:00:00 2001 From: Hemant Agrawal Date: Mon, 9 Apr 2018 15:52:47 +0530 Subject: [PATCH] net/dpaa: fix oob access [ upstream commit 5c3fc73e820ac0365ae1c1da5546572ac80e64cf ] Coverity issue: 268318 Fixes: b21ed3e2a16d ("net/dpaa: support extended statistics") Signed-off-by: Hemant Agrawal Acked-by: Shreyansh Jain --- drivers/net/dpaa/dpaa_ethdev.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/drivers/net/dpaa/dpaa_ethdev.c b/drivers/net/dpaa/dpaa_ethdev.c index 800b75464..f511fa514 100644 --- a/drivers/net/dpaa/dpaa_ethdev.c +++ b/drivers/net/dpaa/dpaa_ethdev.c @@ -335,10 +335,13 @@ dpaa_dev_xstats_get(struct rte_eth_dev *dev, struct rte_eth_xstat *xstats, static int dpaa_xstats_get_names(__rte_unused struct rte_eth_dev *dev, struct rte_eth_xstat_name *xstats_names, - __rte_unused unsigned int limit) + unsigned int limit) { unsigned int i, stat_cnt = RTE_DIM(dpaa_xstats_strings); + if (limit < stat_cnt) + return stat_cnt; + if (xstats_names != NULL) for (i = 0; i < stat_cnt; i++) snprintf(xstats_names[i].name, @@ -366,7 +369,7 @@ dpaa_xstats_get_by_id(struct rte_eth_dev *dev, const uint64_t *ids, return 0; fman_if_stats_get_all(dpaa_intf->fif, values_copy, - sizeof(struct dpaa_if_stats)); + sizeof(struct dpaa_if_stats) / 8); for (i = 0; i < stat_cnt; i++) values[i] = -- 2.14.2