From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wm0-f66.google.com (mail-wm0-f66.google.com [74.125.82.66]) by dpdk.org (Postfix) with ESMTP id 1DB68100C for ; Mon, 30 Apr 2018 16:54:33 +0200 (CEST) Received: by mail-wm0-f66.google.com with SMTP id j5so14730723wme.5 for ; Mon, 30 Apr 2018 07:54:33 -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=IyNsOmp/z/S79yFp7ROf7kYKr7TtK8OfHHSzrtIJv3A=; b=ojoRcl01pouvxrawlogkWWhtsstsABjjd57m9tL8e3VA67LXLmpCpk6JpA5TAzO5SH ktnaMBq10LXZWia/Akkny8kv7+0ibj7ckwGyHuWLsbkwxZqahNOeN+/IWwIi2L6ZXMeC meE9/8DbbqlMsShHiLPYoZrgP/etYmAOIKP+b2teC8ZjwWwcc8wGYCV8E8XYCjGSPamB 1diAkH+d6b+zcUCG3wQzge2HbSYJdffs9FE3Dz4lHRdZuALUgtnTgoaClHECw1Ae2eQf QUzPQc0N0dk0rh61ip5lxCFB8yWrZRdese9axBtFrBTrKq3XXbiHGOmBiDzmGPgrBQt0 F1aA== 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=IyNsOmp/z/S79yFp7ROf7kYKr7TtK8OfHHSzrtIJv3A=; b=KCX6bjopN7l8CUL8Hi3S/h5CLL4s75xs4QKtmyR/KbAA1qYPvi4S+pp/B8JQmmftqQ MRlzps/AW3B2TZCWBXvRt/h9elx01ZtmKrZxSfXoeU6TLUizXcgDMR5B8SSIY/P8fhi+ m1+nAUvizCEPoLGymBHIUUfuYnlyII7OJmEwEA8aGYltjEogy8o1NTIERyz8pmi1yISf 83o9BBxmrqUB4ECILdLxH+Y225CzS1DTmaBZ2fsjzlI5exV/d+nmeRbE/MdIqeqhvRs3 rEibyHJWT3KDxIq+209pQ/UGQ4fs62zg490XFrOO+AtJnrpE9ZGmNo2O1HASiQNdj+Jn wrHQ== X-Gm-Message-State: ALQs6tACcBZS3zBw4m6bnKNDu8LnG6zRf2fYAWKATVz9UH/FbcQS5dIv yYmxdPQJfLP6IuuaxMuOJoo= X-Google-Smtp-Source: AB8JxZosckCZHyK5Si7CsbFQJIE6JOhfUtbeiUwqtLndKTLb0wkhfwKrQYmuO5DwjaLbj8WtKagjmg== X-Received: by 10.28.24.11 with SMTP id 11mr8240345wmy.21.1525100072820; Mon, 30 Apr 2018 07:54:32 -0700 (PDT) Received: from localhost ([2a00:23c5:be9a:5200:ce4c:82c0:d567:ecbb]) by smtp.gmail.com with ESMTPSA id a13-v6sm7374386wrc.19.2018.04.30.07.54.31 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Mon, 30 Apr 2018 07:54:31 -0700 (PDT) From: luca.boccassi@gmail.com To: Adrien Mazarguil Cc: Nelio Laranjeiro , Ferruh Yigit , dpdk stable Date: Mon, 30 Apr 2018 15:53:37 +0100 Message-Id: <20180430145402.23057-18-luca.boccassi@gmail.com> X-Mailer: git-send-email 2.14.2 In-Reply-To: <20180430145402.23057-1-luca.boccassi@gmail.com> References: <20180430144223.18657-85-luca.boccassi@gmail.com> <20180430145402.23057-1-luca.boccassi@gmail.com> Subject: [dpdk-stable] patch 'net/mlx5: fix RSS flow action bounds check' 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:54:33 -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 33993e25783fb68ab233e4f9aa71c670cea1049e Mon Sep 17 00:00:00 2001 From: Adrien Mazarguil Date: Thu, 19 Apr 2018 12:07:29 +0200 Subject: [PATCH] net/mlx5: fix RSS flow action bounds check [ upstream commit e68744e53ed209c0419925171c5aa510f6643adb ] The number of queues provided by the application is not checked against parser's supported maximum. Fixes: 3d821d6fea40 ("net/mlx5: support RSS action flow rule") Signed-off-by: Adrien Mazarguil Acked-by: Nelio Laranjeiro Acked-by: Ferruh Yigit --- drivers/net/mlx5/mlx5_flow.c | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/drivers/net/mlx5/mlx5_flow.c b/drivers/net/mlx5/mlx5_flow.c index bf718f894..8a5565b30 100644 --- a/drivers/net/mlx5/mlx5_flow.c +++ b/drivers/net/mlx5/mlx5_flow.c @@ -16,6 +16,7 @@ #pragma GCC diagnostic error "-Wpedantic" #endif +#include #include #include #include @@ -698,6 +699,14 @@ priv_flow_convert_actions(struct priv *priv, return -rte_errno; } } + if (rss->num > RTE_DIM(parser->queues)) { + rte_flow_error_set(error, EINVAL, + RTE_FLOW_ERROR_TYPE_ACTION, + actions, + "too many queues for RSS" + " context"); + return -rte_errno; + } for (n = 0; n < rss->num; ++n) { if (rss->queue[n] >= priv->rxqs_n) { rte_flow_error_set(error, EINVAL, -- 2.14.2