From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ilya Maximets Subject: [PATCH v3 0/2] vhost: fix segfault on bad descriptor address Date: Fri, 15 Jul 2016 14:15:03 +0300 Message-ID: <1468581305-11756-1-git-send-email-i.maximets@samsung.com> References: <1463748604-27251-1-git-send-email-i.maximets@samsung.com> Cc: Dyasly Sergey , Heetae Ahn , Jianfeng Tan , Stephen Hemminger , Thomas Monjalon , Ilya Maximets To: dev@dpdk.org, Huawei Xie , Yuanhan Liu , Rich Lane Return-path: Received: from mailout4.w1.samsung.com (mailout4.w1.samsung.com [210.118.77.14]) by dpdk.org (Postfix) with ESMTP id F18A95586 for ; Fri, 15 Jul 2016 13:15:14 +0200 (CEST) Received: from eucpsbgm1.samsung.com (unknown [203.254.199.244]) by mailout4.w1.samsung.com (Oracle Communications Messaging Server 7.0.5.31.0 64bit (built May 5 2014)) with ESMTP id <0OAC002EXSLD6360@mailout4.w1.samsung.com> for dev@dpdk.org; Fri, 15 Jul 2016 12:15:13 +0100 (BST) In-reply-to: <1463748604-27251-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" Version 3: * Patch splitted in two. * Applied workaround from Rich Lane and added comment about performance issue with some compilers and 'unlikely' macro. 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