From mboxrd@z Thu Jan 1 00:00:00 1970 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) X-AuditID: cbfec7f4-f796c6d000001486-18-5788c5c04e85 Received: from eusync4.samsung.com ( [203.254.199.214]) by eucpsbgm1.samsung.com (EUCPMTA) with SMTP id 79.DC.05254.0C5C8875; Fri, 15 Jul 2016 12:15:12 +0100 (BST) Received: from imaximets.rnd.samsung.ru ([106.109.129.180]) by eusync4.samsung.com (Oracle Communications Messaging Server 7.0.5.31.0 64bit (built May 5 2014)) with ESMTPA id <0OAC005XOSL8G570@eusync4.samsung.com>; Fri, 15 Jul 2016 12:15:12 +0100 (BST) From: Ilya Maximets To: dev@dpdk.org, Huawei Xie , Yuanhan Liu , Rich Lane Cc: Dyasly Sergey , Heetae Ahn , Jianfeng Tan , Stephen Hemminger , Thomas Monjalon , Ilya Maximets Date: Fri, 15 Jul 2016 14:15:03 +0300 Message-id: <1468581305-11756-1-git-send-email-i.maximets@samsung.com> X-Mailer: git-send-email 2.7.4 In-reply-to: <1463748604-27251-1-git-send-email-i.maximets@samsung.com> References: <1463748604-27251-1-git-send-email-i.maximets@samsung.com> X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFlrDLMWRmVeSWpSXmKPExsVy+t/xa7oHjnaEG+xtt7F492k7k8W0z7fZ LdpnnmWyuNL+k92ie/YXNotN7yaxWkyeLWWx+I6cxZdN09ksrk+4wOrA5XGx/w6jx4PLN5k8 fi1YyuqxeM9LJo95JwM9ek7OY/Lo27KKMYA9issmJTUnsyy1SN8ugSvj1I/lTAWHWCs+rPvO 2sC4nqWLkZNDQsBE4tuGLihbTOLCvfVsXYxcHEICSxkllr9ZxwjhtDJJXDo6ix2kik1AR+LU 6iNgCRGBVkaJx/+ngbUwCzQzSWz78ASsSljAVeL3miVACQ4OFgFVidZXNiBhXgE3iRUHl0Gt k5O4ea6TGcTmFHCXONDZBNYqBFSzfuI0pgmMvAsYGVYxiqaWJhcUJ6XnGuoVJ+YWl+al6yXn 525ihIThlx2Mi49ZHWIU4GBU4uEVONoeLsSaWFZcmXuIUYKDWUmE982hjnAh3pTEyqrUovz4 otKc1OJDjNIcLErivHN3vQ8REkhPLEnNTk0tSC2CyTJxcEo1MIoVXZ6r/HBnT/zn9K0HQhTi GZmkows75K6u3au1/0eSc1KRBdPHv+/frs+cVbU749Mix7pr85/PWVWweN26jgMObeGT85N4 K5wm9Pyt4jnI8nL6823/Lv+SSeb5IJ9tyR6w4VCQqct8Jf7vShWVhgeWupyXjkhSeMu2fbnS IcOIx7JpIc0hK5VYijMSDbWYi4oTAZiTkNo/AgAA Subject: [dpdk-dev] [PATCH v3 0/2] vhost: fix segfault on bad descriptor address X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 15 Jul 2016 11:15:15 -0000 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