All of lore.kernel.org
 help / color / mirror / Atom feed
From: Si-Wei Liu <si-wei.liu@oracle.com>
To: mst@redhat.com, jasowang@redhat.com, lingshan.zhu@intel.com
Cc: joao.m.martins@oracle.com, boris.ostrovsky@oracle.com,
	linux-kernel@vger.kernel.org,
	virtualization@lists.linux-foundation.org,
	netdev@vger.kernel.org
Subject: [PATCH v3 0/2] vhost-vdpa mapping error path fixes
Date: Sat,  3 Oct 2020 01:02:08 -0400	[thread overview]
Message-ID: <1601701330-16837-1-git-send-email-si-wei.liu@oracle.com> (raw)

Commit 4c8cf31885f6 ("vhost: introduce vDPA-based backend")
has following issues in the failure path of IOTLB update:

1) vhost_vdpa_map() does not clean up dangling iotlb entry
   upon mapping failure

2) vhost_vdpa_process_iotlb_update() has leakage of pinned
   pages in case of vhost_vdpa_map() failure

This patchset attempts to address the above issues.

Changes in v3:
- Factor out changes in vhost_vdpa_map() and the fix for
  page pinning leak to separate patches (Jason)

---
Si-Wei Liu (2):
  vhost-vdpa: fix vhost_vdpa_map() on error condition
  vhost-vdpa: fix page pinning leakage in error path

 drivers/vhost/vdpa.c | 122 +++++++++++++++++++++++++++++++--------------------
 1 file changed, 74 insertions(+), 48 deletions(-)

-- 
1.8.3.1


WARNING: multiple messages have this Message-ID (diff)
From: Si-Wei Liu <si-wei.liu@oracle.com>
To: mst@redhat.com, jasowang@redhat.com, lingshan.zhu@intel.com
Cc: netdev@vger.kernel.org,
	virtualization@lists.linux-foundation.org,
	boris.ostrovsky@oracle.com, linux-kernel@vger.kernel.org
Subject: [PATCH v3 0/2] vhost-vdpa mapping error path fixes
Date: Sat,  3 Oct 2020 01:02:08 -0400	[thread overview]
Message-ID: <1601701330-16837-1-git-send-email-si-wei.liu@oracle.com> (raw)

Commit 4c8cf31885f6 ("vhost: introduce vDPA-based backend")
has following issues in the failure path of IOTLB update:

1) vhost_vdpa_map() does not clean up dangling iotlb entry
   upon mapping failure

2) vhost_vdpa_process_iotlb_update() has leakage of pinned
   pages in case of vhost_vdpa_map() failure

This patchset attempts to address the above issues.

Changes in v3:
- Factor out changes in vhost_vdpa_map() and the fix for
  page pinning leak to separate patches (Jason)

---
Si-Wei Liu (2):
  vhost-vdpa: fix vhost_vdpa_map() on error condition
  vhost-vdpa: fix page pinning leakage in error path

 drivers/vhost/vdpa.c | 122 +++++++++++++++++++++++++++++++--------------------
 1 file changed, 74 insertions(+), 48 deletions(-)

-- 
1.8.3.1

_______________________________________________
Virtualization mailing list
Virtualization@lists.linux-foundation.org
https://lists.linuxfoundation.org/mailman/listinfo/virtualization

             reply	other threads:[~2020-10-03  5:43 UTC|newest]

Thread overview: 30+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-10-03  5:02 Si-Wei Liu [this message]
2020-10-03  5:02 ` [PATCH v3 0/2] vhost-vdpa mapping error path fixes Si-Wei Liu
2020-10-03  5:02 ` [PATCH v3 1/2] vhost-vdpa: fix vhost_vdpa_map() on error condition Si-Wei Liu
2020-10-03  5:02   ` Si-Wei Liu
2020-10-10  1:48   ` Jason Wang
2020-10-10  1:48     ` Jason Wang
2020-10-11  6:45     ` Michael S. Tsirkin
2020-10-11  6:45       ` Michael S. Tsirkin
2020-10-03  5:02 ` [PATCH v3 2/2] vhost-vdpa: fix page pinning leakage in error path Si-Wei Liu
2020-10-03  5:02   ` Si-Wei Liu
2020-10-10  2:27   ` Jason Wang
2020-10-10  2:27     ` Jason Wang
2020-10-13 23:42     ` si-wei liu
2020-10-13 23:42       ` si-wei liu
2020-10-14  6:52       ` Michael S. Tsirkin
2020-10-14  6:52         ` Michael S. Tsirkin
2020-10-14 11:41         ` Jason Wang
2020-10-14 11:41           ` Jason Wang
2020-10-15  6:15       ` Jason Wang
2020-10-15  6:15         ` Jason Wang
2020-10-15 13:11         ` Michael S. Tsirkin
2020-10-15 13:11           ` Michael S. Tsirkin
2020-10-15 20:17           ` si-wei liu
2020-10-15 20:17             ` si-wei liu
2020-10-29 21:53             ` Michael S. Tsirkin
2020-10-29 21:53               ` Michael S. Tsirkin
2020-10-29 23:22               ` si-wei liu
2020-10-29 23:22                 ` si-wei liu
2020-11-03  5:34               ` si-wei liu
2020-11-03  5:34                 ` si-wei liu

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1601701330-16837-1-git-send-email-si-wei.liu@oracle.com \
    --to=si-wei.liu@oracle.com \
    --cc=boris.ostrovsky@oracle.com \
    --cc=jasowang@redhat.com \
    --cc=joao.m.martins@oracle.com \
    --cc=lingshan.zhu@intel.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=mst@redhat.com \
    --cc=netdev@vger.kernel.org \
    --cc=virtualization@lists.linux-foundation.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.