From mboxrd@z Thu Jan 1 00:00:00 1970 From: Yuanhan Liu Subject: Re: [PATCH v3 0/2] vhost: fix segfault on bad descriptor address Date: Fri, 15 Jul 2016 20:14:49 +0800 Message-ID: <20160715121449.GG5146@yliu-dev.sh.intel.com> References: <1463748604-27251-1-git-send-email-i.maximets@samsung.com> <1468581305-11756-1-git-send-email-i.maximets@samsung.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: dev@dpdk.org, Huawei Xie , Rich Lane , Dyasly Sergey , Heetae Ahn , Jianfeng Tan , Stephen Hemminger , Thomas Monjalon To: Ilya Maximets Return-path: Received: from mga04.intel.com (mga04.intel.com [192.55.52.120]) by dpdk.org (Postfix) with ESMTP id 4A8D75424 for ; Fri, 15 Jul 2016 14:11:44 +0200 (CEST) Content-Disposition: inline In-Reply-To: <1468581305-11756-1-git-send-email-i.maximets@samsung.com> List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" On Fri, Jul 15, 2016 at 02:15:03PM +0300, Ilya Maximets wrote: > Version 3: > * Patch splitted in two. > * Applied workaround from Rich Lane and added comment about > performance issue with some compilers and 'unlikely' macro. Thanks a lot for the patches. Acked-by: Yuanhan Liu --yliu > > Version 2: > * Rebased on top of current master. > * host's address now checked in meargeable case, > because needed refactoring already done. > * Commit-message changed because old issue with > virtio reload accidentially fixed by commit > 0823c1cb0a73. > > Ilya Maximets (2): > vhost: fix using of bad return value on mergeable enqueue > vhost: do sanity check for ring descriptor address > > lib/librte_vhost/vhost_rxtx.c | 33 ++++++++++++++++++++++++++------- > 1 file changed, 26 insertions(+), 7 deletions(-) > > -- > 2.7.4