mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH 0/2] vhost-vdpa: fix a pin leak and unpin mappings by range
@ 2026-10-31 17:45 Tal Zussman
  2026-10-31 17:45 ` [PATCH 1/2] vhost-vdpa: fix pinned page leak in vhost_vdpa_pa_map() error path Tal Zussman
  2026-10-31 17:45 ` [PATCH 2/2] vhost-vdpa: unpin mappings by range Tal Zussman
  0 siblings, 2 replies; 4+ messages in thread
From: Tal Zussman @ 2026-10-31 17:45 UTC (permalink / raw)
  To: Michael S. Tsirkin, Jason Wang, Eugenio Pérez, Si-Wei Liu
  Cc: kvm, virtualization, netdev, linux-kernel, stable, Tal Zussman

While testing the second patch I ran into a pinned page leak in the
vhost_vdpa_pa_map() error path. The first patch fixes that and is
tagged for stable.

The second patch unpins each IOTLB mapping as a range with
unpin_user_page_range_dirty_lock(), which marks each folio dirty once
and drops its pins in one go, instead of a set_page_dirty_lock() and
unpin_user_page() per page. It removes the last use of
set_page_dirty_lock() in vhost.

---
Tal Zussman (2):
      vhost-vdpa: fix pinned page leak in vhost_vdpa_pa_map() error path
      vhost-vdpa: unpin mappings by range

 drivers/vhost/vdpa.c | 28 ++++++++--------------------
 1 file changed, 8 insertions(+), 20 deletions(-)
---
base-commit: c69023b5e16e5ffe9368603dca76d85bd544ee57
change-id: 20261015-vhost-vdpa-unpin-68ee785a019a

Best regards,
--  
Tal Zussman <tz2294@columbia.edu>


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2026-11-03  1:54 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-10-31 17:45 [PATCH 0/2] vhost-vdpa: fix a pin leak and unpin mappings by range Tal Zussman
2026-10-31 17:45 ` [PATCH 1/2] vhost-vdpa: fix pinned page leak in vhost_vdpa_pa_map() error path Tal Zussman
2026-11-03  1:54   ` Si-Wei Liu
2026-10-31 17:45 ` [PATCH 2/2] vhost-vdpa: unpin mappings by range Tal Zussman

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®