summaryrefslogtreecommitdiff
path: root/drivers/vhost/vringh.c
diff options
context:
space:
mode:
authorVincent Whitchurch <vincent.whitchurch@axis.com>2021-07-01 14:46:52 +0300
committerMichael S. Tsirkin <mst@redhat.com>2021-08-11 13:44:23 +0300
commitcb5d2c1f6cc0e5769099a7d44b9d08cf58cae206 (patch)
treeda27808259b428408a686df937051774cee91d6d /drivers/vhost/vringh.c
parentc8d182bd387a09a8b95303c8086238e8bf61fcfc (diff)
downloadlinux-cb5d2c1f6cc0e5769099a7d44b9d08cf58cae206.tar.xz
virtio_vdpa: reject invalid vq indices
Do not call vDPA drivers' callbacks with vq indicies larger than what the drivers indicate that they support. vDPA drivers do not bounds check the indices. Signed-off-by: Vincent Whitchurch <vincent.whitchurch@axis.com> Link: https://lore.kernel.org/r/20210701114652.21956-1-vincent.whitchurch@axis.com Signed-off-by: Michael S. Tsirkin <mst@redhat.com> Acked-by: Jason Wang <jasowang@redhat.com> Reviewed-by: Stefano Garzarella <sgarzare@redhat.com>
Diffstat (limited to 'drivers/vhost/vringh.c')
0 files changed, 0 insertions, 0 deletions