From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id 2560CA04DE; Fri, 23 Oct 2020 13:22:09 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id CD16D5957; Fri, 23 Oct 2020 13:22:06 +0200 (CEST) Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [216.205.24.124]) by dpdk.org (Postfix) with ESMTP id 779A056A3 for ; Fri, 23 Oct 2020 13:22:04 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1603452122; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=2C2o73JiXIPOdZ3N1i3q16UninGxMVOyJzC31QhXXW0=; b=JiYyZMYkpqZxBoQGN7bHyt7NtV5kNqAx2t+ktbfD/fbXX83pLZIFQEAidWKlglzqM58Ent jMEADwGnxzid9oICA01zS/efjBkX7ArK3dBTyFV+5vAgcRiCXv+JHN7hVQasfZRUv193Ny Q4dcsosMIv/mI/JuCVsKVOXj6n2cLmQ= Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-427-6iOAAvBzM6W7hNNqw34fHw-1; Fri, 23 Oct 2020 07:21:59 -0400 X-MC-Unique: 6iOAAvBzM6W7hNNqw34fHw-1 Received: from smtp.corp.redhat.com (int-mx07.intmail.prod.int.phx2.redhat.com [10.5.11.22]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 4A7911006CAD; Fri, 23 Oct 2020 11:21:58 +0000 (UTC) Received: from [10.36.110.30] (unknown [10.36.110.30]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 457D81001281; Fri, 23 Oct 2020 11:21:57 +0000 (UTC) To: dev@dpdk.org, chenbo.xia@intel.com, amorenoz@redhat.com References: <20201019173415.582407-1-maxime.coquelin@redhat.com> From: Maxime Coquelin Message-ID: Date: Fri, 23 Oct 2020 13:21:55 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.3.1 MIME-Version: 1.0 In-Reply-To: <20201019173415.582407-1-maxime.coquelin@redhat.com> X-Scanned-By: MIMEDefang 2.84 on 10.5.11.22 Authentication-Results: relay.mimecast.com; auth=pass smtp.auth=CUSA124A263 smtp.mailfrom=maxime.coquelin@redhat.com X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Subject: Re: [dpdk-dev] [PATCH 0/7] vhost: make VQ metadata dereferencing robust 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: , Errors-To: dev-bounces@dpdk.org Sender: "dev" On 10/19/20 7:34 PM, Maxime Coquelin wrote: > The series aims at improving virtqueue metadata pointers > dereferencing robust. > > First patch fixes a real issue reported by our QE. > > Five next patches validates queue index passed as input > of the Vhost API. They are split in 5 patches to ease > backporting to LTSes. > > Last patch is not mandatory now that patch 1 ensures there > won't be holes in the array of virtqueue metadata pointers, > but I think it is a nice to have anyway. > > Maxime Coquelin (7): > vhost: fix virtqueues metadata allocation > vhost: validate index in available entries API > vhost: validate index in guest notification API > vhost: validate index in live-migration API > vhost: validate index in inflight API > vhost: validate index in async API > vhost: check virtqueue metadata pointer > > lib/librte_vhost/vhost.c | 76 ++++++++++++++++++++++++++++------- > lib/librte_vhost/vhost_user.c | 12 ++++++ > 2 files changed, 74 insertions(+), 14 deletions(-) > Applied to dpdk-next-virtio/main. Thanks, Maxime