All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH net V3 0/3] Fix various issue of vhost
@ 2018-12-13  2:53 Jason Wang
  2018-12-13  2:53 ` [PATCH net V3 1/3] vhost: make sure used idx is seen before log in vhost_add_used_n() Jason Wang
                   ` (9 more replies)
  0 siblings, 10 replies; 12+ messages in thread
From: Jason Wang @ 2018-12-13  2:53 UTC (permalink / raw)
  To: mst, jasowang, kvm, virtualization, netdev, linux-kernel

Hi:

This series tries to fix various issues of vhost:

- Patch 1 adds a missing write barrier between used idx updating and
  logging.
- Patch 2-3 brings back the protection of device IOTLB through vq
  mutex, this fixes possible use after free in device IOTLB entries.

Please consider them for -stable.

Thanks

Changes from V2:
- drop dirty page fix and make it for net-next
Changes from V1:
- silent compiler warning for 32bit.
- use mutex_trylock() on slowpath instead of mutex_lock() even on fast
  path.

Jason Wang (3):
  vhost: make sure used idx is seen before log in vhost_add_used_n()
  vhost_net: switch to use mutex_trylock() in vhost_net_busy_poll()
  Revert "net: vhost: lock the vqs one by one"

 drivers/vhost/net.c   |  8 +++++++-
 drivers/vhost/vhost.c | 23 +++++++++++++++++++----
 2 files changed, 26 insertions(+), 5 deletions(-)

-- 
2.17.1

^ permalink raw reply	[flat|nested] 12+ messages in thread
* [PATCH net V3 0/3] Fix various issue of vhost
@ 2018-12-13  2:53 Jason Wang
  0 siblings, 0 replies; 12+ messages in thread
From: Jason Wang @ 2018-12-13  2:53 UTC (permalink / raw)
  To: mst, jasowang, kvm, virtualization, netdev, linux-kernel

Hi:

This series tries to fix various issues of vhost:

- Patch 1 adds a missing write barrier between used idx updating and
  logging.
- Patch 2-3 brings back the protection of device IOTLB through vq
  mutex, this fixes possible use after free in device IOTLB entries.

Please consider them for -stable.

Thanks

Changes from V2:
- drop dirty page fix and make it for net-next
Changes from V1:
- silent compiler warning for 32bit.
- use mutex_trylock() on slowpath instead of mutex_lock() even on fast
  path.

Jason Wang (3):
  vhost: make sure used idx is seen before log in vhost_add_used_n()
  vhost_net: switch to use mutex_trylock() in vhost_net_busy_poll()
  Revert "net: vhost: lock the vqs one by one"

 drivers/vhost/net.c   |  8 +++++++-
 drivers/vhost/vhost.c | 23 +++++++++++++++++++----
 2 files changed, 26 insertions(+), 5 deletions(-)

-- 
2.17.1

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

end of thread, other threads:[~2018-12-13 14:32 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-12-13  2:53 [PATCH net V3 0/3] Fix various issue of vhost Jason Wang
2018-12-13  2:53 ` [PATCH net V3 1/3] vhost: make sure used idx is seen before log in vhost_add_used_n() Jason Wang
2018-12-13  2:53 ` Jason Wang
2018-12-13  2:53 ` [PATCH net V3 2/3] vhost_net: switch to use mutex_trylock() in vhost_net_busy_poll() Jason Wang
2018-12-13  2:53 ` Jason Wang
2018-12-13  2:53 ` [PATCH net V3 3/3] Revert "net: vhost: lock the vqs one by one" Jason Wang
2018-12-13  2:53 ` Jason Wang
2018-12-13  5:57 ` [PATCH net V3 0/3] Fix various issue of vhost David Miller
2018-12-13  5:57 ` David Miller
2018-12-13 14:32 ` Michael S. Tsirkin
2018-12-13 14:32 ` Michael S. Tsirkin
  -- strict thread matches above, loose matches on Subject: below --
2018-12-13  2:53 Jason Wang

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.