[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH v2] vhost-user-blk: Fail gracefully on too large queue size
From: |
Kevin Wolf |
Subject: |
Re: [PATCH v2] vhost-user-blk: Fail gracefully on too large queue size |
Date: |
Fri, 30 Apr 2021 11:17:28 +0200 |
Am 13.04.2021 um 18:56 hat Kevin Wolf geschrieben:
> virtio_add_queue() aborts when queue_size > VIRTQUEUE_MAX_SIZE, so
> vhost_user_blk_device_realize() should check this before calling it.
>
> Simple reproducer:
>
> qemu-system-x86_64 \
> -chardev null,id=foo \
> -device vhost-user-blk-pci,queue-size=4096,chardev=foo
>
> Fixes: https://bugzilla.redhat.com/show_bug.cgi?id=1935014
> Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Thanks for the review, applied to the block branch.
Kevin