From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mx1.redhat.com (mx1.redhat.com [209.132.183.28]) by dpdk.org (Postfix) with ESMTP id A9E361B4A8; Fri, 4 Jan 2019 18:24:54 +0100 (CET) Received: from smtp.corp.redhat.com (int-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.12]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 126962D7E8; Fri, 4 Jan 2019 17:24:54 +0000 (UTC) Received: from [10.36.112.33] (ovpn-112-33.ams2.redhat.com [10.36.112.33]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 9462160BE7; Fri, 4 Jan 2019 17:24:52 +0000 (UTC) To: Fan Zhang , dev@dpdk.org Cc: tiwei.bie@intel.com, stable@dpdk.org References: <20190104112246.9338-1-roy.fan.zhang@intel.com> <20190104112246.9338-3-roy.fan.zhang@intel.com> From: Maxime Coquelin Message-ID: Date: Fri, 4 Jan 2019 18:24:50 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.3.1 MIME-Version: 1.0 In-Reply-To: <20190104112246.9338-3-roy.fan.zhang@intel.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-Scanned-By: MIMEDefang 2.79 on 10.5.11.12 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.30]); Fri, 04 Jan 2019 17:24:54 +0000 (UTC) Subject: Re: [dpdk-dev] [PATCH 2/2] vhost/crypto: fix possible out of bound 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: Fri, 04 Jan 2019 17:24:55 -0000 On 1/4/19 12:22 PM, Fan Zhang wrote: > This patch fixes a out of bound access possbility in vhost > crypto. Originally the incorrect next descriptor index may > cause the library read invalid memory content and crash > the application. > > Cc: stable@dpdk.org > Fixes: 3bb595ecd682 ("vhost/crypto: add request handler") > > Signed-off-by: Fan Zhang > --- > lib/librte_vhost/vhost_crypto.c | 89 ++++++++++++++++++++++++----------------- > 1 file changed, 53 insertions(+), 36 deletions(-) > Reviewed-by: Maxime Coquelin Thanks, Maxime