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 4426BA0527 for ; Mon, 9 Nov 2020 12:26:18 +0100 (CET) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 14D5A5B3A; Mon, 9 Nov 2020 12:26:17 +0100 (CET) Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [63.128.21.124]) by dpdk.org (Postfix) with ESMTP id 1D3ED5B3A for ; Mon, 9 Nov 2020 12:26:14 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1604921173; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=UFwaLKPXgJ1tfDbromKvtpzEDLGmGgDMhJCZZMUfK5U=; b=SsqvoRO0682QfwdeG6tx5SYbi28K4AvANnUUIPDg37LWHaeoV+89lgjJ0THyHtRzgerRz6 luMuk0vL7bAi8Vz+Axz5SvuQSb9axbKGSPRktcWEb/HZGshnIJB/n4rsJag/sQ08QHdvVc CHebSf0E63KwhnpMVy/jhmut2lA+iNE= 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-408-0_zcylcuOpujG28aqJdwXg-1; Mon, 09 Nov 2020 06:26:09 -0500 X-MC-Unique: 0_zcylcuOpujG28aqJdwXg-1 Received: from smtp.corp.redhat.com (int-mx03.intmail.prod.int.phx2.redhat.com [10.5.11.13]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 4C5591018F61; Mon, 9 Nov 2020 11:26:08 +0000 (UTC) Received: from localhost.localdomain (unknown [10.36.110.32]) by smtp.corp.redhat.com (Postfix) with ESMTP id 395AA6EF6B; Mon, 9 Nov 2020 11:26:03 +0000 (UTC) From: Maxime Coquelin To: dev@dpdk.org, xuan.ding@intel.com, stephen@networkplumber.org, thomas@monjalon.net, stable@dpdk.org, chenbo.xia@intel.com Cc: Maxime Coquelin Date: Mon, 9 Nov 2020 12:25:57 +0100 Message-Id: <20201109112600.250779-1-maxime.coquelin@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.79 on 10.5.11.13 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-Transfer-Encoding: 8bit Content-Type: text/plain; charset="US-ASCII" Subject: [dpdk-stable] [PATCH v2 0/3] vhost: fix fd an memory leaks X-BeenThere: stable@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: patches for DPDK stable branches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: stable-bounces@dpdk.org Sender: "stable" This series fixes several leaks in Vhost-user requests handling. Thanks to Xuan Ding from Intel for reporting these issues. Changes in v2: - Fix typos in commit messages. (Chenbo) - Remove useless closing of fds inset_log_base. (Chenbo) Maxime Coquelin (3): vhost: fix error path when setting memory tables vhost: fix fd leak in dirty logging setup vhost: fix fd leak in kick setup lib/librte_vhost/vhost_user.c | 79 ++++++++++++++++++++++------------- 1 file changed, 50 insertions(+), 29 deletions(-) -- 2.26.2