mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH net 0/4] Prevent vhost kthread from hogging CPU
@ 2019-05-16  7:47 Jason Wang
  2019-05-16  7:47 ` [PATCH net 1/4] vhost: introduce vhost_exceeds_weight() Jason Wang
                   ` (4 more replies)
  0 siblings, 5 replies; 8+ messages in thread
From: Jason Wang @ 2019-05-16  7:47 UTC (permalink / raw)
  To: mst, jasowang, virtualization, kvm, netdev, linux-kernel
  Cc: pbonzini, stefanha

Hi:

This series try to prvernt a guest triggerable CPU hogging through
vhost kthread. This is done by introducing and checking the weight
after each requrest. The patch has been tested with reproducer of
vsock and virtio-net. Only compile test is done for vhost-scsi.

Please review.

This addresses CVE-2019-3900.

Jason Wang (4):
  vhost: introduce vhost_exceeds_weight()
  vhost_net: fix possible infinite loop
  vhost: vsock: add weight support
  vhost: scsi: add weight support

 drivers/vhost/net.c   | 41 ++++++++++++++---------------------------
 drivers/vhost/scsi.c  | 21 ++++++++++++++-------
 drivers/vhost/vhost.c | 20 +++++++++++++++++++-
 drivers/vhost/vhost.h |  5 ++++-
 drivers/vhost/vsock.c | 28 +++++++++++++++++++++-------
 5 files changed, 72 insertions(+), 43 deletions(-)

-- 
1.8.3.1


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

end of thread, other threads:[~2019-05-17  1:05 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-05-16  7:47 [PATCH net 0/4] Prevent vhost kthread from hogging CPU Jason Wang
2019-05-16  7:47 ` [PATCH net 1/4] vhost: introduce vhost_exceeds_weight() Jason Wang
2019-05-16  7:47 ` [PATCH net 2/4] vhost_net: fix possible infinite loop Jason Wang
2019-05-16  7:47 ` [PATCH net 3/4] vhost: vsock: add weight support Jason Wang
2019-05-16  9:33   ` Stefan Hajnoczi
2019-05-17  1:05     ` Jason Wang
2019-05-16  7:47 ` [PATCH net 4/4] vhost: scsi: " Jason Wang
2019-05-16  9:34 ` [PATCH net 0/4] Prevent vhost kthread from hogging CPU Stefan Hajnoczi

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®