summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorJason Wang <jasowang@redhat.com>2019-08-28 00:10:49 +0100
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2019-09-06 10:18:12 +0200
commit6ca24361c2a4c28e69cac96b0bbe476043f5d866 (patch)
tree519715cefd9f9dc67fc963fb7d2729e90c6349c3 /lib
parentbb85b4cbd8f69cdea3a0caa9aa4edb1d4d7bc24f (diff)
vhost: scsi: add weight support
commit c1ea02f15ab5efb3e93fc3144d895410bf79fcf2 upstream. This patch will check the weight and exit the loop if we exceeds the weight. This is useful for preventing scsi kthread from hogging cpu which is guest triggerable. This addresses CVE-2019-3900. Cc: Paolo Bonzini <pbonzini@redhat.com> Cc: Stefan Hajnoczi <stefanha@redhat.com> Fixes: 057cbf49a1f0 ("tcm_vhost: Initial merge for vhost level target fabric driver") Signed-off-by: Jason Wang <jasowang@redhat.com> Reviewed-by: Stefan Hajnoczi <stefanha@redhat.com> Signed-off-by: Michael S. Tsirkin <mst@redhat.com> Reviewed-by: Stefan Hajnoczi <stefanha@redhat.com> [bwh: Backported to 4.4: - Drop changes in vhost_scsi_ctl_handle_vq() - Adjust context] Signed-off-by: Ben Hutchings <ben.hutchings@codethink.co.uk> Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'lib')
0 files changed, 0 insertions, 0 deletions