summaryrefslogtreecommitdiffstats
path: root/kernel
diff options
context:
space:
mode:
authorJason Wang2019-05-17 06:29:52 +0200
committerGreg Kroah-Hartman2019-08-04 09:30:55 +0200
commit02cdc166128cf9cb2be4786b997eebbc0b976bfa (patch)
tree1afb17be338eb79d943a3438f697b0993dddb079 /kernel
parentvhost: vsock: add weight support (diff)
downloadkernel-qcow2-linux-02cdc166128cf9cb2be4786b997eebbc0b976bfa.tar.gz
kernel-qcow2-linux-02cdc166128cf9cb2be4786b997eebbc0b976bfa.tar.xz
kernel-qcow2-linux-02cdc166128cf9cb2be4786b997eebbc0b976bfa.zip
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> [jwang: backport to 4.19] Signed-off-by: Jack Wang <jinpu.wang@cloud.ionos.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'kernel')
0 files changed, 0 insertions, 0 deletions