From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from out4-smtp.messagingengine.com (out4-smtp.messagingengine.com [66.111.4.28]) by dpdk.org (Postfix) with ESMTP id E21891B1BE for ; Wed, 24 Jan 2018 16:40:42 +0100 (CET) Received: from compute1.internal (compute1.nyi.internal [10.202.2.41]) by mailout.nyi.internal (Postfix) with ESMTP id 904F6226E5; Wed, 24 Jan 2018 10:40:42 -0500 (EST) Received: from frontend1 ([10.202.2.160]) by compute1.internal (MEProxy); Wed, 24 Jan 2018 10:40:42 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=fridaylinux.org; h=cc:date:from:in-reply-to:message-id:references:subject:to :x-me-sender:x-me-sender:x-sasl-enc; s=fm1; bh=Ky6GTxxLNT5OhIAc5 wGMTiqcF0CCB3tQSP/EgkhSdcA=; b=CaVq17x8RcDjCbKcQDZKOi2tu66cgVN6D w5UL+tObZ0IwhjzqCPQVSybfWg+0SJglxIOPF2j21KlR6glMOD3bzvDZQVktsrKV e4kqk4i+gPQbTvgiQEegH/iN3R5fbJ2OKUs6bqt7VTb+zTRkmm6Odc3WPjUDUSXC YkY5Z2Y7DE1bv6xEEt+aJ7NaOl6rxRGgdQgzXN8Ieg6SUJtdfiw7T5izcxLzCrjL /jVf17OrrrwV32a0fFwDLuVRMwcNDvFa0W4E9vsKEhZ0j3uhbZAl3B9l7GWAtFLb jcvUM1JZ/qHXU7Kjn1RZU4tbaeB9amwFN6Rs8VP4kQHWklgoql/Ig== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:date:from:in-reply-to:message-id :references:subject:to:x-me-sender:x-me-sender:x-sasl-enc; s= fm1; bh=Ky6GTxxLNT5OhIAc5wGMTiqcF0CCB3tQSP/EgkhSdcA=; b=rrTmNNH4 fawsu5iYfMItuLOh2C7blPZiacNi05o4hRG4UTPhd9aTUa8qFxiIDXgRoQNANKLt 4byh/zDs0fpwxWPy8YJhPiu5jlrhjbksYdho24G7eZqdDBEZmabgi8NVcLmNC+Ax oErL0nuZkHc0b7/YZyu9RPv1O0xdx6rNrDkh9QoAmWPTsh3f4Ws3JnWPInpO9Nxn Ref/wB2cOGwcMpZbsDPuIVdysKxHUPQrx1yLCemHLpsCiZyUjfnaUfqKuBW3pqHf mUdYiwMr+E9LV5mzdYwAO26bqXQMimPIJMJKHyLj334Ib4RO0JzUXFPy2/j1elDk tU5O4PnS4S7xRw== X-ME-Sender: Received: from localhost.localdomain (unknown [115.150.27.206]) by mail.messagingengine.com (Postfix) with ESMTPA id 5C4C67E3DB; Wed, 24 Jan 2018 10:40:40 -0500 (EST) From: Yuanhan Liu To: Yongseok Koh Cc: Nelio Laranjeiro , dpdk stable Date: Wed, 24 Jan 2018 23:32:56 +0800 Message-Id: <1516808026-25523-108-git-send-email-yliu@fridaylinux.org> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1516808026-25523-1-git-send-email-yliu@fridaylinux.org> References: <1516808026-25523-1-git-send-email-yliu@fridaylinux.org> Subject: [dpdk-stable] patch 'net/mlx5: fix missing attribute size for drop action' has been queued to LTS release 17.11.1 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: Wed, 24 Jan 2018 15:40:43 -0000 Hi, FYI, your patch has been queued to LTS release 17.11.1 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/26/18. So please shout if anyone has objections. Thanks. --yliu --- >>From 35a4f7f757a3c80e82b756e36e774c55ba8b5fa6 Mon Sep 17 00:00:00 2001 From: Yongseok Koh Date: Wed, 10 Jan 2018 09:50:38 -0800 Subject: [PATCH] net/mlx5: fix missing attribute size for drop action [ upstream commit 64a5a065cfb2b468ce47b09ffe9a62859656bc26 ] Adding the size of ibv_flow_spec_action_drop is missing. This can cause overflow when converting rte_flow to ibv_flow and thus corrupt memory. Fixes: 8086cf08b2f0 ("net/mlx5: handle RSS hash configuration in RSS flow") Signed-off-by: Yongseok Koh Acked-by: Nelio Laranjeiro --- drivers/net/mlx5/mlx5_flow.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/drivers/net/mlx5/mlx5_flow.c b/drivers/net/mlx5/mlx5_flow.c index c16b571..00f4bec 100644 --- a/drivers/net/mlx5/mlx5_flow.c +++ b/drivers/net/mlx5/mlx5_flow.c @@ -885,6 +885,10 @@ priv_flow_convert_items_validate(struct priv *priv, parser->queue[n].offset += cur_item->dst_sz; } } + if (parser->drop) { + parser->queue[HASH_RXQ_ETH].offset += + sizeof(struct ibv_flow_spec_action_drop); + } if (parser->mark) { for (i = 0; i != hash_rxq_init_n; ++i) parser->queue[i].offset += -- 2.7.4