From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from out3-smtp.messagingengine.com (out3-smtp.messagingengine.com [66.111.4.27]) by dpdk.org (Postfix) with ESMTP id CD8E31B660 for ; Wed, 9 May 2018 15:58:35 +0200 (CEST) Received: from compute1.internal (compute1.nyi.internal [10.202.2.41]) by mailout.nyi.internal (Postfix) with ESMTP id 52E98216A8; Wed, 9 May 2018 09:58:35 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute1.internal (MEProxy); Wed, 09 May 2018 09:58:35 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=monjalon.net; h= cc:content-transfer-encoding:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-me-sender :x-me-sender:x-sasl-enc; s=mesmtp; bh=C7sf4wqnwFw6nEwmiwih8LYqc0 ogVaKDcxAt1fLCxgU=; b=QfHOBA57Wg1R3YawmJmSRMRtbC5UY3HqN7W02N4XzV 4Af9usHw5XHS2lafGBKT6VJbaiVx7hCw0oWuF3C+atEocPs/oie0tyxDbyAb59Hs /HOwtL3qNVozoxwxIyoXKvRoXkavbqsZR8V0lRW8C7p5l7QrFeY7olF0hJX2eTbC U= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:references :subject:to:x-me-sender:x-me-sender:x-sasl-enc; s=fm2; bh=C7sf4w qnwFw6nEwmiwih8LYqc0ogVaKDcxAt1fLCxgU=; b=O+ndsmmBqLRVXyjau9uyAn hTnqW61/DkYObnmOndHm4QgoTS8zVWHkh9fGlIzOkKWYfSzttrodbadgC2mb+mWW 1KKepShyWm5252f7b6mZgCtEvRgy8gLcyfynqVTUCcoDwdEcMJqyzR8Aox1SY9h4 o31OdLpoUnYdk0s5z2cTShBBkmwwhgLyrq3YlFatC2pNBxUuKYEhxksZ9I5GvQBJ 6dYp3ZthxBwzg5YhlLcQsCfw2mq8l51AnEoGrm7V79fAKdW/DfUIu1HAJCgEHZiF gpXmZPMGE4jh15aa6XcYWhyov/iqsqLGHvc3NXcKsDv3GmHuLxXgvLKfjkmOLeyw == X-ME-Sender: Received: from xps.localnet (184.203.134.77.rev.sfr.net [77.134.203.184]) by mail.messagingengine.com (Postfix) with ESMTPA id 67338E4B94; Wed, 9 May 2018 09:58:34 -0400 (EDT) From: Thomas Monjalon To: Qi Zhang Cc: dev@dpdk.org, adrien.mazarguil@6wind.com, yuan.peng@intel.com, wei.zhao1@intel.com Date: Wed, 09 May 2018 15:58:33 +0200 Message-ID: <6145536.AcryhQzmZr@xps> In-Reply-To: <20180507095044.48038-1-qi.z.zhang@intel.com> References: <20180507095044.48038-1-qi.z.zhang@intel.com> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" Subject: Re: [dpdk-dev] [PATCH] app/testpmd: fix invalid memory access X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 09 May 2018 13:58:36 -0000 07/05/2018 11:50, Qi Zhang: > When calulate memory size of an RTE_FLOW_ITEM_TYPE_RAW 's mask > mask->length is not the real size of binary pattern, it should take > spec->length, or memory size will be over counted (0xffff) and invalid > memory be access during following memcpy. > > Fixes: d0ad8648b1c5 ("app/testpmd: fix RSS flow action configuration") > > Signed-off-by: Qi Zhang Applied, thanks